500-debian-subset.patch 880 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584
  1. diff -ruN libnet-1.0.2a-orig/Makefile.am libnet-1.0.2a-7/Makefile.am
  2. --- libnet-1.0.2a-orig/Makefile.am 1970-01-01 01:00:00.000000000 +0100
  3. +++ libnet-1.0.2a-7/Makefile.am 2005-03-08 03:53:26.000000000 +0100
  4. @@ -0,0 +1,10 @@
  5. +include $(top_srcdir)/Makefile.am.common
  6. +
  7. +SUBDIRS = src include
  8. +
  9. +EXTRA_DIST = Makefile.am.common
  10. +
  11. +bin_SCRIPTS = libnet-config
  12. +
  13. +version.h: VERSION
  14. + sed -e 's/.*/#define VERSION "&"/' < $< > $@
  15. diff -ruN libnet-1.0.2a-orig/Makefile.am.common libnet-1.0.2a-7/Makefile.am.common
  16. --- libnet-1.0.2a-orig/Makefile.am.common 1970-01-01 01:00:00.000000000 +0100
  17. +++ libnet-1.0.2a-7/Makefile.am.common 2005-03-08 03:53:26.000000000 +0100
  18. @@ -0,0 +1,3 @@
  19. +AUTOMAKE_OPTIONS = foreign no-dependencies
  20. +
  21. +DISTCLEANFILES = *~
  22. diff -ruN libnet-1.0.2a-orig/Makefile.in libnet-1.0.2a-7/Makefile.in
  23. --- libnet-1.0.2a-orig/Makefile.in 2001-02-05 18:51:41.000000000 +0100
  24. +++ libnet-1.0.2a-7/Makefile.in 2005-03-08 03:53:26.000000000 +0100
  25. @@ -1,147 +1,620 @@
  26. -#
  27. -# $Id: Makefile.in,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
  28. -#
  29. -# Libnet 1.0 makefile
  30. -# (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
  31. -#
  32. -# @configure_input@
  33. -
  34. -# Enabled: Dumps debugging info and verbose error information.
  35. -# Disabled: Doesn't.
  36. -# default: disabled.
  37. -DEFINES += #-D__DEBUG
  38. -prefix = @prefix@
  39. -exec_prefix = @exec_prefix@
  40. -srcdir = @srcdir@
  41. -BIN_PREFIX = @bindir@/
  42. -INC_PREFIX = @includedir@/
  43. -LIB_PREFIX = @libdir@/
  44. -MAN_PREFIX = @MAN_PREFIX@
  45. -
  46. -LIBNET = libnet
  47. -LIBPWRITE = libpwrite
  48. -LIB = lib/$(LIBNET).a
  49. -MAN = doc/$(LIBNET).3
  50. -INCLUDE = include/$(LIBNET).h
  51. -INCLUDE-H = include/$(LIBNET)/$(LIBNET)-headers.h
  52. -INCLUDE-F = include/$(LIBNET)/$(LIBNET)-functions.h
  53. -INCLUDE-S = include/$(LIBNET)/$(LIBNET)-structures.h
  54. -INCLUDE-M = include/$(LIBNET)/$(LIBNET)-macros.h
  55. -INCLUDE-A = include/$(LIBNET)/$(LIBNET)-asn1.h
  56. -INCLUDE-O = include/$(LIBNET)/$(LIBNET)-ospf.h
  57. -CONFIG = $(LIBNET)-config
  58. -DEFINES += @DEFS@
  59. -RANLIB = @RANLIB@
  60. -AR = @AR@
  61. -LN = @LN@
  62. -CC = @CC@
  63. -ENSUREDIR = $(srcdir)/ensure-dir.sh
  64. -INSTALL_DATA= $(srcdir)/install-sh
  65. -CFLAGS = @CFLAGS@
  66. -CPPFLAGS = @CPPFLAGS@
  67. -OBJECTS = src/libnet_resolve.o\
  68. - src/libnet_socket.o\
  69. - src/libnet_checksum.o\
  70. - src/libnet_prand.o\
  71. - src/libnet_version.o\
  72. - src/libnet_write_ip.o\
  73. - src/libnet_insert_ipo.o\
  74. - src/libnet_insert_tcpo.o\
  75. - src/libnet_error.o\
  76. - src/libnet_link_@LL_INT_TYPE@.o\
  77. - src/libnet_packet_mem.o\
  78. - src/libnet_build_ip.o\
  79. - src/libnet_build_tcp.o\
  80. - src/libnet_build_udp.o\
  81. - src/libnet_build_arp.o\
  82. - src/libnet_build_ethernet.o\
  83. - src/libnet_build_icmp.o\
  84. - src/libnet_build_igmp.o\
  85. - src/libnet_build_dns.o\
  86. - src/libnet_build_snmp.o\
  87. - src/libnet_build_rip.o\
  88. - src/libnet_build_ospf.o\
  89. - src/libnet_build_vrrp.o\
  90. - src/libnet_asn1.o\
  91. - src/libnet_hex_dump.o\
  92. - src/libnet_if_addr.o\
  93. - src/libnet_port_list.o
  94. -
  95. -.c.o:
  96. - $(CC) $(CFLAGS) $(CPPFLAGS) $(DEFINES) -c $< -o $@
  97. -
  98. -all: libnet
  99. -supp: test example
  100. -
  101. -libnet: version.h $(OBJECTS)
  102. - $(AR) -cr $(LIB) $(OBJECTS)
  103. - $(RANLIB) $(LIB)
  104. -
  105. -version.o: version.h
  106. -version.h: ./VERSION
  107. - @rm -f $@
  108. - sed -e 's/.*/#define VERSION "&"/' ./VERSION > $@
  109. -
  110. -test: libnet
  111. - cd test; make
  112. -
  113. -util: libnet install
  114. - cd util; make
  115. -
  116. -example: libnet install
  117. - cd example; make
  118. -
  119. -install: libnet
  120. - $(ENSUREDIR) $(DESTDIR)$(prefix) 755
  121. - $(ENSUREDIR) $(DESTDIR)$(LIB_PREFIX) 755
  122. - $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX)$(LIBNET) 755
  123. - $(ENSUREDIR) $(DESTDIR)$(INC_PREFIX) 755
  124. - $(ENSUREDIR) $(DESTDIR)$(MAN_PREFIX) 755
  125. - $(ENSUREDIR) $(DESTDIR)$(BIN_PREFIX) 755
  126. - $(INSTALL_DATA) $(LIB) $(DESTDIR)$(LIB_PREFIX)
  127. - rm -f $(DESTDIR)$(LIB_PREFIX)$(LIBPWRITE).a
  128. - cd $(DESTDIR)$(LIB_PREFIX); $(LN) -f -s $(LIBNET).a $(LIBPWRITE).a
  129. - $(INSTALL_DATA) $(INCLUDE) $(DESTDIR)$(INC_PREFIX)
  130. - $(INSTALL_DATA) $(INCLUDE-H) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
  131. - $(INSTALL_DATA) $(INCLUDE-F) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
  132. - $(INSTALL_DATA) $(INCLUDE-S) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
  133. - $(INSTALL_DATA) $(INCLUDE-M) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
  134. - $(INSTALL_DATA) $(INCLUDE-A) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
  135. - $(INSTALL_DATA) $(INCLUDE-O) $(DESTDIR)$(INC_PREFIX)$(LIBNET)
  136. - $(INSTALL_DATA) $(MAN) $(DESTDIR)$(MAN_PREFIX)
  137. - $(INSTALL_DATA) $(CONFIG) $(DESTDIR)$(BIN_PREFIX)
  138. -
  139. -
  140. -
  141. -clean:
  142. - if test -f test/Makefile; then \
  143. - cd test && make clean; \
  144. - fi
  145. - if test -f example/Makefile; then \
  146. - cd example && make clean; \
  147. - fi
  148. - if test -f util/Makefile; then \
  149. - cd util && make clean; \
  150. - fi
  151. - if test -f support/bpf-lkm/etherspoof; then \
  152. - cd support/bpf-lkm/etherspoof && make clean; \
  153. - fi
  154. - rm -f *.core src/*.o $(LIB)
  155. +# Makefile.in generated by automake 1.8.5 from Makefile.am.
  156. +# @configure_input@
  157. -distclean: clean
  158. - if test -f test/Makefile; then \
  159. - cd test && make distclean; \
  160. - fi
  161. - if test -f example/Makefile; then \
  162. - cd example && make distclean; \
  163. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  164. +# 2003, 2004 Free Software Foundation, Inc.
  165. +# This Makefile.in is free software; the Free Software Foundation
  166. +# gives unlimited permission to copy and/or distribute it,
  167. +# with or without modifications, as long as this notice is preserved.
  168. +
  169. +# This program is distributed in the hope that it will be useful,
  170. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  171. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  172. +# PARTICULAR PURPOSE.
  173. +
  174. +@SET_MAKE@
  175. +
  176. +srcdir = @srcdir@
  177. +top_srcdir = @top_srcdir@
  178. +VPATH = @srcdir@
  179. +pkgdatadir = $(datadir)/@PACKAGE@
  180. +pkglibdir = $(libdir)/@PACKAGE@
  181. +pkgincludedir = $(includedir)/@PACKAGE@
  182. +top_builddir = .
  183. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  184. +INSTALL = @INSTALL@
  185. +install_sh_DATA = $(install_sh) -c -m 644
  186. +install_sh_PROGRAM = $(install_sh) -c
  187. +install_sh_SCRIPT = $(install_sh) -c
  188. +INSTALL_HEADER = $(INSTALL_DATA)
  189. +transform = $(program_transform_name)
  190. +NORMAL_INSTALL = :
  191. +PRE_INSTALL = :
  192. +POST_INSTALL = :
  193. +NORMAL_UNINSTALL = :
  194. +PRE_UNINSTALL = :
  195. +POST_UNINSTALL = :
  196. +build_triplet = @build@
  197. +host_triplet = @host@
  198. +target_triplet = @target@
  199. +DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  200. + $(srcdir)/Makefile.in $(srcdir)/libnet-config.in \
  201. + $(top_srcdir)/Makefile.am.common $(top_srcdir)/configure \
  202. + acconfig.h config.guess config.sub install-sh ltmain.sh \
  203. + missing mkinstalldirs
  204. +subdir = .
  205. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  206. +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
  207. + $(top_srcdir)/configure.in
  208. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  209. + $(ACLOCAL_M4)
  210. +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  211. + configure.lineno configure.status.lineno
  212. +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  213. +CONFIG_HEADER = $(top_builddir)/include/config.h
  214. +CONFIG_CLEAN_FILES = libnet-config
  215. +am__installdirs = "$(DESTDIR)$(bindir)"
  216. +binSCRIPT_INSTALL = $(INSTALL_SCRIPT)
  217. +SCRIPTS = $(bin_SCRIPTS)
  218. +depcomp =
  219. +am__depfiles_maybe =
  220. +SOURCES =
  221. +DIST_SOURCES =
  222. +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  223. + html-recursive info-recursive install-data-recursive \
  224. + install-exec-recursive install-info-recursive \
  225. + install-recursive installcheck-recursive installdirs-recursive \
  226. + pdf-recursive ps-recursive uninstall-info-recursive \
  227. + uninstall-recursive
  228. +ETAGS = etags
  229. +CTAGS = ctags
  230. +DIST_SUBDIRS = $(SUBDIRS)
  231. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  232. +distdir = $(PACKAGE)-$(VERSION)
  233. +top_distdir = $(distdir)
  234. +am__remove_distdir = \
  235. + { test ! -d $(distdir) \
  236. + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  237. + && rm -fr $(distdir); }; }
  238. +DIST_ARCHIVES = $(distdir).tar.gz
  239. +GZIP_ENV = --best
  240. +distuninstallcheck_listfiles = find . -type f -print
  241. +distcleancheck_listfiles = find . -type f -print
  242. +ACLOCAL = @ACLOCAL@
  243. +ADDITIONAL_LIBS = @ADDITIONAL_LIBS@
  244. +AMDEP_FALSE = @AMDEP_FALSE@
  245. +AMDEP_TRUE = @AMDEP_TRUE@
  246. +AMTAR = @AMTAR@
  247. +AR = @AR@
  248. +AUTOCONF = @AUTOCONF@
  249. +AUTOHEADER = @AUTOHEADER@
  250. +AUTOMAKE = @AUTOMAKE@
  251. +AWK = @AWK@
  252. +BIN_PREFIX = @BIN_PREFIX@
  253. +CC = @CC@
  254. +CCDEPMODE = @CCDEPMODE@
  255. +CFLAGS = @CFLAGS@
  256. +CPP = @CPP@
  257. +CPPFLAGS = @CPPFLAGS@
  258. +CYGPATH_W = @CYGPATH_W@
  259. +DEFS = @DEFS@
  260. +DEPDIR = @DEPDIR@
  261. +ECHO = @ECHO@
  262. +ECHO_C = @ECHO_C@
  263. +ECHO_N = @ECHO_N@
  264. +ECHO_T = @ECHO_T@
  265. +EGREP = @EGREP@
  266. +EXEEXT = @EXEEXT@
  267. +INC_PREFIX = @INC_PREFIX@
  268. +INSTALL_DATA = @INSTALL_DATA@
  269. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  270. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  271. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  272. +LDFLAGS = @LDFLAGS@
  273. +LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  274. +LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  275. +LIBNET_CONFIG_LIBS = @LIBNET_CONFIG_LIBS@
  276. +LIBOBJS = @LIBOBJS@
  277. +LIBS = @LIBS@
  278. +LIBTOOL = @LIBTOOL@
  279. +LIB_PREFIX = @LIB_PREFIX@
  280. +LL_INT_TYPE = @LL_INT_TYPE@
  281. +LL_INT_TYPE_UC = @LL_INT_TYPE_UC@
  282. +LN = @LN@
  283. +LN_S = @LN_S@
  284. +LTLIBOBJS = @LTLIBOBJS@
  285. +MAKEINFO = @MAKEINFO@
  286. +MAN_PREFIX = @MAN_PREFIX@
  287. +OBJEXT = @OBJEXT@
  288. +PACKAGE = @PACKAGE@
  289. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  290. +PACKAGE_NAME = @PACKAGE_NAME@
  291. +PACKAGE_STRING = @PACKAGE_STRING@
  292. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  293. +PACKAGE_VERSION = @PACKAGE_VERSION@
  294. +PATH_SEPARATOR = @PATH_SEPARATOR@
  295. +RANLIB = @RANLIB@
  296. +SET_MAKE = @SET_MAKE@
  297. +SHELL = @SHELL@
  298. +STRIP = @STRIP@
  299. +VERSION = @VERSION@
  300. +ac_ct_CC = @ac_ct_CC@
  301. +ac_ct_RANLIB = @ac_ct_RANLIB@
  302. +ac_ct_STRIP = @ac_ct_STRIP@
  303. +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  304. +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  305. +am__include = @am__include@
  306. +am__leading_dot = @am__leading_dot@
  307. +am__quote = @am__quote@
  308. +bindir = @bindir@
  309. +build = @build@
  310. +build_alias = @build_alias@
  311. +build_cpu = @build_cpu@
  312. +build_os = @build_os@
  313. +build_vendor = @build_vendor@
  314. +datadir = @datadir@
  315. +exec_prefix = @exec_prefix@
  316. +host = @host@
  317. +host_alias = @host_alias@
  318. +host_cpu = @host_cpu@
  319. +host_os = @host_os@
  320. +host_vendor = @host_vendor@
  321. +includedir = @includedir@
  322. +infodir = @infodir@
  323. +install_sh = @install_sh@
  324. +libdir = @libdir@
  325. +libexecdir = @libexecdir@
  326. +localstatedir = @localstatedir@
  327. +mandir = @mandir@
  328. +mkdir_p = @mkdir_p@
  329. +oldincludedir = @oldincludedir@
  330. +prefix = @prefix@
  331. +program_transform_name = @program_transform_name@
  332. +sbindir = @sbindir@
  333. +sharedstatedir = @sharedstatedir@
  334. +sysconfdir = @sysconfdir@
  335. +target = @target@
  336. +target_alias = @target_alias@
  337. +target_cpu = @target_cpu@
  338. +target_os = @target_os@
  339. +target_vendor = @target_vendor@
  340. +AUTOMAKE_OPTIONS = foreign no-dependencies
  341. +DISTCLEANFILES = *~
  342. +SUBDIRS = src include
  343. +EXTRA_DIST = Makefile.am.common
  344. +bin_SCRIPTS = libnet-config
  345. +all: all-recursive
  346. +
  347. +.SUFFIXES:
  348. +am--refresh:
  349. + @:
  350. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  351. + @for dep in $?; do \
  352. + case '$(am__configure_deps)' in \
  353. + *$$dep*) \
  354. + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
  355. + cd $(srcdir) && $(AUTOMAKE) --foreign \
  356. + && exit 0; \
  357. + exit 1;; \
  358. + esac; \
  359. + done; \
  360. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
  361. + cd $(top_srcdir) && \
  362. + $(AUTOMAKE) --foreign Makefile
  363. +.PRECIOUS: Makefile
  364. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  365. + @case '$?' in \
  366. + *config.status*) \
  367. + echo ' $(SHELL) ./config.status'; \
  368. + $(SHELL) ./config.status;; \
  369. + *) \
  370. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
  371. + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
  372. + esac;
  373. +
  374. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  375. + $(SHELL) ./config.status --recheck
  376. +
  377. +$(top_srcdir)/configure: $(am__configure_deps)
  378. + cd $(srcdir) && $(AUTOCONF)
  379. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  380. + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  381. +libnet-config: $(top_builddir)/config.status $(srcdir)/libnet-config.in
  382. + cd $(top_builddir) && $(SHELL) ./config.status $@
  383. +install-binSCRIPTS: $(bin_SCRIPTS)
  384. + @$(NORMAL_INSTALL)
  385. + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
  386. + @list='$(bin_SCRIPTS)'; for p in $$list; do \
  387. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  388. + if test -f $$d$$p; then \
  389. + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  390. + echo " $(binSCRIPT_INSTALL) '$$d$$p' '$(DESTDIR)$(bindir)/$$f'"; \
  391. + $(binSCRIPT_INSTALL) "$$d$$p" "$(DESTDIR)$(bindir)/$$f"; \
  392. + else :; fi; \
  393. + done
  394. +
  395. +uninstall-binSCRIPTS:
  396. + @$(NORMAL_UNINSTALL)
  397. + @list='$(bin_SCRIPTS)'; for p in $$list; do \
  398. + f=`echo "$$p" | sed 's|^.*/||;$(transform)'`; \
  399. + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
  400. + rm -f "$(DESTDIR)$(bindir)/$$f"; \
  401. + done
  402. +
  403. +mostlyclean-libtool:
  404. + -rm -f *.lo
  405. +
  406. +clean-libtool:
  407. + -rm -rf .libs _libs
  408. +
  409. +distclean-libtool:
  410. + -rm -f libtool
  411. +uninstall-info-am:
  412. +
  413. +# This directory's subdirectories are mostly independent; you can cd
  414. +# into them and run `make' without going through this Makefile.
  415. +# To change the values of `make' variables: instead of editing Makefiles,
  416. +# (1) if the variable is set in `config.status', edit `config.status'
  417. +# (which will cause the Makefiles to be regenerated when you run `make');
  418. +# (2) otherwise, pass the desired values on the `make' command line.
  419. +$(RECURSIVE_TARGETS):
  420. + @set fnord $$MAKEFLAGS; amf=$$2; \
  421. + dot_seen=no; \
  422. + target=`echo $@ | sed s/-recursive//`; \
  423. + list='$(SUBDIRS)'; for subdir in $$list; do \
  424. + echo "Making $$target in $$subdir"; \
  425. + if test "$$subdir" = "."; then \
  426. + dot_seen=yes; \
  427. + local_target="$$target-am"; \
  428. + else \
  429. + local_target="$$target"; \
  430. + fi; \
  431. + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  432. + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  433. + done; \
  434. + if test "$$dot_seen" = "no"; then \
  435. + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  436. + fi; test -z "$$fail"
  437. +
  438. +mostlyclean-recursive clean-recursive distclean-recursive \
  439. +maintainer-clean-recursive:
  440. + @set fnord $$MAKEFLAGS; amf=$$2; \
  441. + dot_seen=no; \
  442. + case "$@" in \
  443. + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  444. + *) list='$(SUBDIRS)' ;; \
  445. + esac; \
  446. + rev=''; for subdir in $$list; do \
  447. + if test "$$subdir" = "."; then :; else \
  448. + rev="$$subdir $$rev"; \
  449. + fi; \
  450. + done; \
  451. + rev="$$rev ."; \
  452. + target=`echo $@ | sed s/-recursive//`; \
  453. + for subdir in $$rev; do \
  454. + echo "Making $$target in $$subdir"; \
  455. + if test "$$subdir" = "."; then \
  456. + local_target="$$target-am"; \
  457. + else \
  458. + local_target="$$target"; \
  459. + fi; \
  460. + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  461. + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  462. + done && test -z "$$fail"
  463. +tags-recursive:
  464. + list='$(SUBDIRS)'; for subdir in $$list; do \
  465. + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  466. + done
  467. +ctags-recursive:
  468. + list='$(SUBDIRS)'; for subdir in $$list; do \
  469. + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  470. + done
  471. +
  472. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  473. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  474. + unique=`for i in $$list; do \
  475. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  476. + done | \
  477. + $(AWK) ' { files[$$0] = 1; } \
  478. + END { for (i in files) print i; }'`; \
  479. + mkid -fID $$unique
  480. +tags: TAGS
  481. +
  482. +TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  483. + $(TAGS_FILES) $(LISP)
  484. + tags=; \
  485. + here=`pwd`; \
  486. + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  487. + include_option=--etags-include; \
  488. + empty_fix=.; \
  489. + else \
  490. + include_option=--include; \
  491. + empty_fix=; \
  492. + fi; \
  493. + list='$(SUBDIRS)'; for subdir in $$list; do \
  494. + if test "$$subdir" = .; then :; else \
  495. + test ! -f $$subdir/TAGS || \
  496. + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  497. + fi; \
  498. + done; \
  499. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  500. + unique=`for i in $$list; do \
  501. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  502. + done | \
  503. + $(AWK) ' { files[$$0] = 1; } \
  504. + END { for (i in files) print i; }'`; \
  505. + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  506. + test -n "$$unique" || unique=$$empty_fix; \
  507. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  508. + $$tags $$unique; \
  509. fi
  510. - if test -f util/Makefile; then \
  511. - cd util && make distclean; \
  512. +ctags: CTAGS
  513. +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  514. + $(TAGS_FILES) $(LISP)
  515. + tags=; \
  516. + here=`pwd`; \
  517. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  518. + unique=`for i in $$list; do \
  519. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  520. + done | \
  521. + $(AWK) ' { files[$$0] = 1; } \
  522. + END { for (i in files) print i; }'`; \
  523. + test -z "$(CTAGS_ARGS)$$tags$$unique" \
  524. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  525. + $$tags $$unique
  526. +
  527. +GTAGS:
  528. + here=`$(am__cd) $(top_builddir) && pwd` \
  529. + && cd $(top_srcdir) \
  530. + && gtags -i $(GTAGS_ARGS) $$here
  531. +
  532. +distclean-tags:
  533. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  534. +
  535. +distdir: $(DISTFILES)
  536. + $(am__remove_distdir)
  537. + mkdir $(distdir)
  538. + $(mkdir_p) $(distdir)/.
  539. + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  540. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  541. + list='$(DISTFILES)'; for file in $$list; do \
  542. + case $$file in \
  543. + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  544. + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  545. + esac; \
  546. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  547. + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  548. + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  549. + dir="/$$dir"; \
  550. + $(mkdir_p) "$(distdir)$$dir"; \
  551. + else \
  552. + dir=''; \
  553. + fi; \
  554. + if test -d $$d/$$file; then \
  555. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  556. + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  557. + fi; \
  558. + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  559. + else \
  560. + test -f $(distdir)/$$file \
  561. + || cp -p $$d/$$file $(distdir)/$$file \
  562. + || exit 1; \
  563. + fi; \
  564. + done
  565. + list='$(SUBDIRS)'; for subdir in $$list; do \
  566. + if test "$$subdir" = .; then :; else \
  567. + test -d "$(distdir)/$$subdir" \
  568. + || mkdir "$(distdir)/$$subdir" \
  569. + || exit 1; \
  570. + (cd $$subdir && \
  571. + $(MAKE) $(AM_MAKEFLAGS) \
  572. + top_distdir="../$(top_distdir)" \
  573. + distdir="../$(distdir)/$$subdir" \
  574. + distdir) \
  575. + || exit 1; \
  576. + fi; \
  577. + done
  578. + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  579. + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  580. + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  581. + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  582. + || chmod -R a+r $(distdir)
  583. +dist-gzip: distdir
  584. + $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  585. + $(am__remove_distdir)
  586. +
  587. +dist-bzip2: distdir
  588. + $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
  589. + $(am__remove_distdir)
  590. +
  591. +dist-tarZ: distdir
  592. + $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
  593. + $(am__remove_distdir)
  594. +
  595. +dist-shar: distdir
  596. + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
  597. + $(am__remove_distdir)
  598. +
  599. +dist-zip: distdir
  600. + -rm -f $(distdir).zip
  601. + zip -rq $(distdir).zip $(distdir)
  602. + $(am__remove_distdir)
  603. +
  604. +dist dist-all: distdir
  605. + $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  606. + $(am__remove_distdir)
  607. +
  608. +# This target untars the dist file and tries a VPATH configuration. Then
  609. +# it guarantees that the distribution is self-contained by making another
  610. +# tarfile.
  611. +distcheck: dist
  612. + case '$(DIST_ARCHIVES)' in \
  613. + *.tar.gz*) \
  614. + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - ;;\
  615. + *.tar.bz2*) \
  616. + bunzip2 -c $(distdir).tar.bz2 | $(AMTAR) xf - ;;\
  617. + *.tar.Z*) \
  618. + uncompress -c $(distdir).tar.Z | $(AMTAR) xf - ;;\
  619. + *.shar.gz*) \
  620. + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  621. + *.zip*) \
  622. + unzip $(distdir).zip ;;\
  623. + esac
  624. + chmod -R a-w $(distdir); chmod a+w $(distdir)
  625. + mkdir $(distdir)/_build
  626. + mkdir $(distdir)/_inst
  627. + chmod a-w $(distdir)
  628. + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  629. + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  630. + && cd $(distdir)/_build \
  631. + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  632. + $(DISTCHECK_CONFIGURE_FLAGS) \
  633. + && $(MAKE) $(AM_MAKEFLAGS) \
  634. + && $(MAKE) $(AM_MAKEFLAGS) dvi \
  635. + && $(MAKE) $(AM_MAKEFLAGS) check \
  636. + && $(MAKE) $(AM_MAKEFLAGS) install \
  637. + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
  638. + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
  639. + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
  640. + distuninstallcheck \
  641. + && chmod -R a-w "$$dc_install_base" \
  642. + && ({ \
  643. + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
  644. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
  645. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
  646. + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
  647. + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
  648. + } || { rm -rf "$$dc_destdir"; exit 1; }) \
  649. + && rm -rf "$$dc_destdir" \
  650. + && $(MAKE) $(AM_MAKEFLAGS) dist \
  651. + && rm -rf $(DIST_ARCHIVES) \
  652. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  653. + $(am__remove_distdir)
  654. + @(echo "$(distdir) archives ready for distribution: "; \
  655. + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  656. + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  657. +distuninstallcheck:
  658. + @cd $(distuninstallcheck_dir) \
  659. + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  660. + || { echo "ERROR: files left after uninstall:" ; \
  661. + if test -n "$(DESTDIR)"; then \
  662. + echo " (check DESTDIR support)"; \
  663. + fi ; \
  664. + $(distuninstallcheck_listfiles) ; \
  665. + exit 1; } >&2
  666. +distcleancheck: distclean
  667. + @if test '$(srcdir)' = . ; then \
  668. + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
  669. + exit 1 ; \
  670. fi
  671. - if test -f support/bpf-lkm/etherspoof; then \
  672. - cd support/bpf-lkm/etherspoof && rm -rf Makefile; \
  673. - fi
  674. - rm -f config.log config.cache config.status Makefile include/config.h \
  675. - version.h support/bpf-lkm/etherspoof conftest* libnet-config
  676. + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
  677. + || { echo "ERROR: files left in build directory after distclean:" ; \
  678. + $(distcleancheck_listfiles) ; \
  679. + exit 1; } >&2
  680. +check-am: all-am
  681. +check: check-recursive
  682. +all-am: Makefile $(SCRIPTS)
  683. +installdirs: installdirs-recursive
  684. +installdirs-am:
  685. + for dir in "$(DESTDIR)$(bindir)"; do \
  686. + test -z "$$dir" || $(mkdir_p) "$$dir"; \
  687. + done
  688. +install: install-recursive
  689. +install-exec: install-exec-recursive
  690. +install-data: install-data-recursive
  691. +uninstall: uninstall-recursive
  692. +
  693. +install-am: all-am
  694. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  695. +
  696. +installcheck: installcheck-recursive
  697. +install-strip:
  698. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  699. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  700. + `test -z '$(STRIP)' || \
  701. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  702. +mostlyclean-generic:
  703. +
  704. +clean-generic:
  705. +
  706. +distclean-generic:
  707. + -rm -f $(CONFIG_CLEAN_FILES)
  708. + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  709. +
  710. +maintainer-clean-generic:
  711. + @echo "This command is intended for maintainers to use"
  712. + @echo "it deletes files that may require special tools to rebuild."
  713. +clean: clean-recursive
  714. +
  715. +clean-am: clean-generic clean-libtool mostlyclean-am
  716. +
  717. +distclean: distclean-recursive
  718. + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  719. + -rm -f Makefile
  720. +distclean-am: clean-am distclean-generic distclean-libtool \
  721. + distclean-tags
  722. +
  723. +dvi: dvi-recursive
  724. +
  725. +dvi-am:
  726. +
  727. +html: html-recursive
  728. +
  729. +info: info-recursive
  730. +
  731. +info-am:
  732. +
  733. +install-data-am:
  734. +
  735. +install-exec-am: install-binSCRIPTS
  736. +
  737. +install-info: install-info-recursive
  738. +
  739. +install-man:
  740. +
  741. +installcheck-am:
  742. +
  743. +maintainer-clean: maintainer-clean-recursive
  744. + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
  745. + -rm -rf $(top_srcdir)/autom4te.cache
  746. + -rm -f Makefile
  747. +maintainer-clean-am: distclean-am maintainer-clean-generic
  748. +
  749. +mostlyclean: mostlyclean-recursive
  750. +
  751. +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  752. +
  753. +pdf: pdf-recursive
  754. +
  755. +pdf-am:
  756. +
  757. +ps: ps-recursive
  758. +
  759. +ps-am:
  760. +
  761. +uninstall-am: uninstall-binSCRIPTS uninstall-info-am
  762. +
  763. +uninstall-info: uninstall-info-recursive
  764. +
  765. +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  766. + check-am clean clean-generic clean-libtool clean-recursive \
  767. + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
  768. + dist-shar dist-tarZ dist-zip distcheck distclean \
  769. + distclean-generic distclean-libtool distclean-recursive \
  770. + distclean-tags distcleancheck distdir distuninstallcheck dvi \
  771. + dvi-am html html-am info info-am install install-am \
  772. + install-binSCRIPTS install-data install-data-am install-exec \
  773. + install-exec-am install-info install-info-am install-man \
  774. + install-strip installcheck installcheck-am installdirs \
  775. + installdirs-am maintainer-clean maintainer-clean-generic \
  776. + maintainer-clean-recursive mostlyclean mostlyclean-generic \
  777. + mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  778. + tags tags-recursive uninstall uninstall-am \
  779. + uninstall-binSCRIPTS uninstall-info-am
  780. +
  781. -# EOF
  782. +version.h: VERSION
  783. + sed -e 's/.*/#define VERSION "&"/' < $< > $@
  784. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  785. +# Otherwise a system limit (for SysV at least) may be exceeded.
  786. +.NOEXPORT:
  787. diff -ruN libnet-1.0.2a-orig/acconfig.h libnet-1.0.2a-7/acconfig.h
  788. --- libnet-1.0.2a-orig/acconfig.h 2000-12-12 19:31:39.000000000 +0100
  789. +++ libnet-1.0.2a-7/acconfig.h 2005-03-08 03:53:26.000000000 +0100
  790. @@ -1,15 +1,17 @@
  791. -dnl $Id: acconfig.h,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
  792. -dnl
  793. -dnl Libnet autoconfiguration acconfig.h file
  794. -dnl Copyright (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
  795. -dnl All rights reserved.
  796. -dnl
  797. -dnl Process this file with autoheader to produce a config.h file.
  798. -dnl
  799. +/* $Id: acconfig.h,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
  800. + *
  801. + * Libnet autoconfiguration acconfig.h file
  802. + * Copyright (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
  803. + * All rights reserved.
  804. + *
  805. + * Process this file with autoheader to produce a config.h file.
  806. + */
  807. #undef LIBNET_BSDISH_OS
  808. #undef LIBNET_BSD_BYTE_SWAP
  809. #undef DLPI_DEV_PREFIX
  810. +#undef LIBNET_FAST_X86_CHECK
  811. +#undef HAVE_SOLARIS
  812. #undef HAVE_DEV_DLPI
  813. #undef HAVE_SOCKADDR_SA_LEN
  814. #undef HAVE_DLPI
  815. @@ -23,5 +25,3 @@
  816. #undef __FAVOR_BSD
  817. #undef LIBNET_BIG_ENDIAN
  818. #undef LIBNET_LIL_ENDIAN
  819. -
  820. -dnl EOF
  821. diff -ruN libnet-1.0.2a-orig/acinclude.m4 libnet-1.0.2a-7/acinclude.m4
  822. --- libnet-1.0.2a-orig/acinclude.m4 2000-12-12 19:31:54.000000000 +0100
  823. +++ libnet-1.0.2a-7/acinclude.m4 2005-03-08 03:53:26.000000000 +0100
  824. @@ -30,65 +30,43 @@
  825. *)
  826. cat > pf_packet-test.c << EOF
  827. -#include <net/if.h>
  828. -#if (__GLIBC__)
  829. -#include <netinet/if_ether.h>
  830. -#include <net/if_arp.h>
  831. +#include <stdio.h>
  832. +#include <errno.h>
  833. +#include <stdlib.h>
  834. +#include <netinet/in.h>
  835. +#include <sys/socket.h>
  836. +#include <features.h> /* for the glibc version number */
  837. +#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
  838. +#include <netpacket/packet.h>
  839. +#include <net/ethernet.h> /* the L2 protocols */
  840. #else
  841. -#include <linux/if_arp.h>
  842. -#include <linux/if_ether.h>
  843. +#include <asm/types.h>
  844. +#include <linux/if_packet.h>
  845. +#include <linux/if_ether.h> /* The L2 protocols */
  846. #endif
  847. -#if (PF_PACKET)
  848. +
  849. #ifndef SOL_PACKET
  850. #define SOL_PACKET 263
  851. #endif /* SOL_PACKET */
  852. -#include <linux/if_packet.h>
  853. -#endif
  854. -#include "./include/libnet.h"
  855. int
  856. main()
  857. {
  858. -#if (PF_PACKET)
  859. int fd;
  860. - struct sockaddr_ll sa;
  861. - struct ifreq ifr;
  862. - struct packet_mreq mr;
  863. - char *device ="lo";
  864. fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  865. if (fd == -1)
  866. {
  867. - printf("choked");
  868. - exit (EXIT_FAILURE);
  869. - }
  870. -
  871. - memset(&sa, 0, sizeof(sa));
  872. - strcpy(ifr.ifr_name, device);
  873. - if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0)
  874. - {
  875. - printf("choked");
  876. - exit (EXIT_FAILURE);
  877. - }
  878. - sa.sll_family = AF_PACKET;
  879. - sa.sll_ifindex = ifr.ifr_ifindex;
  880. - sa.sll_protocol = htons(ETH_P_ALL);
  881. -
  882. - memset(&mr, 0, sizeof (mr));
  883. - mr.mr_ifindex = sa.sll_ifindex;
  884. - mr.mr_type = PACKET_MR_ALLMULTI;
  885. -
  886. - if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, (char *)&mr,
  887. - sizeof (mr)) < 0)
  888. - {
  889. - printf("choked\n");
  890. + if (errno == EPERM)
  891. + {
  892. + /* user's UID != 0 */
  893. + printf("probably");
  894. + exit (EXIT_FAILURE);
  895. + }
  896. + printf("no");
  897. exit (EXIT_FAILURE);
  898. }
  899. - /* yay. we made it and it workz! */
  900. printf("yes");
  901. -#else /* PF_PACKET */
  902. - printf("no");
  903. -#endif
  904. exit (EXIT_SUCCESS);
  905. }
  906. EOF
  907. @@ -104,16 +82,21 @@
  908. if test $ac_libnet_have_pf_packet = choked; then
  909. AC_MSG_RESULT(test program choked... assuming no)
  910. elif test $ac_libnet_have_pf_packet = yes; then
  911. - AC_DEFINE(HAVE_PF_PACKET)
  912. + AC_MSG_RESULT(yes)
  913. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_PF_PACKET"
  914. + elif test $ac_libnet_have_pf_packet = probably; then
  915. + AC_MSG_RESULT(test program got EPERM... assuming yes)
  916. + elif test $ac_libnet_have_pf_packet = no; then
  917. + AC_MSG_RESULT(no)
  918. fi
  919. - if test $ac_libnet_have_pf_packet != choked; then
  920. - AC_MSG_RESULT($ac_libnet_have_pf_packet)
  921. - fi
  922. rm -f pf_packet-test* core core.pf_packet-test
  923. ;;
  924. esac])
  925. +
  926. + if test $ac_libnet_have_pf_packet = yes -o $ac_libnet_have_pf_packet = probably; then
  927. + AC_DEFINE(HAVE_PF_PACKET)
  928. + fi
  929. ])
  930. dnl
  931. @@ -279,6 +262,8 @@
  932. AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
  933. [AC_MSG_CHECKING(machine endianess)
  934. + AC_CACHE_VAL(ac_cv_libnet_endianess,
  935. + [
  936. cat > conftest.c << EOF
  937. # include <stdio.h>
  938. @@ -332,6 +317,7 @@
  939. fi
  940. rm -f conftest* core core.conftest
  941. + ])
  942. AC_MSG_RESULT($ac_cv_libnet_endianess)
  943. if test $ac_cv_libnet_endianess = big ; then
  944. diff -ruN libnet-1.0.2a-orig/aclocal.m4 libnet-1.0.2a-7/aclocal.m4
  945. --- libnet-1.0.2a-orig/aclocal.m4 2001-01-07 21:49:29.000000000 +0100
  946. +++ libnet-1.0.2a-7/aclocal.m4 2005-03-08 03:53:26.000000000 +0100
  947. @@ -1,358 +1,4525 @@
  948. -dnl aclocal.m4 generated automatically by aclocal 1.4
  949. +# generated automatically by aclocal 1.8.5 -*- Autoconf -*-
  950. -dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
  951. -dnl This file is free software; the Free Software Foundation
  952. -dnl gives unlimited permission to copy and/or distribute it,
  953. -dnl with or without modifications, as long as this notice is preserved.
  954. -
  955. -dnl This program is distributed in the hope that it will be useful,
  956. -dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  957. -dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  958. -dnl PARTICULAR PURPOSE.
  959. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  960. +# Free Software Foundation, Inc.
  961. +# This file is free software; the Free Software Foundation
  962. +# gives unlimited permission to copy and/or distribute it,
  963. +# with or without modifications, as long as this notice is preserved.
  964. -dnl $Id: aclocal.m4,v 1.1.1.1 2000/05/25 00:28:49 route Exp $
  965. -dnl
  966. -dnl Libnet specific autoconf macros
  967. -dnl Copyright (c) 1998, 1999, 2000 Mike D. Schiffman <mike@infonexus.com>
  968. -dnl All rights reserved.
  969. -dnl
  970. +# This program is distributed in the hope that it will be useful,
  971. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  972. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  973. +# PARTICULAR PURPOSE.
  974. -dnl
  975. -dnl Checks to see if this linux kernel has a working PF_PACKET
  976. -dnl
  977. -dnl usage:
  978. -dnl
  979. -dnl AC_LIBNET_CHECK_PF_PACKET
  980. -dnl
  981. -dnl results:
  982. -dnl
  983. -dnl HAVE_PF_PACKET (DEFINED)
  984. +# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
  985. +
  986. +# serial 46 AC_PROG_LIBTOOL
  987. +# Debian $Rev: 102 $
  988. +
  989. +AC_DEFUN([AC_PROG_LIBTOOL],
  990. +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  991. +
  992. +# This can be used to rebuild libtool when needed
  993. +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  994. +
  995. +# Always use our own libtool.
  996. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  997. +AC_SUBST(LIBTOOL)dnl
  998. +
  999. +# Prevent multiple expansion
  1000. +define([AC_PROG_LIBTOOL], [])
  1001. +])
  1002. +
  1003. +AC_DEFUN([AC_LIBTOOL_SETUP],
  1004. +[AC_PREREQ(2.13)dnl
  1005. +AC_REQUIRE([AC_ENABLE_SHARED])dnl
  1006. +AC_REQUIRE([AC_ENABLE_STATIC])dnl
  1007. +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  1008. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  1009. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  1010. +AC_REQUIRE([AC_PROG_CC])dnl
  1011. +AC_REQUIRE([AC_PROG_LD])dnl
  1012. +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  1013. +AC_REQUIRE([AC_PROG_NM])dnl
  1014. +AC_REQUIRE([LT_AC_PROG_SED])dnl
  1015. +
  1016. +AC_REQUIRE([AC_PROG_LN_S])dnl
  1017. +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  1018. +AC_REQUIRE([AC_OBJEXT])dnl
  1019. +AC_REQUIRE([AC_EXEEXT])dnl
  1020. dnl
  1021. -AC_DEFUN(AC_LIBNET_CHECK_PF_PACKET,
  1022. -[
  1023. - AC_MSG_CHECKING(for PF_PACKET)
  1024. - AC_CACHE_VAL(ac_libnet_have_pf_packet,
  1025. -
  1026. - [case "$target_os" in
  1027. -
  1028. - linux)
  1029. - ac_libnet_have_pf_packet = no
  1030. - ;;
  1031. - *)
  1032. -
  1033. - cat > pf_packet-test.c << EOF
  1034. -#include <net/if.h>
  1035. -#if (__GLIBC__)
  1036. -#include <netinet/if_ether.h>
  1037. -#include <net/if_arp.h>
  1038. -#else
  1039. -#include <linux/if_arp.h>
  1040. -#include <linux/if_ether.h>
  1041. +_LT_AC_PROG_ECHO_BACKSLASH
  1042. +# Only perform the check for file, if the check method requires it
  1043. +case $deplibs_check_method in
  1044. +file_magic*)
  1045. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  1046. + AC_PATH_MAGIC
  1047. + fi
  1048. + ;;
  1049. +esac
  1050. +
  1051. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  1052. +AC_CHECK_TOOL(STRIP, strip, :)
  1053. +
  1054. +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  1055. +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  1056. +enable_win32_dll=yes, enable_win32_dll=no)
  1057. +
  1058. +AC_ARG_ENABLE(libtool-lock,
  1059. + [ --disable-libtool-lock avoid locking (might break parallel builds)])
  1060. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1061. +
  1062. +# Some flags need to be propagated to the compiler or linker for good
  1063. +# libtool support.
  1064. +case $host in
  1065. +*-*-irix6*)
  1066. + # Find out which ABI we are using.
  1067. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1068. + if AC_TRY_EVAL(ac_compile); then
  1069. + case `/usr/bin/file conftest.$ac_objext` in
  1070. + *32-bit*)
  1071. + LD="${LD-ld} -32"
  1072. + ;;
  1073. + *N32*)
  1074. + LD="${LD-ld} -n32"
  1075. + ;;
  1076. + *64-bit*)
  1077. + LD="${LD-ld} -64"
  1078. + ;;
  1079. + esac
  1080. + fi
  1081. + rm -rf conftest*
  1082. + ;;
  1083. +
  1084. +*-*-sco3.2v5*)
  1085. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1086. + SAVE_CFLAGS="$CFLAGS"
  1087. + CFLAGS="$CFLAGS -belf"
  1088. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1089. + [AC_LANG_SAVE
  1090. + AC_LANG_C
  1091. + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1092. + AC_LANG_RESTORE])
  1093. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1094. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1095. + CFLAGS="$SAVE_CFLAGS"
  1096. + fi
  1097. + ;;
  1098. +
  1099. +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  1100. +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1101. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1102. + AC_CHECK_TOOL(AS, as, false)
  1103. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1104. +
  1105. + # recent cygwin and mingw systems supply a stub DllMain which the user
  1106. + # can override, but on older systems we have to supply one
  1107. + AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
  1108. + [AC_TRY_LINK([],
  1109. + [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
  1110. + DllMain (0, 0, 0);],
  1111. + [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
  1112. +
  1113. + case $host/$CC in
  1114. + *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
  1115. + # old mingw systems require "-dll" to link a DLL, while more recent ones
  1116. + # require "-mdll"
  1117. + SAVE_CFLAGS="$CFLAGS"
  1118. + CFLAGS="$CFLAGS -mdll"
  1119. + AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
  1120. + [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
  1121. + CFLAGS="$SAVE_CFLAGS" ;;
  1122. + *-*-cygwin* | *-*-pw32*)
  1123. + # cygwin systems need to pass --dll to the linker, and not link
  1124. + # crt.o which will require a WinMain@16 definition.
  1125. + lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
  1126. + esac
  1127. + ;;
  1128. + ])
  1129. +esac
  1130. +
  1131. +_LT_AC_LTCONFIG_HACK
  1132. +
  1133. +])
  1134. +
  1135. +# AC_LIBTOOL_HEADER_ASSERT
  1136. +# ------------------------
  1137. +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
  1138. +[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
  1139. + [lt_cv_func_assert_works],
  1140. + [case $host in
  1141. + *-*-solaris*)
  1142. + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
  1143. + case `$CC --version 2>/dev/null` in
  1144. + [[12]].*) lt_cv_func_assert_works=no ;;
  1145. + *) lt_cv_func_assert_works=yes ;;
  1146. + esac
  1147. + fi
  1148. + ;;
  1149. + esac])
  1150. +
  1151. +if test "x$lt_cv_func_assert_works" = xyes; then
  1152. + AC_CHECK_HEADERS(assert.h)
  1153. +fi
  1154. +])# AC_LIBTOOL_HEADER_ASSERT
  1155. +
  1156. +# _LT_AC_CHECK_DLFCN
  1157. +# --------------------
  1158. +AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1159. +[AC_CHECK_HEADERS(dlfcn.h)
  1160. +])# _LT_AC_CHECK_DLFCN
  1161. +
  1162. +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1163. +# ---------------------------------
  1164. +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  1165. +[AC_REQUIRE([AC_CANONICAL_HOST])
  1166. +AC_REQUIRE([AC_PROG_NM])
  1167. +AC_REQUIRE([AC_OBJEXT])
  1168. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  1169. +AC_MSG_CHECKING([command to parse $NM output])
  1170. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
  1171. +
  1172. +# These are sane defaults that work on at least a few old systems.
  1173. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  1174. +
  1175. +# Character class describing NM global symbol codes.
  1176. +symcode='[[BCDEGRST]]'
  1177. +
  1178. +# Regexp to match symbols that can be accessed directly from C.
  1179. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  1180. +
  1181. +# Transform the above into a raw symbol and a C symbol.
  1182. +symxfrm='\1 \2\3 \3'
  1183. +
  1184. +# Transform an extracted symbol line into a proper C declaration
  1185. +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  1186. +
  1187. +# Transform an extracted symbol line into symbol name and symbol address
  1188. +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  1189. +
  1190. +# Define system-specific variables.
  1191. +case $host_os in
  1192. +aix*)
  1193. + symcode='[[BCDT]]'
  1194. + ;;
  1195. +cygwin* | mingw* | pw32*)
  1196. + symcode='[[ABCDGISTW]]'
  1197. + ;;
  1198. +hpux*) # Its linker distinguishes data from code symbols
  1199. + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1200. + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  1201. + ;;
  1202. +irix* | nonstopux*)
  1203. + symcode='[[BCDEGRST]]'
  1204. + ;;
  1205. +osf*)
  1206. + symcode='[[BCDEGQRST]]'
  1207. + ;;
  1208. +solaris* | sysv5*)
  1209. + symcode='[[BDT]]'
  1210. + ;;
  1211. +sysv4)
  1212. + symcode='[[DFNSTU]]'
  1213. + ;;
  1214. +esac
  1215. +
  1216. +# Handle CRLF in mingw tool chain
  1217. +opt_cr=
  1218. +case $host_os in
  1219. +mingw*)
  1220. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  1221. + ;;
  1222. +esac
  1223. +
  1224. +# If we're using GNU nm, then use its standard symbol codes.
  1225. +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  1226. + symcode='[[ABCDGISTW]]'
  1227. +fi
  1228. +
  1229. +# Try without a prefix undercore, then with it.
  1230. +for ac_symprfx in "" "_"; do
  1231. +
  1232. + # Write the raw and C identifiers.
  1233. +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  1234. +
  1235. + # Check to see that the pipe works correctly.
  1236. + pipe_works=no
  1237. + rm -f conftest*
  1238. + cat > conftest.$ac_ext <<EOF
  1239. +#ifdef __cplusplus
  1240. +extern "C" {
  1241. #endif
  1242. -#if (PF_PACKET)
  1243. -#ifndef SOL_PACKET
  1244. -#define SOL_PACKET 263
  1245. -#endif /* SOL_PACKET */
  1246. -#include <linux/if_packet.h>
  1247. +char nm_test_var;
  1248. +void nm_test_func(){}
  1249. +#ifdef __cplusplus
  1250. +}
  1251. #endif
  1252. -#include <stdlib.h>
  1253. -#include <linux/sockios.h>
  1254. +int main(){nm_test_var='a';nm_test_func();return(0);}
  1255. +EOF
  1256. -int
  1257. -main()
  1258. -{
  1259. -#if (PF_PACKET)
  1260. - int fd;
  1261. - struct sockaddr_ll sa;
  1262. - struct ifreq ifr;
  1263. - struct packet_mreq mr;
  1264. - char *device ="lo";
  1265. + if AC_TRY_EVAL(ac_compile); then
  1266. + # Now try to grab the symbols.
  1267. + nlist=conftest.nm
  1268. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  1269. + # Try sorting and uniquifying the output.
  1270. + if sort "$nlist" | uniq > "$nlist"T; then
  1271. + mv -f "$nlist"T "$nlist"
  1272. + else
  1273. + rm -f "$nlist"T
  1274. + fi
  1275. - fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  1276. - if (fd == -1)
  1277. - {
  1278. - printf("choked");
  1279. - exit (EXIT_FAILURE);
  1280. - }
  1281. + # Make sure that we snagged all the symbols we need.
  1282. + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  1283. + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  1284. + cat <<EOF > conftest.$ac_ext
  1285. +#ifdef __cplusplus
  1286. +extern "C" {
  1287. +#endif
  1288. - memset(&sa, 0, sizeof(sa));
  1289. - strcpy(ifr.ifr_name, device);
  1290. - if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0)
  1291. - {
  1292. - printf("choked");
  1293. - exit (EXIT_FAILURE);
  1294. - }
  1295. - sa.sll_family = AF_PACKET;
  1296. - sa.sll_ifindex = ifr.ifr_ifindex;
  1297. - sa.sll_protocol = htons(ETH_P_ALL);
  1298. -
  1299. - memset(&mr, 0, sizeof (mr));
  1300. - mr.mr_ifindex = sa.sll_ifindex;
  1301. - mr.mr_type = PACKET_MR_ALLMULTI;
  1302. +EOF
  1303. + # Now generate the symbol file.
  1304. + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  1305. - if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, (char *)&mr,
  1306. - sizeof (mr)) < 0)
  1307. - {
  1308. - printf("choked\n");
  1309. - exit (EXIT_FAILURE);
  1310. - }
  1311. - /* yay. we made it and it workz! */
  1312. - printf("yes");
  1313. -#else /* PF_PACKET */
  1314. - printf("no");
  1315. + cat <<EOF >> conftest.$ac_ext
  1316. +#if defined (__STDC__) && __STDC__
  1317. +# define lt_ptr void *
  1318. +#else
  1319. +# define lt_ptr char *
  1320. +# define const
  1321. #endif
  1322. - exit (EXIT_SUCCESS);
  1323. +
  1324. +/* The mapping between symbol names and symbols. */
  1325. +const struct {
  1326. + const char *name;
  1327. + lt_ptr address;
  1328. }
  1329. +lt_preloaded_symbols[[]] =
  1330. +{
  1331. EOF
  1332. - ${CC-cc} -o pf_packet-test $CFLAGS pf_packet-test.c >/dev/null 2>&1
  1333. + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  1334. + cat <<\EOF >> conftest.$ac_ext
  1335. + {0, (lt_ptr) 0}
  1336. +};
  1337. - # Oopz 4.3 BSD doesn't have this. Sorry.
  1338. - if test ! -x ./pf_packet-test ; then
  1339. - ac_libnet_have_pf_packet=choked
  1340. +#ifdef __cplusplus
  1341. +}
  1342. +#endif
  1343. +EOF
  1344. + # Now try linking the two files.
  1345. + mv conftest.$ac_objext conftstm.$ac_objext
  1346. + save_LIBS="$LIBS"
  1347. + save_CFLAGS="$CFLAGS"
  1348. + LIBS="conftstm.$ac_objext"
  1349. + CFLAGS="$CFLAGS$no_builtin_flag"
  1350. + if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  1351. + pipe_works=yes
  1352. + fi
  1353. + LIBS="$save_LIBS"
  1354. + CFLAGS="$save_CFLAGS"
  1355. + else
  1356. + echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
  1357. + fi
  1358. + else
  1359. + echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
  1360. + fi
  1361. else
  1362. - ac_libnet_have_pf_packet=`./pf_packet-test`;
  1363. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
  1364. + fi
  1365. + else
  1366. + echo "$progname: failed program was:" >&AC_FD_CC
  1367. + cat conftest.$ac_ext >&5
  1368. + fi
  1369. + rm -f conftest* conftst*
  1370. +
  1371. + # Do not use the global_symbol_pipe unless it works.
  1372. + if test "$pipe_works" = yes; then
  1373. + break
  1374. + else
  1375. + lt_cv_sys_global_symbol_pipe=
  1376. + fi
  1377. +done
  1378. +])
  1379. +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  1380. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  1381. + global_symbol_to_cdecl=
  1382. + global_symbol_to_c_name_address=
  1383. +else
  1384. + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  1385. + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  1386. +fi
  1387. +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  1388. +then
  1389. + AC_MSG_RESULT(failed)
  1390. +else
  1391. + AC_MSG_RESULT(ok)
  1392. +fi
  1393. +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1394. +
  1395. +# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  1396. +# ---------------------------------
  1397. +AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
  1398. +[# Find the correct PATH separator. Usually this is `:', but
  1399. +# DJGPP uses `;' like DOS.
  1400. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  1401. + UNAME=${UNAME-`uname 2>/dev/null`}
  1402. + case X$UNAME in
  1403. + *-DOS) lt_cv_sys_path_separator=';' ;;
  1404. + *) lt_cv_sys_path_separator=':' ;;
  1405. + esac
  1406. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  1407. +fi
  1408. +])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  1409. +
  1410. +# _LT_AC_PROG_ECHO_BACKSLASH
  1411. +# --------------------------
  1412. +# Add some code to the start of the generated configure script which
  1413. +# will find an echo command which doesn't interpret backslashes.
  1414. +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1415. +[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1416. + [AC_DIVERT_PUSH(NOTICE)])
  1417. +_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  1418. +
  1419. +# Check that we are running under the correct shell.
  1420. +SHELL=${CONFIG_SHELL-/bin/sh}
  1421. +
  1422. +case X$ECHO in
  1423. +X*--fallback-echo)
  1424. + # Remove one level of quotation (which was required for Make).
  1425. + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1426. + ;;
  1427. +esac
  1428. +
  1429. +echo=${ECHO-echo}
  1430. +if test "X[$]1" = X--no-reexec; then
  1431. + # Discard the --no-reexec flag, and continue.
  1432. + shift
  1433. +elif test "X[$]1" = X--fallback-echo; then
  1434. + # Avoid inline document here, it may be left over
  1435. + :
  1436. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  1437. + # Yippee, $echo works!
  1438. + :
  1439. +else
  1440. + # Restart under the correct shell.
  1441. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1442. +fi
  1443. +
  1444. +if test "X[$]1" = X--fallback-echo; then
  1445. + # used as fallback echo
  1446. + shift
  1447. + cat <<EOF
  1448. +$*
  1449. +EOF
  1450. + exit 0
  1451. +fi
  1452. +
  1453. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1454. +# if CDPATH is set.
  1455. +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  1456. +
  1457. +if test -z "$ECHO"; then
  1458. +if test "X${echo_test_string+set}" != Xset; then
  1459. +# find a string as large as possible, as long as the shell can cope with it
  1460. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1461. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1462. + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  1463. + echo_test_string="`eval $cmd`" &&
  1464. + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  1465. + then
  1466. + break
  1467. + fi
  1468. + done
  1469. +fi
  1470. +
  1471. +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1472. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1473. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1474. + :
  1475. +else
  1476. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1477. + # backslashes. This makes it impossible to quote backslashes using
  1478. + # echo "$something" | sed 's/\\/\\\\/g'
  1479. + #
  1480. + # So, first we look for a working echo in the user's PATH.
  1481. +
  1482. + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1483. + for dir in $PATH /usr/ucb; do
  1484. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1485. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1486. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1487. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1488. + echo="$dir/echo"
  1489. + break
  1490. fi
  1491. + done
  1492. + IFS="$save_ifs"
  1493. - if test $ac_libnet_have_pf_packet = choked; then
  1494. - AC_MSG_RESULT(test program choked... assuming no)
  1495. - elif test $ac_libnet_have_pf_packet = yes; then
  1496. - AC_DEFINE(HAVE_PF_PACKET)
  1497. - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_PF_PACKET"
  1498. + if test "X$echo" = Xecho; then
  1499. + # We didn't find a better echo, so look for alternatives.
  1500. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  1501. + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  1502. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1503. + # This shell has a builtin print -r that does the trick.
  1504. + echo='print -r'
  1505. + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  1506. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1507. + # If we have ksh, try running configure again with it.
  1508. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1509. + export ORIGINAL_CONFIG_SHELL
  1510. + CONFIG_SHELL=/bin/ksh
  1511. + export CONFIG_SHELL
  1512. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1513. + else
  1514. + # Try using printf.
  1515. + echo='printf %s\n'
  1516. + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  1517. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  1518. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1519. + # Cool, printf works
  1520. + :
  1521. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1522. + test "X$echo_testing_string" = 'X\t' &&
  1523. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1524. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1525. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1526. + export CONFIG_SHELL
  1527. + SHELL="$CONFIG_SHELL"
  1528. + export SHELL
  1529. + echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1530. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1531. + test "X$echo_testing_string" = 'X\t' &&
  1532. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1533. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1534. + echo="$CONFIG_SHELL [$]0 --fallback-echo"
  1535. + else
  1536. + # maybe with a smaller string...
  1537. + prev=:
  1538. +
  1539. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1540. + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  1541. + then
  1542. + break
  1543. + fi
  1544. + prev="$cmd"
  1545. + done
  1546. +
  1547. + if test "$prev" != 'sed 50q "[$]0"'; then
  1548. + echo_test_string=`eval $prev`
  1549. + export echo_test_string
  1550. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1551. + else
  1552. + # Oops. We lost completely, so just stick with echo.
  1553. + echo=echo
  1554. + fi
  1555. + fi
  1556. fi
  1557. + fi
  1558. +fi
  1559. +fi
  1560. +
  1561. +# Copy echo and quote the copy suitably for passing to libtool from
  1562. +# the Makefile, instead of quoting the original, which is used later.
  1563. +ECHO=$echo
  1564. +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  1565. + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  1566. +fi
  1567. +
  1568. +AC_SUBST(ECHO)
  1569. +AC_DIVERT_POP
  1570. +])# _LT_AC_PROG_ECHO_BACKSLASH
  1571. +
  1572. +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1573. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1574. +# ------------------------------------------------------------------
  1575. +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1576. +[if test "$cross_compiling" = yes; then :
  1577. + [$4]
  1578. +else
  1579. + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1580. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1581. + lt_status=$lt_dlunknown
  1582. + cat > conftest.$ac_ext <<EOF
  1583. +[#line __oline__ "configure"
  1584. +#include "confdefs.h"
  1585. +
  1586. +#if HAVE_DLFCN_H
  1587. +#include <dlfcn.h>
  1588. +#endif
  1589. +
  1590. +#include <stdio.h>
  1591. +
  1592. +#ifdef RTLD_GLOBAL
  1593. +# define LT_DLGLOBAL RTLD_GLOBAL
  1594. +#else
  1595. +# ifdef DL_GLOBAL
  1596. +# define LT_DLGLOBAL DL_GLOBAL
  1597. +# else
  1598. +# define LT_DLGLOBAL 0
  1599. +# endif
  1600. +#endif
  1601. +
  1602. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1603. + find out it does not work in some platform. */
  1604. +#ifndef LT_DLLAZY_OR_NOW
  1605. +# ifdef RTLD_LAZY
  1606. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1607. +# else
  1608. +# ifdef DL_LAZY
  1609. +# define LT_DLLAZY_OR_NOW DL_LAZY
  1610. +# else
  1611. +# ifdef RTLD_NOW
  1612. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  1613. +# else
  1614. +# ifdef DL_NOW
  1615. +# define LT_DLLAZY_OR_NOW DL_NOW
  1616. +# else
  1617. +# define LT_DLLAZY_OR_NOW 0
  1618. +# endif
  1619. +# endif
  1620. +# endif
  1621. +# endif
  1622. +#endif
  1623. +
  1624. +#ifdef __cplusplus
  1625. +extern "C" void exit (int);
  1626. +#endif
  1627. +
  1628. +void fnord() { int i=42;}
  1629. +int main ()
  1630. +{
  1631. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1632. + int status = $lt_dlunknown;
  1633. +
  1634. + if (self)
  1635. + {
  1636. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1637. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1638. + /* dlclose (self); */
  1639. + }
  1640. +
  1641. + exit (status);
  1642. +}]
  1643. +EOF
  1644. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1645. + (./conftest; exit; ) 2>/dev/null
  1646. + lt_status=$?
  1647. + case x$lt_status in
  1648. + x$lt_dlno_uscore) $1 ;;
  1649. + x$lt_dlneed_uscore) $2 ;;
  1650. + x$lt_unknown|x*) $3 ;;
  1651. + esac
  1652. + else :
  1653. + # compilation failed
  1654. + $3
  1655. + fi
  1656. +fi
  1657. +rm -fr conftest*
  1658. +])# _LT_AC_TRY_DLOPEN_SELF
  1659. +
  1660. +# AC_LIBTOOL_DLOPEN_SELF
  1661. +# -------------------
  1662. +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1663. +[if test "x$enable_dlopen" != xyes; then
  1664. + enable_dlopen=unknown
  1665. + enable_dlopen_self=unknown
  1666. + enable_dlopen_self_static=unknown
  1667. +else
  1668. + lt_cv_dlopen=no
  1669. + lt_cv_dlopen_libs=
  1670. +
  1671. + case $host_os in
  1672. + beos*)
  1673. + lt_cv_dlopen="load_add_on"
  1674. + lt_cv_dlopen_libs=
  1675. + lt_cv_dlopen_self=yes
  1676. + ;;
  1677. +
  1678. + cygwin* | mingw* | pw32*)
  1679. + lt_cv_dlopen="LoadLibrary"
  1680. + lt_cv_dlopen_libs=
  1681. + ;;
  1682. +
  1683. + *)
  1684. + AC_CHECK_FUNC([shl_load],
  1685. + [lt_cv_dlopen="shl_load"],
  1686. + [AC_CHECK_LIB([dld], [shl_load],
  1687. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1688. + [AC_CHECK_FUNC([dlopen],
  1689. + [lt_cv_dlopen="dlopen"],
  1690. + [AC_CHECK_LIB([dl], [dlopen],
  1691. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1692. + [AC_CHECK_LIB([svld], [dlopen],
  1693. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1694. + [AC_CHECK_LIB([dld], [dld_link],
  1695. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1696. + ])
  1697. + ])
  1698. + ])
  1699. + ])
  1700. + ])
  1701. + ;;
  1702. + esac
  1703. +
  1704. + if test "x$lt_cv_dlopen" != xno; then
  1705. + enable_dlopen=yes
  1706. + else
  1707. + enable_dlopen=no
  1708. + fi
  1709. +
  1710. + case $lt_cv_dlopen in
  1711. + dlopen)
  1712. + save_CPPFLAGS="$CPPFLAGS"
  1713. + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1714. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1715. +
  1716. + save_LDFLAGS="$LDFLAGS"
  1717. + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1718. - if test $ac_libnet_have_pf_packet != choked; then
  1719. - AC_MSG_RESULT($ac_libnet_have_pf_packet)
  1720. + save_LIBS="$LIBS"
  1721. + LIBS="$lt_cv_dlopen_libs $LIBS"
  1722. +
  1723. + AC_CACHE_CHECK([whether a program can dlopen itself],
  1724. + lt_cv_dlopen_self, [dnl
  1725. + _LT_AC_TRY_DLOPEN_SELF(
  1726. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1727. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1728. + ])
  1729. +
  1730. + if test "x$lt_cv_dlopen_self" = xyes; then
  1731. + LDFLAGS="$LDFLAGS $link_static_flag"
  1732. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1733. + lt_cv_dlopen_self_static, [dnl
  1734. + _LT_AC_TRY_DLOPEN_SELF(
  1735. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1736. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1737. + ])
  1738. fi
  1739. - rm -f pf_packet-test* core core.pf_packet-test
  1740. +
  1741. + CPPFLAGS="$save_CPPFLAGS"
  1742. + LDFLAGS="$save_LDFLAGS"
  1743. + LIBS="$save_LIBS"
  1744. ;;
  1745. - esac])
  1746. + esac
  1747. +
  1748. + case $lt_cv_dlopen_self in
  1749. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1750. + *) enable_dlopen_self=unknown ;;
  1751. + esac
  1752. +
  1753. + case $lt_cv_dlopen_self_static in
  1754. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1755. + *) enable_dlopen_self_static=unknown ;;
  1756. + esac
  1757. +fi
  1758. +])# AC_LIBTOOL_DLOPEN_SELF
  1759. +
  1760. +AC_DEFUN([_LT_AC_LTCONFIG_HACK],
  1761. +[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
  1762. +# Sed substitution that helps us do robust quoting. It backslashifies
  1763. +# metacharacters that are still active within double-quoted strings.
  1764. +Xsed='sed -e s/^X//'
  1765. +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
  1766. +
  1767. +# Same as above, but do not quote variable references.
  1768. +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
  1769. +
  1770. +# Sed substitution to delay expansion of an escaped shell variable in a
  1771. +# double_quote_subst'ed string.
  1772. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  1773. +
  1774. +# Constants:
  1775. +rm="rm -f"
  1776. +
  1777. +# Global variables:
  1778. +default_ofile=libtool
  1779. +can_build_shared=yes
  1780. +
  1781. +# All known linkers require a `.a' archive for static linking (except M$VC,
  1782. +# which needs '.lib').
  1783. +libext=a
  1784. +ltmain="$ac_aux_dir/ltmain.sh"
  1785. +ofile="$default_ofile"
  1786. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  1787. +need_locks="$enable_libtool_lock"
  1788. +
  1789. +old_CC="$CC"
  1790. +old_CFLAGS="$CFLAGS"
  1791. +
  1792. +# Set sane defaults for various variables
  1793. +test -z "$AR" && AR=ar
  1794. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  1795. +test -z "$AS" && AS=as
  1796. +test -z "$CC" && CC=cc
  1797. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  1798. +test -z "$LD" && LD=ld
  1799. +test -z "$LN_S" && LN_S="ln -s"
  1800. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  1801. +test -z "$NM" && NM=nm
  1802. +test -z "$OBJDUMP" && OBJDUMP=objdump
  1803. +test -z "$RANLIB" && RANLIB=:
  1804. +test -z "$STRIP" && STRIP=:
  1805. +test -z "$ac_objext" && ac_objext=o
  1806. +
  1807. +if test x"$host" != x"$build"; then
  1808. + ac_tool_prefix=${host_alias}-
  1809. +else
  1810. + ac_tool_prefix=
  1811. +fi
  1812. +
  1813. +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  1814. +case $host_os in
  1815. +linux-gnu*) ;;
  1816. +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  1817. +esac
  1818. +
  1819. +case $host_os in
  1820. +aix3*)
  1821. + # AIX sometimes has problems with the GCC collect2 program. For some
  1822. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  1823. + # vanish in a puff of smoke.
  1824. + if test "X${COLLECT_NAMES+set}" != Xset; then
  1825. + COLLECT_NAMES=
  1826. + export COLLECT_NAMES
  1827. + fi
  1828. + ;;
  1829. +esac
  1830. +
  1831. +# Determine commands to create old-style static archives.
  1832. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  1833. +old_postinstall_cmds='chmod 644 $oldlib'
  1834. +old_postuninstall_cmds=
  1835. +
  1836. +if test -n "$RANLIB"; then
  1837. + case $host_os in
  1838. + openbsd*)
  1839. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  1840. + ;;
  1841. + *)
  1842. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  1843. + ;;
  1844. + esac
  1845. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1846. +fi
  1847. +
  1848. +# Allow CC to be a program name with arguments.
  1849. +set dummy $CC
  1850. +compiler="[$]2"
  1851. +
  1852. +AC_MSG_CHECKING([for objdir])
  1853. +rm -f .libs 2>/dev/null
  1854. +mkdir .libs 2>/dev/null
  1855. +if test -d .libs; then
  1856. + objdir=.libs
  1857. +else
  1858. + # MS-DOS does not allow filenames that begin with a dot.
  1859. + objdir=_libs
  1860. +fi
  1861. +rmdir .libs 2>/dev/null
  1862. +AC_MSG_RESULT($objdir)
  1863. +
  1864. +
  1865. +AC_ARG_WITH(pic,
  1866. +[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
  1867. +pic_mode="$withval", pic_mode=default)
  1868. +test -z "$pic_mode" && pic_mode=default
  1869. +
  1870. +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
  1871. +# in isolation, and that seeing it set (from the cache) indicates that
  1872. +# the associated values are set (in the cache) correctly too.
  1873. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  1874. +AC_CACHE_VAL(lt_cv_prog_cc_pic,
  1875. +[ lt_cv_prog_cc_pic=
  1876. + lt_cv_prog_cc_shlib=
  1877. + lt_cv_prog_cc_wl=
  1878. + lt_cv_prog_cc_static=
  1879. + lt_cv_prog_cc_no_builtin=
  1880. + lt_cv_prog_cc_can_build_shared=$can_build_shared
  1881. +
  1882. + if test "$GCC" = yes; then
  1883. + lt_cv_prog_cc_wl='-Wl,'
  1884. + lt_cv_prog_cc_static='-static'
  1885. +
  1886. + case $host_os in
  1887. + aix*)
  1888. + # Below there is a dirty hack to force normal static linking with -ldl
  1889. + # The problem is because libdl dynamically linked with both libc and
  1890. + # libC (AIX C++ library), which obviously doesn't included in libraries
  1891. + # list by gcc. This cause undefined symbols with -static flags.
  1892. + # This hack allows C programs to be linked with "-static -ldl", but
  1893. + # not sure about C++ programs.
  1894. + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  1895. + ;;
  1896. + amigaos*)
  1897. + # FIXME: we need at least 68020 code to build shared libraries, but
  1898. + # adding the `-m68020' flag to GCC prevents building anything better,
  1899. + # like `-m68040'.
  1900. + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  1901. + ;;
  1902. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  1903. + # PIC is the default for these OSes.
  1904. + ;;
  1905. + darwin* | rhapsody*)
  1906. + # PIC is the default on this platform
  1907. + # Common symbols not allowed in MH_DYLIB files
  1908. + lt_cv_prog_cc_pic='-fno-common'
  1909. + ;;
  1910. + cygwin* | mingw* | pw32* | os2*)
  1911. + # This hack is so that the source file can tell whether it is being
  1912. + # built for inclusion in a dll (and should export symbols for example).
  1913. + lt_cv_prog_cc_pic='-DDLL_EXPORT'
  1914. + ;;
  1915. + sysv4*MP*)
  1916. + if test -d /usr/nec; then
  1917. + lt_cv_prog_cc_pic=-Kconform_pic
  1918. + fi
  1919. + ;;
  1920. + *)
  1921. + lt_cv_prog_cc_pic='-fPIC'
  1922. + ;;
  1923. + esac
  1924. + else
  1925. + # PORTME Check for PIC flags for the system compiler.
  1926. + case $host_os in
  1927. + aix3* | aix4* | aix5*)
  1928. + lt_cv_prog_cc_wl='-Wl,'
  1929. + # All AIX code is PIC.
  1930. + if test "$host_cpu" = ia64; then
  1931. + # AIX 5 now supports IA64 processor
  1932. + lt_cv_prog_cc_static='-Bstatic'
  1933. + else
  1934. + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  1935. + fi
  1936. + ;;
  1937. +
  1938. + hpux9* | hpux10* | hpux11*)
  1939. + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  1940. + lt_cv_prog_cc_wl='-Wl,'
  1941. + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  1942. + lt_cv_prog_cc_pic='+Z'
  1943. + ;;
  1944. +
  1945. + irix5* | irix6* | nonstopux*)
  1946. + lt_cv_prog_cc_wl='-Wl,'
  1947. + lt_cv_prog_cc_static='-non_shared'
  1948. + # PIC (with -KPIC) is the default.
  1949. + ;;
  1950. +
  1951. + cygwin* | mingw* | pw32* | os2*)
  1952. + # This hack is so that the source file can tell whether it is being
  1953. + # built for inclusion in a dll (and should export symbols for example).
  1954. + lt_cv_prog_cc_pic='-DDLL_EXPORT'
  1955. + ;;
  1956. +
  1957. + newsos6)
  1958. + lt_cv_prog_cc_pic='-KPIC'
  1959. + lt_cv_prog_cc_static='-Bstatic'
  1960. + ;;
  1961. +
  1962. + osf3* | osf4* | osf5*)
  1963. + # All OSF/1 code is PIC.
  1964. + lt_cv_prog_cc_wl='-Wl,'
  1965. + lt_cv_prog_cc_static='-non_shared'
  1966. + ;;
  1967. +
  1968. + sco3.2v5*)
  1969. + lt_cv_prog_cc_pic='-Kpic'
  1970. + lt_cv_prog_cc_static='-dn'
  1971. + lt_cv_prog_cc_shlib='-belf'
  1972. + ;;
  1973. +
  1974. + solaris*)
  1975. + lt_cv_prog_cc_pic='-KPIC'
  1976. + lt_cv_prog_cc_static='-Bstatic'
  1977. + lt_cv_prog_cc_wl='-Wl,'
  1978. + ;;
  1979. +
  1980. + sunos4*)
  1981. + lt_cv_prog_cc_pic='-PIC'
  1982. + lt_cv_prog_cc_static='-Bstatic'
  1983. + lt_cv_prog_cc_wl='-Qoption ld '
  1984. + ;;
  1985. +
  1986. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  1987. + lt_cv_prog_cc_pic='-KPIC'
  1988. + lt_cv_prog_cc_static='-Bstatic'
  1989. + lt_cv_prog_cc_wl='-Wl,'
  1990. + ;;
  1991. +
  1992. + uts4*)
  1993. + lt_cv_prog_cc_pic='-pic'
  1994. + lt_cv_prog_cc_static='-Bstatic'
  1995. + ;;
  1996. +
  1997. + sysv4*MP*)
  1998. + if test -d /usr/nec ;then
  1999. + lt_cv_prog_cc_pic='-Kconform_pic'
  2000. + lt_cv_prog_cc_static='-Bstatic'
  2001. + fi
  2002. + ;;
  2003. +
  2004. + *)
  2005. + lt_cv_prog_cc_can_build_shared=no
  2006. + ;;
  2007. + esac
  2008. + fi
  2009. ])
  2010. +if test -z "$lt_cv_prog_cc_pic"; then
  2011. + AC_MSG_RESULT([none])
  2012. +else
  2013. + AC_MSG_RESULT([$lt_cv_prog_cc_pic])
  2014. -dnl
  2015. -dnl Looks for a previous libnet version and attempts to determine which verion
  2016. -dnl it is. Version 0.8 was the first version that actually knew internally
  2017. -dnl what version it was.
  2018. -dnl
  2019. -dnl usage:
  2020. -dnl
  2021. -dnl AC_LIBNET_CHECK_LIBNET_VERSION
  2022. -dnl
  2023. -dnl results:
  2024. -dnl
  2025. -dnl
  2026. -dnl
  2027. + # Check to make sure the pic_flag actually works.
  2028. + AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
  2029. + AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
  2030. + save_CFLAGS="$CFLAGS"
  2031. + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  2032. + AC_TRY_COMPILE([], [], [dnl
  2033. + case $host_os in
  2034. + hpux9* | hpux10* | hpux11*)
  2035. + # On HP-UX, both CC and GCC only warn that PIC is supported... then
  2036. + # they create non-PIC objects. So, if there were any warnings, we
  2037. + # assume that PIC is not supported.
  2038. + if test -s conftest.err; then
  2039. + lt_cv_prog_cc_pic_works=no
  2040. + else
  2041. + lt_cv_prog_cc_pic_works=yes
  2042. + fi
  2043. + ;;
  2044. + *)
  2045. + lt_cv_prog_cc_pic_works=yes
  2046. + ;;
  2047. + esac
  2048. + ], [dnl
  2049. + lt_cv_prog_cc_pic_works=no
  2050. + ])
  2051. + CFLAGS="$save_CFLAGS"
  2052. + ])
  2053. -AC_DEFUN(AC_LIBNET_CHECK_LIBNET_VER,
  2054. -[
  2055. - AC_CHECK_LIB(net, libnet_build_ip, AC_MSG_CHECKING(version) \
  2056. + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  2057. + lt_cv_prog_cc_pic=
  2058. + lt_cv_prog_cc_can_build_shared=no
  2059. + else
  2060. + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  2061. + fi
  2062. -changequote(<<, >>)dnl
  2063. - if [[ ! -f $LIB_PREFIX/libnet.a ]] ; then
  2064. -changequote([, ])dnl
  2065. - AC_MSG_RESULT($LIB_PREFIX/libnet.a doesn't exist)
  2066. - AC_MSG_RESULT(previous libnet install lives elsewhere, you should probably find it)
  2067. - else
  2068. - __LIBNET_VERSION=`strings $LIB_PREFIX/libnet.a | grep "libnet version"\
  2069. - | cut -f3 -d" "`;\
  2070. - if test -z "$__LIBNET_VERSION"; then
  2071. - AC_MSG_RESULT(<0.8)
  2072. - else
  2073. - AC_MSG_RESULT($__LIBNET_VERSION)
  2074. - fi
  2075. - fi\
  2076. - )
  2077. + AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
  2078. +fi
  2079. +
  2080. +# Check for any special shared library compilation flags.
  2081. +if test -n "$lt_cv_prog_cc_shlib"; then
  2082. + AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
  2083. + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
  2084. + else
  2085. + AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
  2086. + lt_cv_prog_cc_can_build_shared=no
  2087. + fi
  2088. +fi
  2089. +
  2090. +AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
  2091. +AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
  2092. + lt_cv_prog_cc_static_works=no
  2093. + save_LDFLAGS="$LDFLAGS"
  2094. + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  2095. + AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
  2096. + LDFLAGS="$save_LDFLAGS"
  2097. ])
  2098. +# Belt *and* braces to stop my trousers falling down:
  2099. +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  2100. +AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
  2101. -dnl
  2102. -dnl Checks to see if this linux kernel uses ip_sum or ip_csum
  2103. -dnl (Pulled from queso)
  2104. -dnl
  2105. -dnl usage:
  2106. -dnl
  2107. -dnl AC_LIBNET_CHECK_IP_CSUM
  2108. -dnl
  2109. -dnl results:
  2110. -dnl
  2111. -dnl HAVE_STRUCT_IP_CSUM (DEFINED)
  2112. -dnl
  2113. +pic_flag="$lt_cv_prog_cc_pic"
  2114. +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  2115. +wl="$lt_cv_prog_cc_wl"
  2116. +link_static_flag="$lt_cv_prog_cc_static"
  2117. +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  2118. +can_build_shared="$lt_cv_prog_cc_can_build_shared"
  2119. -AC_DEFUN(AC_LIBNET_CHECK_IP_CSUM,
  2120. -[
  2121. - AC_MSG_CHECKING([struct ip contains ip_csum])
  2122. - AC_TRY_COMPILE([
  2123. - #define __BSD_SOURCE
  2124. - #define _BSD_SOURCE
  2125. - #include <sys/types.h>
  2126. - #include <netinet/in.h>
  2127. - #include <netinet/in_systm.h>
  2128. - #include <netinet/ip.h>],
  2129. - [
  2130. - struct ip ip;
  2131. - ip.ip_csum = 0;
  2132. - ],
  2133. - [AC_MSG_RESULT(yes);
  2134. - AC_DEFINE(HAVE_STRUCT_IP_CSUM)],
  2135. - [AC_MSG_RESULT(no);
  2136. - ])
  2137. +
  2138. +# Check to see if options -o and -c are simultaneously supported by compiler
  2139. +AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
  2140. +AC_CACHE_VAL([lt_cv_compiler_c_o], [
  2141. +$rm -r conftest 2>/dev/null
  2142. +mkdir conftest
  2143. +cd conftest
  2144. +echo "int some_variable = 0;" > conftest.$ac_ext
  2145. +mkdir out
  2146. +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  2147. +# that will create temporary files in the current directory regardless of
  2148. +# the output directory. Thus, making CWD read-only will cause this test
  2149. +# to fail, enabling locking or at least warning the user not to do parallel
  2150. +# builds.
  2151. +chmod -w .
  2152. +save_CFLAGS="$CFLAGS"
  2153. +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  2154. +compiler_c_o=no
  2155. +if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  2156. + # The compiler can only warn and ignore the option if not recognized
  2157. + # So say no if there are warnings
  2158. + if test -s out/conftest.err; then
  2159. + lt_cv_compiler_c_o=no
  2160. + else
  2161. + lt_cv_compiler_c_o=yes
  2162. + fi
  2163. +else
  2164. + # Append any errors to the config.log.
  2165. + cat out/conftest.err 1>&AC_FD_CC
  2166. + lt_cv_compiler_c_o=no
  2167. +fi
  2168. +CFLAGS="$save_CFLAGS"
  2169. +chmod u+w .
  2170. +$rm conftest* out/*
  2171. +rmdir out
  2172. +cd ..
  2173. +rmdir conftest
  2174. +$rm -r conftest 2>/dev/null
  2175. ])
  2176. +compiler_c_o=$lt_cv_compiler_c_o
  2177. +AC_MSG_RESULT([$compiler_c_o])
  2178. -dnl
  2179. -dnl Checks to see if unaligned memory accesses fail
  2180. -dnl (Pulled from libpcap)
  2181. -dnl
  2182. -dnl usage:
  2183. -dnl
  2184. -dnl AC_LBL_UNALIGNED_ACCESS
  2185. -dnl
  2186. -dnl results:
  2187. -dnl
  2188. -dnl LBL_ALIGN (DEFINED)
  2189. -dnl
  2190. +if test x"$compiler_c_o" = x"yes"; then
  2191. + # Check to see if we can write to a .lo
  2192. + AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
  2193. + AC_CACHE_VAL([lt_cv_compiler_o_lo], [
  2194. + lt_cv_compiler_o_lo=no
  2195. + save_CFLAGS="$CFLAGS"
  2196. + CFLAGS="$CFLAGS -c -o conftest.lo"
  2197. + save_objext="$ac_objext"
  2198. + ac_objext=lo
  2199. + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
  2200. + # The compiler can only warn and ignore the option if not recognized
  2201. + # So say no if there are warnings
  2202. + if test -s conftest.err; then
  2203. + lt_cv_compiler_o_lo=no
  2204. + else
  2205. + lt_cv_compiler_o_lo=yes
  2206. + fi
  2207. + ])
  2208. + ac_objext="$save_objext"
  2209. + CFLAGS="$save_CFLAGS"
  2210. + ])
  2211. + compiler_o_lo=$lt_cv_compiler_o_lo
  2212. + AC_MSG_RESULT([$compiler_o_lo])
  2213. +else
  2214. + compiler_o_lo=no
  2215. +fi
  2216. -AC_DEFUN(AC_LBL_UNALIGNED_ACCESS,
  2217. - [AC_MSG_CHECKING(if unaligned accesses fail)
  2218. - AC_CACHE_VAL(ac_cv_lbl_unaligned_fail,
  2219. - [case "$target_cpu" in
  2220. -
  2221. - alpha|hp*|mips|sparc)
  2222. - ac_cv_lbl_unaligned_fail=yes
  2223. - ;;
  2224. -
  2225. - *)
  2226. - cat >conftest.c <<EOF
  2227. -# include <sys/types.h>
  2228. -# include <sys/wait.h>
  2229. -# include <stdio.h>
  2230. - unsigned char a[[5]] = { 1, 2, 3, 4, 5 };
  2231. - main()
  2232. - {
  2233. - unsigned int i;
  2234. - pid_t pid;
  2235. - int status;
  2236. - /* avoid "core dumped" message */
  2237. - pid = fork();
  2238. - if (pid < 0)
  2239. - {
  2240. - exit(2);
  2241. - }
  2242. - if (pid > 0)
  2243. - {
  2244. - /* parent */
  2245. - pid = waitpid(pid, &status, 0);
  2246. - if (pid < 0)
  2247. - {
  2248. - exit(3);
  2249. - }
  2250. - exit(!WIFEXITED(status));
  2251. - }
  2252. - /* child */
  2253. - i = *(unsigned int *)&a[[1]];
  2254. - printf("%d\n", i);
  2255. - exit(0);
  2256. - }
  2257. -EOF
  2258. - ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  2259. - conftest.c $LIBS > /dev/null 2>&1
  2260. - # Oopz 4.3 BSD doesn't have this. Sorry.
  2261. - if test ! -x conftest ; then
  2262. - dnl failed to compile for some reason
  2263. - ac_cv_lbl_unaligned_fail=yes
  2264. - else
  2265. - ./conftest > conftest.out
  2266. - if test ! -s conftest.out ; then
  2267. - ac_cv_lbl_unaligned_fail=yes
  2268. - else
  2269. - ac_cv_lbl_unaligned_fail=no
  2270. - fi
  2271. - fi
  2272. - rm -f conftest* core core.conftest
  2273. - ;;
  2274. - esac])
  2275. - AC_MSG_RESULT($ac_cv_lbl_unaligned_fail)
  2276. - if test $ac_cv_lbl_unaligned_fail = yes ; then
  2277. - AC_DEFINE(LBL_ALIGN)
  2278. +# Check to see if we can do hard links to lock some files if needed
  2279. +hard_links="nottested"
  2280. +if test "$compiler_c_o" = no && test "$need_locks" != no; then
  2281. + # do not overwrite the value of need_locks provided by the user
  2282. + AC_MSG_CHECKING([if we can lock with hard links])
  2283. + hard_links=yes
  2284. + $rm conftest*
  2285. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2286. + touch conftest.a
  2287. + ln conftest.a conftest.b 2>&5 || hard_links=no
  2288. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2289. + AC_MSG_RESULT([$hard_links])
  2290. + if test "$hard_links" = no; then
  2291. + AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
  2292. + need_locks=warn
  2293. + fi
  2294. +else
  2295. + need_locks=no
  2296. +fi
  2297. +
  2298. +if test "$GCC" = yes; then
  2299. + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  2300. + AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
  2301. + echo "int some_variable = 0;" > conftest.$ac_ext
  2302. + save_CFLAGS="$CFLAGS"
  2303. + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  2304. + compiler_rtti_exceptions=no
  2305. + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
  2306. + # The compiler can only warn and ignore the option if not recognized
  2307. + # So say no if there are warnings
  2308. + if test -s conftest.err; then
  2309. + compiler_rtti_exceptions=no
  2310. + else
  2311. + compiler_rtti_exceptions=yes
  2312. fi
  2313. -])
  2314. + ])
  2315. + CFLAGS="$save_CFLAGS"
  2316. + AC_MSG_RESULT([$compiler_rtti_exceptions])
  2317. + if test "$compiler_rtti_exceptions" = "yes"; then
  2318. + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  2319. + else
  2320. + no_builtin_flag=' -fno-builtin'
  2321. + fi
  2322. +fi
  2323. -dnl
  2324. -dnl Checks endianess
  2325. -dnl
  2326. -dnl usage:
  2327. -dnl
  2328. -dnl AC_LIBNET_ENDIAN_CHECK
  2329. -dnl
  2330. -dnl results:
  2331. -dnl
  2332. -dnl LIBNET_BIG_ENDIAN = 1 or
  2333. -dnl LIBNET_LIL_ENDIAN = 1
  2334. -dnl
  2335. +# See if the linker supports building shared libraries.
  2336. +AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
  2337. -AC_DEFUN(AC_LIBNET_ENDIAN_CHECK,
  2338. - [AC_MSG_CHECKING(machine endianess)
  2339. +allow_undefined_flag=
  2340. +no_undefined_flag=
  2341. +need_lib_prefix=unknown
  2342. +need_version=unknown
  2343. +# when you set need_version to no, make sure it does not cause -set_version
  2344. +# flags to be left without arguments
  2345. +archive_cmds=
  2346. +archive_expsym_cmds=
  2347. +old_archive_from_new_cmds=
  2348. +old_archive_from_expsyms_cmds=
  2349. +export_dynamic_flag_spec=
  2350. +whole_archive_flag_spec=
  2351. +thread_safe_flag_spec=
  2352. +hardcode_into_libs=no
  2353. +hardcode_libdir_flag_spec=
  2354. +hardcode_libdir_separator=
  2355. +hardcode_direct=no
  2356. +hardcode_minus_L=no
  2357. +hardcode_shlibpath_var=unsupported
  2358. +runpath_var=
  2359. +link_all_deplibs=unknown
  2360. +always_export_symbols=no
  2361. +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  2362. +# include_expsyms should be a list of space-separated symbols to be *always*
  2363. +# included in the symbol list
  2364. +include_expsyms=
  2365. +# exclude_expsyms can be an egrep regular expression of symbols to exclude
  2366. +# it will be wrapped by ` (' and `)$', so one must not match beginning or
  2367. +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  2368. +# as well as any symbol that contains `d'.
  2369. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  2370. +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  2371. +# platforms (ab)use it in PIC code, but their linkers get confused if
  2372. +# the symbol is explicitly referenced. Since portable code cannot
  2373. +# rely on this symbol name, it's probably fine to never include it in
  2374. +# preloaded symbol tables.
  2375. +extract_expsyms_cmds=
  2376. - cat > conftest.c << EOF
  2377. -# include <stdio.h>
  2378. -# include <stdlib.h>
  2379. -
  2380. - int main()
  2381. - {
  2382. - union
  2383. - {
  2384. - short s;
  2385. - char c[[sizeof(short)]];
  2386. - } un;
  2387. -
  2388. - un.s = 0x0102;
  2389. - if (sizeof (short) == 2)
  2390. - {
  2391. - if (un.c [[0]] == 1 && un.c [[1]] == 2)
  2392. - {
  2393. - printf("B\n");
  2394. - }
  2395. - else
  2396. - {
  2397. - if (un.c [[0]] == 2 && un.c [[1]] == 1)
  2398. - {
  2399. - printf("L\n");
  2400. - }
  2401. - }
  2402. - }
  2403. - else
  2404. - {
  2405. - printf("?\n");
  2406. - }
  2407. - return (EXIT_SUCCESS);
  2408. - }
  2409. -EOF
  2410. - ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS > /dev/null 2>&1
  2411. - # Oopz 4.3 BSD doesn't have this. Sorry.
  2412. - if test ! -x conftest ; then
  2413. -dnl failed to compile for some reason
  2414. - ac_cv_libnet_endianess=unknown
  2415. - else
  2416. - ./conftest > conftest.out
  2417. - result=`cat conftest.out`
  2418. - if test $result = "B"; then
  2419. - ac_cv_libnet_endianess=big
  2420. - elif test $result = "L"; then
  2421. - ac_cv_libnet_endianess=lil
  2422. - else
  2423. - ac_cv_libnet_endianess=unknown
  2424. - fi
  2425. - fi
  2426. - rm -f conftest* core core.conftest
  2427. -
  2428. - AC_MSG_RESULT($ac_cv_libnet_endianess)
  2429. -
  2430. - if test $ac_cv_libnet_endianess = big ; then
  2431. - AC_DEFINE(LIBNET_BIG_ENDIAN)
  2432. - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
  2433. - elif test $ac_cv_libnet_endianess = lil ; then
  2434. - AC_DEFINE(LIBNET_LIL_ENDIAN)
  2435. - LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
  2436. - fi
  2437. - ])
  2438. +case $host_os in
  2439. +cygwin* | mingw* | pw32*)
  2440. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  2441. + # When not using gcc, we currently assume that we are using
  2442. + # Microsoft Visual C++.
  2443. + if test "$GCC" != yes; then
  2444. + with_gnu_ld=no
  2445. + fi
  2446. + ;;
  2447. +openbsd*)
  2448. + with_gnu_ld=no
  2449. + ;;
  2450. +esac
  2451. +
  2452. +ld_shlibs=yes
  2453. +if test "$with_gnu_ld" = yes; then
  2454. + # If archive_cmds runs LD, not CC, wlarc should be empty
  2455. + wlarc='${wl}'
  2456. +
  2457. + # See if GNU ld supports shared libraries.
  2458. + case $host_os in
  2459. + aix3* | aix4* | aix5*)
  2460. + # On AIX, the GNU linker is very broken
  2461. + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  2462. + ld_shlibs=no
  2463. + cat <<EOF 1>&2
  2464. +
  2465. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  2466. +*** to be unable to reliably create shared libraries on AIX.
  2467. +*** Therefore, libtool is disabling shared libraries support. If you
  2468. +*** really care for shared libraries, you may want to modify your PATH
  2469. +*** so that a non-GNU linker is found, and then restart.
  2470. +
  2471. +EOF
  2472. + ;;
  2473. +
  2474. + amigaos*)
  2475. + 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)'
  2476. + hardcode_libdir_flag_spec='-L$libdir'
  2477. + hardcode_minus_L=yes
  2478. +
  2479. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  2480. + # that the semantics of dynamic libraries on AmigaOS, at least up
  2481. + # to version 4, is to share data among multiple programs linked
  2482. + # with the same dynamic library. Since this doesn't match the
  2483. + # behavior of shared libraries on other platforms, we can use
  2484. + # them.
  2485. + ld_shlibs=no
  2486. + ;;
  2487. +
  2488. + beos*)
  2489. + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  2490. + allow_undefined_flag=unsupported
  2491. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  2492. + # support --undefined. This deserves some investigation. FIXME
  2493. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2494. + else
  2495. + ld_shlibs=no
  2496. + fi
  2497. + ;;
  2498. +
  2499. + cygwin* | mingw* | pw32*)
  2500. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  2501. + # no search path for DLLs.
  2502. + hardcode_libdir_flag_spec='-L$libdir'
  2503. + allow_undefined_flag=unsupported
  2504. + always_export_symbols=yes
  2505. +
  2506. + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  2507. + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  2508. + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  2509. + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  2510. + else $CC -o impgen impgen.c ; fi)~
  2511. + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  2512. +
  2513. + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  2514. +
  2515. + # cygwin and mingw dlls have different entry points and sets of symbols
  2516. + # to exclude.
  2517. + # FIXME: what about values for MSVC?
  2518. + dll_entry=__cygwin_dll_entry@12
  2519. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  2520. + case $host_os in
  2521. + mingw*)
  2522. + # mingw values
  2523. + dll_entry=_DllMainCRTStartup@12
  2524. + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  2525. + ;;
  2526. + esac
  2527. +
  2528. + # mingw and cygwin differ, and it's simplest to just exclude the union
  2529. + # of the two symbol sets.
  2530. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  2531. +
  2532. + # recent cygwin and mingw systems supply a stub DllMain which the user
  2533. + # can override, but on older systems we have to supply one (in ltdll.c)
  2534. + if test "x$lt_cv_need_dllmain" = "xyes"; then
  2535. + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  2536. + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  2537. + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  2538. + else
  2539. + ltdll_obj=
  2540. + ltdll_cmds=
  2541. + fi
  2542. +
  2543. + # Extract the symbol export list from an `--export-all' def file,
  2544. + # then regenerate the def file from the symbol export list, so that
  2545. + # the compiled dll only exports the symbol export list.
  2546. + # Be careful not to strip the DATA tag left be newer dlltools.
  2547. + export_symbols_cmds="$ltdll_cmds"'
  2548. + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  2549. + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  2550. +
  2551. + # If the export-symbols file already is a .def file (1st line
  2552. + # is EXPORTS), use it as is.
  2553. + # If DATA tags from a recent dlltool are present, honour them!
  2554. + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  2555. + cp $export_symbols $output_objdir/$soname-def;
  2556. + else
  2557. + echo EXPORTS > $output_objdir/$soname-def;
  2558. + _lt_hint=1;
  2559. + cat $export_symbols | while read symbol; do
  2560. + set dummy \$symbol;
  2561. + case \[$]# in
  2562. + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  2563. + 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  2564. + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
  2565. + esac;
  2566. + _lt_hint=`expr 1 + \$_lt_hint`;
  2567. + done;
  2568. + fi~
  2569. + '"$ltdll_cmds"'
  2570. + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  2571. + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  2572. + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  2573. + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  2574. + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  2575. + ;;
  2576. +
  2577. + netbsd*)
  2578. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2579. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  2580. + wlarc=
  2581. + else
  2582. + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2583. + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  2584. + fi
  2585. + ;;
  2586. +
  2587. + solaris* | sysv5*)
  2588. + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  2589. + ld_shlibs=no
  2590. + cat <<EOF 1>&2
  2591. +
  2592. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  2593. +*** create shared libraries on Solaris systems. Therefore, libtool
  2594. +*** is disabling shared libraries support. We urge you to upgrade GNU
  2595. +*** binutils to release 2.9.1 or newer. Another option is to modify
  2596. +*** your PATH or compiler configuration so that the native linker is
  2597. +*** used, and then restart.
  2598. +
  2599. +EOF
  2600. + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  2601. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2602. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  2603. + else
  2604. + ld_shlibs=no
  2605. + fi
  2606. + ;;
  2607. +
  2608. + sunos4*)
  2609. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  2610. + wlarc=
  2611. + hardcode_direct=yes
  2612. + hardcode_shlibpath_var=no
  2613. + ;;
  2614. +
  2615. + *)
  2616. + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  2617. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2618. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  2619. + else
  2620. + ld_shlibs=no
  2621. + fi
  2622. + ;;
  2623. + esac
  2624. +
  2625. + if test "$ld_shlibs" = yes; then
  2626. + runpath_var=LD_RUN_PATH
  2627. + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  2628. + export_dynamic_flag_spec='${wl}--export-dynamic'
  2629. + case $host_os in
  2630. + cygwin* | mingw* | pw32*)
  2631. + # dlltool doesn't understand --whole-archive et. al.
  2632. + whole_archive_flag_spec=
  2633. + ;;
  2634. + *)
  2635. + # ancient GNU ld didn't support --whole-archive et. al.
  2636. + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  2637. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  2638. + else
  2639. + whole_archive_flag_spec=
  2640. + fi
  2641. + ;;
  2642. + esac
  2643. + fi
  2644. +else
  2645. + # PORTME fill in a description of your system's linker (not GNU ld)
  2646. + case $host_os in
  2647. + aix3*)
  2648. + allow_undefined_flag=unsupported
  2649. + always_export_symbols=yes
  2650. + 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'
  2651. + # Note: this linker hardcodes the directories in LIBPATH if there
  2652. + # are no directories specified by -L.
  2653. + hardcode_minus_L=yes
  2654. + if test "$GCC" = yes && test -z "$link_static_flag"; then
  2655. + # Neither direct hardcoding nor static linking is supported with a
  2656. + # broken collect2.
  2657. + hardcode_direct=unsupported
  2658. + fi
  2659. + ;;
  2660. +
  2661. + aix4* | aix5*)
  2662. + if test "$host_cpu" = ia64; then
  2663. + # On IA64, the linker does run time linking by default, so we don't
  2664. + # have to do anything special.
  2665. + aix_use_runtimelinking=no
  2666. + exp_sym_flag='-Bexport'
  2667. + no_entry_flag=""
  2668. + else
  2669. + aix_use_runtimelinking=no
  2670. +
  2671. + # Test if we are trying to use run time linking or normal
  2672. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  2673. + # need to do runtime linking.
  2674. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  2675. + for ld_flag in $LDFLAGS; do
  2676. + case $ld_flag in
  2677. + *-brtl*)
  2678. + aix_use_runtimelinking=yes
  2679. + break
  2680. + ;;
  2681. + esac
  2682. + done
  2683. + esac
  2684. +
  2685. + exp_sym_flag='-bexport'
  2686. + no_entry_flag='-bnoentry'
  2687. + fi
  2688. +
  2689. + # When large executables or shared objects are built, AIX ld can
  2690. + # have problems creating the table of contents. If linking a library
  2691. + # or program results in "error TOC overflow" add -mminimal-toc to
  2692. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  2693. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  2694. +
  2695. + hardcode_direct=yes
  2696. + archive_cmds=''
  2697. + hardcode_libdir_separator=':'
  2698. + if test "$GCC" = yes; then
  2699. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  2700. + collect2name=`${CC} -print-prog-name=collect2`
  2701. + if test -f "$collect2name" && \
  2702. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  2703. + then
  2704. + # We have reworked collect2
  2705. + hardcode_direct=yes
  2706. + else
  2707. + # We have old collect2
  2708. + hardcode_direct=unsupported
  2709. + # It fails to find uninstalled libraries when the uninstalled
  2710. + # path is not listed in the libpath. Setting hardcode_minus_L
  2711. + # to unsupported forces relinking
  2712. + hardcode_minus_L=yes
  2713. + hardcode_libdir_flag_spec='-L$libdir'
  2714. + hardcode_libdir_separator=
  2715. + fi
  2716. + esac
  2717. +
  2718. + shared_flag='-shared'
  2719. + else
  2720. + # not using gcc
  2721. + if test "$host_cpu" = ia64; then
  2722. + shared_flag='${wl}-G'
  2723. + else
  2724. + if test "$aix_use_runtimelinking" = yes; then
  2725. + shared_flag='${wl}-G'
  2726. + else
  2727. + shared_flag='${wl}-bM:SRE'
  2728. + fi
  2729. + fi
  2730. + fi
  2731. +
  2732. + # It seems that -bexpall can do strange things, so it is better to
  2733. + # generate a list of symbols to export.
  2734. + always_export_symbols=yes
  2735. + if test "$aix_use_runtimelinking" = yes; then
  2736. + # Warning - without using the other runtime loading flags (-brtl),
  2737. + # -berok will link without error, but may produce a broken library.
  2738. + allow_undefined_flag='-berok'
  2739. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  2740. + 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"
  2741. + else
  2742. + if test "$host_cpu" = ia64; then
  2743. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  2744. + allow_undefined_flag="-z nodefs"
  2745. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  2746. + else
  2747. + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  2748. + # Warning - without using the other run time loading flags,
  2749. + # -berok will link without error, but may produce a broken library.
  2750. + allow_undefined_flag='${wl}-berok'
  2751. + # This is a bit strange, but is similar to how AIX traditionally builds
  2752. + # it's shared libraries.
  2753. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
  2754. + fi
  2755. + fi
  2756. + ;;
  2757. +
  2758. + amigaos*)
  2759. + 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)'
  2760. + hardcode_libdir_flag_spec='-L$libdir'
  2761. + hardcode_minus_L=yes
  2762. + # see comment about different semantics on the GNU ld section
  2763. + ld_shlibs=no
  2764. + ;;
  2765. +
  2766. + cygwin* | mingw* | pw32*)
  2767. + # When not using gcc, we currently assume that we are using
  2768. + # Microsoft Visual C++.
  2769. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  2770. + # no search path for DLLs.
  2771. + hardcode_libdir_flag_spec=' '
  2772. + allow_undefined_flag=unsupported
  2773. + # Tell ltmain to make .lib files, not .a files.
  2774. + libext=lib
  2775. + # FIXME: Setting linknames here is a bad hack.
  2776. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  2777. + # The linker will automatically build a .lib file if we build a DLL.
  2778. + old_archive_from_new_cmds='true'
  2779. + # FIXME: Should let the user specify the lib program.
  2780. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  2781. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  2782. + ;;
  2783. +
  2784. + darwin* | rhapsody*)
  2785. + case "$host_os" in
  2786. + rhapsody* | darwin1.[[012]])
  2787. + allow_undefined_flag='-undefined suppress'
  2788. + ;;
  2789. + *) # Darwin 1.3 on
  2790. + allow_undefined_flag='-flat_namespace -undefined suppress'
  2791. + ;;
  2792. + esac
  2793. + # FIXME: Relying on posixy $() will cause problems for
  2794. + # cross-compilation, but unfortunately the echo tests do not
  2795. + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  2796. + # `"' quotes if we put them in here... so don't!
  2797. + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
  2798. + # We need to add '_' to the symbols in $export_symbols first
  2799. + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  2800. + hardcode_direct=yes
  2801. + hardcode_shlibpath_var=no
  2802. + whole_archive_flag_spec='-all_load $convenience'
  2803. + ;;
  2804. +
  2805. + freebsd1*)
  2806. + ld_shlibs=no
  2807. + ;;
  2808. +
  2809. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  2810. + # support. Future versions do this automatically, but an explicit c++rt0.o
  2811. + # does not break anything, and helps significantly (at the cost of a little
  2812. + # extra space).
  2813. + freebsd2.2*)
  2814. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  2815. + hardcode_libdir_flag_spec='-R$libdir'
  2816. + hardcode_direct=yes
  2817. + hardcode_shlibpath_var=no
  2818. + ;;
  2819. +
  2820. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  2821. + freebsd2*)
  2822. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  2823. + hardcode_direct=yes
  2824. + hardcode_minus_L=yes
  2825. + hardcode_shlibpath_var=no
  2826. + ;;
  2827. +
  2828. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  2829. + freebsd*)
  2830. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  2831. + hardcode_libdir_flag_spec='-R$libdir'
  2832. + hardcode_direct=yes
  2833. + hardcode_shlibpath_var=no
  2834. + ;;
  2835. +
  2836. + hpux9* | hpux10* | hpux11*)
  2837. + case $host_os in
  2838. + hpux9*) 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' ;;
  2839. + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  2840. + esac
  2841. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  2842. + hardcode_libdir_separator=:
  2843. + hardcode_direct=yes
  2844. + hardcode_minus_L=yes # Not in the search PATH, but as the default
  2845. + # location of the library.
  2846. + export_dynamic_flag_spec='${wl}-E'
  2847. + ;;
  2848. +
  2849. + irix5* | irix6* | nonstopux*)
  2850. + if test "$GCC" = yes; then
  2851. + 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'
  2852. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  2853. + else
  2854. + 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'
  2855. + hardcode_libdir_flag_spec='-rpath $libdir'
  2856. + fi
  2857. + hardcode_libdir_separator=:
  2858. + link_all_deplibs=yes
  2859. + ;;
  2860. +
  2861. + netbsd*)
  2862. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2863. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  2864. + else
  2865. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  2866. + fi
  2867. + hardcode_libdir_flag_spec='-R$libdir'
  2868. + hardcode_direct=yes
  2869. + hardcode_shlibpath_var=no
  2870. + ;;
  2871. +
  2872. + newsos6)
  2873. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  2874. + hardcode_direct=yes
  2875. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  2876. + hardcode_libdir_separator=:
  2877. + hardcode_shlibpath_var=no
  2878. + ;;
  2879. +
  2880. + openbsd*)
  2881. + hardcode_direct=yes
  2882. + hardcode_shlibpath_var=no
  2883. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2884. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  2885. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  2886. + export_dynamic_flag_spec='${wl}-E'
  2887. + else
  2888. + case "$host_os" in
  2889. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  2890. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  2891. + hardcode_libdir_flag_spec='-R$libdir'
  2892. + ;;
  2893. + *)
  2894. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  2895. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  2896. + ;;
  2897. + esac
  2898. + fi
  2899. + ;;
  2900. +
  2901. + os2*)
  2902. + hardcode_libdir_flag_spec='-L$libdir'
  2903. + hardcode_minus_L=yes
  2904. + allow_undefined_flag=unsupported
  2905. + 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'
  2906. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  2907. + ;;
  2908. +
  2909. + osf3*)
  2910. + if test "$GCC" = yes; then
  2911. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  2912. + 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'
  2913. + else
  2914. + allow_undefined_flag=' -expect_unresolved \*'
  2915. + 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'
  2916. + fi
  2917. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  2918. + hardcode_libdir_separator=:
  2919. + ;;
  2920. +
  2921. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  2922. + if test "$GCC" = yes; then
  2923. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  2924. + 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'
  2925. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  2926. + else
  2927. + allow_undefined_flag=' -expect_unresolved \*'
  2928. + 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'
  2929. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  2930. + $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~$rm $lib.exp'
  2931. +
  2932. + #Both c and cxx compiler support -rpath directly
  2933. + hardcode_libdir_flag_spec='-rpath $libdir'
  2934. + fi
  2935. + hardcode_libdir_separator=:
  2936. + ;;
  2937. +
  2938. + sco3.2v5*)
  2939. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  2940. + hardcode_shlibpath_var=no
  2941. + runpath_var=LD_RUN_PATH
  2942. + hardcode_runpath_var=yes
  2943. + export_dynamic_flag_spec='${wl}-Bexport'
  2944. + ;;
  2945. +
  2946. + solaris*)
  2947. + # gcc --version < 3.0 without binutils cannot create self contained
  2948. + # shared libraries reliably, requiring libgcc.a to resolve some of
  2949. + # the object symbols generated in some cases. Libraries that use
  2950. + # assert need libgcc.a to resolve __eprintf, for example. Linking
  2951. + # a copy of libgcc.a into every shared library to guarantee resolving
  2952. + # such symbols causes other problems: According to Tim Van Holder
  2953. + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  2954. + # (to the application) exception stack for one thing.
  2955. + no_undefined_flag=' -z defs'
  2956. + if test "$GCC" = yes; then
  2957. + case `$CC --version 2>/dev/null` in
  2958. + [[12]].*)
  2959. + cat <<EOF 1>&2
  2960. +
  2961. +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  2962. +*** create self contained shared libraries on Solaris systems, without
  2963. +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  2964. +*** -no-undefined support, which will at least allow you to build shared
  2965. +*** libraries. However, you may find that when you link such libraries
  2966. +*** into an application without using GCC, you have to manually add
  2967. +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  2968. +*** upgrade to a newer version of GCC. Another option is to rebuild your
  2969. +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  2970. +
  2971. +EOF
  2972. + no_undefined_flag=
  2973. + ;;
  2974. + esac
  2975. + fi
  2976. + # $CC -shared without GNU ld will not create a library from C++
  2977. + # object files and a static libstdc++, better avoid it by now
  2978. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  2979. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  2980. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  2981. + hardcode_libdir_flag_spec='-R$libdir'
  2982. + hardcode_shlibpath_var=no
  2983. + case $host_os in
  2984. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  2985. + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  2986. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  2987. + esac
  2988. + link_all_deplibs=yes
  2989. + ;;
  2990. +
  2991. + sunos4*)
  2992. + if test "x$host_vendor" = xsequent; then
  2993. + # Use $CC to link under sequent, because it throws in some extra .o
  2994. + # files that make .init and .fini sections work.
  2995. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  2996. + else
  2997. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  2998. + fi
  2999. + hardcode_libdir_flag_spec='-L$libdir'
  3000. + hardcode_direct=yes
  3001. + hardcode_minus_L=yes
  3002. + hardcode_shlibpath_var=no
  3003. + ;;
  3004. +
  3005. + sysv4)
  3006. + case $host_vendor in
  3007. + sni)
  3008. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3009. + hardcode_direct=yes # is this really true???
  3010. + ;;
  3011. + siemens)
  3012. + ## LD is ld it makes a PLAMLIB
  3013. + ## CC just makes a GrossModule.
  3014. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  3015. + reload_cmds='$CC -r -o $output$reload_objs'
  3016. + hardcode_direct=no
  3017. + ;;
  3018. + motorola)
  3019. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3020. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  3021. + ;;
  3022. + esac
  3023. + runpath_var='LD_RUN_PATH'
  3024. + hardcode_shlibpath_var=no
  3025. + ;;
  3026. +
  3027. + sysv4.3*)
  3028. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3029. + hardcode_shlibpath_var=no
  3030. + export_dynamic_flag_spec='-Bexport'
  3031. + ;;
  3032. +
  3033. + sysv5*)
  3034. + no_undefined_flag=' -z text'
  3035. + # $CC -shared without GNU ld will not create a library from C++
  3036. + # object files and a static libstdc++, better avoid it by now
  3037. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3038. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  3039. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  3040. + hardcode_libdir_flag_spec=
  3041. + hardcode_shlibpath_var=no
  3042. + runpath_var='LD_RUN_PATH'
  3043. + ;;
  3044. +
  3045. + uts4*)
  3046. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3047. + hardcode_libdir_flag_spec='-L$libdir'
  3048. + hardcode_shlibpath_var=no
  3049. + ;;
  3050. +
  3051. + dgux*)
  3052. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3053. + hardcode_libdir_flag_spec='-L$libdir'
  3054. + hardcode_shlibpath_var=no
  3055. + ;;
  3056. +
  3057. + sysv4*MP*)
  3058. + if test -d /usr/nec; then
  3059. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  3060. + hardcode_shlibpath_var=no
  3061. + runpath_var=LD_RUN_PATH
  3062. + hardcode_runpath_var=yes
  3063. + ld_shlibs=yes
  3064. + fi
  3065. + ;;
  3066. +
  3067. + sysv4.2uw2*)
  3068. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  3069. + hardcode_direct=yes
  3070. + hardcode_minus_L=no
  3071. + hardcode_shlibpath_var=no
  3072. + hardcode_runpath_var=yes
  3073. + runpath_var=LD_RUN_PATH
  3074. + ;;
  3075. +
  3076. + sysv5uw7* | unixware7*)
  3077. + no_undefined_flag='${wl}-z ${wl}text'
  3078. + if test "$GCC" = yes; then
  3079. + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3080. + else
  3081. + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  3082. + fi
  3083. + runpath_var='LD_RUN_PATH'
  3084. + hardcode_shlibpath_var=no
  3085. + ;;
  3086. +
  3087. + *)
  3088. + ld_shlibs=no
  3089. + ;;
  3090. + esac
  3091. +fi
  3092. +AC_MSG_RESULT([$ld_shlibs])
  3093. +test "$ld_shlibs" = no && can_build_shared=no
  3094. +
  3095. +# Check hardcoding attributes.
  3096. +AC_MSG_CHECKING([how to hardcode library paths into programs])
  3097. +hardcode_action=
  3098. +if test -n "$hardcode_libdir_flag_spec" || \
  3099. + test -n "$runpath_var"; then
  3100. +
  3101. + # We can hardcode non-existant directories.
  3102. + if test "$hardcode_direct" != no &&
  3103. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3104. + # have to relink, otherwise we might link with an installed library
  3105. + # when we should be linking with a yet-to-be-installed one
  3106. + ## test "$hardcode_shlibpath_var" != no &&
  3107. + test "$hardcode_minus_L" != no; then
  3108. + # Linking always hardcodes the temporary library directory.
  3109. + hardcode_action=relink
  3110. + else
  3111. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3112. + hardcode_action=immediate
  3113. + fi
  3114. +else
  3115. + # We cannot hardcode anything, or else we can only hardcode existing
  3116. + # directories.
  3117. + hardcode_action=unsupported
  3118. +fi
  3119. +AC_MSG_RESULT([$hardcode_action])
  3120. +
  3121. +striplib=
  3122. +old_striplib=
  3123. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3124. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  3125. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3126. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3127. + AC_MSG_RESULT([yes])
  3128. +else
  3129. + AC_MSG_RESULT([no])
  3130. +fi
  3131. +
  3132. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3133. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3134. +
  3135. +# PORTME Fill in your ld.so characteristics
  3136. +AC_MSG_CHECKING([dynamic linker characteristics])
  3137. +library_names_spec=
  3138. +libname_spec='lib$name'
  3139. +soname_spec=
  3140. +postinstall_cmds=
  3141. +postuninstall_cmds=
  3142. +finish_cmds=
  3143. +finish_eval=
  3144. +shlibpath_var=
  3145. +shlibpath_overrides_runpath=unknown
  3146. +version_type=none
  3147. +dynamic_linker="$host_os ld.so"
  3148. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3149. +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3150. +
  3151. +case $host_os in
  3152. +aix3*)
  3153. + version_type=linux
  3154. + library_names_spec='${libname}${release}.so$versuffix $libname.a'
  3155. + shlibpath_var=LIBPATH
  3156. +
  3157. + # AIX has no versioning support, so we append a major version to the name.
  3158. + soname_spec='${libname}${release}.so$major'
  3159. + ;;
  3160. +
  3161. +aix4* | aix5*)
  3162. + version_type=linux
  3163. + need_lib_prefix=no
  3164. + need_version=no
  3165. + hardcode_into_libs=yes
  3166. + if test "$host_cpu" = ia64; then
  3167. + # AIX 5 supports IA64
  3168. + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  3169. + shlibpath_var=LD_LIBRARY_PATH
  3170. + else
  3171. + # With GCC up to 2.95.x, collect2 would create an import file
  3172. + # for dependence libraries. The import file would start with
  3173. + # the line `#! .'. This would cause the generated library to
  3174. + # depend on `.', always an invalid library. This was fixed in
  3175. + # development snapshots of GCC prior to 3.0.
  3176. + case $host_os in
  3177. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  3178. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3179. + echo ' yes '
  3180. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  3181. + :
  3182. + else
  3183. + can_build_shared=no
  3184. + fi
  3185. + ;;
  3186. + esac
  3187. + # AIX (on Power*) has no versioning support, so currently we can
  3188. + # not hardcode correct soname into executable. Probably we can
  3189. + # add versioning support to collect2, so additional links can
  3190. + # be useful in future.
  3191. + if test "$aix_use_runtimelinking" = yes; then
  3192. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3193. + # instead of lib<name>.a to let people know that these are not
  3194. + # typical AIX shared libraries.
  3195. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3196. + else
  3197. + # We preserve .a as extension for shared libraries through AIX4.2
  3198. + # and later when we are not doing run time linking.
  3199. + library_names_spec='${libname}${release}.a $libname.a'
  3200. + soname_spec='${libname}${release}.so$major'
  3201. + fi
  3202. + shlibpath_var=LIBPATH
  3203. + fi
  3204. + hardcode_into_libs=yes
  3205. + ;;
  3206. +
  3207. +amigaos*)
  3208. + library_names_spec='$libname.ixlibrary $libname.a'
  3209. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3210. + 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'
  3211. + ;;
  3212. +
  3213. +beos*)
  3214. + library_names_spec='${libname}.so'
  3215. + dynamic_linker="$host_os ld.so"
  3216. + shlibpath_var=LIBRARY_PATH
  3217. + ;;
  3218. +
  3219. +bsdi4*)
  3220. + version_type=linux
  3221. + need_version=no
  3222. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3223. + soname_spec='${libname}${release}.so$major'
  3224. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  3225. + shlibpath_var=LD_LIBRARY_PATH
  3226. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  3227. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  3228. + export_dynamic_flag_spec=-rdynamic
  3229. + # the default ld.so.conf also contains /usr/contrib/lib and
  3230. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  3231. + # libtool to hard-code these into programs
  3232. + ;;
  3233. +
  3234. +cygwin* | mingw* | pw32*)
  3235. + version_type=windows
  3236. + need_version=no
  3237. + need_lib_prefix=no
  3238. + case $GCC,$host_os in
  3239. + yes,cygwin*)
  3240. + library_names_spec='$libname.dll.a'
  3241. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
  3242. + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  3243. + dldir=$destdir/`dirname \$dlpath`~
  3244. + test -d \$dldir || mkdir -p \$dldir~
  3245. + $install_prog .libs/$dlname \$dldir/$dlname'
  3246. + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3247. + dlpath=$dir/\$dldll~
  3248. + $rm \$dlpath'
  3249. + ;;
  3250. + yes,mingw*)
  3251. + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
  3252. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  3253. + ;;
  3254. + yes,pw32*)
  3255. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  3256. + ;;
  3257. + *)
  3258. + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
  3259. + ;;
  3260. + esac
  3261. + dynamic_linker='Win32 ld.exe'
  3262. + # FIXME: first we should search . and the directory the executable is in
  3263. + shlibpath_var=PATH
  3264. + ;;
  3265. +
  3266. +darwin* | rhapsody*)
  3267. + dynamic_linker="$host_os dyld"
  3268. + version_type=darwin
  3269. + need_lib_prefix=no
  3270. + need_version=no
  3271. + # FIXME: Relying on posixy $() will cause problems for
  3272. + # cross-compilation, but unfortunately the echo tests do not
  3273. + # yet detect zsh echo's removal of \ escapes.
  3274. + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  3275. + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  3276. + shlibpath_overrides_runpath=yes
  3277. + shlibpath_var=DYLD_LIBRARY_PATH
  3278. + ;;
  3279. +
  3280. +freebsd1*)
  3281. + dynamic_linker=no
  3282. + ;;
  3283. +
  3284. +kfreebsd*-gnu*)
  3285. + version_type=linux
  3286. + need_lib_prefix=no
  3287. + need_version=no
  3288. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3289. + soname_spec='${libname}${release}.so$major'
  3290. + shlibpath_var=LD_LIBRARY_PATH
  3291. + shlibpath_overrides_runpath=no
  3292. + hardcode_into_libs=yes
  3293. + dynamic_linker='GNU/FreeBSD ld.so'
  3294. + ;;
  3295. +
  3296. +freebsd*)
  3297. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  3298. + version_type=freebsd-$objformat
  3299. + case $version_type in
  3300. + freebsd-elf*)
  3301. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  3302. + need_version=no
  3303. + need_lib_prefix=no
  3304. + ;;
  3305. + freebsd-*)
  3306. + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  3307. + need_version=yes
  3308. + ;;
  3309. + esac
  3310. + shlibpath_var=LD_LIBRARY_PATH
  3311. + case $host_os in
  3312. + freebsd2*)
  3313. + shlibpath_overrides_runpath=yes
  3314. + ;;
  3315. + *)
  3316. + shlibpath_overrides_runpath=no
  3317. + hardcode_into_libs=yes
  3318. + ;;
  3319. + esac
  3320. + ;;
  3321. +
  3322. +gnu*)
  3323. + version_type=linux
  3324. + need_lib_prefix=no
  3325. + need_version=no
  3326. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  3327. + soname_spec='${libname}${release}.so$major'
  3328. + shlibpath_var=LD_LIBRARY_PATH
  3329. + hardcode_into_libs=yes
  3330. + ;;
  3331. +
  3332. +hpux9* | hpux10* | hpux11*)
  3333. + # Give a soname corresponding to the major version so that dld.sl refuses to
  3334. + # link against other versions.
  3335. + dynamic_linker="$host_os dld.sl"
  3336. + version_type=sunos
  3337. + need_lib_prefix=no
  3338. + need_version=no
  3339. + shlibpath_var=SHLIB_PATH
  3340. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  3341. + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  3342. + soname_spec='${libname}${release}.sl$major'
  3343. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  3344. + postinstall_cmds='chmod 555 $lib'
  3345. + ;;
  3346. +
  3347. +irix5* | irix6* | nonstopux*)
  3348. + case $host_os in
  3349. + nonstopux*) version_type=nonstopux ;;
  3350. + *) version_type=irix ;;
  3351. + esac
  3352. + need_lib_prefix=no
  3353. + need_version=no
  3354. + soname_spec='${libname}${release}.so$major'
  3355. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  3356. + case $host_os in
  3357. + irix5* | nonstopux*)
  3358. + libsuff= shlibsuff=
  3359. + ;;
  3360. + *)
  3361. + case $LD in # libtool.m4 will add one of these switches to LD
  3362. + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  3363. + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  3364. + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  3365. + *) libsuff= shlibsuff= libmagic=never-match;;
  3366. + esac
  3367. + ;;
  3368. + esac
  3369. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  3370. + shlibpath_overrides_runpath=no
  3371. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  3372. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  3373. + ;;
  3374. +
  3375. +# No shared lib support for Linux oldld, aout, or coff.
  3376. +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  3377. + dynamic_linker=no
  3378. + ;;
  3379. +
  3380. +# This must be Linux ELF.
  3381. +linux-gnu*)
  3382. + version_type=linux
  3383. + need_lib_prefix=no
  3384. + need_version=no
  3385. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3386. + soname_spec='${libname}${release}.so$major'
  3387. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  3388. + shlibpath_var=LD_LIBRARY_PATH
  3389. + shlibpath_overrides_runpath=no
  3390. + # This implies no fast_install, which is unacceptable.
  3391. + # Some rework will be needed to allow for fast_install
  3392. + # before this can be enabled.
  3393. + hardcode_into_libs=yes
  3394. +
  3395. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  3396. + # powerpc, because MkLinux only supported shared libraries with the
  3397. + # GNU dynamic linker. Since this was broken with cross compilers,
  3398. + # most powerpc-linux boxes support dynamic linking these days and
  3399. + # people can always --disable-shared, the test was removed, and we
  3400. + # assume the GNU/Linux dynamic linker is in use.
  3401. + dynamic_linker='GNU/Linux ld.so'
  3402. + ;;
  3403. +
  3404. +netbsd*)
  3405. + version_type=sunos
  3406. + need_lib_prefix=no
  3407. + need_version=no
  3408. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3409. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  3410. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3411. + dynamic_linker='NetBSD (a.out) ld.so'
  3412. + else
  3413. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  3414. + soname_spec='${libname}${release}.so$major'
  3415. + dynamic_linker='NetBSD ld.elf_so'
  3416. + fi
  3417. + shlibpath_var=LD_LIBRARY_PATH
  3418. + shlibpath_overrides_runpath=yes
  3419. + hardcode_into_libs=yes
  3420. + ;;
  3421. +
  3422. +newsos6)
  3423. + version_type=linux
  3424. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3425. + shlibpath_var=LD_LIBRARY_PATH
  3426. + shlibpath_overrides_runpath=yes
  3427. + ;;
  3428. +
  3429. +openbsd*)
  3430. + version_type=sunos
  3431. + need_lib_prefix=no
  3432. + need_version=no
  3433. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3434. + case "$host_os" in
  3435. + openbsd2.[[89]] | openbsd2.[[89]].*)
  3436. + shlibpath_overrides_runpath=no
  3437. + ;;
  3438. + *)
  3439. + shlibpath_overrides_runpath=yes
  3440. + ;;
  3441. + esac
  3442. + else
  3443. + shlibpath_overrides_runpath=yes
  3444. + fi
  3445. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  3446. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  3447. + shlibpath_var=LD_LIBRARY_PATH
  3448. + ;;
  3449. +
  3450. +os2*)
  3451. + libname_spec='$name'
  3452. + need_lib_prefix=no
  3453. + library_names_spec='$libname.dll $libname.a'
  3454. + dynamic_linker='OS/2 ld.exe'
  3455. + shlibpath_var=LIBPATH
  3456. + ;;
  3457. +
  3458. +osf3* | osf4* | osf5*)
  3459. + version_type=osf
  3460. + need_version=no
  3461. + need_lib_prefix=no
  3462. + soname_spec='${libname}${release}.so$major'
  3463. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3464. + shlibpath_var=LD_LIBRARY_PATH
  3465. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  3466. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  3467. + hardcode_into_libs=yes
  3468. + ;;
  3469. +
  3470. +sco3.2v5*)
  3471. + version_type=osf
  3472. + soname_spec='${libname}${release}.so$major'
  3473. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3474. + shlibpath_var=LD_LIBRARY_PATH
  3475. + ;;
  3476. +
  3477. +solaris*)
  3478. + version_type=linux
  3479. + need_lib_prefix=no
  3480. + need_version=no
  3481. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3482. + soname_spec='${libname}${release}.so$major'
  3483. + shlibpath_var=LD_LIBRARY_PATH
  3484. + shlibpath_overrides_runpath=yes
  3485. + hardcode_into_libs=yes
  3486. + # ldd complains unless libraries are executable
  3487. + postinstall_cmds='chmod +x $lib'
  3488. + ;;
  3489. +
  3490. +sunos4*)
  3491. + version_type=sunos
  3492. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  3493. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3494. + shlibpath_var=LD_LIBRARY_PATH
  3495. + shlibpath_overrides_runpath=yes
  3496. + if test "$with_gnu_ld" = yes; then
  3497. + need_lib_prefix=no
  3498. + fi
  3499. + need_version=yes
  3500. + ;;
  3501. +
  3502. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3503. + version_type=linux
  3504. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3505. + soname_spec='${libname}${release}.so$major'
  3506. + shlibpath_var=LD_LIBRARY_PATH
  3507. + case $host_vendor in
  3508. + sni)
  3509. + shlibpath_overrides_runpath=no
  3510. + need_lib_prefix=no
  3511. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  3512. + runpath_var=LD_RUN_PATH
  3513. + ;;
  3514. + siemens)
  3515. + need_lib_prefix=no
  3516. + ;;
  3517. + motorola)
  3518. + need_lib_prefix=no
  3519. + need_version=no
  3520. + shlibpath_overrides_runpath=no
  3521. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3522. + ;;
  3523. + esac
  3524. + ;;
  3525. +
  3526. +uts4*)
  3527. + version_type=linux
  3528. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3529. + soname_spec='${libname}${release}.so$major'
  3530. + shlibpath_var=LD_LIBRARY_PATH
  3531. + ;;
  3532. +
  3533. +dgux*)
  3534. + version_type=linux
  3535. + need_lib_prefix=no
  3536. + need_version=no
  3537. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  3538. + soname_spec='${libname}${release}.so$major'
  3539. + shlibpath_var=LD_LIBRARY_PATH
  3540. + ;;
  3541. +
  3542. +sysv4*MP*)
  3543. + if test -d /usr/nec ;then
  3544. + version_type=linux
  3545. + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  3546. + soname_spec='$libname.so.$major'
  3547. + shlibpath_var=LD_LIBRARY_PATH
  3548. + fi
  3549. + ;;
  3550. +
  3551. +*)
  3552. + dynamic_linker=no
  3553. + ;;
  3554. +esac
  3555. +AC_MSG_RESULT([$dynamic_linker])
  3556. +test "$dynamic_linker" = no && can_build_shared=no
  3557. +
  3558. +# Report the final consequences.
  3559. +AC_MSG_CHECKING([if libtool supports shared libraries])
  3560. +AC_MSG_RESULT([$can_build_shared])
  3561. +
  3562. +AC_MSG_CHECKING([whether to build shared libraries])
  3563. +test "$can_build_shared" = "no" && enable_shared=no
  3564. +
  3565. +# On AIX, shared libraries and static libraries use the same namespace, and
  3566. +# are all built from PIC.
  3567. +case "$host_os" in
  3568. +aix3*)
  3569. + test "$enable_shared" = yes && enable_static=no
  3570. + if test -n "$RANLIB"; then
  3571. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  3572. + postinstall_cmds='$RANLIB $lib'
  3573. + fi
  3574. + ;;
  3575. +
  3576. +aix4*)
  3577. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  3578. + test "$enable_shared" = yes && enable_static=no
  3579. + fi
  3580. + ;;
  3581. +esac
  3582. +AC_MSG_RESULT([$enable_shared])
  3583. +
  3584. +AC_MSG_CHECKING([whether to build static libraries])
  3585. +# Make sure either enable_shared or enable_static is yes.
  3586. +test "$enable_shared" = yes || enable_static=yes
  3587. +AC_MSG_RESULT([$enable_static])
  3588. +
  3589. +if test "$hardcode_action" = relink; then
  3590. + # Fast installation is not supported
  3591. + enable_fast_install=no
  3592. +elif test "$shlibpath_overrides_runpath" = yes ||
  3593. + test "$enable_shared" = no; then
  3594. + # Fast installation is not necessary
  3595. + enable_fast_install=needless
  3596. +fi
  3597. +
  3598. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  3599. +if test "$GCC" = yes; then
  3600. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  3601. +fi
  3602. +
  3603. +AC_LIBTOOL_DLOPEN_SELF
  3604. +
  3605. +if test "$enable_shared" = yes && test "$GCC" = yes; then
  3606. + case $archive_cmds in
  3607. + *'~'*)
  3608. + # FIXME: we may have to deal with multi-command sequences.
  3609. + ;;
  3610. + '$CC '*)
  3611. + # Test whether the compiler implicitly links with -lc since on some
  3612. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  3613. + # to ld, don't add -lc before -lgcc.
  3614. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  3615. + AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
  3616. + [$rm conftest*
  3617. + echo 'static int dummy;' > conftest.$ac_ext
  3618. +
  3619. + if AC_TRY_EVAL(ac_compile); then
  3620. + soname=conftest
  3621. + lib=conftest
  3622. + libobjs=conftest.$ac_objext
  3623. + deplibs=
  3624. + wl=$lt_cv_prog_cc_wl
  3625. + compiler_flags=-v
  3626. + linker_flags=-v
  3627. + verstring=
  3628. + output_objdir=.
  3629. + libname=conftest
  3630. + save_allow_undefined_flag=$allow_undefined_flag
  3631. + allow_undefined_flag=
  3632. + if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  3633. + then
  3634. + lt_cv_archive_cmds_need_lc=no
  3635. + else
  3636. + lt_cv_archive_cmds_need_lc=yes
  3637. + fi
  3638. + allow_undefined_flag=$save_allow_undefined_flag
  3639. + else
  3640. + cat conftest.err 1>&5
  3641. + fi])
  3642. + AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
  3643. + ;;
  3644. + esac
  3645. +fi
  3646. +need_lc=${lt_cv_archive_cmds_need_lc-yes}
  3647. +
  3648. +# The second clause should only fire when bootstrapping the
  3649. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  3650. +# with your package, and you will get complaints that there are
  3651. +# no rules to generate ltmain.sh.
  3652. +if test -f "$ltmain"; then
  3653. + :
  3654. +else
  3655. + # If there is no Makefile yet, we rely on a make rule to execute
  3656. + # `config.status --recheck' to rerun these tests and create the
  3657. + # libtool script then.
  3658. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  3659. + if test -f "$ltmain_in"; then
  3660. + test -f Makefile && make "$ltmain"
  3661. + fi
  3662. +fi
  3663. +
  3664. +if test -f "$ltmain"; then
  3665. + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  3666. + $rm -f "${ofile}T"
  3667. +
  3668. + echo creating $ofile
  3669. +
  3670. + # Now quote all the things that may contain metacharacters while being
  3671. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  3672. + # variables and quote the copies for generation of the libtool script.
  3673. + for var in echo old_CC old_CFLAGS SED \
  3674. + AR AR_FLAGS CC LD LN_S NM SHELL STRIP \
  3675. + reload_flag reload_cmds wl \
  3676. + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  3677. + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  3678. + library_names_spec soname_spec \
  3679. + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  3680. + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  3681. + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  3682. + old_striplib striplib file_magic_cmd export_symbols_cmds \
  3683. + deplibs_check_method allow_undefined_flag no_undefined_flag \
  3684. + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  3685. + global_symbol_to_c_name_address \
  3686. + hardcode_libdir_flag_spec hardcode_libdir_separator \
  3687. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  3688. + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  3689. +
  3690. + case $var in
  3691. + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  3692. + old_postinstall_cmds | old_postuninstall_cmds | \
  3693. + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  3694. + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  3695. + postinstall_cmds | postuninstall_cmds | \
  3696. + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  3697. + # Double-quote double-evaled strings.
  3698. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  3699. + ;;
  3700. + *)
  3701. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  3702. + ;;
  3703. + esac
  3704. + done
  3705. +
  3706. + cat <<__EOF__ > "${ofile}T"
  3707. +#! $SHELL
  3708. +
  3709. +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  3710. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  3711. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  3712. +#
  3713. +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
  3714. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  3715. +#
  3716. +# This program is free software; you can redistribute it and/or modify
  3717. +# it under the terms of the GNU General Public License as published by
  3718. +# the Free Software Foundation; either version 2 of the License, or
  3719. +# (at your option) any later version.
  3720. +#
  3721. +# This program is distributed in the hope that it will be useful, but
  3722. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  3723. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  3724. +# General Public License for more details.
  3725. +#
  3726. +# You should have received a copy of the GNU General Public License
  3727. +# along with this program; if not, write to the Free Software
  3728. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  3729. +#
  3730. +# As a special exception to the GNU General Public License, if you
  3731. +# distribute this file as part of a program that contains a
  3732. +# configuration script generated by Autoconf, you may include it under
  3733. +# the same distribution terms that you use for the rest of that program.
  3734. +
  3735. +# A sed that does not truncate output.
  3736. +SED=$lt_SED
  3737. +
  3738. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  3739. +Xsed="${SED} -e s/^X//"
  3740. +
  3741. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  3742. +# if CDPATH is set.
  3743. +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  3744. +
  3745. +# ### BEGIN LIBTOOL CONFIG
  3746. +
  3747. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  3748. +
  3749. +# Shell to use when invoking shell scripts.
  3750. +SHELL=$lt_SHELL
  3751. +
  3752. +# Whether or not to build shared libraries.
  3753. +build_libtool_libs=$enable_shared
  3754. +
  3755. +# Whether or not to build static libraries.
  3756. +build_old_libs=$enable_static
  3757. +
  3758. +# Whether or not to add -lc for building shared libraries.
  3759. +build_libtool_need_lc=$need_lc
  3760. +
  3761. +# Whether or not to optimize for fast installation.
  3762. +fast_install=$enable_fast_install
  3763. +
  3764. +# The host system.
  3765. +host_alias=$host_alias
  3766. +host=$host
  3767. +
  3768. +# An echo program that does not interpret backslashes.
  3769. +echo=$lt_echo
  3770. +
  3771. +# The archiver.
  3772. +AR=$lt_AR
  3773. +AR_FLAGS=$lt_AR_FLAGS
  3774. +
  3775. +# The default C compiler.
  3776. +CC=$lt_CC
  3777. +
  3778. +# Is the compiler the GNU C compiler?
  3779. +with_gcc=$GCC
  3780. +
  3781. +# The linker used to build libraries.
  3782. +LD=$lt_LD
  3783. +
  3784. +# Whether we need hard or soft links.
  3785. +LN_S=$lt_LN_S
  3786. +
  3787. +# A BSD-compatible nm program.
  3788. +NM=$lt_NM
  3789. +
  3790. +# A symbol stripping program
  3791. +STRIP=$lt_STRIP
  3792. +
  3793. +# Used to examine libraries when file_magic_cmd begins "file"
  3794. +MAGIC_CMD=$MAGIC_CMD
  3795. +
  3796. +# Used on cygwin: DLL creation program.
  3797. +DLLTOOL="$DLLTOOL"
  3798. +
  3799. +# Used on cygwin: object dumper.
  3800. +OBJDUMP="$OBJDUMP"
  3801. +
  3802. +# Used on cygwin: assembler.
  3803. +AS="$AS"
  3804. +
  3805. +# The name of the directory that contains temporary libtool files.
  3806. +objdir=$objdir
  3807. +
  3808. +# How to create reloadable object files.
  3809. +reload_flag=$lt_reload_flag
  3810. +reload_cmds=$lt_reload_cmds
  3811. +
  3812. +# How to pass a linker flag through the compiler.
  3813. +wl=$lt_wl
  3814. +
  3815. +# Object file suffix (normally "o").
  3816. +objext="$ac_objext"
  3817. +
  3818. +# Old archive suffix (normally "a").
  3819. +libext="$libext"
  3820. +
  3821. +# Executable file suffix (normally "").
  3822. +exeext="$exeext"
  3823. +
  3824. +# Additional compiler flags for building library objects.
  3825. +pic_flag=$lt_pic_flag
  3826. +pic_mode=$pic_mode
  3827. +
  3828. +# Does compiler simultaneously support -c and -o options?
  3829. +compiler_c_o=$lt_compiler_c_o
  3830. +
  3831. +# Can we write directly to a .lo ?
  3832. +compiler_o_lo=$lt_compiler_o_lo
  3833. +
  3834. +# Must we lock files when doing compilation ?
  3835. +need_locks=$lt_need_locks
  3836. +
  3837. +# Do we need the lib prefix for modules?
  3838. +need_lib_prefix=$need_lib_prefix
  3839. +
  3840. +# Do we need a version for libraries?
  3841. +need_version=$need_version
  3842. +
  3843. +# Whether dlopen is supported.
  3844. +dlopen_support=$enable_dlopen
  3845. +
  3846. +# Whether dlopen of programs is supported.
  3847. +dlopen_self=$enable_dlopen_self
  3848. +
  3849. +# Whether dlopen of statically linked programs is supported.
  3850. +dlopen_self_static=$enable_dlopen_self_static
  3851. +
  3852. +# Compiler flag to prevent dynamic linking.
  3853. +link_static_flag=$lt_link_static_flag
  3854. +
  3855. +# Compiler flag to turn off builtin functions.
  3856. +no_builtin_flag=$lt_no_builtin_flag
  3857. +
  3858. +# Compiler flag to allow reflexive dlopens.
  3859. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  3860. +
  3861. +# Compiler flag to generate shared objects directly from archives.
  3862. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  3863. +
  3864. +# Compiler flag to generate thread-safe objects.
  3865. +thread_safe_flag_spec=$lt_thread_safe_flag_spec
  3866. +
  3867. +# Library versioning type.
  3868. +version_type=$version_type
  3869. +
  3870. +# Format of library name prefix.
  3871. +libname_spec=$lt_libname_spec
  3872. +
  3873. +# List of archive names. First name is the real one, the rest are links.
  3874. +# The last name is the one that the linker finds with -lNAME.
  3875. +library_names_spec=$lt_library_names_spec
  3876. +
  3877. +# The coded name of the library, if different from the real name.
  3878. +soname_spec=$lt_soname_spec
  3879. +
  3880. +# Commands used to build and install an old-style archive.
  3881. +RANLIB=$lt_RANLIB
  3882. +old_archive_cmds=$lt_old_archive_cmds
  3883. +old_postinstall_cmds=$lt_old_postinstall_cmds
  3884. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  3885. +
  3886. +# Create an old-style archive from a shared archive.
  3887. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  3888. +
  3889. +# Create a temporary old-style archive to link instead of a shared archive.
  3890. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  3891. +
  3892. +# Commands used to build and install a shared archive.
  3893. +archive_cmds=$lt_archive_cmds
  3894. +archive_expsym_cmds=$lt_archive_expsym_cmds
  3895. +postinstall_cmds=$lt_postinstall_cmds
  3896. +postuninstall_cmds=$lt_postuninstall_cmds
  3897. +
  3898. +# Commands to strip libraries.
  3899. +old_striplib=$lt_old_striplib
  3900. +striplib=$lt_striplib
  3901. +
  3902. +# Method to check whether dependent libraries are shared objects.
  3903. +deplibs_check_method=$lt_deplibs_check_method
  3904. +
  3905. +# Command to use when deplibs_check_method == file_magic.
  3906. +file_magic_cmd=$lt_file_magic_cmd
  3907. +
  3908. +# Flag that allows shared libraries with undefined symbols to be built.
  3909. +allow_undefined_flag=$lt_allow_undefined_flag
  3910. +
  3911. +# Flag that forces no undefined symbols.
  3912. +no_undefined_flag=$lt_no_undefined_flag
  3913. +
  3914. +# Commands used to finish a libtool library installation in a directory.
  3915. +finish_cmds=$lt_finish_cmds
  3916. +
  3917. +# Same as above, but a single script fragment to be evaled but not shown.
  3918. +finish_eval=$lt_finish_eval
  3919. +
  3920. +# Take the output of nm and produce a listing of raw symbols and C names.
  3921. +global_symbol_pipe=$lt_global_symbol_pipe
  3922. +
  3923. +# Transform the output of nm in a proper C declaration
  3924. +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  3925. +
  3926. +# Transform the output of nm in a C name address pair
  3927. +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  3928. +
  3929. +# This is the shared library runtime path variable.
  3930. +runpath_var=$runpath_var
  3931. +
  3932. +# This is the shared library path variable.
  3933. +shlibpath_var=$shlibpath_var
  3934. +
  3935. +# Is shlibpath searched before the hard-coded library search path?
  3936. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  3937. +
  3938. +# How to hardcode a shared library path into an executable.
  3939. +hardcode_action=$hardcode_action
  3940. +
  3941. +# Whether we should hardcode library paths into libraries.
  3942. +hardcode_into_libs=$hardcode_into_libs
  3943. +
  3944. +# Flag to hardcode \$libdir into a binary during linking.
  3945. +# This must work even if \$libdir does not exist.
  3946. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  3947. +
  3948. +# Whether we need a single -rpath flag with a separated argument.
  3949. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  3950. +
  3951. +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  3952. +# resulting binary.
  3953. +hardcode_direct=$hardcode_direct
  3954. +
  3955. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  3956. +# resulting binary.
  3957. +hardcode_minus_L=$hardcode_minus_L
  3958. +
  3959. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  3960. +# the resulting binary.
  3961. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  3962. +
  3963. +# Variables whose values should be saved in libtool wrapper scripts and
  3964. +# restored at relink time.
  3965. +variables_saved_for_relink="$variables_saved_for_relink"
  3966. +
  3967. +# Whether libtool must link a program against all its dependency libraries.
  3968. +link_all_deplibs=$link_all_deplibs
  3969. +
  3970. +# Compile-time system search path for libraries
  3971. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  3972. +
  3973. +# Run-time system search path for libraries
  3974. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  3975. +
  3976. +# Fix the shell variable \$srcfile for the compiler.
  3977. +fix_srcfile_path="$fix_srcfile_path"
  3978. +
  3979. +# Set to yes if exported symbols are required.
  3980. +always_export_symbols=$always_export_symbols
  3981. +
  3982. +# The commands to list exported symbols.
  3983. +export_symbols_cmds=$lt_export_symbols_cmds
  3984. +
  3985. +# The commands to extract the exported symbol list from a shared archive.
  3986. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  3987. +
  3988. +# Symbols that should not be listed in the preloaded symbols.
  3989. +exclude_expsyms=$lt_exclude_expsyms
  3990. +
  3991. +# Symbols that must always be exported.
  3992. +include_expsyms=$lt_include_expsyms
  3993. +
  3994. +# ### END LIBTOOL CONFIG
  3995. +
  3996. +__EOF__
  3997. +
  3998. + case $host_os in
  3999. + aix3*)
  4000. + cat <<\EOF >> "${ofile}T"
  4001. +
  4002. +# AIX sometimes has problems with the GCC collect2 program. For some
  4003. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  4004. +# vanish in a puff of smoke.
  4005. +if test "X${COLLECT_NAMES+set}" != Xset; then
  4006. + COLLECT_NAMES=
  4007. + export COLLECT_NAMES
  4008. +fi
  4009. +EOF
  4010. + ;;
  4011. + esac
  4012. +
  4013. + case $host_os in
  4014. + cygwin* | mingw* | pw32* | os2*)
  4015. + cat <<'EOF' >> "${ofile}T"
  4016. + # This is a source program that is used to create dlls on Windows
  4017. + # Don't remove nor modify the starting and closing comments
  4018. +# /* ltdll.c starts here */
  4019. +# #define WIN32_LEAN_AND_MEAN
  4020. +# #include <windows.h>
  4021. +# #undef WIN32_LEAN_AND_MEAN
  4022. +# #include <stdio.h>
  4023. +#
  4024. +# #ifndef __CYGWIN__
  4025. +# # ifdef __CYGWIN32__
  4026. +# # define __CYGWIN__ __CYGWIN32__
  4027. +# # endif
  4028. +# #endif
  4029. +#
  4030. +# #ifdef __cplusplus
  4031. +# extern "C" {
  4032. +# #endif
  4033. +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  4034. +# #ifdef __cplusplus
  4035. +# }
  4036. +# #endif
  4037. +#
  4038. +# #ifdef __CYGWIN__
  4039. +# #include <cygwin/cygwin_dll.h>
  4040. +# DECLARE_CYGWIN_DLL( DllMain );
  4041. +# #endif
  4042. +# HINSTANCE __hDllInstance_base;
  4043. +#
  4044. +# BOOL APIENTRY
  4045. +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  4046. +# {
  4047. +# __hDllInstance_base = hInst;
  4048. +# return TRUE;
  4049. +# }
  4050. +# /* ltdll.c ends here */
  4051. + # This is a source program that is used to create import libraries
  4052. + # on Windows for dlls which lack them. Don't remove nor modify the
  4053. + # starting and closing comments
  4054. +# /* impgen.c starts here */
  4055. +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  4056. +#
  4057. +# This file is part of GNU libtool.
  4058. +#
  4059. +# This program is free software; you can redistribute it and/or modify
  4060. +# it under the terms of the GNU General Public License as published by
  4061. +# the Free Software Foundation; either version 2 of the License, or
  4062. +# (at your option) any later version.
  4063. +#
  4064. +# This program is distributed in the hope that it will be useful,
  4065. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  4066. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  4067. +# GNU General Public License for more details.
  4068. +#
  4069. +# You should have received a copy of the GNU General Public License
  4070. +# along with this program; if not, write to the Free Software
  4071. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  4072. +# */
  4073. +#
  4074. +# #include <stdio.h> /* for printf() */
  4075. +# #include <unistd.h> /* for open(), lseek(), read() */
  4076. +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  4077. +# #include <string.h> /* for strdup() */
  4078. +#
  4079. +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
  4080. +# #ifndef O_BINARY
  4081. +# #define O_BINARY 0
  4082. +# #endif
  4083. +#
  4084. +# static unsigned int
  4085. +# pe_get16 (fd, offset)
  4086. +# int fd;
  4087. +# int offset;
  4088. +# {
  4089. +# unsigned char b[2];
  4090. +# lseek (fd, offset, SEEK_SET);
  4091. +# read (fd, b, 2);
  4092. +# return b[0] + (b[1]<<8);
  4093. +# }
  4094. +#
  4095. +# static unsigned int
  4096. +# pe_get32 (fd, offset)
  4097. +# int fd;
  4098. +# int offset;
  4099. +# {
  4100. +# unsigned char b[4];
  4101. +# lseek (fd, offset, SEEK_SET);
  4102. +# read (fd, b, 4);
  4103. +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  4104. +# }
  4105. +#
  4106. +# static unsigned int
  4107. +# pe_as32 (ptr)
  4108. +# void *ptr;
  4109. +# {
  4110. +# unsigned char *b = ptr;
  4111. +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  4112. +# }
  4113. +#
  4114. +# int
  4115. +# main (argc, argv)
  4116. +# int argc;
  4117. +# char *argv[];
  4118. +# {
  4119. +# int dll;
  4120. +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  4121. +# unsigned long export_rva, export_size, nsections, secptr, expptr;
  4122. +# unsigned long name_rvas, nexp;
  4123. +# unsigned char *expdata, *erva;
  4124. +# char *filename, *dll_name;
  4125. +#
  4126. +# filename = argv[1];
  4127. +#
  4128. +# dll = open(filename, O_RDONLY|O_BINARY);
  4129. +# if (dll < 1)
  4130. +# return 1;
  4131. +#
  4132. +# dll_name = filename;
  4133. +#
  4134. +# for (i=0; filename[i]; i++)
  4135. +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  4136. +# dll_name = filename + i +1;
  4137. +#
  4138. +# pe_header_offset = pe_get32 (dll, 0x3c);
  4139. +# opthdr_ofs = pe_header_offset + 4 + 20;
  4140. +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
  4141. +#
  4142. +# if (num_entries < 1) /* no exports */
  4143. +# return 1;
  4144. +#
  4145. +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
  4146. +# export_size = pe_get32 (dll, opthdr_ofs + 100);
  4147. +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  4148. +# secptr = (pe_header_offset + 4 + 20 +
  4149. +# pe_get16 (dll, pe_header_offset + 4 + 16));
  4150. +#
  4151. +# expptr = 0;
  4152. +# for (i = 0; i < nsections; i++)
  4153. +# {
  4154. +# char sname[8];
  4155. +# unsigned long secptr1 = secptr + 40 * i;
  4156. +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  4157. +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  4158. +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  4159. +# lseek(dll, secptr1, SEEK_SET);
  4160. +# read(dll, sname, 8);
  4161. +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
  4162. +# {
  4163. +# expptr = fptr + (export_rva - vaddr);
  4164. +# if (export_rva + export_size > vaddr + vsize)
  4165. +# export_size = vsize - (export_rva - vaddr);
  4166. +# break;
  4167. +# }
  4168. +# }
  4169. +#
  4170. +# expdata = (unsigned char*)malloc(export_size);
  4171. +# lseek (dll, expptr, SEEK_SET);
  4172. +# read (dll, expdata, export_size);
  4173. +# erva = expdata - export_rva;
  4174. +#
  4175. +# nexp = pe_as32 (expdata+24);
  4176. +# name_rvas = pe_as32 (expdata+32);
  4177. +#
  4178. +# printf ("EXPORTS\n");
  4179. +# for (i = 0; i<nexp; i++)
  4180. +# {
  4181. +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  4182. +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  4183. +# }
  4184. +#
  4185. +# return 0;
  4186. +# }
  4187. +# /* impgen.c ends here */
  4188. +
  4189. +EOF
  4190. + ;;
  4191. + esac
  4192. +
  4193. + # We use sed instead of cat because bash on DJGPP gets confused if
  4194. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  4195. + # text mode, it properly converts lines to CR/LF. This bash problem
  4196. + # is reportedly fixed, but why not run on old versions too?
  4197. + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  4198. +
  4199. + mv -f "${ofile}T" "$ofile" || \
  4200. + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  4201. + chmod +x "$ofile"
  4202. +fi
  4203. +
  4204. +])# _LT_AC_LTCONFIG_HACK
  4205. +
  4206. +# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
  4207. +AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
  4208. +
  4209. +# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
  4210. +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
  4211. +
  4212. +# AC_ENABLE_SHARED - implement the --enable-shared flag
  4213. +# Usage: AC_ENABLE_SHARED[(DEFAULT)]
  4214. +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  4215. +# `yes'.
  4216. +AC_DEFUN([AC_ENABLE_SHARED],
  4217. +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  4218. +AC_ARG_ENABLE(shared,
  4219. +changequote(<<, >>)dnl
  4220. +<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
  4221. +changequote([, ])dnl
  4222. +[p=${PACKAGE-default}
  4223. +case $enableval in
  4224. +yes) enable_shared=yes ;;
  4225. +no) enable_shared=no ;;
  4226. +*)
  4227. + enable_shared=no
  4228. + # Look at the argument we got. We use all the common list separators.
  4229. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  4230. + for pkg in $enableval; do
  4231. + if test "X$pkg" = "X$p"; then
  4232. + enable_shared=yes
  4233. + fi
  4234. + done
  4235. + IFS="$ac_save_ifs"
  4236. + ;;
  4237. +esac],
  4238. +enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
  4239. +])
  4240. +
  4241. +# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
  4242. +AC_DEFUN([AC_DISABLE_SHARED],
  4243. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4244. +AC_ENABLE_SHARED(no)])
  4245. +
  4246. +# AC_ENABLE_STATIC - implement the --enable-static flag
  4247. +# Usage: AC_ENABLE_STATIC[(DEFAULT)]
  4248. +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  4249. +# `yes'.
  4250. +AC_DEFUN([AC_ENABLE_STATIC],
  4251. +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  4252. +AC_ARG_ENABLE(static,
  4253. +changequote(<<, >>)dnl
  4254. +<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
  4255. +changequote([, ])dnl
  4256. +[p=${PACKAGE-default}
  4257. +case $enableval in
  4258. +yes) enable_static=yes ;;
  4259. +no) enable_static=no ;;
  4260. +*)
  4261. + enable_static=no
  4262. + # Look at the argument we got. We use all the common list separators.
  4263. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  4264. + for pkg in $enableval; do
  4265. + if test "X$pkg" = "X$p"; then
  4266. + enable_static=yes
  4267. + fi
  4268. + done
  4269. + IFS="$ac_save_ifs"
  4270. + ;;
  4271. +esac],
  4272. +enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
  4273. +])
  4274. +
  4275. +# AC_DISABLE_STATIC - set the default static flag to --disable-static
  4276. +AC_DEFUN([AC_DISABLE_STATIC],
  4277. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4278. +AC_ENABLE_STATIC(no)])
  4279. +
  4280. +
  4281. +# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
  4282. +# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
  4283. +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  4284. +# `yes'.
  4285. +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  4286. +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  4287. +AC_ARG_ENABLE(fast-install,
  4288. +changequote(<<, >>)dnl
  4289. +<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
  4290. +changequote([, ])dnl
  4291. +[p=${PACKAGE-default}
  4292. +case $enableval in
  4293. +yes) enable_fast_install=yes ;;
  4294. +no) enable_fast_install=no ;;
  4295. +*)
  4296. + enable_fast_install=no
  4297. + # Look at the argument we got. We use all the common list separators.
  4298. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  4299. + for pkg in $enableval; do
  4300. + if test "X$pkg" = "X$p"; then
  4301. + enable_fast_install=yes
  4302. + fi
  4303. + done
  4304. + IFS="$ac_save_ifs"
  4305. + ;;
  4306. +esac],
  4307. +enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
  4308. +])
  4309. +
  4310. +# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
  4311. +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  4312. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4313. +AC_ENABLE_FAST_INSTALL(no)])
  4314. +
  4315. +# AC_LIBTOOL_PICMODE - implement the --with-pic flag
  4316. +# Usage: AC_LIBTOOL_PICMODE[(MODE)]
  4317. +# Where MODE is either `yes' or `no'. If omitted, it defaults to
  4318. +# `both'.
  4319. +AC_DEFUN([AC_LIBTOOL_PICMODE],
  4320. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4321. +pic_mode=ifelse($#,1,$1,default)])
  4322. +
  4323. +
  4324. +# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
  4325. +AC_DEFUN([AC_PATH_TOOL_PREFIX],
  4326. +[AC_MSG_CHECKING([for $1])
  4327. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  4328. +[case $MAGIC_CMD in
  4329. + /*)
  4330. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4331. + ;;
  4332. + ?:/*)
  4333. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  4334. + ;;
  4335. + *)
  4336. + ac_save_MAGIC_CMD="$MAGIC_CMD"
  4337. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  4338. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  4339. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  4340. +dnl not every word. This closes a longstanding sh security hole.
  4341. + ac_dummy="ifelse([$2], , $PATH, [$2])"
  4342. + for ac_dir in $ac_dummy; do
  4343. + test -z "$ac_dir" && ac_dir=.
  4344. + if test -f $ac_dir/$1; then
  4345. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  4346. + if test -n "$file_magic_test_file"; then
  4347. + case $deplibs_check_method in
  4348. + "file_magic "*)
  4349. + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  4350. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4351. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4352. + egrep "$file_magic_regex" > /dev/null; then
  4353. + :
  4354. + else
  4355. + cat <<EOF 1>&2
  4356. +
  4357. +*** Warning: the command libtool uses to detect shared libraries,
  4358. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  4359. +*** The result is that libtool may fail to recognize shared libraries
  4360. +*** as such. This will affect the creation of libtool libraries that
  4361. +*** depend on shared libraries, but programs linked with such libtool
  4362. +*** libraries will work regardless of this problem. Nevertheless, you
  4363. +*** may want to report the problem to your system manager and/or to
  4364. +*** bug-libtool@gnu.org
  4365. +
  4366. +EOF
  4367. + fi ;;
  4368. + esac
  4369. + fi
  4370. + break
  4371. + fi
  4372. + done
  4373. + IFS="$ac_save_ifs"
  4374. + MAGIC_CMD="$ac_save_MAGIC_CMD"
  4375. + ;;
  4376. +esac])
  4377. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4378. +if test -n "$MAGIC_CMD"; then
  4379. + AC_MSG_RESULT($MAGIC_CMD)
  4380. +else
  4381. + AC_MSG_RESULT(no)
  4382. +fi
  4383. +])
  4384. +
  4385. +
  4386. +# AC_PATH_MAGIC - find a file program which can recognise a shared library
  4387. +AC_DEFUN([AC_PATH_MAGIC],
  4388. +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
  4389. +AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
  4390. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  4391. + if test -n "$ac_tool_prefix"; then
  4392. + AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
  4393. + else
  4394. + MAGIC_CMD=:
  4395. + fi
  4396. +fi
  4397. +])
  4398. +
  4399. +
  4400. +# AC_PROG_LD - find the path to the GNU or non-GNU linker
  4401. +AC_DEFUN([AC_PROG_LD],
  4402. +[AC_ARG_WITH(gnu-ld,
  4403. +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  4404. +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  4405. +AC_REQUIRE([AC_PROG_CC])dnl
  4406. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4407. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  4408. +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  4409. +ac_prog=ld
  4410. +if test "$GCC" = yes; then
  4411. + # Check if gcc -print-prog-name=ld gives a path.
  4412. + AC_MSG_CHECKING([for ld used by GCC])
  4413. + case $host in
  4414. + *-*-mingw*)
  4415. + # gcc leaves a trailing carriage return which upsets mingw
  4416. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4417. + *)
  4418. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4419. + esac
  4420. + case $ac_prog in
  4421. + # Accept absolute paths.
  4422. + [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
  4423. + re_direlt='/[[^/]][[^/]]*/\.\./'
  4424. + # Canonicalize the path of ld
  4425. + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  4426. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  4427. + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  4428. + done
  4429. + test -z "$LD" && LD="$ac_prog"
  4430. + ;;
  4431. + "")
  4432. + # If it fails, then pretend we aren't using GCC.
  4433. + ac_prog=ld
  4434. + ;;
  4435. + *)
  4436. + # If it is relative, then search for the first ld in PATH.
  4437. + with_gnu_ld=unknown
  4438. + ;;
  4439. + esac
  4440. +elif test "$with_gnu_ld" = yes; then
  4441. + AC_MSG_CHECKING([for GNU ld])
  4442. +else
  4443. + AC_MSG_CHECKING([for non-GNU ld])
  4444. +fi
  4445. +AC_CACHE_VAL(lt_cv_path_LD,
  4446. +[if test -z "$LD"; then
  4447. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4448. + for ac_dir in $PATH; do
  4449. + test -z "$ac_dir" && ac_dir=.
  4450. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4451. + lt_cv_path_LD="$ac_dir/$ac_prog"
  4452. + # Check to see if the program is GNU ld. I'd rather use --version,
  4453. + # but apparently some GNU ld's only accept -v.
  4454. + # Break only if it was the GNU/non-GNU ld that we prefer.
  4455. + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  4456. + test "$with_gnu_ld" != no && break
  4457. + else
  4458. + test "$with_gnu_ld" != yes && break
  4459. + fi
  4460. + fi
  4461. + done
  4462. + IFS="$ac_save_ifs"
  4463. +else
  4464. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4465. +fi])
  4466. +LD="$lt_cv_path_LD"
  4467. +if test -n "$LD"; then
  4468. + AC_MSG_RESULT($LD)
  4469. +else
  4470. + AC_MSG_RESULT(no)
  4471. +fi
  4472. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  4473. +AC_PROG_LD_GNU
  4474. +])
  4475. +
  4476. +# AC_PROG_LD_GNU -
  4477. +AC_DEFUN([AC_PROG_LD_GNU],
  4478. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  4479. +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  4480. +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  4481. + lt_cv_prog_gnu_ld=yes
  4482. +else
  4483. + lt_cv_prog_gnu_ld=no
  4484. +fi])
  4485. +with_gnu_ld=$lt_cv_prog_gnu_ld
  4486. +])
  4487. +
  4488. +# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
  4489. +# -- PORTME Some linkers may need a different reload flag.
  4490. +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  4491. +[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
  4492. +[lt_cv_ld_reload_flag='-r'])
  4493. +reload_flag=$lt_cv_ld_reload_flag
  4494. +test -n "$reload_flag" && reload_flag=" $reload_flag"
  4495. +])
  4496. +
  4497. +# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
  4498. +# -- PORTME fill in with the dynamic library characteristics
  4499. +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  4500. +[AC_CACHE_CHECK([how to recognise dependent libraries],
  4501. +lt_cv_deplibs_check_method,
  4502. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  4503. +lt_cv_file_magic_test_file=
  4504. +lt_cv_deplibs_check_method='unknown'
  4505. +# Need to set the preceding variable on all platforms that support
  4506. +# interlibrary dependencies.
  4507. +# 'none' -- dependencies not supported.
  4508. +# `unknown' -- same as none, but documents that we really don't know.
  4509. +# 'pass_all' -- all dependencies passed with no checks.
  4510. +# 'test_compile' -- check by making test program.
  4511. +# 'file_magic [[regex]]' -- check by looking for files in library path
  4512. +# which responds to the $file_magic_cmd with a given egrep regex.
  4513. +# If you have `file' or equivalent on your system and you're not sure
  4514. +# whether `pass_all' will *always* work, you probably want this one.
  4515. +
  4516. +case $host_os in
  4517. +aix4* | aix5*)
  4518. + lt_cv_deplibs_check_method=pass_all
  4519. + ;;
  4520. +
  4521. +beos*)
  4522. + lt_cv_deplibs_check_method=pass_all
  4523. + ;;
  4524. +
  4525. +bsdi4*)
  4526. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  4527. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  4528. + lt_cv_file_magic_test_file=/shlib/libc.so
  4529. + ;;
  4530. +
  4531. +cygwin* | mingw* | pw32*)
  4532. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4533. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  4534. + ;;
  4535. +
  4536. +darwin* | rhapsody*)
  4537. + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  4538. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  4539. + case "$host_os" in
  4540. + rhapsody* | darwin1.[[012]])
  4541. + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  4542. + ;;
  4543. + *) # Darwin 1.3 on
  4544. + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  4545. + ;;
  4546. + esac
  4547. + ;;
  4548. +
  4549. +freebsd*)
  4550. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4551. + case $host_cpu in
  4552. + i*86 )
  4553. + # Not sure whether the presence of OpenBSD here was a mistake.
  4554. + # Let's accept both of them until this is cleared up.
  4555. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  4556. + lt_cv_file_magic_cmd=/usr/bin/file
  4557. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4558. + ;;
  4559. + esac
  4560. + else
  4561. + lt_cv_deplibs_check_method=pass_all
  4562. + fi
  4563. + ;;
  4564. +
  4565. +gnu*)
  4566. + lt_cv_deplibs_check_method=pass_all
  4567. + ;;
  4568. +
  4569. +hpux10.20*|hpux11*)
  4570. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  4571. + lt_cv_file_magic_cmd=/usr/bin/file
  4572. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4573. + ;;
  4574. +
  4575. +irix5* | irix6* | nonstopux*)
  4576. + case $LD in
  4577. + *-32|*"-32 ") libmagic=32-bit;;
  4578. + *-n32|*"-n32 ") libmagic=N32;;
  4579. + *-64|*"-64 ") libmagic=64-bit;;
  4580. + *) libmagic=never-match;;
  4581. + esac
  4582. + lt_cv_deplibs_check_method=pass_all
  4583. + ;;
  4584. +
  4585. +# This must be Linux ELF.
  4586. +linux-gnu*)
  4587. + lt_cv_deplibs_check_method=pass_all
  4588. + ;;
  4589. +
  4590. +netbsd*)
  4591. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4592. + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
  4593. + else
  4594. + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
  4595. + fi
  4596. + ;;
  4597. +
  4598. +newos6*)
  4599. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  4600. + lt_cv_file_magic_cmd=/usr/bin/file
  4601. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4602. + ;;
  4603. +
  4604. +openbsd*)
  4605. + lt_cv_file_magic_cmd=/usr/bin/file
  4606. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4607. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4608. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  4609. + else
  4610. + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  4611. + fi
  4612. + ;;
  4613. +
  4614. +osf3* | osf4* | osf5*)
  4615. + lt_cv_deplibs_check_method=pass_all
  4616. + ;;
  4617. +
  4618. +sco3.2v5*)
  4619. + lt_cv_deplibs_check_method=pass_all
  4620. + ;;
  4621. +
  4622. +solaris*)
  4623. + lt_cv_deplibs_check_method=pass_all
  4624. + ;;
  4625. +
  4626. +sysv5uw[[78]]* | sysv4*uw2*)
  4627. + lt_cv_deplibs_check_method=pass_all
  4628. + ;;
  4629. +
  4630. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4631. + case $host_vendor in
  4632. + motorola)
  4633. + 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]]'
  4634. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4635. + ;;
  4636. + ncr)
  4637. + lt_cv_deplibs_check_method=pass_all
  4638. + ;;
  4639. + sequent)
  4640. + lt_cv_file_magic_cmd='/bin/file'
  4641. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  4642. + ;;
  4643. + sni)
  4644. + lt_cv_file_magic_cmd='/bin/file'
  4645. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  4646. + lt_cv_file_magic_test_file=/lib/libc.so
  4647. + ;;
  4648. + siemens)
  4649. + lt_cv_deplibs_check_method=pass_all
  4650. + ;;
  4651. + esac
  4652. + ;;
  4653. +esac
  4654. +])
  4655. +file_magic_cmd=$lt_cv_file_magic_cmd
  4656. +deplibs_check_method=$lt_cv_deplibs_check_method
  4657. +])
  4658. +
  4659. +
  4660. +# AC_PROG_NM - find the path to a BSD-compatible name lister
  4661. +AC_DEFUN([AC_PROG_NM],
  4662. +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  4663. +AC_MSG_CHECKING([for BSD-compatible nm])
  4664. +AC_CACHE_VAL(lt_cv_path_NM,
  4665. +[if test -n "$NM"; then
  4666. + # Let the user override the test.
  4667. + lt_cv_path_NM="$NM"
  4668. +else
  4669. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4670. + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4671. + test -z "$ac_dir" && ac_dir=.
  4672. + tmp_nm=$ac_dir/${ac_tool_prefix}nm
  4673. + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  4674. + # Check to see if the nm accepts a BSD-compat flag.
  4675. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4676. + # nm: unknown option "B" ignored
  4677. + # Tru64's nm complains that /dev/null is an invalid object file
  4678. + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  4679. + lt_cv_path_NM="$tmp_nm -B"
  4680. + break
  4681. + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  4682. + lt_cv_path_NM="$tmp_nm -p"
  4683. + break
  4684. + else
  4685. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4686. + continue # so that we can try to find one that supports BSD flags
  4687. + fi
  4688. + fi
  4689. + done
  4690. + IFS="$ac_save_ifs"
  4691. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4692. +fi])
  4693. +NM="$lt_cv_path_NM"
  4694. +AC_MSG_RESULT([$NM])
  4695. +])
  4696. +
  4697. +# AC_CHECK_LIBM - check for math library
  4698. +AC_DEFUN([AC_CHECK_LIBM],
  4699. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4700. +LIBM=
  4701. +case $host in
  4702. +*-*-beos* | *-*-cygwin* | *-*-pw32*)
  4703. + # These system don't have libm
  4704. + ;;
  4705. +*-ncr-sysv4.3*)
  4706. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  4707. + AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
  4708. + ;;
  4709. +*)
  4710. + AC_CHECK_LIB(m, main, LIBM="-lm")
  4711. + ;;
  4712. +esac
  4713. +])
  4714. +
  4715. +# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
  4716. +# the libltdl convenience library and LTDLINCL to the include flags for
  4717. +# the libltdl header and adds --enable-ltdl-convenience to the
  4718. +# configure arguments. Note that LIBLTDL and LTDLINCL are not
  4719. +# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
  4720. +# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
  4721. +# with '${top_builddir}/' and LTDLINCL will be prefixed with
  4722. +# '${top_srcdir}/' (note the single quotes!). If your package is not
  4723. +# flat and you're not using automake, define top_builddir and
  4724. +# top_srcdir appropriately in the Makefiles.
  4725. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4726. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4727. + case $enable_ltdl_convenience in
  4728. + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4729. + "") enable_ltdl_convenience=yes
  4730. + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4731. + esac
  4732. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4733. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4734. + # For backwards non-gettext consistent compatibility...
  4735. + INCLTDL="$LTDLINCL"
  4736. +])
  4737. +
  4738. +# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
  4739. +# the libltdl installable library and LTDLINCL to the include flags for
  4740. +# the libltdl header and adds --enable-ltdl-install to the configure
  4741. +# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
  4742. +# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
  4743. +# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
  4744. +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
  4745. +# with '${top_srcdir}/' (note the single quotes!). If your package is
  4746. +# not flat and you're not using automake, define top_builddir and
  4747. +# top_srcdir appropriately in the Makefiles.
  4748. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4749. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4750. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4751. + AC_CHECK_LIB(ltdl, main,
  4752. + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4753. + [if test x"$enable_ltdl_install" = xno; then
  4754. + AC_MSG_WARN([libltdl not installed, but installation disabled])
  4755. + else
  4756. + enable_ltdl_install=yes
  4757. + fi
  4758. + ])
  4759. + if test x"$enable_ltdl_install" = x"yes"; then
  4760. + ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4761. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4762. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4763. + else
  4764. + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4765. + LIBLTDL="-lltdl"
  4766. + LTDLINCL=
  4767. + fi
  4768. + # For backwards non-gettext consistent compatibility...
  4769. + INCLTDL="$LTDLINCL"
  4770. +])
  4771. +
  4772. +# old names
  4773. +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  4774. +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  4775. +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  4776. +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  4777. +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  4778. +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  4779. +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  4780. +
  4781. +# This is just to silence aclocal about the macro not being used
  4782. +ifelse([AC_DISABLE_FAST_INSTALL])
  4783. +
  4784. +# NOTE: This macro has been submitted for inclusion into #
  4785. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  4786. +# a released version of Autoconf we should remove this #
  4787. +# macro and use it instead. #
  4788. +# LT_AC_PROG_SED
  4789. +# --------------
  4790. +# Check for a fully-functional sed program, that truncates
  4791. +# as few characters as possible. Prefer GNU sed if found.
  4792. +AC_DEFUN([LT_AC_PROG_SED],
  4793. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  4794. +AC_CACHE_VAL(lt_cv_path_SED,
  4795. +[# Loop through the user's path and test for sed and gsed.
  4796. +# Then use that list of sed's as ones to test for truncation.
  4797. +as_executable_p="test -f"
  4798. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4799. +for as_dir in $PATH
  4800. +do
  4801. + IFS=$as_save_IFS
  4802. + test -z "$as_dir" && as_dir=.
  4803. + for ac_prog in sed gsed; do
  4804. + for ac_exec_ext in '' $ac_executable_extensions; do
  4805. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  4806. + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  4807. + fi
  4808. + done
  4809. + done
  4810. +done
  4811. +
  4812. + # Create a temporary directory, and hook for its removal unless debugging.
  4813. +$debug ||
  4814. +{
  4815. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  4816. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  4817. +}
  4818. +
  4819. +# Create a (secure) tmp directory for tmp files.
  4820. +: ${TMPDIR=/tmp}
  4821. +{
  4822. + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  4823. + test -n "$tmp" && test -d "$tmp"
  4824. +} ||
  4825. +{
  4826. + tmp=$TMPDIR/sed$$-$RANDOM
  4827. + (umask 077 && mkdir $tmp)
  4828. +} ||
  4829. +{
  4830. + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  4831. + { (exit 1); exit 1; }
  4832. +}
  4833. + _max=0
  4834. + _count=0
  4835. + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  4836. + # along with /bin/sed that truncates output.
  4837. + for _sed in $_sed_list /usr/xpg4/bin/sed; do
  4838. + test ! -f ${_sed} && break
  4839. + cat /dev/null > "$tmp/sed.in"
  4840. + _count=0
  4841. + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  4842. + # Check for GNU sed and select it if it is found.
  4843. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  4844. + lt_cv_path_SED=${_sed}
  4845. + break
  4846. + fi
  4847. + while true; do
  4848. + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  4849. + mv "$tmp/sed.tmp" "$tmp/sed.in"
  4850. + cp "$tmp/sed.in" "$tmp/sed.nl"
  4851. + echo >>"$tmp/sed.nl"
  4852. + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  4853. + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  4854. + # 40000 chars as input seems more than enough
  4855. + test $_count -gt 10 && break
  4856. + _count=`expr $_count + 1`
  4857. + if test $_count -gt $_max; then
  4858. + _max=$_count
  4859. + lt_cv_path_SED=$_sed
  4860. + fi
  4861. + done
  4862. + done
  4863. + rm -rf "$tmp"
  4864. +])
  4865. +if test "X$SED" != "X"; then
  4866. + lt_cv_path_SED=$SED
  4867. +else
  4868. + SED=$lt_cv_path_SED
  4869. +fi
  4870. +AC_MSG_RESULT([$SED])
  4871. +])
  4872. +
  4873. +# -*- Autoconf -*-
  4874. +# Copyright (C) 2002, 2003 Free Software Foundation, Inc.
  4875. +# Generated from amversion.in; do not edit by hand.
  4876. +
  4877. +# This program is free software; you can redistribute it and/or modify
  4878. +# it under the terms of the GNU General Public License as published by
  4879. +# the Free Software Foundation; either version 2, or (at your option)
  4880. +# any later version.
  4881. +
  4882. +# This program is distributed in the hope that it will be useful,
  4883. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  4884. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  4885. +# GNU General Public License for more details.
  4886. +
  4887. +# You should have received a copy of the GNU General Public License
  4888. +# along with this program; if not, write to the Free Software
  4889. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  4890. +
  4891. +# AM_AUTOMAKE_VERSION(VERSION)
  4892. +# ----------------------------
  4893. +# Automake X.Y traces this macro to ensure aclocal.m4 has been
  4894. +# generated from the m4 files accompanying Automake X.Y.
  4895. +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.8"])
  4896. +
  4897. +# AM_SET_CURRENT_AUTOMAKE_VERSION
  4898. +# -------------------------------
  4899. +# Call AM_AUTOMAKE_VERSION so it can be traced.
  4900. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  4901. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  4902. + [AM_AUTOMAKE_VERSION([1.8.5])])
  4903. +
  4904. +# AM_AUX_DIR_EXPAND
  4905. +
  4906. +# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  4907. +
  4908. +# This program is free software; you can redistribute it and/or modify
  4909. +# it under the terms of the GNU General Public License as published by
  4910. +# the Free Software Foundation; either version 2, or (at your option)
  4911. +# any later version.
  4912. +
  4913. +# This program is distributed in the hope that it will be useful,
  4914. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  4915. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  4916. +# GNU General Public License for more details.
  4917. +
  4918. +# You should have received a copy of the GNU General Public License
  4919. +# along with this program; if not, write to the Free Software
  4920. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  4921. +# 02111-1307, USA.
  4922. +
  4923. +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
  4924. +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
  4925. +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
  4926. +#
  4927. +# Of course, Automake must honor this variable whenever it calls a
  4928. +# tool from the auxiliary directory. The problem is that $srcdir (and
  4929. +# therefore $ac_aux_dir as well) can be either absolute or relative,
  4930. +# depending on how configure is run. This is pretty annoying, since
  4931. +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
  4932. +# source directory, any form will work fine, but in subdirectories a
  4933. +# relative path needs to be adjusted first.
  4934. +#
  4935. +# $ac_aux_dir/missing
  4936. +# fails when called from a subdirectory if $ac_aux_dir is relative
  4937. +# $top_srcdir/$ac_aux_dir/missing
  4938. +# fails if $ac_aux_dir is absolute,
  4939. +# fails when called from a subdirectory in a VPATH build with
  4940. +# a relative $ac_aux_dir
  4941. +#
  4942. +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
  4943. +# are both prefixed by $srcdir. In an in-source build this is usually
  4944. +# harmless because $srcdir is `.', but things will broke when you
  4945. +# start a VPATH build or use an absolute $srcdir.
  4946. +#
  4947. +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
  4948. +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
  4949. +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
  4950. +# and then we would define $MISSING as
  4951. +# MISSING="\${SHELL} $am_aux_dir/missing"
  4952. +# This will work as long as MISSING is not called from configure, because
  4953. +# unfortunately $(top_srcdir) has no meaning in configure.
  4954. +# However there are other variables, like CC, which are often used in
  4955. +# configure, and could therefore not use this "fixed" $ac_aux_dir.
  4956. +#
  4957. +# Another solution, used here, is to always expand $ac_aux_dir to an
  4958. +# absolute PATH. The drawback is that using absolute paths prevent a
  4959. +# configured tree to be moved without reconfiguration.
  4960. +
  4961. +AC_DEFUN([AM_AUX_DIR_EXPAND],
  4962. +[dnl Rely on autoconf to set up CDPATH properly.
  4963. +AC_PREREQ([2.50])dnl
  4964. +# expand $ac_aux_dir to an absolute path
  4965. +am_aux_dir=`cd $ac_aux_dir && pwd`
  4966. +])
  4967. +
  4968. +# AM_CONDITIONAL -*- Autoconf -*-
  4969. +
  4970. +# Copyright (C) 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  4971. +
  4972. +# This program is free software; you can redistribute it and/or modify
  4973. +# it under the terms of the GNU General Public License as published by
  4974. +# the Free Software Foundation; either version 2, or (at your option)
  4975. +# any later version.
  4976. +
  4977. +# This program is distributed in the hope that it will be useful,
  4978. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  4979. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  4980. +# GNU General Public License for more details.
  4981. +
  4982. +# You should have received a copy of the GNU General Public License
  4983. +# along with this program; if not, write to the Free Software
  4984. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  4985. +# 02111-1307, USA.
  4986. +
  4987. +# serial 6
  4988. +
  4989. +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
  4990. +# -------------------------------------
  4991. +# Define a conditional.
  4992. +AC_DEFUN([AM_CONDITIONAL],
  4993. +[AC_PREREQ(2.52)dnl
  4994. + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  4995. + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  4996. +AC_SUBST([$1_TRUE])
  4997. +AC_SUBST([$1_FALSE])
  4998. +if $2; then
  4999. + $1_TRUE=
  5000. + $1_FALSE='#'
  5001. +else
  5002. + $1_TRUE='#'
  5003. + $1_FALSE=
  5004. +fi
  5005. +AC_CONFIG_COMMANDS_PRE(
  5006. +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
  5007. + AC_MSG_ERROR([conditional "$1" was never defined.
  5008. +Usually this means the macro was only invoked conditionally.])
  5009. +fi])])
  5010. +
  5011. +# serial 7 -*- Autoconf -*-
  5012. +
  5013. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004
  5014. +# Free Software Foundation, Inc.
  5015. +
  5016. +# This program is free software; you can redistribute it and/or modify
  5017. +# it under the terms of the GNU General Public License as published by
  5018. +# the Free Software Foundation; either version 2, or (at your option)
  5019. +# any later version.
  5020. +
  5021. +# This program is distributed in the hope that it will be useful,
  5022. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  5023. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5024. +# GNU General Public License for more details.
  5025. +
  5026. +# You should have received a copy of the GNU General Public License
  5027. +# along with this program; if not, write to the Free Software
  5028. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5029. +# 02111-1307, USA.
  5030. +
  5031. +
  5032. +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  5033. +# written in clear, in which case automake, when reading aclocal.m4,
  5034. +# will think it sees a *use*, and therefore will trigger all it's
  5035. +# C support machinery. Also note that it means that autoscan, seeing
  5036. +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
  5037. +
  5038. +
  5039. +
  5040. +# _AM_DEPENDENCIES(NAME)
  5041. +# ----------------------
  5042. +# See how the compiler implements dependency checking.
  5043. +# NAME is "CC", "CXX", "GCJ", or "OBJC".
  5044. +# We try a few techniques and use that to set a single cache variable.
  5045. +#
  5046. +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
  5047. +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
  5048. +# dependency, and given that the user is not expected to run this macro,
  5049. +# just rely on AC_PROG_CC.
  5050. +AC_DEFUN([_AM_DEPENDENCIES],
  5051. +[AC_REQUIRE([AM_SET_DEPDIR])dnl
  5052. +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
  5053. +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
  5054. +AC_REQUIRE([AM_DEP_TRACK])dnl
  5055. +
  5056. +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  5057. + [$1], CXX, [depcc="$CXX" am_compiler_list=],
  5058. + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  5059. + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  5060. + [depcc="$$1" am_compiler_list=])
  5061. +
  5062. +AC_CACHE_CHECK([dependency style of $depcc],
  5063. + [am_cv_$1_dependencies_compiler_type],
  5064. +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  5065. + # We make a subdir and do the tests there. Otherwise we can end up
  5066. + # making bogus files that we don't know about and never remove. For
  5067. + # instance it was reported that on HP-UX the gcc test will end up
  5068. + # making a dummy file named `D' -- because `-MD' means `put the output
  5069. + # in D'.
  5070. + mkdir conftest.dir
  5071. + # Copy depcomp to subdir because otherwise we won't find it if we're
  5072. + # using a relative directory.
  5073. + cp "$am_depcomp" conftest.dir
  5074. + cd conftest.dir
  5075. + # We will build objects and dependencies in a subdirectory because
  5076. + # it helps to detect inapplicable dependency modes. For instance
  5077. + # both Tru64's cc and ICC support -MD to output dependencies as a
  5078. + # side effect of compilation, but ICC will put the dependencies in
  5079. + # the current directory while Tru64 will put them in the object
  5080. + # directory.
  5081. + mkdir sub
  5082. +
  5083. + am_cv_$1_dependencies_compiler_type=none
  5084. + if test "$am_compiler_list" = ""; then
  5085. + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  5086. + fi
  5087. + for depmode in $am_compiler_list; do
  5088. + # Setup a source with many dependencies, because some compilers
  5089. + # like to wrap large dependency lists on column 80 (with \), and
  5090. + # we should not choose a depcomp mode which is confused by this.
  5091. + #
  5092. + # We need to recreate these files for each test, as the compiler may
  5093. + # overwrite some of them when testing with obscure command lines.
  5094. + # This happens at least with the AIX C compiler.
  5095. + : > sub/conftest.c
  5096. + for i in 1 2 3 4 5 6; do
  5097. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  5098. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  5099. + # Solaris 8's {/usr,}/bin/sh.
  5100. + touch sub/conftst$i.h
  5101. + done
  5102. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  5103. +
  5104. + case $depmode in
  5105. + nosideeffect)
  5106. + # after this tag, mechanisms are not by side-effect, so they'll
  5107. + # only be used when explicitly requested
  5108. + if test "x$enable_dependency_tracking" = xyes; then
  5109. + continue
  5110. + else
  5111. + break
  5112. + fi
  5113. + ;;
  5114. + none) break ;;
  5115. + esac
  5116. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  5117. + # mode. It turns out that the SunPro C++ compiler does not properly
  5118. + # handle `-M -o', and we need to detect this.
  5119. + if depmode=$depmode \
  5120. + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  5121. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  5122. + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  5123. + >/dev/null 2>conftest.err &&
  5124. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  5125. + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  5126. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  5127. + # icc doesn't choke on unknown options, it will just issue warnings
  5128. + # or remarks (even with -Werror). So we grep stderr for any message
  5129. + # that says an option was ignored or not supported.
  5130. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  5131. + # icc: Command line warning: ignoring option '-M'; no argument required
  5132. + # The diagnosis changed in icc 8.0:
  5133. + # icc: Command line remark: option '-MP' not supported
  5134. + if (grep 'ignoring option' conftest.err ||
  5135. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  5136. + am_cv_$1_dependencies_compiler_type=$depmode
  5137. + break
  5138. + fi
  5139. + fi
  5140. + done
  5141. +
  5142. + cd ..
  5143. + rm -rf conftest.dir
  5144. +else
  5145. + am_cv_$1_dependencies_compiler_type=none
  5146. +fi
  5147. +])
  5148. +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
  5149. +AM_CONDITIONAL([am__fastdep$1], [
  5150. + test "x$enable_dependency_tracking" != xno \
  5151. + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
  5152. +])
  5153. +
  5154. +
  5155. +# AM_SET_DEPDIR
  5156. +# -------------
  5157. +# Choose a directory name for dependency files.
  5158. +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
  5159. +AC_DEFUN([AM_SET_DEPDIR],
  5160. +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  5161. +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
  5162. +])
  5163. +
  5164. +
  5165. +# AM_DEP_TRACK
  5166. +# ------------
  5167. +AC_DEFUN([AM_DEP_TRACK],
  5168. +[AC_ARG_ENABLE(dependency-tracking,
  5169. +[ --disable-dependency-tracking speeds up one-time build
  5170. + --enable-dependency-tracking do not reject slow dependency extractors])
  5171. +if test "x$enable_dependency_tracking" != xno; then
  5172. + am_depcomp="$ac_aux_dir/depcomp"
  5173. + AMDEPBACKSLASH='\'
  5174. +fi
  5175. +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  5176. +AC_SUBST([AMDEPBACKSLASH])
  5177. +])
  5178. +
  5179. +# Generate code to set up dependency tracking. -*- Autoconf -*-
  5180. +
  5181. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  5182. +
  5183. +# This program is free software; you can redistribute it and/or modify
  5184. +# it under the terms of the GNU General Public License as published by
  5185. +# the Free Software Foundation; either version 2, or (at your option)
  5186. +# any later version.
  5187. +
  5188. +# This program is distributed in the hope that it will be useful,
  5189. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  5190. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5191. +# GNU General Public License for more details.
  5192. +
  5193. +# You should have received a copy of the GNU General Public License
  5194. +# along with this program; if not, write to the Free Software
  5195. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5196. +# 02111-1307, USA.
  5197. +
  5198. +#serial 2
  5199. +
  5200. +# _AM_OUTPUT_DEPENDENCY_COMMANDS
  5201. +# ------------------------------
  5202. +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  5203. +[for mf in $CONFIG_FILES; do
  5204. + # Strip MF so we end up with the name of the file.
  5205. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  5206. + # Check whether this is an Automake generated Makefile or not.
  5207. + # We used to match only the files named `Makefile.in', but
  5208. + # some people rename them; so instead we look at the file content.
  5209. + # Grep'ing the first line is not enough: some people post-process
  5210. + # each Makefile.in and add a new line on top of each file to say so.
  5211. + # So let's grep whole file.
  5212. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  5213. + dirpart=`AS_DIRNAME("$mf")`
  5214. + else
  5215. + continue
  5216. + fi
  5217. + grep '^DEP_FILES *= *[[^ @%:@]]' < "$mf" > /dev/null || continue
  5218. + # Extract the definition of DEP_FILES from the Makefile without
  5219. + # running `make'.
  5220. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  5221. + test -z "$DEPDIR" && continue
  5222. + # When using ansi2knr, U may be empty or an underscore; expand it
  5223. + U=`sed -n 's/^U = //p' < "$mf"`
  5224. + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  5225. + # We invoke sed twice because it is the simplest approach to
  5226. + # changing $(DEPDIR) to its actual value in the expansion.
  5227. + for file in `sed -n '
  5228. + /^DEP_FILES = .*\\\\$/ {
  5229. + s/^DEP_FILES = //
  5230. + :loop
  5231. + s/\\\\$//
  5232. + p
  5233. + n
  5234. + /\\\\$/ b loop
  5235. + p
  5236. + }
  5237. + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  5238. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  5239. + # Make sure the directory exists.
  5240. + test -f "$dirpart/$file" && continue
  5241. + fdir=`AS_DIRNAME(["$file"])`
  5242. + AS_MKDIR_P([$dirpart/$fdir])
  5243. + # echo "creating $dirpart/$file"
  5244. + echo '# dummy' > "$dirpart/$file"
  5245. + done
  5246. +done
  5247. +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  5248. +
  5249. +
  5250. +# AM_OUTPUT_DEPENDENCY_COMMANDS
  5251. +# -----------------------------
  5252. +# This macro should only be invoked once -- use via AC_REQUIRE.
  5253. +#
  5254. +# This code is only required when automatic dependency tracking
  5255. +# is enabled. FIXME. This creates each `.P' file that we will
  5256. +# need in order to bootstrap the dependency handling code.
  5257. +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
  5258. +[AC_CONFIG_COMMANDS([depfiles],
  5259. + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
  5260. + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
  5261. +])
  5262. +
  5263. +# Do all the work for Automake. -*- Autoconf -*-
  5264. +
  5265. +# This macro actually does too much some checks are only needed if
  5266. +# your package does certain things. But this isn't really a big deal.
  5267. +
  5268. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
  5269. +# Free Software Foundation, Inc.
  5270. +
  5271. +# This program is free software; you can redistribute it and/or modify
  5272. +# it under the terms of the GNU General Public License as published by
  5273. +# the Free Software Foundation; either version 2, or (at your option)
  5274. +# any later version.
  5275. +
  5276. +# This program is distributed in the hope that it will be useful,
  5277. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  5278. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5279. +# GNU General Public License for more details.
  5280. +
  5281. +# You should have received a copy of the GNU General Public License
  5282. +# along with this program; if not, write to the Free Software
  5283. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5284. +# 02111-1307, USA.
  5285. +
  5286. +# serial 11
  5287. +
  5288. +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
  5289. +# AM_INIT_AUTOMAKE([OPTIONS])
  5290. +# -----------------------------------------------
  5291. +# The call with PACKAGE and VERSION arguments is the old style
  5292. +# call (pre autoconf-2.50), which is being phased out. PACKAGE
  5293. +# and VERSION should now be passed to AC_INIT and removed from
  5294. +# the call to AM_INIT_AUTOMAKE.
  5295. +# We support both call styles for the transition. After
  5296. +# the next Automake release, Autoconf can make the AC_INIT
  5297. +# arguments mandatory, and then we can depend on a new Autoconf
  5298. +# release and drop the old call support.
  5299. +AC_DEFUN([AM_INIT_AUTOMAKE],
  5300. +[AC_PREREQ([2.58])dnl
  5301. +dnl Autoconf wants to disallow AM_ names. We explicitly allow
  5302. +dnl the ones we care about.
  5303. +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  5304. +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  5305. +AC_REQUIRE([AC_PROG_INSTALL])dnl
  5306. +# test to see if srcdir already configured
  5307. +if test "`cd $srcdir && pwd`" != "`pwd`" &&
  5308. + test -f $srcdir/config.status; then
  5309. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  5310. +fi
  5311. +
  5312. +# test whether we have cygpath
  5313. +if test -z "$CYGPATH_W"; then
  5314. + if (cygpath --version) >/dev/null 2>/dev/null; then
  5315. + CYGPATH_W='cygpath -w'
  5316. + else
  5317. + CYGPATH_W=echo
  5318. + fi
  5319. +fi
  5320. +AC_SUBST([CYGPATH_W])
  5321. +
  5322. +# Define the identity of the package.
  5323. +dnl Distinguish between old-style and new-style calls.
  5324. +m4_ifval([$2],
  5325. +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
  5326. + AC_SUBST([PACKAGE], [$1])dnl
  5327. + AC_SUBST([VERSION], [$2])],
  5328. +[_AM_SET_OPTIONS([$1])dnl
  5329. + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  5330. + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  5331. +
  5332. +_AM_IF_OPTION([no-define],,
  5333. +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  5334. + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
  5335. +
  5336. +# Some tools Automake needs.
  5337. +AC_REQUIRE([AM_SANITY_CHECK])dnl
  5338. +AC_REQUIRE([AC_ARG_PROGRAM])dnl
  5339. +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
  5340. +AM_MISSING_PROG(AUTOCONF, autoconf)
  5341. +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  5342. +AM_MISSING_PROG(AUTOHEADER, autoheader)
  5343. +AM_MISSING_PROG(MAKEINFO, makeinfo)
  5344. +AM_MISSING_PROG(AMTAR, tar)
  5345. +AM_PROG_INSTALL_SH
  5346. +AM_PROG_INSTALL_STRIP
  5347. +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  5348. +# We need awk for the "check" target. The system "awk" is bad on
  5349. +# some platforms.
  5350. +AC_REQUIRE([AC_PROG_AWK])dnl
  5351. +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  5352. +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  5353. +
  5354. +_AM_IF_OPTION([no-dependencies],,
  5355. +[AC_PROVIDE_IFELSE([AC_PROG_CC],
  5356. + [_AM_DEPENDENCIES(CC)],
  5357. + [define([AC_PROG_CC],
  5358. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  5359. +AC_PROVIDE_IFELSE([AC_PROG_CXX],
  5360. + [_AM_DEPENDENCIES(CXX)],
  5361. + [define([AC_PROG_CXX],
  5362. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  5363. +])
  5364. +])
  5365. +
  5366. +
  5367. +# When config.status generates a header, we must update the stamp-h file.
  5368. +# This file resides in the same directory as the config header
  5369. +# that is generated. The stamp files are numbered to have different names.
  5370. +
  5371. +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
  5372. +# loop where config.status creates the headers, so we can generate
  5373. +# our stamp files there.
  5374. +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  5375. +[# Compute $1's index in $config_headers.
  5376. +_am_stamp_count=1
  5377. +for _am_header in $config_headers :; do
  5378. + case $_am_header in
  5379. + $1 | $1:* )
  5380. + break ;;
  5381. + * )
  5382. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  5383. + esac
  5384. +done
  5385. +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  5386. +
  5387. +# AM_PROG_INSTALL_SH
  5388. +# ------------------
  5389. +# Define $install_sh.
  5390. +
  5391. +# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  5392. +
  5393. +# This program is free software; you can redistribute it and/or modify
  5394. +# it under the terms of the GNU General Public License as published by
  5395. +# the Free Software Foundation; either version 2, or (at your option)
  5396. +# any later version.
  5397. +
  5398. +# This program is distributed in the hope that it will be useful,
  5399. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  5400. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5401. +# GNU General Public License for more details.
  5402. +
  5403. +# You should have received a copy of the GNU General Public License
  5404. +# along with this program; if not, write to the Free Software
  5405. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5406. +# 02111-1307, USA.
  5407. +
  5408. +AC_DEFUN([AM_PROG_INSTALL_SH],
  5409. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  5410. +install_sh=${install_sh-"$am_aux_dir/install-sh"}
  5411. +AC_SUBST(install_sh)])
  5412. +
  5413. +# -*- Autoconf -*-
  5414. +# Copyright (C) 2003 Free Software Foundation, Inc.
  5415. +
  5416. +# This program is free software; you can redistribute it and/or modify
  5417. +# it under the terms of the GNU General Public License as published by
  5418. +# the Free Software Foundation; either version 2, or (at your option)
  5419. +# any later version.
  5420. +
  5421. +# This program is distributed in the hope that it will be useful,
  5422. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  5423. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5424. +# GNU General Public License for more details.
  5425. +
  5426. +# You should have received a copy of the GNU General Public License
  5427. +# along with this program; if not, write to the Free Software
  5428. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5429. +# 02111-1307, USA.
  5430. +
  5431. +# serial 1
  5432. +
  5433. +# Check whether the underlying file-system supports filenames
  5434. +# with a leading dot. For instance MS-DOS doesn't.
  5435. +AC_DEFUN([AM_SET_LEADING_DOT],
  5436. +[rm -rf .tst 2>/dev/null
  5437. +mkdir .tst 2>/dev/null
  5438. +if test -d .tst; then
  5439. + am__leading_dot=.
  5440. +else
  5441. + am__leading_dot=_
  5442. +fi
  5443. +rmdir .tst 2>/dev/null
  5444. +AC_SUBST([am__leading_dot])])
  5445. +
  5446. +# Check to see how 'make' treats includes. -*- Autoconf -*-
  5447. +
  5448. +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  5449. +
  5450. +# This program is free software; you can redistribute it and/or modify
  5451. +# it under the terms of the GNU General Public License as published by
  5452. +# the Free Software Foundation; either version 2, or (at your option)
  5453. +# any later version.
  5454. +
  5455. +# This program is distributed in the hope that it will be useful,
  5456. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  5457. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5458. +# GNU General Public License for more details.
  5459. +
  5460. +# You should have received a copy of the GNU General Public License
  5461. +# along with this program; if not, write to the Free Software
  5462. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5463. +# 02111-1307, USA.
  5464. +
  5465. +# serial 2
  5466. +
  5467. +# AM_MAKE_INCLUDE()
  5468. +# -----------------
  5469. +# Check to see how make treats includes.
  5470. +AC_DEFUN([AM_MAKE_INCLUDE],
  5471. +[am_make=${MAKE-make}
  5472. +cat > confinc << 'END'
  5473. +am__doit:
  5474. + @echo done
  5475. +.PHONY: am__doit
  5476. +END
  5477. +# If we don't find an include directive, just comment out the code.
  5478. +AC_MSG_CHECKING([for style of include used by $am_make])
  5479. +am__include="#"
  5480. +am__quote=
  5481. +_am_result=none
  5482. +# First try GNU make style include.
  5483. +echo "include confinc" > confmf
  5484. +# We grep out `Entering directory' and `Leaving directory'
  5485. +# messages which can occur if `w' ends up in MAKEFLAGS.
  5486. +# In particular we don't look at `^make:' because GNU make might
  5487. +# be invoked under some other name (usually "gmake"), in which
  5488. +# case it prints its new name instead of `make'.
  5489. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  5490. + am__include=include
  5491. + am__quote=
  5492. + _am_result=GNU
  5493. +fi
  5494. +# Now try BSD make style include.
  5495. +if test "$am__include" = "#"; then
  5496. + echo '.include "confinc"' > confmf
  5497. + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  5498. + am__include=.include
  5499. + am__quote="\""
  5500. + _am_result=BSD
  5501. + fi
  5502. +fi
  5503. +AC_SUBST([am__include])
  5504. +AC_SUBST([am__quote])
  5505. +AC_MSG_RESULT([$_am_result])
  5506. +rm -f confinc confmf
  5507. +])
  5508. +
  5509. +# -*- Autoconf -*-
  5510. +
  5511. +
  5512. +# Copyright (C) 1997, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
  5513. +
  5514. +# This program is free software; you can redistribute it and/or modify
  5515. +# it under the terms of the GNU General Public License as published by
  5516. +# the Free Software Foundation; either version 2, or (at your option)
  5517. +# any later version.
  5518. +
  5519. +# This program is distributed in the hope that it will be useful,
  5520. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  5521. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5522. +# GNU General Public License for more details.
  5523. +
  5524. +# You should have received a copy of the GNU General Public License
  5525. +# along with this program; if not, write to the Free Software
  5526. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5527. +# 02111-1307, USA.
  5528. +
  5529. +# serial 3
  5530. +
  5531. +# AM_MISSING_PROG(NAME, PROGRAM)
  5532. +# ------------------------------
  5533. +AC_DEFUN([AM_MISSING_PROG],
  5534. +[AC_REQUIRE([AM_MISSING_HAS_RUN])
  5535. +$1=${$1-"${am_missing_run}$2"}
  5536. +AC_SUBST($1)])
  5537. +
  5538. +
  5539. +# AM_MISSING_HAS_RUN
  5540. +# ------------------
  5541. +# Define MISSING if not defined so far and test if it supports --run.
  5542. +# If it does, set am_missing_run to use it, otherwise, to nothing.
  5543. +AC_DEFUN([AM_MISSING_HAS_RUN],
  5544. +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  5545. +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  5546. +# Use eval to expand $SHELL
  5547. +if eval "$MISSING --run true"; then
  5548. + am_missing_run="$MISSING --run "
  5549. +else
  5550. + am_missing_run=
  5551. + AC_MSG_WARN([`missing' script is too old or missing])
  5552. +fi
  5553. +])
  5554. +
  5555. +# AM_PROG_MKDIR_P
  5556. +# ---------------
  5557. +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  5558. +
  5559. +# Copyright (C) 2003, 2004 Free Software Foundation, Inc.
  5560. +
  5561. +# This program is free software; you can redistribute it and/or modify
  5562. +# it under the terms of the GNU General Public License as published by
  5563. +# the Free Software Foundation; either version 2, or (at your option)
  5564. +# any later version.
  5565. +
  5566. +# This program is distributed in the hope that it will be useful,
  5567. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  5568. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5569. +# GNU General Public License for more details.
  5570. +
  5571. +# You should have received a copy of the GNU General Public License
  5572. +# along with this program; if not, write to the Free Software
  5573. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5574. +# 02111-1307, USA.
  5575. +
  5576. +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  5577. +# created by `make install' are always world readable, even if the
  5578. +# installer happens to have an overly restrictive umask (e.g. 077).
  5579. +# This was a mistake. There are at least two reasons why we must not
  5580. +# use `-m 0755':
  5581. +# - it causes special bits like SGID to be ignored,
  5582. +# - it may be too restrictive (some setups expect 775 directories).
  5583. +#
  5584. +# Do not use -m 0755 and let people choose whatever they expect by
  5585. +# setting umask.
  5586. +#
  5587. +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  5588. +# Some implementations (such as Solaris 8's) are not thread-safe: if a
  5589. +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  5590. +# concurrently, both version can detect that a/ is missing, but only
  5591. +# one can create it and the other will error out. Consequently we
  5592. +# restrict ourselves to GNU make (using the --version option ensures
  5593. +# this.)
  5594. +AC_DEFUN([AM_PROG_MKDIR_P],
  5595. +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  5596. + # Keeping the `.' argument allows $(mkdir_p) to be used without
  5597. + # argument. Indeed, we sometimes output rules like
  5598. + # $(mkdir_p) $(somedir)
  5599. + # where $(somedir) is conditionally defined.
  5600. + # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  5601. + # expensive solution, as it forces Make to start a sub-shell.)
  5602. + mkdir_p='mkdir -p -- .'
  5603. +else
  5604. + # On NextStep and OpenStep, the `mkdir' command does not
  5605. + # recognize any option. It will interpret all options as
  5606. + # directories to create, and then abort because `.' already
  5607. + # exists.
  5608. + for d in ./-p ./--version;
  5609. + do
  5610. + test -d $d && rmdir $d
  5611. + done
  5612. + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  5613. + if test -f "$ac_aux_dir/mkinstalldirs"; then
  5614. + mkdir_p='$(mkinstalldirs)'
  5615. + else
  5616. + mkdir_p='$(install_sh) -d'
  5617. + fi
  5618. +fi
  5619. +AC_SUBST([mkdir_p])])
  5620. +
  5621. +# Helper functions for option handling. -*- Autoconf -*-
  5622. +
  5623. +# Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
  5624. +
  5625. +# This program is free software; you can redistribute it and/or modify
  5626. +# it under the terms of the GNU General Public License as published by
  5627. +# the Free Software Foundation; either version 2, or (at your option)
  5628. +# any later version.
  5629. +
  5630. +# This program is distributed in the hope that it will be useful,
  5631. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  5632. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5633. +# GNU General Public License for more details.
  5634. +
  5635. +# You should have received a copy of the GNU General Public License
  5636. +# along with this program; if not, write to the Free Software
  5637. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5638. +# 02111-1307, USA.
  5639. +
  5640. +# serial 2
  5641. +
  5642. +# _AM_MANGLE_OPTION(NAME)
  5643. +# -----------------------
  5644. +AC_DEFUN([_AM_MANGLE_OPTION],
  5645. +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
  5646. +
  5647. +# _AM_SET_OPTION(NAME)
  5648. +# ------------------------------
  5649. +# Set option NAME. Presently that only means defining a flag for this option.
  5650. +AC_DEFUN([_AM_SET_OPTION],
  5651. +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
  5652. +
  5653. +# _AM_SET_OPTIONS(OPTIONS)
  5654. +# ----------------------------------
  5655. +# OPTIONS is a space-separated list of Automake options.
  5656. +AC_DEFUN([_AM_SET_OPTIONS],
  5657. +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  5658. +
  5659. +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  5660. +# -------------------------------------------
  5661. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  5662. +AC_DEFUN([_AM_IF_OPTION],
  5663. +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
  5664. +
  5665. +#
  5666. +# Check to make sure that the build environment is sane.
  5667. +#
  5668. +
  5669. +# Copyright (C) 1996, 1997, 2000, 2001, 2003 Free Software Foundation, Inc.
  5670. +
  5671. +# This program is free software; you can redistribute it and/or modify
  5672. +# it under the terms of the GNU General Public License as published by
  5673. +# the Free Software Foundation; either version 2, or (at your option)
  5674. +# any later version.
  5675. +
  5676. +# This program is distributed in the hope that it will be useful,
  5677. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  5678. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5679. +# GNU General Public License for more details.
  5680. +
  5681. +# You should have received a copy of the GNU General Public License
  5682. +# along with this program; if not, write to the Free Software
  5683. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5684. +# 02111-1307, USA.
  5685. +
  5686. +# serial 3
  5687. +
  5688. +# AM_SANITY_CHECK
  5689. +# ---------------
  5690. +AC_DEFUN([AM_SANITY_CHECK],
  5691. +[AC_MSG_CHECKING([whether build environment is sane])
  5692. +# Just in case
  5693. +sleep 1
  5694. +echo timestamp > conftest.file
  5695. +# Do `set' in a subshell so we don't clobber the current shell's
  5696. +# arguments. Must try -L first in case configure is actually a
  5697. +# symlink; some systems play weird games with the mod time of symlinks
  5698. +# (eg FreeBSD returns the mod time of the symlink's containing
  5699. +# directory).
  5700. +if (
  5701. + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  5702. + if test "$[*]" = "X"; then
  5703. + # -L didn't work.
  5704. + set X `ls -t $srcdir/configure conftest.file`
  5705. + fi
  5706. + rm -f conftest.file
  5707. + if test "$[*]" != "X $srcdir/configure conftest.file" \
  5708. + && test "$[*]" != "X conftest.file $srcdir/configure"; then
  5709. +
  5710. + # If neither matched, then we have a broken ls. This can happen
  5711. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  5712. + # broken ls alias from the environment. This has actually
  5713. + # happened. Such a system could not be considered "sane".
  5714. + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
  5715. +alias in your environment])
  5716. + fi
  5717. +
  5718. + test "$[2]" = conftest.file
  5719. + )
  5720. +then
  5721. + # Ok.
  5722. + :
  5723. +else
  5724. + AC_MSG_ERROR([newly created file is older than distributed files!
  5725. +Check your system clock])
  5726. +fi
  5727. +AC_MSG_RESULT(yes)])
  5728. +
  5729. +# AM_PROG_INSTALL_STRIP
  5730. +
  5731. +# Copyright (C) 2001, 2003 Free Software Foundation, Inc.
  5732. +
  5733. +# This program is free software; you can redistribute it and/or modify
  5734. +# it under the terms of the GNU General Public License as published by
  5735. +# the Free Software Foundation; either version 2, or (at your option)
  5736. +# any later version.
  5737. +
  5738. +# This program is distributed in the hope that it will be useful,
  5739. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  5740. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  5741. +# GNU General Public License for more details.
  5742. +
  5743. +# You should have received a copy of the GNU General Public License
  5744. +# along with this program; if not, write to the Free Software
  5745. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  5746. +# 02111-1307, USA.
  5747. +
  5748. +# One issue with vendor `install' (even GNU) is that you can't
  5749. +# specify the program used to strip binaries. This is especially
  5750. +# annoying in cross-compiling environments, where the build's strip
  5751. +# is unlikely to handle the host's binaries.
  5752. +# Fortunately install-sh will honor a STRIPPROG variable, so we
  5753. +# always use install-sh in `make install-strip', and initialize
  5754. +# STRIPPROG with the value of the STRIP variable (set by the user).
  5755. +AC_DEFUN([AM_PROG_INSTALL_STRIP],
  5756. +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  5757. +# Installed binaries are usually stripped using `strip' when the user
  5758. +# run `make install-strip'. However `strip' might not be the right
  5759. +# tool to use in cross-compilation environments, therefore Automake
  5760. +# will honor the `STRIP' environment variable to overrule this program.
  5761. +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
  5762. +if test "$cross_compiling" != no; then
  5763. + AC_CHECK_TOOL([STRIP], [strip], :)
  5764. +fi
  5765. +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  5766. +AC_SUBST([INSTALL_STRIP_PROGRAM])])
  5767. +m4_include([acinclude.m4])
  5768. diff -ruN libnet-1.0.2a-orig/config.guess libnet-1.0.2a-7/config.guess
  5769. --- libnet-1.0.2a-orig/config.guess 2000-05-25 02:28:49.000000000 +0200
  5770. +++ libnet-1.0.2a-7/config.guess 2005-03-08 03:53:26.000000000 +0100
  5771. @@ -1,7 +1,10 @@
  5772. #! /bin/sh
  5773. # Attempt to guess a canonical system name.
  5774. -# Copyright (C) 1992, 93, 94, 95, 1996 Free Software Foundation, Inc.
  5775. -#
  5776. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  5777. +# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  5778. +
  5779. +timestamp='2004-07-19'
  5780. +
  5781. # This file is free software; you can redistribute it and/or modify it
  5782. # under the terms of the GNU General Public License as published by
  5783. # the Free Software Foundation; either version 2 of the License, or
  5784. @@ -21,59 +24,320 @@
  5785. # configuration script generated by Autoconf, you may include it under
  5786. # the same distribution terms that you use for the rest of that program.
  5787. -# Written by Per Bothner <bothner@cygnus.com>.
  5788. -# The master version of this file is at the FSF in /home/gd/gnu/lib.
  5789. +# Originally written by Per Bothner <per@bothner.com>.
  5790. +# Please send patches to <config-patches@gnu.org>. Submit a context
  5791. +# diff and a properly formatted ChangeLog entry.
  5792. #
  5793. # This script attempts to guess a canonical system name similar to
  5794. # config.sub. If it succeeds, it prints the system name on stdout, and
  5795. # exits with 0. Otherwise, it exits with 1.
  5796. #
  5797. # The plan is that this can be called by configure scripts if you
  5798. -# don't specify an explicit system type (host/target name).
  5799. -#
  5800. -# Only a few systems have been added to this list; please add others
  5801. -# (but try to keep the structure clean).
  5802. -#
  5803. +# don't specify an explicit build system type.
  5804. +
  5805. +me=`echo "$0" | sed -e 's,.*/,,'`
  5806. +
  5807. +usage="\
  5808. +Usage: $0 [OPTION]
  5809. +
  5810. +Output the configuration name of the system \`$me' is run on.
  5811. +
  5812. +Operation modes:
  5813. + -h, --help print this help, then exit
  5814. + -t, --time-stamp print date of last modification, then exit
  5815. + -v, --version print version number, then exit
  5816. +
  5817. +Report bugs and patches to <config-patches@gnu.org>."
  5818. +
  5819. +version="\
  5820. +GNU config.guess ($timestamp)
  5821. +
  5822. +Originally written by Per Bothner.
  5823. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  5824. +Free Software Foundation, Inc.
  5825. +
  5826. +This is free software; see the source for copying conditions. There is NO
  5827. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  5828. +
  5829. +help="
  5830. +Try \`$me --help' for more information."
  5831. +
  5832. +# Parse command line
  5833. +while test $# -gt 0 ; do
  5834. + case $1 in
  5835. + --time-stamp | --time* | -t )
  5836. + echo "$timestamp" ; exit 0 ;;
  5837. + --version | -v )
  5838. + echo "$version" ; exit 0 ;;
  5839. + --help | --h* | -h )
  5840. + echo "$usage"; exit 0 ;;
  5841. + -- ) # Stop option processing
  5842. + shift; break ;;
  5843. + - ) # Use stdin as input.
  5844. + break ;;
  5845. + -* )
  5846. + echo "$me: invalid option $1$help" >&2
  5847. + exit 1 ;;
  5848. + * )
  5849. + break ;;
  5850. + esac
  5851. +done
  5852. +
  5853. +if test $# != 0; then
  5854. + echo "$me: too many arguments$help" >&2
  5855. + exit 1
  5856. +fi
  5857. +
  5858. +trap 'exit 1' 1 2 15
  5859. +
  5860. +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
  5861. +# compiler to aid in system detection is discouraged as it requires
  5862. +# temporary files to be created and, as you can see below, it is a
  5863. +# headache to deal with in a portable fashion.
  5864. +
  5865. +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
  5866. +# use `HOST_CC' if defined, but it is deprecated.
  5867. +
  5868. +# Portable tmp directory creation inspired by the Autoconf team.
  5869. +
  5870. +set_cc_for_build='
  5871. +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  5872. +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  5873. +: ${TMPDIR=/tmp} ;
  5874. + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  5875. + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  5876. + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  5877. + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  5878. +dummy=$tmp/dummy ;
  5879. +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
  5880. +case $CC_FOR_BUILD,$HOST_CC,$CC in
  5881. + ,,) echo "int x;" > $dummy.c ;
  5882. + for c in cc gcc c89 c99 ; do
  5883. + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
  5884. + CC_FOR_BUILD="$c"; break ;
  5885. + fi ;
  5886. + done ;
  5887. + if test x"$CC_FOR_BUILD" = x ; then
  5888. + CC_FOR_BUILD=no_compiler_found ;
  5889. + fi
  5890. + ;;
  5891. + ,,*) CC_FOR_BUILD=$CC ;;
  5892. + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  5893. +esac ;'
  5894. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  5895. -# (ghazi@noc.rutgers.edu 8/24/94.)
  5896. +# (ghazi@noc.rutgers.edu 1994-08-24)
  5897. if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
  5898. PATH=$PATH:/.attbin ; export PATH
  5899. fi
  5900. UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
  5901. UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
  5902. -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  5903. +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
  5904. UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
  5905. -trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
  5906. -
  5907. # Note: order is significant - the case branches are not exclusive.
  5908. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
  5909. + *:NetBSD:*:*)
  5910. + # NetBSD (nbsd) targets should (where applicable) match one or
  5911. + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
  5912. + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
  5913. + # switched to ELF, *-*-netbsd* would select the old
  5914. + # object file format. This provides both forward
  5915. + # compatibility and a consistent mechanism for selecting the
  5916. + # object file format.
  5917. + #
  5918. + # Note: NetBSD doesn't particularly care about the vendor
  5919. + # portion of the name. We always set it to "unknown".
  5920. + sysctl="sysctl -n hw.machine_arch"
  5921. + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
  5922. + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
  5923. + case "${UNAME_MACHINE_ARCH}" in
  5924. + armeb) machine=armeb-unknown ;;
  5925. + arm*) machine=arm-unknown ;;
  5926. + sh3el) machine=shl-unknown ;;
  5927. + sh3eb) machine=sh-unknown ;;
  5928. + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  5929. + esac
  5930. + # The Operating System including object format, if it has switched
  5931. + # to ELF recently, or will in the future.
  5932. + case "${UNAME_MACHINE_ARCH}" in
  5933. + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  5934. + eval $set_cc_for_build
  5935. + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  5936. + | grep __ELF__ >/dev/null
  5937. + then
  5938. + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  5939. + # Return netbsd for either. FIX?
  5940. + os=netbsd
  5941. + else
  5942. + os=netbsdelf
  5943. + fi
  5944. + ;;
  5945. + *)
  5946. + os=netbsd
  5947. + ;;
  5948. + esac
  5949. + # The OS release
  5950. + # Debian GNU/NetBSD machines have a different userland, and
  5951. + # thus, need a distinct triplet. However, they do not need
  5952. + # kernel version information, so it can be replaced with a
  5953. + # suitable tag, in the style of linux-gnu.
  5954. + case "${UNAME_VERSION}" in
  5955. + Debian*)
  5956. + release='-gnu'
  5957. + ;;
  5958. + *)
  5959. + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  5960. + ;;
  5961. + esac
  5962. + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
  5963. + # contains redundant information, the shorter form:
  5964. + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  5965. + echo "${machine}-${os}${release}"
  5966. + exit 0 ;;
  5967. + amd64:OpenBSD:*:*)
  5968. + echo x86_64-unknown-openbsd${UNAME_RELEASE}
  5969. + exit 0 ;;
  5970. + amiga:OpenBSD:*:*)
  5971. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  5972. + exit 0 ;;
  5973. + arc:OpenBSD:*:*)
  5974. + echo mipsel-unknown-openbsd${UNAME_RELEASE}
  5975. + exit 0 ;;
  5976. + cats:OpenBSD:*:*)
  5977. + echo arm-unknown-openbsd${UNAME_RELEASE}
  5978. + exit 0 ;;
  5979. + hp300:OpenBSD:*:*)
  5980. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  5981. + exit 0 ;;
  5982. + luna88k:OpenBSD:*:*)
  5983. + echo m88k-unknown-openbsd${UNAME_RELEASE}
  5984. + exit 0 ;;
  5985. + mac68k:OpenBSD:*:*)
  5986. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  5987. + exit 0 ;;
  5988. + macppc:OpenBSD:*:*)
  5989. + echo powerpc-unknown-openbsd${UNAME_RELEASE}
  5990. + exit 0 ;;
  5991. + mvme68k:OpenBSD:*:*)
  5992. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  5993. + exit 0 ;;
  5994. + mvme88k:OpenBSD:*:*)
  5995. + echo m88k-unknown-openbsd${UNAME_RELEASE}
  5996. + exit 0 ;;
  5997. + mvmeppc:OpenBSD:*:*)
  5998. + echo powerpc-unknown-openbsd${UNAME_RELEASE}
  5999. + exit 0 ;;
  6000. + pmax:OpenBSD:*:*)
  6001. + echo mipsel-unknown-openbsd${UNAME_RELEASE}
  6002. + exit 0 ;;
  6003. + sgi:OpenBSD:*:*)
  6004. + echo mipseb-unknown-openbsd${UNAME_RELEASE}
  6005. + exit 0 ;;
  6006. + sun3:OpenBSD:*:*)
  6007. + echo m68k-unknown-openbsd${UNAME_RELEASE}
  6008. + exit 0 ;;
  6009. + wgrisc:OpenBSD:*:*)
  6010. + echo mipsel-unknown-openbsd${UNAME_RELEASE}
  6011. + exit 0 ;;
  6012. + *:OpenBSD:*:*)
  6013. + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  6014. + exit 0 ;;
  6015. + *:ekkoBSD:*:*)
  6016. + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  6017. + exit 0 ;;
  6018. + macppc:MirBSD:*:*)
  6019. + echo powerppc-unknown-mirbsd${UNAME_RELEASE}
  6020. + exit 0 ;;
  6021. + *:MirBSD:*:*)
  6022. + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  6023. + exit 0 ;;
  6024. alpha:OSF1:*:*)
  6025. + case $UNAME_RELEASE in
  6026. + *4.0)
  6027. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
  6028. + ;;
  6029. + *5.*)
  6030. + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
  6031. + ;;
  6032. + esac
  6033. + # According to Compaq, /usr/sbin/psrinfo has been available on
  6034. + # OSF/1 and Tru64 systems produced since 1995. I hope that
  6035. + # covers most systems running today. This code pipes the CPU
  6036. + # types through head -n 1, so we only detect the type of CPU 0.
  6037. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
  6038. + case "$ALPHA_CPU_TYPE" in
  6039. + "EV4 (21064)")
  6040. + UNAME_MACHINE="alpha" ;;
  6041. + "EV4.5 (21064)")
  6042. + UNAME_MACHINE="alpha" ;;
  6043. + "LCA4 (21066/21068)")
  6044. + UNAME_MACHINE="alpha" ;;
  6045. + "EV5 (21164)")
  6046. + UNAME_MACHINE="alphaev5" ;;
  6047. + "EV5.6 (21164A)")
  6048. + UNAME_MACHINE="alphaev56" ;;
  6049. + "EV5.6 (21164PC)")
  6050. + UNAME_MACHINE="alphapca56" ;;
  6051. + "EV5.7 (21164PC)")
  6052. + UNAME_MACHINE="alphapca57" ;;
  6053. + "EV6 (21264)")
  6054. + UNAME_MACHINE="alphaev6" ;;
  6055. + "EV6.7 (21264A)")
  6056. + UNAME_MACHINE="alphaev67" ;;
  6057. + "EV6.8CB (21264C)")
  6058. + UNAME_MACHINE="alphaev68" ;;
  6059. + "EV6.8AL (21264B)")
  6060. + UNAME_MACHINE="alphaev68" ;;
  6061. + "EV6.8CX (21264D)")
  6062. + UNAME_MACHINE="alphaev68" ;;
  6063. + "EV6.9A (21264/EV69A)")
  6064. + UNAME_MACHINE="alphaev69" ;;
  6065. + "EV7 (21364)")
  6066. + UNAME_MACHINE="alphaev7" ;;
  6067. + "EV7.9 (21364A)")
  6068. + UNAME_MACHINE="alphaev79" ;;
  6069. + esac
  6070. + # A Pn.n version is a patched version.
  6071. # A Vn.n version is a released version.
  6072. # A Tn.n version is a released field test version.
  6073. # A Xn.n version is an unreleased experimental baselevel.
  6074. # 1.2 uses "1.2" for uname -r.
  6075. - echo alpha-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//'`
  6076. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  6077. + exit 0 ;;
  6078. + Alpha\ *:Windows_NT*:*)
  6079. + # How do we know it's Interix rather than the generic POSIX subsystem?
  6080. + # Should we change UNAME_MACHINE based on the output of uname instead
  6081. + # of the specific Alpha model?
  6082. + echo alpha-pc-interix
  6083. exit 0 ;;
  6084. 21064:Windows_NT:50:3)
  6085. echo alpha-dec-winnt3.5
  6086. exit 0 ;;
  6087. Amiga*:UNIX_System_V:4.0:*)
  6088. - echo m68k-cbm-sysv4
  6089. + echo m68k-unknown-sysv4
  6090. exit 0;;
  6091. - amiga:NetBSD:*:*)
  6092. - echo m68k-cbm-netbsd${UNAME_RELEASE}
  6093. - exit 0 ;;
  6094. - amiga:OpenBSD:*:*)
  6095. - echo m68k-cbm-openbsd${UNAME_RELEASE}
  6096. - exit 0 ;;
  6097. + *:[Aa]miga[Oo][Ss]:*:*)
  6098. + echo ${UNAME_MACHINE}-unknown-amigaos
  6099. + exit 0 ;;
  6100. + *:[Mm]orph[Oo][Ss]:*:*)
  6101. + echo ${UNAME_MACHINE}-unknown-morphos
  6102. + exit 0 ;;
  6103. + *:OS/390:*:*)
  6104. + echo i370-ibm-openedition
  6105. + exit 0 ;;
  6106. + *:OS400:*:*)
  6107. + echo powerpc-ibm-os400
  6108. + exit 0 ;;
  6109. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  6110. echo arm-acorn-riscix${UNAME_RELEASE}
  6111. exit 0;;
  6112. - Pyramid*:OSx*:*:*|MIS*:OSx*:*:*)
  6113. + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  6114. + echo hppa1.1-hitachi-hiuxmpp
  6115. + exit 0;;
  6116. + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  6117. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  6118. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  6119. echo pyramid-pyramid-sysv3
  6120. @@ -81,9 +345,19 @@
  6121. echo pyramid-pyramid-bsd
  6122. fi
  6123. exit 0 ;;
  6124. - NILE:*:*:dcosx)
  6125. + NILE*:*:*:dcosx)
  6126. echo pyramid-pyramid-svr4
  6127. exit 0 ;;
  6128. + DRS?6000:unix:4.0:6*)
  6129. + echo sparc-icl-nx6
  6130. + exit 0 ;;
  6131. + DRS?6000:UNIX_SV:4.2*:7*)
  6132. + case `/usr/bin/uname -p` in
  6133. + sparc) echo sparc-icl-nx7 && exit 0 ;;
  6134. + esac ;;
  6135. + sun4H:SunOS:5.*:*)
  6136. + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  6137. + exit 0 ;;
  6138. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  6139. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  6140. exit 0 ;;
  6141. @@ -108,26 +382,49 @@
  6142. sun3*:SunOS:*:*)
  6143. echo m68k-sun-sunos${UNAME_RELEASE}
  6144. exit 0 ;;
  6145. + sun*:*:4.2BSD:*)
  6146. + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  6147. + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  6148. + case "`/bin/arch`" in
  6149. + sun3)
  6150. + echo m68k-sun-sunos${UNAME_RELEASE}
  6151. + ;;
  6152. + sun4)
  6153. + echo sparc-sun-sunos${UNAME_RELEASE}
  6154. + ;;
  6155. + esac
  6156. + exit 0 ;;
  6157. aushp:SunOS:*:*)
  6158. echo sparc-auspex-sunos${UNAME_RELEASE}
  6159. exit 0 ;;
  6160. - atari*:NetBSD:*:*)
  6161. - echo m68k-atari-netbsd${UNAME_RELEASE}
  6162. - exit 0 ;;
  6163. - atari*:OpenBSD:*:*)
  6164. - echo m68k-atari-openbsd${UNAME_RELEASE}
  6165. - exit 0 ;;
  6166. - sun3*:NetBSD:*:*)
  6167. - echo m68k-sun-netbsd${UNAME_RELEASE}
  6168. - exit 0 ;;
  6169. - sun3*:OpenBSD:*:*)
  6170. - echo m68k-sun-openbsd${UNAME_RELEASE}
  6171. + # The situation for MiNT is a little confusing. The machine name
  6172. + # can be virtually everything (everything which is not
  6173. + # "atarist" or "atariste" at least should have a processor
  6174. + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
  6175. + # to the lowercase version "mint" (or "freemint"). Finally
  6176. + # the system name "TOS" denotes a system which is actually not
  6177. + # MiNT. But MiNT is downward compatible to TOS, so this should
  6178. + # be no problem.
  6179. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  6180. + echo m68k-atari-mint${UNAME_RELEASE}
  6181. exit 0 ;;
  6182. - mac68k:NetBSD:*:*)
  6183. - echo m68k-apple-netbsd${UNAME_RELEASE}
  6184. + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  6185. + echo m68k-atari-mint${UNAME_RELEASE}
  6186. + exit 0 ;;
  6187. + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  6188. + echo m68k-atari-mint${UNAME_RELEASE}
  6189. exit 0 ;;
  6190. - mac68k:OpenBSD:*:*)
  6191. - echo m68k-apple-openbsd${UNAME_RELEASE}
  6192. + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  6193. + echo m68k-milan-mint${UNAME_RELEASE}
  6194. + exit 0 ;;
  6195. + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  6196. + echo m68k-hades-mint${UNAME_RELEASE}
  6197. + exit 0 ;;
  6198. + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  6199. + echo m68k-unknown-mint${UNAME_RELEASE}
  6200. + exit 0 ;;
  6201. + m68k:machten:*:*)
  6202. + echo m68k-apple-machten${UNAME_RELEASE}
  6203. exit 0 ;;
  6204. powerpc:machten:*:*)
  6205. echo powerpc-apple-machten${UNAME_RELEASE}
  6206. @@ -141,9 +438,18 @@
  6207. VAX*:ULTRIX*:*:*)
  6208. echo vax-dec-ultrix${UNAME_RELEASE}
  6209. exit 0 ;;
  6210. + 2020:CLIX:*:* | 2430:CLIX:*:*)
  6211. + echo clipper-intergraph-clix${UNAME_RELEASE}
  6212. + exit 0 ;;
  6213. mips:*:*:UMIPS | mips:*:*:RISCos)
  6214. - sed 's/^ //' << EOF >dummy.c
  6215. - int main (argc, argv) int argc; char **argv; {
  6216. + eval $set_cc_for_build
  6217. + sed 's/^ //' << EOF >$dummy.c
  6218. +#ifdef __cplusplus
  6219. +#include <stdio.h> /* for printf() prototype */
  6220. + int main (int argc, char *argv[]) {
  6221. +#else
  6222. + int main (argc, argv) int argc; char *argv[]; {
  6223. +#endif
  6224. #if defined (host_mips) && defined (MIPSEB)
  6225. #if defined (SYSTYPE_SYSV)
  6226. printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
  6227. @@ -158,12 +464,20 @@
  6228. exit (-1);
  6229. }
  6230. EOF
  6231. - ${CC-cc} dummy.c -o dummy \
  6232. - && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  6233. - && rm dummy.c dummy && exit 0
  6234. - rm -f dummy.c dummy
  6235. + $CC_FOR_BUILD -o $dummy $dummy.c \
  6236. + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  6237. + && exit 0
  6238. echo mips-mips-riscos${UNAME_RELEASE}
  6239. exit 0 ;;
  6240. + Motorola:PowerMAX_OS:*:*)
  6241. + echo powerpc-motorola-powermax
  6242. + exit 0 ;;
  6243. + Motorola:*:4.3:PL8-*)
  6244. + echo powerpc-harris-powermax
  6245. + exit 0 ;;
  6246. + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  6247. + echo powerpc-harris-powermax
  6248. + exit 0 ;;
  6249. Night_Hawk:Power_UNIX:*:*)
  6250. echo powerpc-harris-powerunix
  6251. exit 0 ;;
  6252. @@ -179,15 +493,18 @@
  6253. AViiON:dgux:*:*)
  6254. # DG/UX returns AViiON for all architectures
  6255. UNAME_PROCESSOR=`/usr/bin/uname -p`
  6256. - if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
  6257. - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
  6258. - -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
  6259. + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
  6260. + then
  6261. + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  6262. + [ ${TARGET_BINARY_INTERFACE}x = x ]
  6263. + then
  6264. echo m88k-dg-dgux${UNAME_RELEASE}
  6265. - else
  6266. + else
  6267. echo m88k-dg-dguxbcs${UNAME_RELEASE}
  6268. + fi
  6269. + else
  6270. + echo i586-dg-dgux${UNAME_RELEASE}
  6271. fi
  6272. - else echo i586-dg-dgux${UNAME_RELEASE}
  6273. - fi
  6274. exit 0 ;;
  6275. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  6276. echo m88k-dolphin-sysv3
  6277. @@ -208,12 +525,21 @@
  6278. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  6279. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  6280. exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  6281. - i?86:AIX:*:*)
  6282. + i*86:AIX:*:*)
  6283. echo i386-ibm-aix
  6284. exit 0 ;;
  6285. + ia64:AIX:*:*)
  6286. + if [ -x /usr/bin/oslevel ] ; then
  6287. + IBM_REV=`/usr/bin/oslevel`
  6288. + else
  6289. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  6290. + fi
  6291. + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  6292. + exit 0 ;;
  6293. *:AIX:2:3)
  6294. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  6295. - sed 's/^ //' << EOF >dummy.c
  6296. + eval $set_cc_for_build
  6297. + sed 's/^ //' << EOF >$dummy.c
  6298. #include <sys/systemcfg.h>
  6299. main()
  6300. @@ -224,8 +550,7 @@
  6301. exit(0);
  6302. }
  6303. EOF
  6304. - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
  6305. - rm -f dummy.c dummy
  6306. + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  6307. echo rs6000-ibm-aix3.2.5
  6308. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  6309. echo rs6000-ibm-aix3.2.4
  6310. @@ -233,8 +558,9 @@
  6311. echo rs6000-ibm-aix3.2
  6312. fi
  6313. exit 0 ;;
  6314. - *:AIX:*:4)
  6315. - if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
  6316. + *:AIX:*:[45])
  6317. + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  6318. + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  6319. IBM_ARCH=rs6000
  6320. else
  6321. IBM_ARCH=powerpc
  6322. @@ -242,7 +568,7 @@
  6323. if [ -x /usr/bin/oslevel ] ; then
  6324. IBM_REV=`/usr/bin/oslevel`
  6325. else
  6326. - IBM_REV=4.${UNAME_RELEASE}
  6327. + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  6328. fi
  6329. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  6330. exit 0 ;;
  6331. @@ -252,7 +578,7 @@
  6332. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  6333. echo romp-ibm-bsd4.4
  6334. exit 0 ;;
  6335. - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
  6336. + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  6337. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  6338. exit 0 ;; # report: romp-ibm BSD 4.3
  6339. *:BOSX:*:*)
  6340. @@ -267,18 +593,85 @@
  6341. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  6342. echo m68k-hp-bsd4.4
  6343. exit 0 ;;
  6344. - 9000/[3478]??:HP-UX:*:*)
  6345. + 9000/[34678]??:HP-UX:*:*)
  6346. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  6347. case "${UNAME_MACHINE}" in
  6348. 9000/31? ) HP_ARCH=m68000 ;;
  6349. 9000/[34]?? ) HP_ARCH=m68k ;;
  6350. - 9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;;
  6351. - 9000/8?? ) HP_ARCH=hppa1.0 ;;
  6352. + 9000/[678][0-9][0-9])
  6353. + if [ -x /usr/bin/getconf ]; then
  6354. + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
  6355. + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
  6356. + case "${sc_cpu_version}" in
  6357. + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
  6358. + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
  6359. + 532) # CPU_PA_RISC2_0
  6360. + case "${sc_kernel_bits}" in
  6361. + 32) HP_ARCH="hppa2.0n" ;;
  6362. + 64) HP_ARCH="hppa2.0w" ;;
  6363. + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
  6364. + esac ;;
  6365. + esac
  6366. + fi
  6367. + if [ "${HP_ARCH}" = "" ]; then
  6368. + eval $set_cc_for_build
  6369. + sed 's/^ //' << EOF >$dummy.c
  6370. +
  6371. + #define _HPUX_SOURCE
  6372. + #include <stdlib.h>
  6373. + #include <unistd.h>
  6374. +
  6375. + int main ()
  6376. + {
  6377. + #if defined(_SC_KERNEL_BITS)
  6378. + long bits = sysconf(_SC_KERNEL_BITS);
  6379. + #endif
  6380. + long cpu = sysconf (_SC_CPU_VERSION);
  6381. +
  6382. + switch (cpu)
  6383. + {
  6384. + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  6385. + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  6386. + case CPU_PA_RISC2_0:
  6387. + #if defined(_SC_KERNEL_BITS)
  6388. + switch (bits)
  6389. + {
  6390. + case 64: puts ("hppa2.0w"); break;
  6391. + case 32: puts ("hppa2.0n"); break;
  6392. + default: puts ("hppa2.0"); break;
  6393. + } break;
  6394. + #else /* !defined(_SC_KERNEL_BITS) */
  6395. + puts ("hppa2.0"); break;
  6396. + #endif
  6397. + default: puts ("hppa1.0"); break;
  6398. + }
  6399. + exit (0);
  6400. + }
  6401. +EOF
  6402. + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
  6403. + test -z "$HP_ARCH" && HP_ARCH=hppa
  6404. + fi ;;
  6405. esac
  6406. - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  6407. + if [ ${HP_ARCH} = "hppa2.0w" ]
  6408. + then
  6409. + # avoid double evaluation of $set_cc_for_build
  6410. + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  6411. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
  6412. + then
  6413. + HP_ARCH="hppa2.0w"
  6414. + else
  6415. + HP_ARCH="hppa64"
  6416. + fi
  6417. + fi
  6418. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  6419. exit 0 ;;
  6420. + ia64:HP-UX:*:*)
  6421. + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  6422. + echo ia64-hp-hpux${HPUX_REV}
  6423. + exit 0 ;;
  6424. 3050*:HI-UX:*:*)
  6425. - sed 's/^ //' << EOF >dummy.c
  6426. + eval $set_cc_for_build
  6427. + sed 's/^ //' << EOF >$dummy.c
  6428. #include <unistd.h>
  6429. int
  6430. main ()
  6431. @@ -303,8 +696,7 @@
  6432. exit (0);
  6433. }
  6434. EOF
  6435. - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
  6436. - rm -f dummy.c dummy
  6437. + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  6438. echo unknown-hitachi-hiuxwe2
  6439. exit 0 ;;
  6440. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  6441. @@ -313,13 +705,16 @@
  6442. 9000/8??:4.3bsd:*:*)
  6443. echo hppa1.0-hp-bsd
  6444. exit 0 ;;
  6445. + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  6446. + echo hppa1.0-hp-mpeix
  6447. + exit 0 ;;
  6448. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  6449. echo hppa1.1-hp-osf
  6450. exit 0 ;;
  6451. hp8??:OSF1:*:*)
  6452. echo hppa1.0-hp-osf
  6453. exit 0 ;;
  6454. - i?86:OSF1:*:*)
  6455. + i*86:OSF1:*:*)
  6456. if [ -x /usr/sbin/sysversion ] ; then
  6457. echo ${UNAME_MACHINE}-unknown-osf1mk
  6458. else
  6459. @@ -347,129 +742,320 @@
  6460. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  6461. echo c4-convex-bsd
  6462. exit 0 ;;
  6463. - CRAY*X-MP:*:*:*)
  6464. - echo xmp-cray-unicos
  6465. - exit 0 ;;
  6466. CRAY*Y-MP:*:*:*)
  6467. - echo ymp-cray-unicos${UNAME_RELEASE}
  6468. + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  6469. exit 0 ;;
  6470. CRAY*[A-Z]90:*:*:*)
  6471. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  6472. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  6473. - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
  6474. + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  6475. + -e 's/\.[^.]*$/.X/'
  6476. exit 0 ;;
  6477. CRAY*TS:*:*:*)
  6478. - echo t90-cray-unicos${UNAME_RELEASE}
  6479. + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  6480. exit 0 ;;
  6481. - CRAY-2:*:*:*)
  6482. - echo cray2-cray-unicos
  6483. - exit 0 ;;
  6484. - F300:UNIX_System_V:*:*)
  6485. - FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
  6486. + CRAY*T3E:*:*:*)
  6487. + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  6488. + exit 0 ;;
  6489. + CRAY*SV1:*:*:*)
  6490. + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  6491. + exit 0 ;;
  6492. + *:UNICOS/mp:*:*)
  6493. + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  6494. + exit 0 ;;
  6495. + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  6496. + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  6497. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  6498. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  6499. - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  6500. + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  6501. exit 0 ;;
  6502. - F301:UNIX_System_V:*:*)
  6503. - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
  6504. - exit 0 ;;
  6505. - hp3[0-9][05]:NetBSD:*:*)
  6506. - echo m68k-hp-netbsd${UNAME_RELEASE}
  6507. - exit 0 ;;
  6508. - hp3[0-9][05]:OpenBSD:*:*)
  6509. - echo m68k-hp-openbsd${UNAME_RELEASE}
  6510. + 5000:UNIX_System_V:4.*:*)
  6511. + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  6512. + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  6513. + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  6514. exit 0 ;;
  6515. - i?86:BSD/386:*:* | *:BSD/OS:*:*)
  6516. + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  6517. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  6518. exit 0 ;;
  6519. + sparc*:BSD/OS:*:*)
  6520. + echo sparc-unknown-bsdi${UNAME_RELEASE}
  6521. + exit 0 ;;
  6522. + *:BSD/OS:*:*)
  6523. + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  6524. + exit 0 ;;
  6525. *:FreeBSD:*:*)
  6526. echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  6527. exit 0 ;;
  6528. - *:NetBSD:*:*)
  6529. - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  6530. + i*:CYGWIN*:*)
  6531. + echo ${UNAME_MACHINE}-pc-cygwin
  6532. exit 0 ;;
  6533. - *:OpenBSD:*:*)
  6534. - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  6535. + i*:MINGW*:*)
  6536. + echo ${UNAME_MACHINE}-pc-mingw32
  6537. exit 0 ;;
  6538. - i*:CYGWIN*:*)
  6539. - echo i386-pc-cygwin32
  6540. + i*:PW*:*)
  6541. + echo ${UNAME_MACHINE}-pc-pw32
  6542. + exit 0 ;;
  6543. + x86:Interix*:[34]*)
  6544. + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  6545. + exit 0 ;;
  6546. + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  6547. + echo i${UNAME_MACHINE}-pc-mks
  6548. + exit 0 ;;
  6549. + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  6550. + # How do we know it's Interix rather than the generic POSIX subsystem?
  6551. + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  6552. + # UNAME_MACHINE based on the output of uname instead of i386?
  6553. + echo i586-pc-interix
  6554. + exit 0 ;;
  6555. + i*:UWIN*:*)
  6556. + echo ${UNAME_MACHINE}-pc-uwin
  6557. exit 0 ;;
  6558. p*:CYGWIN*:*)
  6559. - echo powerpcle-unknown-cygwin32
  6560. + echo powerpcle-unknown-cygwin
  6561. exit 0 ;;
  6562. prep*:SunOS:5.*:*)
  6563. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  6564. exit 0 ;;
  6565. *:GNU:*:*)
  6566. - echo `echo ${UNAME_MACHINE}|sed -e 's,/.*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  6567. + # the GNU system
  6568. + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  6569. + exit 0 ;;
  6570. + *:GNU/*:*:*)
  6571. + # other systems with GNU libc and userland
  6572. + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  6573. + exit 0 ;;
  6574. + i*86:Minix:*:*)
  6575. + echo ${UNAME_MACHINE}-pc-minix
  6576. + exit 0 ;;
  6577. + arm*:Linux:*:*)
  6578. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  6579. + exit 0 ;;
  6580. + cris:Linux:*:*)
  6581. + echo cris-axis-linux-gnu
  6582. + exit 0 ;;
  6583. + ia64:Linux:*:*)
  6584. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  6585. + exit 0 ;;
  6586. + m32r*:Linux:*:*)
  6587. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  6588. + exit 0 ;;
  6589. + m68*:Linux:*:*)
  6590. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  6591. + exit 0 ;;
  6592. + mips:Linux:*:*)
  6593. + eval $set_cc_for_build
  6594. + sed 's/^ //' << EOF >$dummy.c
  6595. + #undef CPU
  6596. + #undef mips
  6597. + #undef mipsel
  6598. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  6599. + CPU=mipsel
  6600. + #else
  6601. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  6602. + CPU=mips
  6603. + #else
  6604. + CPU=
  6605. + #endif
  6606. + #endif
  6607. +EOF
  6608. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  6609. + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  6610. + ;;
  6611. + mips64:Linux:*:*)
  6612. + eval $set_cc_for_build
  6613. + sed 's/^ //' << EOF >$dummy.c
  6614. + #undef CPU
  6615. + #undef mips64
  6616. + #undef mips64el
  6617. + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  6618. + CPU=mips64el
  6619. + #else
  6620. + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  6621. + CPU=mips64
  6622. + #else
  6623. + CPU=
  6624. + #endif
  6625. + #endif
  6626. +EOF
  6627. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  6628. + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  6629. + ;;
  6630. + ppc:Linux:*:*)
  6631. + echo powerpc-unknown-linux-gnu
  6632. + exit 0 ;;
  6633. + ppc64:Linux:*:*)
  6634. + echo powerpc64-unknown-linux-gnu
  6635. + exit 0 ;;
  6636. + alpha:Linux:*:*)
  6637. + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  6638. + EV5) UNAME_MACHINE=alphaev5 ;;
  6639. + EV56) UNAME_MACHINE=alphaev56 ;;
  6640. + PCA56) UNAME_MACHINE=alphapca56 ;;
  6641. + PCA57) UNAME_MACHINE=alphapca56 ;;
  6642. + EV6) UNAME_MACHINE=alphaev6 ;;
  6643. + EV67) UNAME_MACHINE=alphaev67 ;;
  6644. + EV68*) UNAME_MACHINE=alphaev68 ;;
  6645. + esac
  6646. + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  6647. + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  6648. + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  6649. + exit 0 ;;
  6650. + parisc:Linux:*:* | hppa:Linux:*:*)
  6651. + # Look for CPU level
  6652. + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  6653. + PA7*) echo hppa1.1-unknown-linux-gnu ;;
  6654. + PA8*) echo hppa2.0-unknown-linux-gnu ;;
  6655. + *) echo hppa-unknown-linux-gnu ;;
  6656. + esac
  6657. + exit 0 ;;
  6658. + parisc64:Linux:*:* | hppa64:Linux:*:*)
  6659. + echo hppa64-unknown-linux-gnu
  6660. + exit 0 ;;
  6661. + s390:Linux:*:* | s390x:Linux:*:*)
  6662. + echo ${UNAME_MACHINE}-ibm-linux
  6663. + exit 0 ;;
  6664. + sh64*:Linux:*:*)
  6665. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  6666. exit 0 ;;
  6667. - *:Linux:*:*)
  6668. + sh*:Linux:*:*)
  6669. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  6670. + exit 0 ;;
  6671. + sparc:Linux:*:* | sparc64:Linux:*:*)
  6672. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  6673. + exit 0 ;;
  6674. + x86_64:Linux:*:*)
  6675. + echo x86_64-unknown-linux-gnu
  6676. + exit 0 ;;
  6677. + i*86:Linux:*:*)
  6678. # The BFD linker knows what the default object file format is, so
  6679. - # first see if it will tell us.
  6680. - ld_help_string=`ld --help 2>&1`
  6681. - if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i.86"; then
  6682. - echo "${UNAME_MACHINE}-pc-linux-gnu" ; exit 0
  6683. - elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86linux"; then
  6684. - echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0
  6685. - elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i.86coff"; then
  6686. - echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0
  6687. - elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then
  6688. - echo "${UNAME_MACHINE}-unknown-linux-gnu" ; exit 0
  6689. - elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then
  6690. - echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0
  6691. - elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf32ppc"; then
  6692. - echo "powerpc-unknown-linux-gnu" ; exit 0
  6693. - elif test "${UNAME_MACHINE}" = "alpha" ; then
  6694. - echo alpha-unknown-linux-gnu ; exit 0
  6695. - elif test "${UNAME_MACHINE}" = "sparc" ; then
  6696. - echo sparc-unknown-linux-gnu ; exit 0
  6697. - else
  6698. - # Either a pre-BFD a.out linker (linux-gnuoldld) or one that does not give us
  6699. - # useful --help. Gcc wants to distinguish between linux-gnuoldld and linux-gnuaout.
  6700. - test ! -d /usr/lib/ldscripts/. \
  6701. - && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
  6702. - # Determine whether the default compiler is a.out or elf
  6703. - cat >dummy.c <<EOF
  6704. -main(argc, argv)
  6705. -int argc;
  6706. -char *argv[];
  6707. -{
  6708. -#ifdef __ELF__
  6709. - printf ("%s-pc-linux-gnu\n", argv[1]);
  6710. -#else
  6711. - printf ("%s-pc-linux-gnuaout\n", argv[1]);
  6712. -#endif
  6713. - return 0;
  6714. -}
  6715. + # first see if it will tell us. cd to the root directory to prevent
  6716. + # problems with other programs or directories called `ld' in the path.
  6717. + # Set LC_ALL=C to ensure ld outputs messages in English.
  6718. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
  6719. + | sed -ne '/supported targets:/!d
  6720. + s/[ ][ ]*/ /g
  6721. + s/.*supported targets: *//
  6722. + s/ .*//
  6723. + p'`
  6724. + case "$ld_supported_targets" in
  6725. + elf32-i386)
  6726. + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  6727. + ;;
  6728. + a.out-i386-linux)
  6729. + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  6730. + exit 0 ;;
  6731. + coff-i386)
  6732. + echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  6733. + exit 0 ;;
  6734. + "")
  6735. + # Either a pre-BFD a.out linker (linux-gnuoldld) or
  6736. + # one that does not give us useful --help.
  6737. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  6738. + exit 0 ;;
  6739. + esac
  6740. + # Determine whether the default compiler is a.out or elf
  6741. + eval $set_cc_for_build
  6742. + sed 's/^ //' << EOF >$dummy.c
  6743. + #include <features.h>
  6744. + #ifdef __ELF__
  6745. + # ifdef __GLIBC__
  6746. + # if __GLIBC__ >= 2
  6747. + LIBC=gnu
  6748. + # else
  6749. + LIBC=gnulibc1
  6750. + # endif
  6751. + # else
  6752. + LIBC=gnulibc1
  6753. + # endif
  6754. + #else
  6755. + #ifdef __INTEL_COMPILER
  6756. + LIBC=gnu
  6757. + #else
  6758. + LIBC=gnuaout
  6759. + #endif
  6760. + #endif
  6761. + #ifdef __dietlibc__
  6762. + LIBC=dietlibc
  6763. + #endif
  6764. EOF
  6765. - ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
  6766. - rm -f dummy.c dummy
  6767. - fi ;;
  6768. -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
  6769. -# are messed up and put the nodename in both sysname and nodename.
  6770. - i?86:DYNIX/ptx:4*:*)
  6771. + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  6772. + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  6773. + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  6774. + ;;
  6775. + i*86:DYNIX/ptx:4*:*)
  6776. + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  6777. + # earlier versions are messed up and put the nodename in both
  6778. + # sysname and nodename.
  6779. echo i386-sequent-sysv4
  6780. exit 0 ;;
  6781. - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
  6782. + i*86:UNIX_SV:4.2MP:2.*)
  6783. + # Unixware is an offshoot of SVR4, but it has its own version
  6784. + # number series starting with 2...
  6785. + # I am not positive that other SVR4 systems won't match this,
  6786. + # I just have to hope. -- rms.
  6787. + # Use sysv4.2uw... so that sysv4* matches it.
  6788. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  6789. + exit 0 ;;
  6790. + i*86:OS/2:*:*)
  6791. + # If we were able to find `uname', then EMX Unix compatibility
  6792. + # is probably installed.
  6793. + echo ${UNAME_MACHINE}-pc-os2-emx
  6794. + exit 0 ;;
  6795. + i*86:XTS-300:*:STOP)
  6796. + echo ${UNAME_MACHINE}-unknown-stop
  6797. + exit 0 ;;
  6798. + i*86:atheos:*:*)
  6799. + echo ${UNAME_MACHINE}-unknown-atheos
  6800. + exit 0 ;;
  6801. + i*86:syllable:*:*)
  6802. + echo ${UNAME_MACHINE}-pc-syllable
  6803. + exit 0 ;;
  6804. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  6805. + echo i386-unknown-lynxos${UNAME_RELEASE}
  6806. + exit 0 ;;
  6807. + i*86:*DOS:*:*)
  6808. + echo ${UNAME_MACHINE}-pc-msdosdjgpp
  6809. + exit 0 ;;
  6810. + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  6811. + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  6812. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  6813. - echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
  6814. + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  6815. else
  6816. - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
  6817. + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  6818. fi
  6819. exit 0 ;;
  6820. - i?86:*:3.2:*)
  6821. + i*86:*:5:[78]*)
  6822. + case `/bin/uname -X | grep "^Machine"` in
  6823. + *486*) UNAME_MACHINE=i486 ;;
  6824. + *Pentium) UNAME_MACHINE=i586 ;;
  6825. + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  6826. + esac
  6827. + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  6828. + exit 0 ;;
  6829. + i*86:*:3.2:*)
  6830. if test -f /usr/options/cb.name; then
  6831. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  6832. echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  6833. elif /bin/uname -X 2>/dev/null >/dev/null ; then
  6834. - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
  6835. - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
  6836. - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
  6837. + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
  6838. + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
  6839. + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
  6840. && UNAME_MACHINE=i586
  6841. + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
  6842. + && UNAME_MACHINE=i686
  6843. + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
  6844. + && UNAME_MACHINE=i686
  6845. echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  6846. else
  6847. echo ${UNAME_MACHINE}-pc-sysv32
  6848. fi
  6849. exit 0 ;;
  6850. + pc:*:*:*)
  6851. + # Left here for compatibility:
  6852. + # uname -m prints for DJGPP always 'pc', but it prints nothing about
  6853. + # the processor, so we play safe by assuming i386.
  6854. + echo i386-pc-msdosdjgpp
  6855. + exit 0 ;;
  6856. Intel:Mach:3*:*)
  6857. echo i386-pc-mach3
  6858. exit 0 ;;
  6859. @@ -487,9 +1073,15 @@
  6860. # "miniframe"
  6861. echo m68010-convergent-sysv
  6862. exit 0 ;;
  6863. - M68*:*:R3V[567]*:*)
  6864. + mc68k:UNIX:SYSTEM5:3.51m)
  6865. + echo m68k-convergent-sysv
  6866. + exit 0 ;;
  6867. + M680?0:D-NIX:5.3:*)
  6868. + echo m68k-diab-dnix
  6869. + exit 0 ;;
  6870. + M68*:*:R3V[5678]*:*)
  6871. test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  6872. - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
  6873. + 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)
  6874. OS_REL=''
  6875. test -r /etc/.relid \
  6876. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  6877. @@ -500,24 +1092,27 @@
  6878. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  6879. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  6880. && echo i486-ncr-sysv4 && exit 0 ;;
  6881. - m68*:LynxOS:2.*:*)
  6882. + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  6883. echo m68k-unknown-lynxos${UNAME_RELEASE}
  6884. exit 0 ;;
  6885. mc68030:UNIX_System_V:4.*:*)
  6886. echo m68k-atari-sysv4
  6887. exit 0 ;;
  6888. - i?86:LynxOS:2.*:*)
  6889. - echo i386-unknown-lynxos${UNAME_RELEASE}
  6890. - exit 0 ;;
  6891. TSUNAMI:LynxOS:2.*:*)
  6892. echo sparc-unknown-lynxos${UNAME_RELEASE}
  6893. exit 0 ;;
  6894. - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
  6895. + rs6000:LynxOS:2.*:*)
  6896. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  6897. exit 0 ;;
  6898. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  6899. + echo powerpc-unknown-lynxos${UNAME_RELEASE}
  6900. + exit 0 ;;
  6901. SM[BE]S:UNIX_SV:*:*)
  6902. echo mips-dde-sysv${UNAME_RELEASE}
  6903. exit 0 ;;
  6904. + RM*:ReliantUNIX-*:*:*)
  6905. + echo mips-sni-sysv4
  6906. + exit 0 ;;
  6907. RM*:SINIX-*:*:*)
  6908. echo mips-sni-sysv4
  6909. exit 0 ;;
  6910. @@ -529,6 +1124,10 @@
  6911. echo ns32k-sni-sysv
  6912. fi
  6913. exit 0 ;;
  6914. + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  6915. + # says <Richard.M.Bartel@ccMail.Census.GOV>
  6916. + echo i586-unisys-sysv4
  6917. + exit 0 ;;
  6918. *:UNIX_System_V:4*:FTX*)
  6919. # From Gerald Hewes <hewes@openmarket.com>.
  6920. # How about differentiating between stratus architectures? -djm
  6921. @@ -538,26 +1137,126 @@
  6922. # From seanf@swdc.stratus.com.
  6923. echo i860-stratus-sysv4
  6924. exit 0 ;;
  6925. + *:VOS:*:*)
  6926. + # From Paul.Green@stratus.com.
  6927. + echo hppa1.1-stratus-vos
  6928. + exit 0 ;;
  6929. mc68*:A/UX:*:*)
  6930. echo m68k-apple-aux${UNAME_RELEASE}
  6931. exit 0 ;;
  6932. - R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
  6933. + news*:NEWS-OS:6*:*)
  6934. + echo mips-sony-newsos6
  6935. + exit 0 ;;
  6936. + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  6937. if [ -d /usr/nec ]; then
  6938. echo mips-nec-sysv${UNAME_RELEASE}
  6939. else
  6940. echo mips-unknown-sysv${UNAME_RELEASE}
  6941. fi
  6942. exit 0 ;;
  6943. - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  6944. - # says <Richard.M.Bartel@ccMail.Census.GOV>
  6945. - echo i586-unisys-sysv4
  6946. - exit 0 ;;
  6947. + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  6948. + echo powerpc-be-beos
  6949. + exit 0 ;;
  6950. + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  6951. + echo powerpc-apple-beos
  6952. + exit 0 ;;
  6953. + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  6954. + echo i586-pc-beos
  6955. + exit 0 ;;
  6956. + SX-4:SUPER-UX:*:*)
  6957. + echo sx4-nec-superux${UNAME_RELEASE}
  6958. + exit 0 ;;
  6959. + SX-5:SUPER-UX:*:*)
  6960. + echo sx5-nec-superux${UNAME_RELEASE}
  6961. + exit 0 ;;
  6962. + SX-6:SUPER-UX:*:*)
  6963. + echo sx6-nec-superux${UNAME_RELEASE}
  6964. + exit 0 ;;
  6965. + Power*:Rhapsody:*:*)
  6966. + echo powerpc-apple-rhapsody${UNAME_RELEASE}
  6967. + exit 0 ;;
  6968. + *:Rhapsody:*:*)
  6969. + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  6970. + exit 0 ;;
  6971. + *:Darwin:*:*)
  6972. + case `uname -p` in
  6973. + *86) UNAME_PROCESSOR=i686 ;;
  6974. + powerpc) UNAME_PROCESSOR=powerpc ;;
  6975. + esac
  6976. + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  6977. + exit 0 ;;
  6978. + *:procnto*:*:* | *:QNX:[0123456789]*:*)
  6979. + UNAME_PROCESSOR=`uname -p`
  6980. + if test "$UNAME_PROCESSOR" = "x86"; then
  6981. + UNAME_PROCESSOR=i386
  6982. + UNAME_MACHINE=pc
  6983. + fi
  6984. + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  6985. + exit 0 ;;
  6986. + *:QNX:*:4*)
  6987. + echo i386-pc-qnx
  6988. + exit 0 ;;
  6989. + NSR-?:NONSTOP_KERNEL:*:*)
  6990. + echo nsr-tandem-nsk${UNAME_RELEASE}
  6991. + exit 0 ;;
  6992. + *:NonStop-UX:*:*)
  6993. + echo mips-compaq-nonstopux
  6994. + exit 0 ;;
  6995. + BS2000:POSIX*:*:*)
  6996. + echo bs2000-siemens-sysv
  6997. + exit 0 ;;
  6998. + DS/*:UNIX_System_V:*:*)
  6999. + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  7000. + exit 0 ;;
  7001. + *:Plan9:*:*)
  7002. + # "uname -m" is not consistent, so use $cputype instead. 386
  7003. + # is converted to i386 for consistency with other x86
  7004. + # operating systems.
  7005. + if test "$cputype" = "386"; then
  7006. + UNAME_MACHINE=i386
  7007. + else
  7008. + UNAME_MACHINE="$cputype"
  7009. + fi
  7010. + echo ${UNAME_MACHINE}-unknown-plan9
  7011. + exit 0 ;;
  7012. + *:TOPS-10:*:*)
  7013. + echo pdp10-unknown-tops10
  7014. + exit 0 ;;
  7015. + *:TENEX:*:*)
  7016. + echo pdp10-unknown-tenex
  7017. + exit 0 ;;
  7018. + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  7019. + echo pdp10-dec-tops20
  7020. + exit 0 ;;
  7021. + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  7022. + echo pdp10-xkl-tops20
  7023. + exit 0 ;;
  7024. + *:TOPS-20:*:*)
  7025. + echo pdp10-unknown-tops20
  7026. + exit 0 ;;
  7027. + *:ITS:*:*)
  7028. + echo pdp10-unknown-its
  7029. + exit 0 ;;
  7030. + SEI:*:*:SEIUX)
  7031. + echo mips-sei-seiux${UNAME_RELEASE}
  7032. + exit 0 ;;
  7033. + *:DragonFly:*:*)
  7034. + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  7035. + exit 0 ;;
  7036. + *:*VMS:*:*)
  7037. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  7038. + case "${UNAME_MACHINE}" in
  7039. + A*) echo alpha-dec-vms && exit 0 ;;
  7040. + I*) echo ia64-dec-vms && exit 0 ;;
  7041. + V*) echo vax-dec-vms && exit 0 ;;
  7042. + esac
  7043. esac
  7044. #echo '(No uname command or uname output not recognized.)' 1>&2
  7045. #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  7046. -cat >dummy.c <<EOF
  7047. +eval $set_cc_for_build
  7048. +cat >$dummy.c <<EOF
  7049. #ifdef _SEQUENT_
  7050. # include <sys/types.h>
  7051. # include <sys/utsname.h>
  7052. @@ -595,7 +1294,10 @@
  7053. #endif
  7054. int version;
  7055. version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  7056. - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  7057. + if (version < 4)
  7058. + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  7059. + else
  7060. + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  7061. exit (0);
  7062. #endif
  7063. @@ -640,11 +1342,24 @@
  7064. #endif
  7065. #if defined (vax)
  7066. -#if !defined (ultrix)
  7067. - printf ("vax-dec-bsd\n"); exit (0);
  7068. -#else
  7069. - printf ("vax-dec-ultrix\n"); exit (0);
  7070. -#endif
  7071. +# if !defined (ultrix)
  7072. +# include <sys/param.h>
  7073. +# if defined (BSD)
  7074. +# if BSD == 43
  7075. + printf ("vax-dec-bsd4.3\n"); exit (0);
  7076. +# else
  7077. +# if BSD == 199006
  7078. + printf ("vax-dec-bsd4.3reno\n"); exit (0);
  7079. +# else
  7080. + printf ("vax-dec-bsd\n"); exit (0);
  7081. +# endif
  7082. +# endif
  7083. +# else
  7084. + printf ("vax-dec-bsd\n"); exit (0);
  7085. +# endif
  7086. +# else
  7087. + printf ("vax-dec-ultrix\n"); exit (0);
  7088. +# endif
  7089. #endif
  7090. #if defined (alliant) && defined (i860)
  7091. @@ -655,8 +1370,7 @@
  7092. }
  7093. EOF
  7094. -${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
  7095. -rm -f dummy.c dummy
  7096. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  7097. # Apollos put the system type in the environment.
  7098. @@ -688,6 +1402,48 @@
  7099. esac
  7100. fi
  7101. -#echo '(Unable to guess system type)' 1>&2
  7102. +cat >&2 <<EOF
  7103. +$0: unable to guess system type
  7104. +
  7105. +This script, last modified $timestamp, has failed to recognize
  7106. +the operating system you are using. It is advised that you
  7107. +download the most up to date version of the config scripts from
  7108. +
  7109. + ftp://ftp.gnu.org/pub/gnu/config/
  7110. +
  7111. +If the version you run ($0) is already up to date, please
  7112. +send the following data and any information you think might be
  7113. +pertinent to <config-patches@gnu.org> in order to provide the needed
  7114. +information to handle your system.
  7115. +
  7116. +config.guess timestamp = $timestamp
  7117. +
  7118. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  7119. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  7120. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  7121. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  7122. +
  7123. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
  7124. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
  7125. +
  7126. +hostinfo = `(hostinfo) 2>/dev/null`
  7127. +/bin/universe = `(/bin/universe) 2>/dev/null`
  7128. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
  7129. +/bin/arch = `(/bin/arch) 2>/dev/null`
  7130. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
  7131. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
  7132. +
  7133. +UNAME_MACHINE = ${UNAME_MACHINE}
  7134. +UNAME_RELEASE = ${UNAME_RELEASE}
  7135. +UNAME_SYSTEM = ${UNAME_SYSTEM}
  7136. +UNAME_VERSION = ${UNAME_VERSION}
  7137. +EOF
  7138. exit 1
  7139. +
  7140. +# Local variables:
  7141. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  7142. +# time-stamp-start: "timestamp='"
  7143. +# time-stamp-format: "%:y-%02m-%02d"
  7144. +# time-stamp-end: "'"
  7145. +# End:
  7146. diff -ruN libnet-1.0.2a-orig/config.sub libnet-1.0.2a-7/config.sub
  7147. --- libnet-1.0.2a-orig/config.sub 2001-02-07 00:14:20.000000000 +0100
  7148. +++ libnet-1.0.2a-7/config.sub 2005-03-08 03:53:26.000000000 +0100
  7149. @@ -1,6 +1,10 @@
  7150. #! /bin/sh
  7151. -# Configuration validation subroutine script, version 1.1.
  7152. -# Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
  7153. +# Configuration validation subroutine script.
  7154. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  7155. +# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
  7156. +
  7157. +timestamp='2004-06-24'
  7158. +
  7159. # This file is (in principle) common to ALL GNU software.
  7160. # The presence of a machine in this file suggests that SOME GNU software
  7161. # can handle that machine. It does not imply ALL GNU software can.
  7162. @@ -25,6 +29,9 @@
  7163. # configuration script generated by Autoconf, you may include it under
  7164. # the same distribution terms that you use for the rest of that program.
  7165. +# Please send patches to <config-patches@gnu.org>. Submit a context
  7166. +# diff and a properly formatted ChangeLog entry.
  7167. +#
  7168. # Configuration subroutine to validate and canonicalize a configuration type.
  7169. # Supply the specified configuration type as an argument.
  7170. # If it is invalid, we print an error message on stderr and exit with code 1.
  7171. @@ -45,30 +52,74 @@
  7172. # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
  7173. # It is wrong to echo any other type of specification.
  7174. -if [ x$1 = x ]
  7175. -then
  7176. - echo Configuration name missing. 1>&2
  7177. - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
  7178. - echo "or $0 ALIAS" 1>&2
  7179. - echo where ALIAS is a recognized configuration type. 1>&2
  7180. - exit 1
  7181. -fi
  7182. +me=`echo "$0" | sed -e 's,.*/,,'`
  7183. -# First pass through any local machine types.
  7184. -case $1 in
  7185. - *local*)
  7186. - echo $1
  7187. - exit 0
  7188. - ;;
  7189. - *)
  7190. - ;;
  7191. +usage="\
  7192. +Usage: $0 [OPTION] CPU-MFR-OPSYS
  7193. + $0 [OPTION] ALIAS
  7194. +
  7195. +Canonicalize a configuration name.
  7196. +
  7197. +Operation modes:
  7198. + -h, --help print this help, then exit
  7199. + -t, --time-stamp print date of last modification, then exit
  7200. + -v, --version print version number, then exit
  7201. +
  7202. +Report bugs and patches to <config-patches@gnu.org>."
  7203. +
  7204. +version="\
  7205. +GNU config.sub ($timestamp)
  7206. +
  7207. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
  7208. +Free Software Foundation, Inc.
  7209. +
  7210. +This is free software; see the source for copying conditions. There is NO
  7211. +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  7212. +
  7213. +help="
  7214. +Try \`$me --help' for more information."
  7215. +
  7216. +# Parse command line
  7217. +while test $# -gt 0 ; do
  7218. + case $1 in
  7219. + --time-stamp | --time* | -t )
  7220. + echo "$timestamp" ; exit 0 ;;
  7221. + --version | -v )
  7222. + echo "$version" ; exit 0 ;;
  7223. + --help | --h* | -h )
  7224. + echo "$usage"; exit 0 ;;
  7225. + -- ) # Stop option processing
  7226. + shift; break ;;
  7227. + - ) # Use stdin as input.
  7228. + break ;;
  7229. + -* )
  7230. + echo "$me: invalid option $1$help"
  7231. + exit 1 ;;
  7232. +
  7233. + *local*)
  7234. + # First pass through any local machine types.
  7235. + echo $1
  7236. + exit 0;;
  7237. +
  7238. + * )
  7239. + break ;;
  7240. + esac
  7241. +done
  7242. +
  7243. +case $# in
  7244. + 0) echo "$me: missing argument$help" >&2
  7245. + exit 1;;
  7246. + 1) ;;
  7247. + *) echo "$me: too many arguments$help" >&2
  7248. + exit 1;;
  7249. esac
  7250. # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
  7251. # Here we must recognize all the valid KERNEL-OS combinations.
  7252. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  7253. case $maybe_os in
  7254. - linux-gnu*)
  7255. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
  7256. + kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  7257. os=-$maybe_os
  7258. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  7259. ;;
  7260. @@ -94,15 +145,33 @@
  7261. -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  7262. -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  7263. -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  7264. - -apple)
  7265. + -apple | -axis | -knuth | -cray)
  7266. os=
  7267. basic_machine=$1
  7268. ;;
  7269. + -sim | -cisco | -oki | -wec | -winbond)
  7270. + os=
  7271. + basic_machine=$1
  7272. + ;;
  7273. + -scout)
  7274. + ;;
  7275. + -wrs)
  7276. + os=-vxworks
  7277. + basic_machine=$1
  7278. + ;;
  7279. + -chorusos*)
  7280. + os=-chorusos
  7281. + basic_machine=$1
  7282. + ;;
  7283. + -chorusrdb)
  7284. + os=-chorusrdb
  7285. + basic_machine=$1
  7286. + ;;
  7287. -hiux*)
  7288. os=-hiuxwe2
  7289. ;;
  7290. -sco5)
  7291. - os=sco3.2v5
  7292. + os=-sco3.2v5
  7293. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  7294. ;;
  7295. -sco4)
  7296. @@ -121,6 +190,9 @@
  7297. os=-sco3.2v2
  7298. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  7299. ;;
  7300. + -udk*)
  7301. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  7302. + ;;
  7303. -isc)
  7304. os=-isc2.2
  7305. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  7306. @@ -143,25 +215,74 @@
  7307. -psos*)
  7308. os=-psos
  7309. ;;
  7310. + -mint | -mint[0-9]*)
  7311. + basic_machine=m68k-atari
  7312. + os=-mint
  7313. + ;;
  7314. esac
  7315. # Decode aliases for certain CPU-COMPANY combinations.
  7316. case $basic_machine in
  7317. # Recognize the basic CPU types without company name.
  7318. # Some are omitted here because they have special meanings below.
  7319. - tahoe | i860 | m68k | m68000 | m88k | ns32k | arm \
  7320. - | arme[lb] | pyramid \
  7321. - | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
  7322. - | alpha | we32k | ns16k | clipper | i370 | sh \
  7323. - | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \
  7324. - | pdp11 | mips64el | mips64orion | mips64orionel \
  7325. - | sparc | sparclet | sparclite | sparc64)
  7326. + 1750a | 580 \
  7327. + | a29k \
  7328. + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  7329. + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  7330. + | am33_2.0 \
  7331. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  7332. + | c4x | clipper \
  7333. + | d10v | d30v | dlx | dsp16xx \
  7334. + | fr30 | frv \
  7335. + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  7336. + | i370 | i860 | i960 | ia64 \
  7337. + | ip2k | iq2000 \
  7338. + | m32r | m32rle | m68000 | m68k | m88k | mcore \
  7339. + | mips | mipsbe | mipseb | mipsel | mipsle \
  7340. + | mips16 \
  7341. + | mips64 | mips64el \
  7342. + | mips64vr | mips64vrel \
  7343. + | mips64orion | mips64orionel \
  7344. + | mips64vr4100 | mips64vr4100el \
  7345. + | mips64vr4300 | mips64vr4300el \
  7346. + | mips64vr5000 | mips64vr5000el \
  7347. + | mipsisa32 | mipsisa32el \
  7348. + | mipsisa32r2 | mipsisa32r2el \
  7349. + | mipsisa64 | mipsisa64el \
  7350. + | mipsisa64r2 | mipsisa64r2el \
  7351. + | mipsisa64sb1 | mipsisa64sb1el \
  7352. + | mipsisa64sr71k | mipsisa64sr71kel \
  7353. + | mipstx39 | mipstx39el \
  7354. + | mn10200 | mn10300 \
  7355. + | msp430 \
  7356. + | ns16k | ns32k \
  7357. + | openrisc | or32 \
  7358. + | pdp10 | pdp11 | pj | pjl \
  7359. + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  7360. + | pyramid \
  7361. + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  7362. + | sh64 | sh64le \
  7363. + | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
  7364. + | strongarm \
  7365. + | tahoe | thumb | tic4x | tic80 | tron \
  7366. + | v850 | v850e \
  7367. + | we32k \
  7368. + | x86 | xscale | xstormy16 | xtensa \
  7369. + | z8k)
  7370. basic_machine=$basic_machine-unknown
  7371. ;;
  7372. + m6811 | m68hc11 | m6812 | m68hc12)
  7373. + # Motorola 68HC11/12.
  7374. + basic_machine=$basic_machine-unknown
  7375. + os=-none
  7376. + ;;
  7377. + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  7378. + ;;
  7379. +
  7380. # We use `pc' rather than `unknown'
  7381. # because (1) that's what they normally are, and
  7382. # (2) the word "unknown" tends to confuse beginning users.
  7383. - i[3456]86)
  7384. + i*86 | x86_64)
  7385. basic_machine=$basic_machine-pc
  7386. ;;
  7387. # Object if more than one company name word.
  7388. @@ -170,23 +291,86 @@
  7389. exit 1
  7390. ;;
  7391. # Recognize the basic CPU types with company name.
  7392. - vax-* | tahoe-* | i[3456]86-* | i860-* | m68k-* | m68000-* | m88k-* \
  7393. - | sparc-* | ns32k-* | fx80-* | arm* | c[123]* \
  7394. - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \
  7395. - | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
  7396. - | hppa-* | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
  7397. - | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
  7398. - | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
  7399. - | mips64el-* | mips64orion-* | mips64orionel-* | f301-*)
  7400. + 580-* \
  7401. + | a29k-* \
  7402. + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
  7403. + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  7404. + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  7405. + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  7406. + | avr-* \
  7407. + | bs2000-* \
  7408. + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  7409. + | clipper-* | craynv-* | cydra-* \
  7410. + | d10v-* | d30v-* | dlx-* \
  7411. + | elxsi-* \
  7412. + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  7413. + | h8300-* | h8500-* \
  7414. + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  7415. + | i*86-* | i860-* | i960-* | ia64-* \
  7416. + | ip2k-* | iq2000-* \
  7417. + | m32r-* | m32rle-* \
  7418. + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  7419. + | m88110-* | m88k-* | mcore-* \
  7420. + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  7421. + | mips16-* \
  7422. + | mips64-* | mips64el-* \
  7423. + | mips64vr-* | mips64vrel-* \
  7424. + | mips64orion-* | mips64orionel-* \
  7425. + | mips64vr4100-* | mips64vr4100el-* \
  7426. + | mips64vr4300-* | mips64vr4300el-* \
  7427. + | mips64vr5000-* | mips64vr5000el-* \
  7428. + | mipsisa32-* | mipsisa32el-* \
  7429. + | mipsisa32r2-* | mipsisa32r2el-* \
  7430. + | mipsisa64-* | mipsisa64el-* \
  7431. + | mipsisa64r2-* | mipsisa64r2el-* \
  7432. + | mipsisa64sb1-* | mipsisa64sb1el-* \
  7433. + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  7434. + | mipstx39-* | mipstx39el-* \
  7435. + | mmix-* \
  7436. + | msp430-* \
  7437. + | none-* | np1-* | ns16k-* | ns32k-* \
  7438. + | orion-* \
  7439. + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  7440. + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  7441. + | pyramid-* \
  7442. + | romp-* | rs6000-* \
  7443. + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  7444. + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  7445. + | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
  7446. + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  7447. + | tahoe-* | thumb-* \
  7448. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  7449. + | tron-* \
  7450. + | v850-* | v850e-* | vax-* \
  7451. + | we32k-* \
  7452. + | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
  7453. + | xtensa-* \
  7454. + | ymp-* \
  7455. + | z8k-*)
  7456. ;;
  7457. # Recognize the various machine names and aliases which stand
  7458. # for a CPU type and a company and sometimes even an OS.
  7459. + 386bsd)
  7460. + basic_machine=i386-unknown
  7461. + os=-bsd
  7462. + ;;
  7463. 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  7464. basic_machine=m68000-att
  7465. ;;
  7466. 3b*)
  7467. basic_machine=we32k-att
  7468. ;;
  7469. + a29khif)
  7470. + basic_machine=a29k-amd
  7471. + os=-udi
  7472. + ;;
  7473. + abacus)
  7474. + basic_machine=abacus-unknown
  7475. + ;;
  7476. + adobe68k)
  7477. + basic_machine=m68010-adobe
  7478. + os=-scout
  7479. + ;;
  7480. alliant | fx80)
  7481. basic_machine=fx80-alliant
  7482. ;;
  7483. @@ -197,25 +381,35 @@
  7484. basic_machine=a29k-none
  7485. os=-bsd
  7486. ;;
  7487. + amd64)
  7488. + basic_machine=x86_64-pc
  7489. + ;;
  7490. + amd64-*)
  7491. + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
  7492. + ;;
  7493. amdahl)
  7494. basic_machine=580-amdahl
  7495. os=-sysv
  7496. ;;
  7497. amiga | amiga-*)
  7498. - basic_machine=m68k-cbm
  7499. + basic_machine=m68k-unknown
  7500. ;;
  7501. - amigados)
  7502. - basic_machine=m68k-cbm
  7503. - os=-amigados
  7504. + amigaos | amigados)
  7505. + basic_machine=m68k-unknown
  7506. + os=-amigaos
  7507. ;;
  7508. amigaunix | amix)
  7509. - basic_machine=m68k-cbm
  7510. + basic_machine=m68k-unknown
  7511. os=-sysv4
  7512. ;;
  7513. apollo68)
  7514. basic_machine=m68k-apollo
  7515. os=-sysv
  7516. ;;
  7517. + apollo68bsd)
  7518. + basic_machine=m68k-apollo
  7519. + os=-bsd
  7520. + ;;
  7521. aux)
  7522. basic_machine=m68k-apple
  7523. os=-aux
  7524. @@ -224,6 +418,10 @@
  7525. basic_machine=ns32k-sequent
  7526. os=-dynix
  7527. ;;
  7528. + c90)
  7529. + basic_machine=c90-cray
  7530. + os=-unicos
  7531. + ;;
  7532. convex-c1)
  7533. basic_machine=c1-convex
  7534. os=-bsd
  7535. @@ -244,27 +442,42 @@
  7536. basic_machine=c38-convex
  7537. os=-bsd
  7538. ;;
  7539. - cray | ymp)
  7540. - basic_machine=ymp-cray
  7541. - os=-unicos
  7542. - ;;
  7543. - cray2)
  7544. - basic_machine=cray2-cray
  7545. + cray | j90)
  7546. + basic_machine=j90-cray
  7547. os=-unicos
  7548. ;;
  7549. - [ctj]90-cray)
  7550. - basic_machine=c90-cray
  7551. - os=-unicos
  7552. + craynv)
  7553. + basic_machine=craynv-cray
  7554. + os=-unicosmp
  7555. + ;;
  7556. + cr16c)
  7557. + basic_machine=cr16c-unknown
  7558. + os=-elf
  7559. ;;
  7560. crds | unos)
  7561. basic_machine=m68k-crds
  7562. ;;
  7563. + cris | cris-* | etrax*)
  7564. + basic_machine=cris-axis
  7565. + ;;
  7566. + crx)
  7567. + basic_machine=crx-unknown
  7568. + os=-elf
  7569. + ;;
  7570. da30 | da30-*)
  7571. basic_machine=m68k-da30
  7572. ;;
  7573. decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  7574. basic_machine=mips-dec
  7575. ;;
  7576. + decsystem10* | dec10*)
  7577. + basic_machine=pdp10-dec
  7578. + os=-tops10
  7579. + ;;
  7580. + decsystem20* | dec20*)
  7581. + basic_machine=pdp10-dec
  7582. + os=-tops20
  7583. + ;;
  7584. delta | 3300 | motorola-3300 | motorola-delta \
  7585. | 3300-motorola | delta-motorola)
  7586. basic_machine=m68k-motorola
  7587. @@ -292,6 +505,10 @@
  7588. encore | umax | mmax)
  7589. basic_machine=ns32k-encore
  7590. ;;
  7591. + es1800 | OSE68k | ose68k | ose | OSE)
  7592. + basic_machine=m68k-ericsson
  7593. + os=-ose
  7594. + ;;
  7595. fx2800)
  7596. basic_machine=i860-alliant
  7597. ;;
  7598. @@ -302,6 +519,10 @@
  7599. basic_machine=tron-gmicro
  7600. os=-sysv
  7601. ;;
  7602. + go32)
  7603. + basic_machine=i386-pc
  7604. + os=-go32
  7605. + ;;
  7606. h3050r* | hiux*)
  7607. basic_machine=hppa1.1-hitachi
  7608. os=-hiuxwe2
  7609. @@ -310,6 +531,14 @@
  7610. basic_machine=h8300-hitachi
  7611. os=-hms
  7612. ;;
  7613. + h8300xray)
  7614. + basic_machine=h8300-hitachi
  7615. + os=-xray
  7616. + ;;
  7617. + h8500hms)
  7618. + basic_machine=h8500-hitachi
  7619. + os=-hms
  7620. + ;;
  7621. harris)
  7622. basic_machine=m88k-harris
  7623. os=-sysv3
  7624. @@ -325,13 +554,30 @@
  7625. basic_machine=m68k-hp
  7626. os=-hpux
  7627. ;;
  7628. + hp3k9[0-9][0-9] | hp9[0-9][0-9])
  7629. + basic_machine=hppa1.0-hp
  7630. + ;;
  7631. hp9k2[0-9][0-9] | hp9k31[0-9])
  7632. basic_machine=m68000-hp
  7633. ;;
  7634. hp9k3[2-9][0-9])
  7635. basic_machine=m68k-hp
  7636. ;;
  7637. - hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
  7638. + hp9k6[0-9][0-9] | hp6[0-9][0-9])
  7639. + basic_machine=hppa1.0-hp
  7640. + ;;
  7641. + hp9k7[0-79][0-9] | hp7[0-79][0-9])
  7642. + basic_machine=hppa1.1-hp
  7643. + ;;
  7644. + hp9k78[0-9] | hp78[0-9])
  7645. + # FIXME: really hppa2.0-hp
  7646. + basic_machine=hppa1.1-hp
  7647. + ;;
  7648. + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
  7649. + # FIXME: really hppa2.0-hp
  7650. + basic_machine=hppa1.1-hp
  7651. + ;;
  7652. + hp9k8[0-9][13679] | hp8[0-9][13679])
  7653. basic_machine=hppa1.1-hp
  7654. ;;
  7655. hp9k8[0-9][0-9] | hp8[0-9][0-9])
  7656. @@ -340,27 +586,42 @@
  7657. hppa-next)
  7658. os=-nextstep3
  7659. ;;
  7660. + hppaosf)
  7661. + basic_machine=hppa1.1-hp
  7662. + os=-osf
  7663. + ;;
  7664. + hppro)
  7665. + basic_machine=hppa1.1-hp
  7666. + os=-proelf
  7667. + ;;
  7668. i370-ibm* | ibm*)
  7669. basic_machine=i370-ibm
  7670. - os=-mvs
  7671. ;;
  7672. # I'm not sure what "Sysv32" means. Should this be sysv3.2?
  7673. - i[3456]86v32)
  7674. + i*86v32)
  7675. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  7676. os=-sysv32
  7677. ;;
  7678. - i[3456]86v4*)
  7679. + i*86v4*)
  7680. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  7681. os=-sysv4
  7682. ;;
  7683. - i[3456]86v)
  7684. + i*86v)
  7685. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  7686. os=-sysv
  7687. ;;
  7688. - i[3456]86sol2)
  7689. + i*86sol2)
  7690. basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  7691. os=-solaris2
  7692. ;;
  7693. + i386mach)
  7694. + basic_machine=i386-mach
  7695. + os=-mach
  7696. + ;;
  7697. + i386-vsta | vsta)
  7698. + basic_machine=i386-unknown
  7699. + os=-vsta
  7700. + ;;
  7701. iris | iris4d)
  7702. basic_machine=mips-sgi
  7703. case $os in
  7704. @@ -386,19 +647,51 @@
  7705. basic_machine=ns32k-utek
  7706. os=-sysv
  7707. ;;
  7708. + mingw32)
  7709. + basic_machine=i386-pc
  7710. + os=-mingw32
  7711. + ;;
  7712. miniframe)
  7713. basic_machine=m68000-convergent
  7714. ;;
  7715. + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
  7716. + basic_machine=m68k-atari
  7717. + os=-mint
  7718. + ;;
  7719. mips3*-*)
  7720. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  7721. ;;
  7722. mips3*)
  7723. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  7724. ;;
  7725. + monitor)
  7726. + basic_machine=m68k-rom68k
  7727. + os=-coff
  7728. + ;;
  7729. + morphos)
  7730. + basic_machine=powerpc-unknown
  7731. + os=-morphos
  7732. + ;;
  7733. + msdos)
  7734. + basic_machine=i386-pc
  7735. + os=-msdos
  7736. + ;;
  7737. + mvs)
  7738. + basic_machine=i370-ibm
  7739. + os=-mvs
  7740. + ;;
  7741. ncr3000)
  7742. basic_machine=i486-ncr
  7743. os=-sysv4
  7744. ;;
  7745. + netbsd386)
  7746. + basic_machine=i386-unknown
  7747. + os=-netbsd
  7748. + ;;
  7749. + netwinder)
  7750. + basic_machine=armv4l-rebel
  7751. + os=-linux
  7752. + ;;
  7753. news | news700 | news800 | news900)
  7754. basic_machine=m68k-sony
  7755. os=-newsos
  7756. @@ -411,6 +704,10 @@
  7757. basic_machine=mips-sony
  7758. os=-newsos
  7759. ;;
  7760. + necv70)
  7761. + basic_machine=v70-nec
  7762. + os=-sysv
  7763. + ;;
  7764. next | m*-next )
  7765. basic_machine=m68k-next
  7766. case $os in
  7767. @@ -436,9 +733,40 @@
  7768. basic_machine=i960-intel
  7769. os=-nindy
  7770. ;;
  7771. + mon960)
  7772. + basic_machine=i960-intel
  7773. + os=-mon960
  7774. + ;;
  7775. + nonstopux)
  7776. + basic_machine=mips-compaq
  7777. + os=-nonstopux
  7778. + ;;
  7779. np1)
  7780. basic_machine=np1-gould
  7781. ;;
  7782. + nsr-tandem)
  7783. + basic_machine=nsr-tandem
  7784. + ;;
  7785. + op50n-* | op60c-*)
  7786. + basic_machine=hppa1.1-oki
  7787. + os=-proelf
  7788. + ;;
  7789. + or32 | or32-*)
  7790. + basic_machine=or32-unknown
  7791. + os=-coff
  7792. + ;;
  7793. + os400)
  7794. + basic_machine=powerpc-ibm
  7795. + os=-os400
  7796. + ;;
  7797. + OSE68000 | ose68000)
  7798. + basic_machine=m68000-ericsson
  7799. + os=-ose
  7800. + ;;
  7801. + os68k)
  7802. + basic_machine=m68k-none
  7803. + os=-os68k
  7804. + ;;
  7805. pa-hitachi)
  7806. basic_machine=hppa1.1-hitachi
  7807. os=-hiuxwe2
  7808. @@ -453,53 +781,95 @@
  7809. pbb)
  7810. basic_machine=m68k-tti
  7811. ;;
  7812. - pc532 | pc532-*)
  7813. + pc532 | pc532-*)
  7814. basic_machine=ns32k-pc532
  7815. ;;
  7816. - pentium | p5)
  7817. - basic_machine=i586-intel
  7818. + pentium | p5 | k5 | k6 | nexgen | viac3)
  7819. + basic_machine=i586-pc
  7820. + ;;
  7821. + pentiumpro | p6 | 6x86 | athlon | athlon_*)
  7822. + basic_machine=i686-pc
  7823. + ;;
  7824. + pentiumii | pentium2 | pentiumiii | pentium3)
  7825. + basic_machine=i686-pc
  7826. ;;
  7827. - pentiumpro | p6)
  7828. - basic_machine=i686-intel
  7829. + pentium4)
  7830. + basic_machine=i786-pc
  7831. ;;
  7832. - pentium-* | p5-*)
  7833. + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
  7834. basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  7835. ;;
  7836. - pentiumpro-* | p6-*)
  7837. + pentiumpro-* | p6-* | 6x86-* | athlon-*)
  7838. basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  7839. ;;
  7840. - k5)
  7841. - # We don't have specific support for AMD's K5 yet, so just call it a Pentium
  7842. - basic_machine=i586-amd
  7843. - ;;
  7844. - nexen)
  7845. - # We don't have specific support for Nexgen yet, so just call it a Pentium
  7846. - basic_machine=i586-nexgen
  7847. + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
  7848. + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  7849. + ;;
  7850. + pentium4-*)
  7851. + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
  7852. ;;
  7853. pn)
  7854. basic_machine=pn-gould
  7855. ;;
  7856. - power) basic_machine=rs6000-ibm
  7857. + power) basic_machine=power-ibm
  7858. ;;
  7859. ppc) basic_machine=powerpc-unknown
  7860. - ;;
  7861. + ;;
  7862. ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  7863. ;;
  7864. ppcle | powerpclittle | ppc-le | powerpc-little)
  7865. basic_machine=powerpcle-unknown
  7866. - ;;
  7867. + ;;
  7868. ppcle-* | powerpclittle-*)
  7869. basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  7870. ;;
  7871. + ppc64) basic_machine=powerpc64-unknown
  7872. + ;;
  7873. + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
  7874. + ;;
  7875. + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
  7876. + basic_machine=powerpc64le-unknown
  7877. + ;;
  7878. + ppc64le-* | powerpc64little-*)
  7879. + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
  7880. + ;;
  7881. ps2)
  7882. basic_machine=i386-ibm
  7883. ;;
  7884. + pw32)
  7885. + basic_machine=i586-unknown
  7886. + os=-pw32
  7887. + ;;
  7888. + rom68k)
  7889. + basic_machine=m68k-rom68k
  7890. + os=-coff
  7891. + ;;
  7892. rm[46]00)
  7893. basic_machine=mips-siemens
  7894. ;;
  7895. rtpc | rtpc-*)
  7896. basic_machine=romp-ibm
  7897. ;;
  7898. + s390 | s390-*)
  7899. + basic_machine=s390-ibm
  7900. + ;;
  7901. + s390x | s390x-*)
  7902. + basic_machine=s390x-ibm
  7903. + ;;
  7904. + sa29200)
  7905. + basic_machine=a29k-amd
  7906. + os=-udi
  7907. + ;;
  7908. + sb1)
  7909. + basic_machine=mipsisa64sb1-unknown
  7910. + ;;
  7911. + sb1el)
  7912. + basic_machine=mipsisa64sb1el-unknown
  7913. + ;;
  7914. + sei)
  7915. + basic_machine=mips-sei
  7916. + os=-seiux
  7917. + ;;
  7918. sequent)
  7919. basic_machine=i386-sequent
  7920. ;;
  7921. @@ -507,6 +877,13 @@
  7922. basic_machine=sh-hitachi
  7923. os=-hms
  7924. ;;
  7925. + sh64)
  7926. + basic_machine=sh64-unknown
  7927. + ;;
  7928. + sparclite-wrs | simso-wrs)
  7929. + basic_machine=sparclite-wrs
  7930. + os=-vxworks
  7931. + ;;
  7932. sps7)
  7933. basic_machine=m68k-bull
  7934. os=-sysv2
  7935. @@ -514,6 +891,13 @@
  7936. spur)
  7937. basic_machine=spur-unknown
  7938. ;;
  7939. + st2000)
  7940. + basic_machine=m68k-tandem
  7941. + ;;
  7942. + stratus)
  7943. + basic_machine=i860-stratus
  7944. + os=-sysv4
  7945. + ;;
  7946. sun2)
  7947. basic_machine=m68000-sun
  7948. ;;
  7949. @@ -554,13 +938,51 @@
  7950. sun386 | sun386i | roadrunner)
  7951. basic_machine=i386-sun
  7952. ;;
  7953. + sv1)
  7954. + basic_machine=sv1-cray
  7955. + os=-unicos
  7956. + ;;
  7957. symmetry)
  7958. basic_machine=i386-sequent
  7959. os=-dynix
  7960. ;;
  7961. + t3e)
  7962. + basic_machine=alphaev5-cray
  7963. + os=-unicos
  7964. + ;;
  7965. + t90)
  7966. + basic_machine=t90-cray
  7967. + os=-unicos
  7968. + ;;
  7969. + tic54x | c54x*)
  7970. + basic_machine=tic54x-unknown
  7971. + os=-coff
  7972. + ;;
  7973. + tic55x | c55x*)
  7974. + basic_machine=tic55x-unknown
  7975. + os=-coff
  7976. + ;;
  7977. + tic6x | c6x*)
  7978. + basic_machine=tic6x-unknown
  7979. + os=-coff
  7980. + ;;
  7981. + tx39)
  7982. + basic_machine=mipstx39-unknown
  7983. + ;;
  7984. + tx39el)
  7985. + basic_machine=mipstx39el-unknown
  7986. + ;;
  7987. + toad1)
  7988. + basic_machine=pdp10-xkl
  7989. + os=-tops20
  7990. + ;;
  7991. tower | tower-32)
  7992. basic_machine=m68k-ncr
  7993. ;;
  7994. + tpf)
  7995. + basic_machine=s390x-ibm
  7996. + os=-tpf
  7997. + ;;
  7998. udi29k)
  7999. basic_machine=a29k-amd
  8000. os=-udi
  8001. @@ -569,6 +991,10 @@
  8002. basic_machine=a29k-nyu
  8003. os=-sym1
  8004. ;;
  8005. + v810 | necv810)
  8006. + basic_machine=v810-nec
  8007. + os=-none
  8008. + ;;
  8009. vaxv)
  8010. basic_machine=vax-dec
  8011. os=-sysv
  8012. @@ -577,9 +1003,9 @@
  8013. basic_machine=vax-dec
  8014. os=-vms
  8015. ;;
  8016. - vpp*|vx|vx-*)
  8017. - basic_machine=f301-fujitsu
  8018. - ;;
  8019. + vpp*|vx|vx-*)
  8020. + basic_machine=f301-fujitsu
  8021. + ;;
  8022. vxworks960)
  8023. basic_machine=i960-wrs
  8024. os=-vxworks
  8025. @@ -592,13 +1018,25 @@
  8026. basic_machine=a29k-wrs
  8027. os=-vxworks
  8028. ;;
  8029. - xmp)
  8030. - basic_machine=xmp-cray
  8031. - os=-unicos
  8032. + w65*)
  8033. + basic_machine=w65-wdc
  8034. + os=-none
  8035. ;;
  8036. - xps | xps100)
  8037. + w89k-*)
  8038. + basic_machine=hppa1.1-winbond
  8039. + os=-proelf
  8040. + ;;
  8041. + xps | xps100)
  8042. basic_machine=xps100-honeywell
  8043. ;;
  8044. + ymp)
  8045. + basic_machine=ymp-cray
  8046. + os=-unicos
  8047. + ;;
  8048. + z8k-*-coff)
  8049. + basic_machine=z8k-unknown
  8050. + os=-sim
  8051. + ;;
  8052. none)
  8053. basic_machine=none-none
  8054. os=-none
  8055. @@ -606,28 +1044,47 @@
  8056. # Here we handle the default manufacturer of certain CPU types. It is in
  8057. # some cases the only manufacturer, in others, it is the most popular.
  8058. - mips)
  8059. - basic_machine=mips-mips
  8060. + w89k)
  8061. + basic_machine=hppa1.1-winbond
  8062. + ;;
  8063. + op50n)
  8064. + basic_machine=hppa1.1-oki
  8065. + ;;
  8066. + op60c)
  8067. + basic_machine=hppa1.1-oki
  8068. ;;
  8069. romp)
  8070. basic_machine=romp-ibm
  8071. ;;
  8072. + mmix)
  8073. + basic_machine=mmix-knuth
  8074. + ;;
  8075. rs6000)
  8076. basic_machine=rs6000-ibm
  8077. ;;
  8078. vax)
  8079. basic_machine=vax-dec
  8080. ;;
  8081. + pdp10)
  8082. + # there are many clones, so DEC is not a safe bet
  8083. + basic_machine=pdp10-unknown
  8084. + ;;
  8085. pdp11)
  8086. basic_machine=pdp11-dec
  8087. ;;
  8088. we32k)
  8089. basic_machine=we32k-att
  8090. ;;
  8091. - sparc)
  8092. + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
  8093. + basic_machine=sh-unknown
  8094. + ;;
  8095. + sh64)
  8096. + basic_machine=sh64-unknown
  8097. + ;;
  8098. + sparc | sparcv8 | sparcv9 | sparcv9b)
  8099. basic_machine=sparc-sun
  8100. ;;
  8101. - cydra)
  8102. + cydra)
  8103. basic_machine=cydra-cydrome
  8104. ;;
  8105. orion)
  8106. @@ -636,6 +1093,15 @@
  8107. orion105)
  8108. basic_machine=clipper-highlevel
  8109. ;;
  8110. + mac | mpw | mac-mpw)
  8111. + basic_machine=m68k-apple
  8112. + ;;
  8113. + pmac | pmac-mpw)
  8114. + basic_machine=powerpc-apple
  8115. + ;;
  8116. + *-unknown)
  8117. + # Make sure to match an already-canonicalized machine name.
  8118. + ;;
  8119. *)
  8120. echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  8121. exit 1
  8122. @@ -668,9 +1134,12 @@
  8123. -solaris)
  8124. os=-solaris2
  8125. ;;
  8126. - -unixware* | svr4*)
  8127. + -svr4*)
  8128. os=-sysv4
  8129. ;;
  8130. + -unixware*)
  8131. + os=-sysv4.2uw
  8132. + ;;
  8133. -gnu/linux*)
  8134. os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
  8135. ;;
  8136. @@ -681,17 +1150,50 @@
  8137. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  8138. | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  8139. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  8140. - | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \
  8141. + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  8142. + | -aos* \
  8143. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  8144. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  8145. - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
  8146. - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
  8147. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
  8148. + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  8149. + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  8150. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  8151. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  8152. - | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  8153. - | -linux-gnu* | -uxpv*)
  8154. + | -chorusos* | -chorusrdb* \
  8155. + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  8156. + | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
  8157. + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  8158. + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  8159. + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  8160. + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  8161. + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  8162. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
  8163. # Remember, each alternative MUST END IN *, to match a version number.
  8164. ;;
  8165. + -qnx*)
  8166. + case $basic_machine in
  8167. + x86-* | i*86-*)
  8168. + ;;
  8169. + *)
  8170. + os=-nto$os
  8171. + ;;
  8172. + esac
  8173. + ;;
  8174. + -nto-qnx*)
  8175. + ;;
  8176. + -nto*)
  8177. + os=`echo $os | sed -e 's|nto|nto-qnx|'`
  8178. + ;;
  8179. + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  8180. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  8181. + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  8182. + ;;
  8183. + -mac*)
  8184. + os=`echo $os | sed -e 's|mac|macos|'`
  8185. + ;;
  8186. + -linux-dietlibc)
  8187. + os=-linux-dietlibc
  8188. + ;;
  8189. -linux*)
  8190. os=`echo $os | sed -e 's|linux|linux-gnu|'`
  8191. ;;
  8192. @@ -701,6 +1203,15 @@
  8193. -sunos6*)
  8194. os=`echo $os | sed -e 's|sunos6|solaris3|'`
  8195. ;;
  8196. + -opened*)
  8197. + os=-openedition
  8198. + ;;
  8199. + -os400*)
  8200. + os=-os400
  8201. + ;;
  8202. + -wince*)
  8203. + os=-wince
  8204. + ;;
  8205. -osfrose*)
  8206. os=-osfrose
  8207. ;;
  8208. @@ -716,11 +1227,26 @@
  8209. -acis*)
  8210. os=-aos
  8211. ;;
  8212. + -atheos*)
  8213. + os=-atheos
  8214. + ;;
  8215. + -syllable*)
  8216. + os=-syllable
  8217. + ;;
  8218. + -386bsd)
  8219. + os=-bsd
  8220. + ;;
  8221. -ctix* | -uts*)
  8222. os=-sysv
  8223. ;;
  8224. + -nova*)
  8225. + os=-rtmk-nova
  8226. + ;;
  8227. -ns2 )
  8228. - os=-nextstep2
  8229. + os=-nextstep2
  8230. + ;;
  8231. + -nsk*)
  8232. + os=-nsk
  8233. ;;
  8234. # Preserve the version number of sinix5.
  8235. -sinix5.*)
  8236. @@ -729,6 +1255,9 @@
  8237. -sinix*)
  8238. os=-sysv4
  8239. ;;
  8240. + -tpf*)
  8241. + os=-tpf
  8242. + ;;
  8243. -triton*)
  8244. os=-sysv3
  8245. ;;
  8246. @@ -747,9 +1276,24 @@
  8247. # This must come after -sysvr4.
  8248. -sysv*)
  8249. ;;
  8250. + -ose*)
  8251. + os=-ose
  8252. + ;;
  8253. + -es1800*)
  8254. + os=-ose
  8255. + ;;
  8256. -xenix)
  8257. os=-xenix
  8258. ;;
  8259. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  8260. + os=-mint
  8261. + ;;
  8262. + -aros*)
  8263. + os=-aros
  8264. + ;;
  8265. + -kaos*)
  8266. + os=-kaos
  8267. + ;;
  8268. -none)
  8269. ;;
  8270. *)
  8271. @@ -775,10 +1319,20 @@
  8272. *-acorn)
  8273. os=-riscix1.2
  8274. ;;
  8275. + arm*-rebel)
  8276. + os=-linux
  8277. + ;;
  8278. arm*-semi)
  8279. os=-aout
  8280. ;;
  8281. - pdp11-*)
  8282. + c4x-* | tic4x-*)
  8283. + os=-coff
  8284. + ;;
  8285. + # This must come before the *-dec entry.
  8286. + pdp10-*)
  8287. + os=-tops20
  8288. + ;;
  8289. + pdp11-*)
  8290. os=-none
  8291. ;;
  8292. *-dec | vax-*)
  8293. @@ -796,15 +1350,42 @@
  8294. # default.
  8295. # os=-sunos4
  8296. ;;
  8297. + m68*-cisco)
  8298. + os=-aout
  8299. + ;;
  8300. + mips*-cisco)
  8301. + os=-elf
  8302. + ;;
  8303. + mips*-*)
  8304. + os=-elf
  8305. + ;;
  8306. + or32-*)
  8307. + os=-coff
  8308. + ;;
  8309. *-tti) # must be before sparc entry or we get the wrong os.
  8310. os=-sysv3
  8311. ;;
  8312. sparc-* | *-sun)
  8313. os=-sunos4.1.1
  8314. ;;
  8315. + *-be)
  8316. + os=-beos
  8317. + ;;
  8318. *-ibm)
  8319. os=-aix
  8320. ;;
  8321. + *-knuth)
  8322. + os=-mmixware
  8323. + ;;
  8324. + *-wec)
  8325. + os=-proelf
  8326. + ;;
  8327. + *-winbond)
  8328. + os=-proelf
  8329. + ;;
  8330. + *-oki)
  8331. + os=-proelf
  8332. + ;;
  8333. *-hp)
  8334. os=-hpux
  8335. ;;
  8336. @@ -815,7 +1396,7 @@
  8337. os=-sysv
  8338. ;;
  8339. *-cbm)
  8340. - os=-amigados
  8341. + os=-amigaos
  8342. ;;
  8343. *-dg)
  8344. os=-dgux
  8345. @@ -847,27 +1428,39 @@
  8346. *-next)
  8347. os=-nextstep3
  8348. ;;
  8349. - *-gould)
  8350. + *-gould)
  8351. os=-sysv
  8352. ;;
  8353. - *-highlevel)
  8354. + *-highlevel)
  8355. os=-bsd
  8356. ;;
  8357. *-encore)
  8358. os=-bsd
  8359. ;;
  8360. - *-sgi)
  8361. + *-sgi)
  8362. os=-irix
  8363. ;;
  8364. - *-siemens)
  8365. + *-siemens)
  8366. os=-sysv4
  8367. ;;
  8368. *-masscomp)
  8369. os=-rtu
  8370. ;;
  8371. - f301-fujitsu)
  8372. + f30[01]-fujitsu | f700-fujitsu)
  8373. os=-uxpv
  8374. ;;
  8375. + *-rom68k)
  8376. + os=-coff
  8377. + ;;
  8378. + *-*bug)
  8379. + os=-coff
  8380. + ;;
  8381. + *-apple)
  8382. + os=-macos
  8383. + ;;
  8384. + *-atari*)
  8385. + os=-mint
  8386. + ;;
  8387. *)
  8388. os=-none
  8389. ;;
  8390. @@ -889,9 +1482,15 @@
  8391. -aix*)
  8392. vendor=ibm
  8393. ;;
  8394. + -beos*)
  8395. + vendor=be
  8396. + ;;
  8397. -hpux*)
  8398. vendor=hp
  8399. ;;
  8400. + -mpeix*)
  8401. + vendor=hp
  8402. + ;;
  8403. -hiux*)
  8404. vendor=hitachi
  8405. ;;
  8406. @@ -907,21 +1506,47 @@
  8407. -genix*)
  8408. vendor=ns
  8409. ;;
  8410. - -mvs*)
  8411. + -mvs* | -opened*)
  8412. + vendor=ibm
  8413. + ;;
  8414. + -os400*)
  8415. vendor=ibm
  8416. ;;
  8417. -ptx*)
  8418. vendor=sequent
  8419. ;;
  8420. - -vxsim* | -vxworks*)
  8421. + -tpf*)
  8422. + vendor=ibm
  8423. + ;;
  8424. + -vxsim* | -vxworks* | -windiss*)
  8425. vendor=wrs
  8426. ;;
  8427. -aux*)
  8428. vendor=apple
  8429. ;;
  8430. + -hms*)
  8431. + vendor=hitachi
  8432. + ;;
  8433. + -mpw* | -macos*)
  8434. + vendor=apple
  8435. + ;;
  8436. + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
  8437. + vendor=atari
  8438. + ;;
  8439. + -vos*)
  8440. + vendor=stratus
  8441. + ;;
  8442. esac
  8443. basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
  8444. ;;
  8445. esac
  8446. echo $basic_machine$os
  8447. +exit 0
  8448. +
  8449. +# Local variables:
  8450. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  8451. +# time-stamp-start: "timestamp='"
  8452. +# time-stamp-format: "%:y-%02m-%02d"
  8453. +# time-stamp-end: "'"
  8454. +# End:
  8455. diff -ruN libnet-1.0.2a-orig/configure libnet-1.0.2a-7/configure
  8456. --- libnet-1.0.2a-orig/configure 2001-01-17 21:59:33.000000000 +0100
  8457. +++ libnet-1.0.2a-7/configure 2005-03-08 03:53:26.000000000 +0100
  8458. @@ -1,31 +1,485 @@
  8459. #! /bin/sh
  8460. -
  8461. # Guess values for system-dependent variables and create Makefiles.
  8462. -# Generated automatically using autoconf version 2.13
  8463. -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  8464. +# Generated by GNU Autoconf 2.59.
  8465. #
  8466. +# Copyright (C) 2003 Free Software Foundation, Inc.
  8467. # This configure script is free software; the Free Software Foundation
  8468. # gives unlimited permission to copy, distribute and modify it.
  8469. +## --------------------- ##
  8470. +## M4sh Initialization. ##
  8471. +## --------------------- ##
  8472. +
  8473. +# Be Bourne compatible
  8474. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8475. + emulate sh
  8476. + NULLCMD=:
  8477. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8478. + # is contrary to our usage. Disable this feature.
  8479. + alias -g '${1+"$@"}'='"$@"'
  8480. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8481. + set -o posix
  8482. +fi
  8483. +DUALCASE=1; export DUALCASE # for MKS sh
  8484. +
  8485. +# Support unset when possible.
  8486. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8487. + as_unset=unset
  8488. +else
  8489. + as_unset=false
  8490. +fi
  8491. +
  8492. +
  8493. +# Work around bugs in pre-3.0 UWIN ksh.
  8494. +$as_unset ENV MAIL MAILPATH
  8495. +PS1='$ '
  8496. +PS2='> '
  8497. +PS4='+ '
  8498. +
  8499. +# NLS nuisances.
  8500. +for as_var in \
  8501. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8502. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8503. + LC_TELEPHONE LC_TIME
  8504. +do
  8505. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8506. + eval $as_var=C; export $as_var
  8507. + else
  8508. + $as_unset $as_var
  8509. + fi
  8510. +done
  8511. +
  8512. +# Required to use basename.
  8513. +if expr a : '\(a\)' >/dev/null 2>&1; then
  8514. + as_expr=expr
  8515. +else
  8516. + as_expr=false
  8517. +fi
  8518. +
  8519. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  8520. + as_basename=basename
  8521. +else
  8522. + as_basename=false
  8523. +fi
  8524. +
  8525. +
  8526. +# Name of the executable.
  8527. +as_me=`$as_basename "$0" ||
  8528. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8529. + X"$0" : 'X\(//\)$' \| \
  8530. + X"$0" : 'X\(/\)$' \| \
  8531. + . : '\(.\)' 2>/dev/null ||
  8532. +echo X/"$0" |
  8533. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8534. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  8535. + /^X\/\(\/\).*/{ s//\1/; q; }
  8536. + s/.*/./; q'`
  8537. +
  8538. +
  8539. +# PATH needs CR, and LINENO needs CR and PATH.
  8540. +# Avoid depending upon Character Ranges.
  8541. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8542. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8543. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8544. +as_cr_digits='0123456789'
  8545. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  8546. +
  8547. +# The user is always right.
  8548. +if test "${PATH_SEPARATOR+set}" != set; then
  8549. + echo "#! /bin/sh" >conf$$.sh
  8550. + echo "exit 0" >>conf$$.sh
  8551. + chmod +x conf$$.sh
  8552. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8553. + PATH_SEPARATOR=';'
  8554. + else
  8555. + PATH_SEPARATOR=:
  8556. + fi
  8557. + rm -f conf$$.sh
  8558. +fi
  8559. +
  8560. +
  8561. + as_lineno_1=$LINENO
  8562. + as_lineno_2=$LINENO
  8563. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8564. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8565. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  8566. + # Find who we are. Look in the path if we contain no path at all
  8567. + # relative or not.
  8568. + case $0 in
  8569. + *[\\/]* ) as_myself=$0 ;;
  8570. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8571. +for as_dir in $PATH
  8572. +do
  8573. + IFS=$as_save_IFS
  8574. + test -z "$as_dir" && as_dir=.
  8575. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8576. +done
  8577. +
  8578. + ;;
  8579. + esac
  8580. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  8581. + # in which case we are not to be found in the path.
  8582. + if test "x$as_myself" = x; then
  8583. + as_myself=$0
  8584. + fi
  8585. + if test ! -f "$as_myself"; then
  8586. + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  8587. + { (exit 1); exit 1; }; }
  8588. + fi
  8589. + case $CONFIG_SHELL in
  8590. + '')
  8591. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8592. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8593. +do
  8594. + IFS=$as_save_IFS
  8595. + test -z "$as_dir" && as_dir=.
  8596. + for as_base in sh bash ksh sh5; do
  8597. + case $as_dir in
  8598. + /*)
  8599. + if ("$as_dir/$as_base" -c '
  8600. + as_lineno_1=$LINENO
  8601. + as_lineno_2=$LINENO
  8602. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8603. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  8604. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  8605. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  8606. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  8607. + CONFIG_SHELL=$as_dir/$as_base
  8608. + export CONFIG_SHELL
  8609. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8610. + fi;;
  8611. + esac
  8612. + done
  8613. +done
  8614. +;;
  8615. + esac
  8616. +
  8617. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8618. + # uniformly replaced by the line number. The first 'sed' inserts a
  8619. + # line-number line before each line; the second 'sed' does the real
  8620. + # work. The second script uses 'N' to pair each line-number line
  8621. + # with the numbered line, and appends trailing '-' during
  8622. + # substitution so that $LINENO is not a special case at line end.
  8623. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8624. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  8625. + sed '=' <$as_myself |
  8626. + sed '
  8627. + N
  8628. + s,$,-,
  8629. + : loop
  8630. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8631. + t loop
  8632. + s,-$,,
  8633. + s,^['$as_cr_digits']*\n,,
  8634. + ' >$as_me.lineno &&
  8635. + chmod +x $as_me.lineno ||
  8636. + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  8637. + { (exit 1); exit 1; }; }
  8638. +
  8639. + # Don't try to exec as it changes $[0], causing all sort of problems
  8640. + # (the dirname of $[0] is not the place where we might find the
  8641. + # original and so on. Autoconf is especially sensible to this).
  8642. + . ./$as_me.lineno
  8643. + # Exit status is that of the last command.
  8644. + exit
  8645. +}
  8646. +
  8647. +
  8648. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8649. + *c*,-n*) ECHO_N= ECHO_C='
  8650. +' ECHO_T=' ' ;;
  8651. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8652. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8653. +esac
  8654. +
  8655. +if expr a : '\(a\)' >/dev/null 2>&1; then
  8656. + as_expr=expr
  8657. +else
  8658. + as_expr=false
  8659. +fi
  8660. +
  8661. +rm -f conf$$ conf$$.exe conf$$.file
  8662. +echo >conf$$.file
  8663. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  8664. + # We could just check for DJGPP; but this test a) works b) is more generic
  8665. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8666. + if test -f conf$$.exe; then
  8667. + # Don't use ln at all; we don't have any links
  8668. + as_ln_s='cp -p'
  8669. + else
  8670. + as_ln_s='ln -s'
  8671. + fi
  8672. +elif ln conf$$.file conf$$ 2>/dev/null; then
  8673. + as_ln_s=ln
  8674. +else
  8675. + as_ln_s='cp -p'
  8676. +fi
  8677. +rm -f conf$$ conf$$.exe conf$$.file
  8678. +
  8679. +if mkdir -p . 2>/dev/null; then
  8680. + as_mkdir_p=:
  8681. +else
  8682. + test -d ./-p && rmdir ./-p
  8683. + as_mkdir_p=false
  8684. +fi
  8685. +
  8686. +as_executable_p="test -f"
  8687. +
  8688. +# Sed expression to map a string onto a valid CPP name.
  8689. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8690. +
  8691. +# Sed expression to map a string onto a valid variable name.
  8692. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8693. +
  8694. +
  8695. +# IFS
  8696. +# We need space, tab and new line, in precisely that order.
  8697. +as_nl='
  8698. +'
  8699. +IFS=" $as_nl"
  8700. +
  8701. +# CDPATH.
  8702. +$as_unset CDPATH
  8703. +
  8704. +
  8705. +# Find the correct PATH separator. Usually this is `:', but
  8706. +# DJGPP uses `;' like DOS.
  8707. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  8708. + UNAME=${UNAME-`uname 2>/dev/null`}
  8709. + case X$UNAME in
  8710. + *-DOS) lt_cv_sys_path_separator=';' ;;
  8711. + *) lt_cv_sys_path_separator=':' ;;
  8712. + esac
  8713. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  8714. +fi
  8715. +
  8716. +
  8717. +# Check that we are running under the correct shell.
  8718. +SHELL=${CONFIG_SHELL-/bin/sh}
  8719. +
  8720. +case X$ECHO in
  8721. +X*--fallback-echo)
  8722. + # Remove one level of quotation (which was required for Make).
  8723. + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  8724. + ;;
  8725. +esac
  8726. +
  8727. +echo=${ECHO-echo}
  8728. +if test "X$1" = X--no-reexec; then
  8729. + # Discard the --no-reexec flag, and continue.
  8730. + shift
  8731. +elif test "X$1" = X--fallback-echo; then
  8732. + # Avoid inline document here, it may be left over
  8733. + :
  8734. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  8735. + # Yippee, $echo works!
  8736. + :
  8737. +else
  8738. + # Restart under the correct shell.
  8739. + exec $SHELL "$0" --no-reexec ${1+"$@"}
  8740. +fi
  8741. +
  8742. +if test "X$1" = X--fallback-echo; then
  8743. + # used as fallback echo
  8744. + shift
  8745. + cat <<EOF
  8746. +
  8747. +EOF
  8748. + exit 0
  8749. +fi
  8750. +
  8751. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  8752. +# if CDPATH is set.
  8753. +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  8754. +
  8755. +if test -z "$ECHO"; then
  8756. +if test "X${echo_test_string+set}" != Xset; then
  8757. +# find a string as large as possible, as long as the shell can cope with it
  8758. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  8759. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  8760. + if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  8761. + echo_test_string="`eval $cmd`" &&
  8762. + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  8763. + then
  8764. + break
  8765. + fi
  8766. + done
  8767. +fi
  8768. +
  8769. +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  8770. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  8771. + test "X$echo_testing_string" = "X$echo_test_string"; then
  8772. + :
  8773. +else
  8774. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  8775. + # backslashes. This makes it impossible to quote backslashes using
  8776. + # echo "$something" | sed 's/\\/\\\\/g'
  8777. + #
  8778. + # So, first we look for a working echo in the user's PATH.
  8779. +
  8780. + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8781. + for dir in $PATH /usr/ucb; do
  8782. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  8783. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  8784. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  8785. + test "X$echo_testing_string" = "X$echo_test_string"; then
  8786. + echo="$dir/echo"
  8787. + break
  8788. + fi
  8789. + done
  8790. + IFS="$save_ifs"
  8791. +
  8792. + if test "X$echo" = Xecho; then
  8793. + # We didn't find a better echo, so look for alternatives.
  8794. + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  8795. + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  8796. + test "X$echo_testing_string" = "X$echo_test_string"; then
  8797. + # This shell has a builtin print -r that does the trick.
  8798. + echo='print -r'
  8799. + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  8800. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  8801. + # If we have ksh, try running configure again with it.
  8802. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  8803. + export ORIGINAL_CONFIG_SHELL
  8804. + CONFIG_SHELL=/bin/ksh
  8805. + export CONFIG_SHELL
  8806. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  8807. + else
  8808. + # Try using printf.
  8809. + echo='printf %s\n'
  8810. + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  8811. + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  8812. + test "X$echo_testing_string" = "X$echo_test_string"; then
  8813. + # Cool, printf works
  8814. + :
  8815. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  8816. + test "X$echo_testing_string" = 'X\t' &&
  8817. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  8818. + test "X$echo_testing_string" = "X$echo_test_string"; then
  8819. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  8820. + export CONFIG_SHELL
  8821. + SHELL="$CONFIG_SHELL"
  8822. + export SHELL
  8823. + echo="$CONFIG_SHELL $0 --fallback-echo"
  8824. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  8825. + test "X$echo_testing_string" = 'X\t' &&
  8826. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  8827. + test "X$echo_testing_string" = "X$echo_test_string"; then
  8828. + echo="$CONFIG_SHELL $0 --fallback-echo"
  8829. + else
  8830. + # maybe with a smaller string...
  8831. + prev=:
  8832. +
  8833. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  8834. + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  8835. + then
  8836. + break
  8837. + fi
  8838. + prev="$cmd"
  8839. + done
  8840. +
  8841. + if test "$prev" != 'sed 50q "$0"'; then
  8842. + echo_test_string=`eval $prev`
  8843. + export echo_test_string
  8844. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  8845. + else
  8846. + # Oops. We lost completely, so just stick with echo.
  8847. + echo=echo
  8848. + fi
  8849. + fi
  8850. + fi
  8851. + fi
  8852. +fi
  8853. +fi
  8854. +
  8855. +# Copy echo and quote the copy suitably for passing to libtool from
  8856. +# the Makefile, instead of quoting the original, which is used later.
  8857. +ECHO=$echo
  8858. +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  8859. + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  8860. +fi
  8861. +
  8862. +
  8863. -# Defaults:
  8864. -ac_help=
  8865. +# Name of the host.
  8866. +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  8867. +# so uname gets run too.
  8868. +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  8869. +
  8870. +exec 6>&1
  8871. +
  8872. +#
  8873. +# Initializations.
  8874. +#
  8875. ac_default_prefix=/usr/local
  8876. -# Any additions from configure.in:
  8877. +ac_config_libobj_dir=.
  8878. +cross_compiling=no
  8879. +subdirs=
  8880. +MFLAGS=
  8881. +MAKEFLAGS=
  8882. +SHELL=${CONFIG_SHELL-/bin/sh}
  8883. +
  8884. +# Maximum number of lines to put in a shell here document.
  8885. +# This variable seems obsolete. It should probably be removed, and
  8886. +# only ac_max_sed_lines should be used.
  8887. +: ${ac_max_here_lines=38}
  8888. +
  8889. +# Identity of this package.
  8890. +PACKAGE_NAME=
  8891. +PACKAGE_TARNAME=
  8892. +PACKAGE_VERSION=
  8893. +PACKAGE_STRING=
  8894. +PACKAGE_BUGREPORT=
  8895. +
  8896. +ac_unique_file="src/libnet_build_ip.c"
  8897. ac_default_prefix=/usr
  8898. -ac_help="$ac_help
  8899. - --with-pf_packet=[yes,no] override defaults"
  8900. -ac_help="$ac_help
  8901. - --with-fast_x86_check=[yes,no] override defaults"
  8902. +# Factoring default headers for most tests.
  8903. +ac_includes_default="\
  8904. +#include <stdio.h>
  8905. +#if HAVE_SYS_TYPES_H
  8906. +# include <sys/types.h>
  8907. +#endif
  8908. +#if HAVE_SYS_STAT_H
  8909. +# include <sys/stat.h>
  8910. +#endif
  8911. +#if STDC_HEADERS
  8912. +# include <stdlib.h>
  8913. +# include <stddef.h>
  8914. +#else
  8915. +# if HAVE_STDLIB_H
  8916. +# include <stdlib.h>
  8917. +# endif
  8918. +#endif
  8919. +#if HAVE_STRING_H
  8920. +# if !STDC_HEADERS && HAVE_MEMORY_H
  8921. +# include <memory.h>
  8922. +# endif
  8923. +# include <string.h>
  8924. +#endif
  8925. +#if HAVE_STRINGS_H
  8926. +# include <strings.h>
  8927. +#endif
  8928. +#if HAVE_INTTYPES_H
  8929. +# include <inttypes.h>
  8930. +#else
  8931. +# if HAVE_STDINT_H
  8932. +# include <stdint.h>
  8933. +# endif
  8934. +#endif
  8935. +#if HAVE_UNISTD_H
  8936. +# include <unistd.h>
  8937. +#endif"
  8938. +
  8939. +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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot LL_INT_TYPE_UC LL_INT_TYPE LIB_PREFIX INC_PREFIX MAN_PREFIX BIN_PREFIX RANLIB AR LN ADDITIONAL_LIBS LIBNET_CONFIG_DEFINES LIBNET_CONFIG_LIBS LIBNET_CONFIG_CFLAGS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LN_S ECHO ac_ct_RANLIB CPP EGREP LIBTOOL LIBOBJS LTLIBOBJS'
  8940. +ac_subst_files=''
  8941. # Initialize some variables set by options.
  8942. +ac_init_help=
  8943. +ac_init_version=false
  8944. # The variables have the same names as the options, with
  8945. # dashes changed to underlines.
  8946. -build=NONE
  8947. -cache_file=./config.cache
  8948. +cache_file=/dev/null
  8949. exec_prefix=NONE
  8950. -host=NONE
  8951. no_create=
  8952. -nonopt=NONE
  8953. no_recursion=
  8954. prefix=NONE
  8955. program_prefix=NONE
  8956. @@ -34,10 +488,15 @@
  8957. silent=
  8958. site=
  8959. srcdir=
  8960. -target=NONE
  8961. verbose=
  8962. x_includes=NONE
  8963. x_libraries=NONE
  8964. +
  8965. +# Installation directory options.
  8966. +# These are left unexpanded so users can "make install exec_prefix=/foo"
  8967. +# and all the variables that are supposed to be based on exec_prefix
  8968. +# by default will actually change.
  8969. +# Use braces instead of parens because sh, perl, etc. also accept them.
  8970. bindir='${exec_prefix}/bin'
  8971. sbindir='${exec_prefix}/sbin'
  8972. libexecdir='${exec_prefix}/libexec'
  8973. @@ -51,17 +510,9 @@
  8974. infodir='${prefix}/info'
  8975. mandir='${prefix}/man'
  8976. -# Initialize some other variables.
  8977. -subdirs=
  8978. -MFLAGS= MAKEFLAGS=
  8979. -SHELL=${CONFIG_SHELL-/bin/sh}
  8980. -# Maximum number of lines to put in a shell here document.
  8981. -ac_max_here_lines=12
  8982. -
  8983. ac_prev=
  8984. for ac_option
  8985. do
  8986. -
  8987. # If the previous option needs an argument, assign it.
  8988. if test -n "$ac_prev"; then
  8989. eval "$ac_prev=\$ac_option"
  8990. @@ -69,59 +520,59 @@
  8991. continue
  8992. fi
  8993. - case "$ac_option" in
  8994. - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  8995. - *) ac_optarg= ;;
  8996. - esac
  8997. + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  8998. # Accept the important Cygnus configure options, so we can diagnose typos.
  8999. - case "$ac_option" in
  9000. + case $ac_option in
  9001. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  9002. ac_prev=bindir ;;
  9003. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  9004. - bindir="$ac_optarg" ;;
  9005. + bindir=$ac_optarg ;;
  9006. -build | --build | --buil | --bui | --bu)
  9007. - ac_prev=build ;;
  9008. + ac_prev=build_alias ;;
  9009. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  9010. - build="$ac_optarg" ;;
  9011. + build_alias=$ac_optarg ;;
  9012. -cache-file | --cache-file | --cache-fil | --cache-fi \
  9013. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  9014. ac_prev=cache_file ;;
  9015. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  9016. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  9017. - cache_file="$ac_optarg" ;;
  9018. + cache_file=$ac_optarg ;;
  9019. +
  9020. + --config-cache | -C)
  9021. + cache_file=config.cache ;;
  9022. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  9023. ac_prev=datadir ;;
  9024. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  9025. | --da=*)
  9026. - datadir="$ac_optarg" ;;
  9027. + datadir=$ac_optarg ;;
  9028. -disable-* | --disable-*)
  9029. - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  9030. + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  9031. # Reject names that are not valid shell variable names.
  9032. - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  9033. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  9034. - fi
  9035. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  9036. - eval "enable_${ac_feature}=no" ;;
  9037. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  9038. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  9039. + { (exit 1); exit 1; }; }
  9040. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  9041. + eval "enable_$ac_feature=no" ;;
  9042. -enable-* | --enable-*)
  9043. - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  9044. + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  9045. # Reject names that are not valid shell variable names.
  9046. - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  9047. - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  9048. - fi
  9049. - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  9050. - case "$ac_option" in
  9051. - *=*) ;;
  9052. + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  9053. + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  9054. + { (exit 1); exit 1; }; }
  9055. + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  9056. + case $ac_option in
  9057. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  9058. *) ac_optarg=yes ;;
  9059. esac
  9060. - eval "enable_${ac_feature}='$ac_optarg'" ;;
  9061. + eval "enable_$ac_feature='$ac_optarg'" ;;
  9062. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  9063. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  9064. @@ -130,95 +581,47 @@
  9065. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  9066. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  9067. | --exec=* | --exe=* | --ex=*)
  9068. - exec_prefix="$ac_optarg" ;;
  9069. + exec_prefix=$ac_optarg ;;
  9070. -gas | --gas | --ga | --g)
  9071. # Obsolete; use --with-gas.
  9072. with_gas=yes ;;
  9073. - -help | --help | --hel | --he)
  9074. - # Omit some internal or obsolete options to make the list less imposing.
  9075. - # This message is too long to be a string in the A/UX 3.1 sh.
  9076. - cat << EOF
  9077. -Usage: configure [options] [host]
  9078. -Options: [defaults in brackets after descriptions]
  9079. -Configuration:
  9080. - --cache-file=FILE cache test results in FILE
  9081. - --help print this message
  9082. - --no-create do not create output files
  9083. - --quiet, --silent do not print \`checking...' messages
  9084. - --version print the version of autoconf that created configure
  9085. -Directory and file names:
  9086. - --prefix=PREFIX install architecture-independent files in PREFIX
  9087. - [$ac_default_prefix]
  9088. - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  9089. - [same as prefix]
  9090. - --bindir=DIR user executables in DIR [EPREFIX/bin]
  9091. - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
  9092. - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
  9093. - --datadir=DIR read-only architecture-independent data in DIR
  9094. - [PREFIX/share]
  9095. - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
  9096. - --sharedstatedir=DIR modifiable architecture-independent data in DIR
  9097. - [PREFIX/com]
  9098. - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
  9099. - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
  9100. - --includedir=DIR C header files in DIR [PREFIX/include]
  9101. - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
  9102. - --infodir=DIR info documentation in DIR [PREFIX/info]
  9103. - --mandir=DIR man documentation in DIR [PREFIX/man]
  9104. - --srcdir=DIR find the sources in DIR [configure dir or ..]
  9105. - --program-prefix=PREFIX prepend PREFIX to installed program names
  9106. - --program-suffix=SUFFIX append SUFFIX to installed program names
  9107. - --program-transform-name=PROGRAM
  9108. - run sed PROGRAM on installed program names
  9109. -EOF
  9110. - cat << EOF
  9111. -Host type:
  9112. - --build=BUILD configure for building on BUILD [BUILD=HOST]
  9113. - --host=HOST configure for HOST [guessed]
  9114. - --target=TARGET configure for TARGET [TARGET=HOST]
  9115. -Features and packages:
  9116. - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  9117. - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  9118. - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  9119. - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  9120. - --x-includes=DIR X include files are in DIR
  9121. - --x-libraries=DIR X library files are in DIR
  9122. -EOF
  9123. - if test -n "$ac_help"; then
  9124. - echo "--enable and --with options recognized:$ac_help"
  9125. - fi
  9126. - exit 0 ;;
  9127. + -help | --help | --hel | --he | -h)
  9128. + ac_init_help=long ;;
  9129. + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  9130. + ac_init_help=recursive ;;
  9131. + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  9132. + ac_init_help=short ;;
  9133. -host | --host | --hos | --ho)
  9134. - ac_prev=host ;;
  9135. + ac_prev=host_alias ;;
  9136. -host=* | --host=* | --hos=* | --ho=*)
  9137. - host="$ac_optarg" ;;
  9138. + host_alias=$ac_optarg ;;
  9139. -includedir | --includedir | --includedi | --included | --include \
  9140. | --includ | --inclu | --incl | --inc)
  9141. ac_prev=includedir ;;
  9142. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  9143. | --includ=* | --inclu=* | --incl=* | --inc=*)
  9144. - includedir="$ac_optarg" ;;
  9145. + includedir=$ac_optarg ;;
  9146. -infodir | --infodir | --infodi | --infod | --info | --inf)
  9147. ac_prev=infodir ;;
  9148. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  9149. - infodir="$ac_optarg" ;;
  9150. + infodir=$ac_optarg ;;
  9151. -libdir | --libdir | --libdi | --libd)
  9152. ac_prev=libdir ;;
  9153. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  9154. - libdir="$ac_optarg" ;;
  9155. + libdir=$ac_optarg ;;
  9156. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  9157. | --libexe | --libex | --libe)
  9158. ac_prev=libexecdir ;;
  9159. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  9160. | --libexe=* | --libex=* | --libe=*)
  9161. - libexecdir="$ac_optarg" ;;
  9162. + libexecdir=$ac_optarg ;;
  9163. -localstatedir | --localstatedir | --localstatedi | --localstated \
  9164. | --localstate | --localstat | --localsta | --localst \
  9165. @@ -227,19 +630,19 @@
  9166. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  9167. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  9168. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  9169. - localstatedir="$ac_optarg" ;;
  9170. + localstatedir=$ac_optarg ;;
  9171. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  9172. ac_prev=mandir ;;
  9173. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  9174. - mandir="$ac_optarg" ;;
  9175. + mandir=$ac_optarg ;;
  9176. -nfp | --nfp | --nf)
  9177. # Obsolete; use --without-fp.
  9178. with_fp=no ;;
  9179. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  9180. - | --no-cr | --no-c)
  9181. + | --no-cr | --no-c | -n)
  9182. no_create=yes ;;
  9183. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  9184. @@ -253,26 +656,26 @@
  9185. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  9186. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  9187. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  9188. - oldincludedir="$ac_optarg" ;;
  9189. + oldincludedir=$ac_optarg ;;
  9190. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  9191. ac_prev=prefix ;;
  9192. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  9193. - prefix="$ac_optarg" ;;
  9194. + prefix=$ac_optarg ;;
  9195. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  9196. | --program-pre | --program-pr | --program-p)
  9197. ac_prev=program_prefix ;;
  9198. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  9199. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  9200. - program_prefix="$ac_optarg" ;;
  9201. + program_prefix=$ac_optarg ;;
  9202. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  9203. | --program-suf | --program-su | --program-s)
  9204. ac_prev=program_suffix ;;
  9205. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  9206. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  9207. - program_suffix="$ac_optarg" ;;
  9208. + program_suffix=$ac_optarg ;;
  9209. -program-transform-name | --program-transform-name \
  9210. | --program-transform-nam | --program-transform-na \
  9211. @@ -289,7 +692,7 @@
  9212. | --program-transfo=* | --program-transf=* \
  9213. | --program-trans=* | --program-tran=* \
  9214. | --progr-tra=* | --program-tr=* | --program-t=*)
  9215. - program_transform_name="$ac_optarg" ;;
  9216. + program_transform_name=$ac_optarg ;;
  9217. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9218. | -silent | --silent | --silen | --sile | --sil)
  9219. @@ -299,7 +702,7 @@
  9220. ac_prev=sbindir ;;
  9221. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  9222. | --sbi=* | --sb=*)
  9223. - sbindir="$ac_optarg" ;;
  9224. + sbindir=$ac_optarg ;;
  9225. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  9226. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  9227. @@ -310,58 +713,57 @@
  9228. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  9229. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  9230. | --sha=* | --sh=*)
  9231. - sharedstatedir="$ac_optarg" ;;
  9232. + sharedstatedir=$ac_optarg ;;
  9233. -site | --site | --sit)
  9234. ac_prev=site ;;
  9235. -site=* | --site=* | --sit=*)
  9236. - site="$ac_optarg" ;;
  9237. + site=$ac_optarg ;;
  9238. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  9239. ac_prev=srcdir ;;
  9240. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  9241. - srcdir="$ac_optarg" ;;
  9242. + srcdir=$ac_optarg ;;
  9243. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  9244. | --syscon | --sysco | --sysc | --sys | --sy)
  9245. ac_prev=sysconfdir ;;
  9246. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  9247. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  9248. - sysconfdir="$ac_optarg" ;;
  9249. + sysconfdir=$ac_optarg ;;
  9250. -target | --target | --targe | --targ | --tar | --ta | --t)
  9251. - ac_prev=target ;;
  9252. + ac_prev=target_alias ;;
  9253. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  9254. - target="$ac_optarg" ;;
  9255. + target_alias=$ac_optarg ;;
  9256. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  9257. verbose=yes ;;
  9258. - -version | --version | --versio | --versi | --vers)
  9259. - echo "configure generated by autoconf version 2.13"
  9260. - exit 0 ;;
  9261. + -version | --version | --versio | --versi | --vers | -V)
  9262. + ac_init_version=: ;;
  9263. -with-* | --with-*)
  9264. - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  9265. + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  9266. # Reject names that are not valid shell variable names.
  9267. - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  9268. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  9269. - fi
  9270. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  9271. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  9272. + { (exit 1); exit 1; }; }
  9273. ac_package=`echo $ac_package| sed 's/-/_/g'`
  9274. - case "$ac_option" in
  9275. - *=*) ;;
  9276. + case $ac_option in
  9277. + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  9278. *) ac_optarg=yes ;;
  9279. esac
  9280. - eval "with_${ac_package}='$ac_optarg'" ;;
  9281. + eval "with_$ac_package='$ac_optarg'" ;;
  9282. -without-* | --without-*)
  9283. - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  9284. + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  9285. # Reject names that are not valid shell variable names.
  9286. - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  9287. - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  9288. - fi
  9289. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  9290. - eval "with_${ac_package}=no" ;;
  9291. + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  9292. + { echo "$as_me: error: invalid package name: $ac_package" >&2
  9293. + { (exit 1); exit 1; }; }
  9294. + ac_package=`echo $ac_package | sed 's/-/_/g'`
  9295. + eval "with_$ac_package=no" ;;
  9296. --x)
  9297. # Obsolete; use --with-x.
  9298. @@ -372,99 +774,110 @@
  9299. ac_prev=x_includes ;;
  9300. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  9301. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  9302. - x_includes="$ac_optarg" ;;
  9303. + x_includes=$ac_optarg ;;
  9304. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  9305. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  9306. ac_prev=x_libraries ;;
  9307. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  9308. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  9309. - x_libraries="$ac_optarg" ;;
  9310. + x_libraries=$ac_optarg ;;
  9311. - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  9312. + -*) { echo "$as_me: error: unrecognized option: $ac_option
  9313. +Try \`$0 --help' for more information." >&2
  9314. + { (exit 1); exit 1; }; }
  9315. ;;
  9316. + *=*)
  9317. + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  9318. + # Reject names that are not valid shell variable names.
  9319. + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  9320. + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  9321. + { (exit 1); exit 1; }; }
  9322. + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  9323. + eval "$ac_envvar='$ac_optarg'"
  9324. + export $ac_envvar ;;
  9325. +
  9326. *)
  9327. - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  9328. - echo "configure: warning: $ac_option: invalid host type" 1>&2
  9329. - fi
  9330. - if test "x$nonopt" != xNONE; then
  9331. - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  9332. - fi
  9333. - nonopt="$ac_option"
  9334. + # FIXME: should be removed in autoconf 3.0.
  9335. + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  9336. + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  9337. + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  9338. + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  9339. ;;
  9340. esac
  9341. done
  9342. if test -n "$ac_prev"; then
  9343. - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  9344. -fi
  9345. -
  9346. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  9347. -
  9348. -# File descriptor usage:
  9349. -# 0 standard input
  9350. -# 1 file creation
  9351. -# 2 errors and warnings
  9352. -# 3 some systems may open it to /dev/tty
  9353. -# 4 used on the Kubota Titan
  9354. -# 6 checking for... messages and results
  9355. -# 5 compiler messages saved in config.log
  9356. -if test "$silent" = yes; then
  9357. - exec 6>/dev/null
  9358. -else
  9359. - exec 6>&1
  9360. + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  9361. + { echo "$as_me: error: missing argument to $ac_option" >&2
  9362. + { (exit 1); exit 1; }; }
  9363. fi
  9364. -exec 5>./config.log
  9365. -echo "\
  9366. -This file contains any messages produced by compilers while
  9367. -running configure, to aid debugging if configure makes a mistake.
  9368. -" 1>&5
  9369. +# Be sure to have absolute paths.
  9370. +for ac_var in exec_prefix prefix
  9371. +do
  9372. + eval ac_val=$`echo $ac_var`
  9373. + case $ac_val in
  9374. + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  9375. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  9376. + { (exit 1); exit 1; }; };;
  9377. + esac
  9378. +done
  9379. -# Strip out --no-create and --no-recursion so they do not pile up.
  9380. -# Also quote any args containing shell metacharacters.
  9381. -ac_configure_args=
  9382. -for ac_arg
  9383. +# Be sure to have absolute paths.
  9384. +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  9385. + localstatedir libdir includedir oldincludedir infodir mandir
  9386. do
  9387. - case "$ac_arg" in
  9388. - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  9389. - | --no-cr | --no-c) ;;
  9390. - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  9391. - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  9392. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  9393. - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  9394. - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  9395. + eval ac_val=$`echo $ac_var`
  9396. + case $ac_val in
  9397. + [\\/$]* | ?:[\\/]* ) ;;
  9398. + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  9399. + { (exit 1); exit 1; }; };;
  9400. esac
  9401. done
  9402. -# NLS nuisances.
  9403. -# Only set these to C if already set. These must not be set unconditionally
  9404. -# because not all systems understand e.g. LANG=C (notably SCO).
  9405. -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  9406. -# Non-C LC_CTYPE values break the ctype check.
  9407. -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
  9408. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  9409. -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  9410. -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
  9411. +# There might be people who depend on the old broken behavior: `$host'
  9412. +# used to hold the argument of --host etc.
  9413. +# FIXME: To remove some day.
  9414. +build=$build_alias
  9415. +host=$host_alias
  9416. +target=$target_alias
  9417. +
  9418. +# FIXME: To remove some day.
  9419. +if test "x$host_alias" != x; then
  9420. + if test "x$build_alias" = x; then
  9421. + cross_compiling=maybe
  9422. + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  9423. + If a cross compiler is detected then cross compile mode will be used." >&2
  9424. + elif test "x$build_alias" != "x$host_alias"; then
  9425. + cross_compiling=yes
  9426. + fi
  9427. +fi
  9428. -# confdefs.h avoids OS command line length limits that DEFS can exceed.
  9429. -rm -rf conftest* confdefs.h
  9430. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  9431. -echo > confdefs.h
  9432. +ac_tool_prefix=
  9433. +test -n "$host_alias" && ac_tool_prefix=$host_alias-
  9434. +
  9435. +test "$silent" = yes && exec 6>/dev/null
  9436. -# A filename unique to this package, relative to the directory that
  9437. -# configure is in, which we can look for to find out if srcdir is correct.
  9438. -ac_unique_file=src/libnet_build_ip.c
  9439. # Find the source files, if location was not specified.
  9440. if test -z "$srcdir"; then
  9441. ac_srcdir_defaulted=yes
  9442. # Try the directory containing this script, then its parent.
  9443. - ac_prog=$0
  9444. - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  9445. - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  9446. + ac_confdir=`(dirname "$0") 2>/dev/null ||
  9447. +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9448. + X"$0" : 'X\(//\)[^/]' \| \
  9449. + X"$0" : 'X\(//\)$' \| \
  9450. + X"$0" : 'X\(/\)' \| \
  9451. + . : '\(.\)' 2>/dev/null ||
  9452. +echo X"$0" |
  9453. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9454. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9455. + /^X\(\/\/\)$/{ s//\1/; q; }
  9456. + /^X\(\/\).*/{ s//\1/; q; }
  9457. + s/.*/./; q'`
  9458. srcdir=$ac_confdir
  9459. if test ! -r $srcdir/$ac_unique_file; then
  9460. srcdir=..
  9461. @@ -474,516 +887,702 @@
  9462. fi
  9463. if test ! -r $srcdir/$ac_unique_file; then
  9464. if test "$ac_srcdir_defaulted" = yes; then
  9465. - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  9466. - else
  9467. - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  9468. - fi
  9469. -fi
  9470. -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  9471. -
  9472. -# Prefer explicitly selected file to automatically selected ones.
  9473. -if test -z "$CONFIG_SITE"; then
  9474. - if test "x$prefix" != xNONE; then
  9475. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  9476. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  9477. + { (exit 1); exit 1; }; }
  9478. else
  9479. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  9480. + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  9481. + { (exit 1); exit 1; }; }
  9482. fi
  9483. fi
  9484. -for ac_site_file in $CONFIG_SITE; do
  9485. - if test -r "$ac_site_file"; then
  9486. - echo "loading site script $ac_site_file"
  9487. - . "$ac_site_file"
  9488. - fi
  9489. -done
  9490. +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  9491. + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  9492. + { (exit 1); exit 1; }; }
  9493. +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  9494. +ac_env_build_alias_set=${build_alias+set}
  9495. +ac_env_build_alias_value=$build_alias
  9496. +ac_cv_env_build_alias_set=${build_alias+set}
  9497. +ac_cv_env_build_alias_value=$build_alias
  9498. +ac_env_host_alias_set=${host_alias+set}
  9499. +ac_env_host_alias_value=$host_alias
  9500. +ac_cv_env_host_alias_set=${host_alias+set}
  9501. +ac_cv_env_host_alias_value=$host_alias
  9502. +ac_env_target_alias_set=${target_alias+set}
  9503. +ac_env_target_alias_value=$target_alias
  9504. +ac_cv_env_target_alias_set=${target_alias+set}
  9505. +ac_cv_env_target_alias_value=$target_alias
  9506. +ac_env_CC_set=${CC+set}
  9507. +ac_env_CC_value=$CC
  9508. +ac_cv_env_CC_set=${CC+set}
  9509. +ac_cv_env_CC_value=$CC
  9510. +ac_env_CFLAGS_set=${CFLAGS+set}
  9511. +ac_env_CFLAGS_value=$CFLAGS
  9512. +ac_cv_env_CFLAGS_set=${CFLAGS+set}
  9513. +ac_cv_env_CFLAGS_value=$CFLAGS
  9514. +ac_env_LDFLAGS_set=${LDFLAGS+set}
  9515. +ac_env_LDFLAGS_value=$LDFLAGS
  9516. +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  9517. +ac_cv_env_LDFLAGS_value=$LDFLAGS
  9518. +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  9519. +ac_env_CPPFLAGS_value=$CPPFLAGS
  9520. +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  9521. +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  9522. +ac_env_CPP_set=${CPP+set}
  9523. +ac_env_CPP_value=$CPP
  9524. +ac_cv_env_CPP_set=${CPP+set}
  9525. +ac_cv_env_CPP_value=$CPP
  9526. -if test -r "$cache_file"; then
  9527. - echo "loading cache $cache_file"
  9528. - . $cache_file
  9529. -else
  9530. - echo "creating cache $cache_file"
  9531. - > $cache_file
  9532. -fi
  9533. +#
  9534. +# Report the --help message.
  9535. +#
  9536. +if test "$ac_init_help" = "long"; then
  9537. + # Omit some internal or obsolete options to make the list less imposing.
  9538. + # This message is too long to be a string in the A/UX 3.1 sh.
  9539. + cat <<_ACEOF
  9540. +\`configure' configures this package to adapt to many kinds of systems.
  9541. -ac_ext=c
  9542. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9543. -ac_cpp='$CPP $CPPFLAGS'
  9544. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9545. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9546. -cross_compiling=$ac_cv_prog_cc_cross
  9547. -
  9548. -ac_exeext=
  9549. -ac_objext=o
  9550. -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  9551. - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  9552. - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  9553. - ac_n= ac_c='
  9554. -' ac_t=' '
  9555. - else
  9556. - ac_n=-n ac_c= ac_t=
  9557. - fi
  9558. -else
  9559. - ac_n= ac_c='\c' ac_t=
  9560. -fi
  9561. +Usage: $0 [OPTION]... [VAR=VALUE]...
  9562. +To assign environment variables (e.g., CC, CFLAGS...), specify them as
  9563. +VAR=VALUE. See below for descriptions of some of the useful variables.
  9564. +Defaults for the options are specified in brackets.
  9565. -VER=`cat VERSION`
  9566. -echo "$ac_t""Beginning autoconfiguration process for libnet-$VER..." 1>&6
  9567. +Configuration:
  9568. + -h, --help display this help and exit
  9569. + --help=short display options specific to this package
  9570. + --help=recursive display the short help of all the included packages
  9571. + -V, --version display version information and exit
  9572. + -q, --quiet, --silent do not print \`checking...' messages
  9573. + --cache-file=FILE cache test results in FILE [disabled]
  9574. + -C, --config-cache alias for \`--cache-file=config.cache'
  9575. + -n, --no-create do not create output files
  9576. + --srcdir=DIR find the sources in DIR [configure dir or \`..']
  9577. +_ACEOF
  9578. + cat <<_ACEOF
  9579. +Installation directories:
  9580. + --prefix=PREFIX install architecture-independent files in PREFIX
  9581. + [$ac_default_prefix]
  9582. + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  9583. + [PREFIX]
  9584. +By default, \`make install' will install all the files in
  9585. +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  9586. +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  9587. +for instance \`--prefix=\$HOME'.
  9588. +
  9589. +For better control, use the options below.
  9590. +
  9591. +Fine tuning of the installation directories:
  9592. + --bindir=DIR user executables [EPREFIX/bin]
  9593. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  9594. + --libexecdir=DIR program executables [EPREFIX/libexec]
  9595. + --datadir=DIR read-only architecture-independent data [PREFIX/share]
  9596. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  9597. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  9598. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  9599. + --libdir=DIR object code libraries [EPREFIX/lib]
  9600. + --includedir=DIR C header files [PREFIX/include]
  9601. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  9602. + --infodir=DIR info documentation [PREFIX/info]
  9603. + --mandir=DIR man documentation [PREFIX/man]
  9604. +_ACEOF
  9605. +
  9606. + cat <<\_ACEOF
  9607. +
  9608. +Program names:
  9609. + --program-prefix=PREFIX prepend PREFIX to installed program names
  9610. + --program-suffix=SUFFIX append SUFFIX to installed program names
  9611. + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  9612. +
  9613. +System types:
  9614. + --build=BUILD configure for building on BUILD [guessed]
  9615. + --host=HOST cross-compile to build programs to run on HOST [BUILD]
  9616. + --target=TARGET configure for building compilers for TARGET [HOST]
  9617. +_ACEOF
  9618. +fi
  9619. +if test -n "$ac_init_help"; then
  9620. + cat <<\_ACEOF
  9621. +Optional Features:
  9622. + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  9623. + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  9624. + --disable-dependency-tracking speeds up one-time build
  9625. + --enable-dependency-tracking do not reject slow dependency extractors
  9626. + --enable-shared=PKGS build shared libraries default=yes
  9627. + --enable-static=PKGS build static libraries default=yes
  9628. + --enable-fast-install=PKGS optimize for fast installation default=yes
  9629. + --disable-libtool-lock avoid locking (might break parallel builds)
  9630. +Optional Packages:
  9631. + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  9632. + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  9633. + --with-pf_packet=yes,no override defaults
  9634. + --with-fast_x86_check=yes,no override defaults
  9635. + --with-gnu-ld assume the C compiler uses GNU ld default=no
  9636. + --with-pic try to use only PIC/non-PIC objects default=use both
  9637. +
  9638. +Some influential environment variables:
  9639. + CC C compiler command
  9640. + CFLAGS C compiler flags
  9641. + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  9642. + nonstandard directory <lib dir>
  9643. + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  9644. + headers in a nonstandard directory <include dir>
  9645. + CPP C preprocessor
  9646. +
  9647. +Use these variables to override the choices made by `configure' or to help
  9648. +it to find libraries and programs with nonstandard names/locations.
  9649. +
  9650. +_ACEOF
  9651. +fi
  9652. +
  9653. +if test "$ac_init_help" = "recursive"; then
  9654. + # If there are subdirs, report their specific --help.
  9655. + ac_popdir=`pwd`
  9656. + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  9657. + test -d $ac_dir || continue
  9658. + ac_builddir=.
  9659. +
  9660. +if test "$ac_dir" != .; then
  9661. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9662. + # A "../" for each directory in $ac_dir_suffix.
  9663. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9664. +else
  9665. + ac_dir_suffix= ac_top_builddir=
  9666. +fi
  9667. +
  9668. +case $srcdir in
  9669. + .) # No --srcdir option. We are building in place.
  9670. + ac_srcdir=.
  9671. + if test -z "$ac_top_builddir"; then
  9672. + ac_top_srcdir=.
  9673. + else
  9674. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9675. + fi ;;
  9676. + [\\/]* | ?:[\\/]* ) # Absolute path.
  9677. + ac_srcdir=$srcdir$ac_dir_suffix;
  9678. + ac_top_srcdir=$srcdir ;;
  9679. + *) # Relative path.
  9680. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9681. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9682. +esac
  9683. +# Do not use `cd foo && pwd` to compute absolute paths, because
  9684. +# the directories may not exist.
  9685. +case `pwd` in
  9686. +.) ac_abs_builddir="$ac_dir";;
  9687. +*)
  9688. + case "$ac_dir" in
  9689. + .) ac_abs_builddir=`pwd`;;
  9690. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9691. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9692. + esac;;
  9693. +esac
  9694. +case $ac_abs_builddir in
  9695. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  9696. +*)
  9697. + case ${ac_top_builddir}. in
  9698. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  9699. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9700. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9701. + esac;;
  9702. +esac
  9703. +case $ac_abs_builddir in
  9704. +.) ac_abs_srcdir=$ac_srcdir;;
  9705. +*)
  9706. + case $ac_srcdir in
  9707. + .) ac_abs_srcdir=$ac_abs_builddir;;
  9708. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  9709. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  9710. + esac;;
  9711. +esac
  9712. +case $ac_abs_builddir in
  9713. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  9714. +*)
  9715. + case $ac_top_srcdir in
  9716. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  9717. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  9718. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  9719. + esac;;
  9720. +esac
  9721. + cd $ac_dir
  9722. + # Check for guested configure; otherwise get Cygnus style configure.
  9723. + if test -f $ac_srcdir/configure.gnu; then
  9724. + echo
  9725. + $SHELL $ac_srcdir/configure.gnu --help=recursive
  9726. + elif test -f $ac_srcdir/configure; then
  9727. + echo
  9728. + $SHELL $ac_srcdir/configure --help=recursive
  9729. + elif test -f $ac_srcdir/configure.ac ||
  9730. + test -f $ac_srcdir/configure.in; then
  9731. + echo
  9732. + $ac_configure --help
  9733. + else
  9734. + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  9735. + fi
  9736. + cd "$ac_popdir"
  9737. + done
  9738. +fi
  9739. +test -n "$ac_init_help" && exit 0
  9740. +if $ac_init_version; then
  9741. + cat <<\_ACEOF
  9742. +
  9743. +Copyright (C) 2003 Free Software Foundation, Inc.
  9744. +This configure script is free software; the Free Software Foundation
  9745. +gives unlimited permission to copy, distribute and modify it.
  9746. +_ACEOF
  9747. + exit 0
  9748. +fi
  9749. +exec 5>config.log
  9750. +cat >&5 <<_ACEOF
  9751. +This file contains any messages produced by compilers while
  9752. +running configure, to aid debugging if configure makes a mistake.
  9753. +It was created by $as_me, which was
  9754. +generated by GNU Autoconf 2.59. Invocation command line was
  9755. + $ $0 $@
  9756. +_ACEOF
  9757. +{
  9758. +cat <<_ASUNAME
  9759. +## --------- ##
  9760. +## Platform. ##
  9761. +## --------- ##
  9762. +
  9763. +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  9764. +uname -m = `(uname -m) 2>/dev/null || echo unknown`
  9765. +uname -r = `(uname -r) 2>/dev/null || echo unknown`
  9766. +uname -s = `(uname -s) 2>/dev/null || echo unknown`
  9767. +uname -v = `(uname -v) 2>/dev/null || echo unknown`
  9768. +
  9769. +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  9770. +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  9771. +
  9772. +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  9773. +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  9774. +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  9775. +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  9776. +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  9777. +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  9778. +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  9779. +_ASUNAME
  9780. -ac_aux_dir=
  9781. -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  9782. - if test -f $ac_dir/install-sh; then
  9783. - ac_aux_dir=$ac_dir
  9784. - ac_install_sh="$ac_aux_dir/install-sh -c"
  9785. - break
  9786. - elif test -f $ac_dir/install.sh; then
  9787. - ac_aux_dir=$ac_dir
  9788. - ac_install_sh="$ac_aux_dir/install.sh -c"
  9789. - break
  9790. - fi
  9791. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9792. +for as_dir in $PATH
  9793. +do
  9794. + IFS=$as_save_IFS
  9795. + test -z "$as_dir" && as_dir=.
  9796. + echo "PATH: $as_dir"
  9797. done
  9798. -if test -z "$ac_aux_dir"; then
  9799. - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  9800. -fi
  9801. -ac_config_guess=$ac_aux_dir/config.guess
  9802. -ac_config_sub=$ac_aux_dir/config.sub
  9803. -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  9804. -
  9805. -
  9806. -# Do some error checking and defaulting for the host and target type.
  9807. -# The inputs are:
  9808. -# configure --host=HOST --target=TARGET --build=BUILD NONOPT
  9809. -#
  9810. -# The rules are:
  9811. -# 1. You are not allowed to specify --host, --target, and nonopt at the
  9812. -# same time.
  9813. -# 2. Host defaults to nonopt.
  9814. -# 3. If nonopt is not specified, then host defaults to the current host,
  9815. -# as determined by config.guess.
  9816. -# 4. Target and build default to nonopt.
  9817. -# 5. If nonopt is not specified, then target and build default to host.
  9818. -# The aliases save the names the user supplied, while $host etc.
  9819. -# will get canonicalized.
  9820. -case $host---$target---$nonopt in
  9821. -NONE---*---* | *---NONE---* | *---*---NONE) ;;
  9822. -*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  9823. -esac
  9824. +} >&5
  9825. +cat >&5 <<_ACEOF
  9826. -# Make sure we can run config.sub.
  9827. -if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  9828. -else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  9829. -fi
  9830. -echo $ac_n "checking host system type""... $ac_c" 1>&6
  9831. -echo "configure:595: checking host system type" >&5
  9832. +## ----------- ##
  9833. +## Core tests. ##
  9834. +## ----------- ##
  9835. -host_alias=$host
  9836. -case "$host_alias" in
  9837. -NONE)
  9838. - case $nonopt in
  9839. - NONE)
  9840. - if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  9841. - else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  9842. - fi ;;
  9843. - *) host_alias=$nonopt ;;
  9844. - esac ;;
  9845. -esac
  9846. +_ACEOF
  9847. -host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  9848. -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  9849. -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  9850. -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  9851. -echo "$ac_t""$host" 1>&6
  9852. -
  9853. -echo $ac_n "checking target system type""... $ac_c" 1>&6
  9854. -echo "configure:616: checking target system type" >&5
  9855. -
  9856. -target_alias=$target
  9857. -case "$target_alias" in
  9858. -NONE)
  9859. - case $nonopt in
  9860. - NONE) target_alias=$host_alias ;;
  9861. - *) target_alias=$nonopt ;;
  9862. - esac ;;
  9863. -esac
  9864. -
  9865. -target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  9866. -target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  9867. -target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  9868. -target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  9869. -echo "$ac_t""$target" 1>&6
  9870. -
  9871. -echo $ac_n "checking build system type""... $ac_c" 1>&6
  9872. -echo "configure:634: checking build system type" >&5
  9873. -
  9874. -build_alias=$build
  9875. -case "$build_alias" in
  9876. -NONE)
  9877. - case $nonopt in
  9878. - NONE) build_alias=$host_alias ;;
  9879. - *) build_alias=$nonopt ;;
  9880. - esac ;;
  9881. -esac
  9882. -
  9883. -build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  9884. -build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  9885. -build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  9886. -build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  9887. -echo "$ac_t""$build" 1>&6
  9888. -test "$host_alias" != "$target_alias" &&
  9889. - test "$program_prefix$program_suffix$program_transform_name" = \
  9890. - NONENONEs,x,x, &&
  9891. - program_prefix=${target_alias}-
  9892. +# Keep a trace of the command line.
  9893. +# Strip out --no-create and --no-recursion so they do not pile up.
  9894. +# Strip out --silent because we don't want to record it for future runs.
  9895. +# Also quote any args containing shell meta-characters.
  9896. +# Make two passes to allow for proper duplicate-argument suppression.
  9897. +ac_configure_args=
  9898. +ac_configure_args0=
  9899. +ac_configure_args1=
  9900. +ac_sep=
  9901. +ac_must_keep_next=false
  9902. +for ac_pass in 1 2
  9903. +do
  9904. + for ac_arg
  9905. + do
  9906. + case $ac_arg in
  9907. + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  9908. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9909. + | -silent | --silent | --silen | --sile | --sil)
  9910. + continue ;;
  9911. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  9912. + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  9913. + esac
  9914. + case $ac_pass in
  9915. + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  9916. + 2)
  9917. + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  9918. + if test $ac_must_keep_next = true; then
  9919. + ac_must_keep_next=false # Got value, back to normal.
  9920. + else
  9921. + case $ac_arg in
  9922. + *=* | --config-cache | -C | -disable-* | --disable-* \
  9923. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  9924. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  9925. + | -with-* | --with-* | -without-* | --without-* | --x)
  9926. + case "$ac_configure_args0 " in
  9927. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  9928. + esac
  9929. + ;;
  9930. + -* ) ac_must_keep_next=true ;;
  9931. + esac
  9932. + fi
  9933. + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  9934. + # Get rid of the leading space.
  9935. + ac_sep=" "
  9936. + ;;
  9937. + esac
  9938. + done
  9939. +done
  9940. +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  9941. +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  9942. +# When interrupted or exit'd, cleanup temporary files, and complete
  9943. +# config.log. We remove comments because anyway the quotes in there
  9944. +# would cause problems or look ugly.
  9945. +# WARNING: Be sure not to use single quotes in there, as some shells,
  9946. +# such as our DU 5.0 friend, will then `close' the trap.
  9947. +trap 'exit_status=$?
  9948. + # Save into config.log some information that might help in debugging.
  9949. + {
  9950. + echo
  9951. +
  9952. + cat <<\_ASBOX
  9953. +## ---------------- ##
  9954. +## Cache variables. ##
  9955. +## ---------------- ##
  9956. +_ASBOX
  9957. + echo
  9958. + # The following way of writing the cache mishandles newlines in values,
  9959. +{
  9960. + (set) 2>&1 |
  9961. + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  9962. + *ac_space=\ *)
  9963. + sed -n \
  9964. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  9965. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  9966. + ;;
  9967. + *)
  9968. + sed -n \
  9969. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9970. + ;;
  9971. + esac;
  9972. +}
  9973. + echo
  9974. + cat <<\_ASBOX
  9975. +## ----------------- ##
  9976. +## Output variables. ##
  9977. +## ----------------- ##
  9978. +_ASBOX
  9979. + echo
  9980. + for ac_var in $ac_subst_vars
  9981. + do
  9982. + eval ac_val=$`echo $ac_var`
  9983. + echo "$ac_var='"'"'$ac_val'"'"'"
  9984. + done | sort
  9985. + echo
  9986. +
  9987. + if test -n "$ac_subst_files"; then
  9988. + cat <<\_ASBOX
  9989. +## ------------- ##
  9990. +## Output files. ##
  9991. +## ------------- ##
  9992. +_ASBOX
  9993. + echo
  9994. + for ac_var in $ac_subst_files
  9995. + do
  9996. + eval ac_val=$`echo $ac_var`
  9997. + echo "$ac_var='"'"'$ac_val'"'"'"
  9998. + done | sort
  9999. + echo
  10000. + fi
  10001. -if test "$prefix" = "NONE"; then
  10002. - prefix="/usr"
  10003. -fi
  10004. -
  10005. -# Extract the first word of "gcc", so it can be a program name with args.
  10006. -set dummy gcc; ac_word=$2
  10007. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10008. -echo "configure:665: checking for $ac_word" >&5
  10009. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  10010. - echo $ac_n "(cached) $ac_c" 1>&6
  10011. -else
  10012. - if test -n "$CC"; then
  10013. - ac_cv_prog_CC="$CC" # Let the user override the test.
  10014. -else
  10015. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10016. - ac_dummy="$PATH"
  10017. - for ac_dir in $ac_dummy; do
  10018. - test -z "$ac_dir" && ac_dir=.
  10019. - if test -f $ac_dir/$ac_word; then
  10020. - ac_cv_prog_CC="gcc"
  10021. - break
  10022. + if test -s confdefs.h; then
  10023. + cat <<\_ASBOX
  10024. +## ----------- ##
  10025. +## confdefs.h. ##
  10026. +## ----------- ##
  10027. +_ASBOX
  10028. + echo
  10029. + sed "/^$/d" confdefs.h | sort
  10030. + echo
  10031. fi
  10032. - done
  10033. - IFS="$ac_save_ifs"
  10034. -fi
  10035. -fi
  10036. -CC="$ac_cv_prog_CC"
  10037. -if test -n "$CC"; then
  10038. - echo "$ac_t""$CC" 1>&6
  10039. -else
  10040. - echo "$ac_t""no" 1>&6
  10041. -fi
  10042. + test "$ac_signal" != 0 &&
  10043. + echo "$as_me: caught signal $ac_signal"
  10044. + echo "$as_me: exit $exit_status"
  10045. + } >&5
  10046. + rm -f core *.core &&
  10047. + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  10048. + exit $exit_status
  10049. + ' 0
  10050. +for ac_signal in 1 2 13 15; do
  10051. + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  10052. +done
  10053. +ac_signal=0
  10054. -if test -z "$CC"; then
  10055. - # Extract the first word of "cc", so it can be a program name with args.
  10056. -set dummy cc; ac_word=$2
  10057. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10058. -echo "configure:695: checking for $ac_word" >&5
  10059. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  10060. - echo $ac_n "(cached) $ac_c" 1>&6
  10061. -else
  10062. - if test -n "$CC"; then
  10063. - ac_cv_prog_CC="$CC" # Let the user override the test.
  10064. -else
  10065. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10066. - ac_prog_rejected=no
  10067. - ac_dummy="$PATH"
  10068. - for ac_dir in $ac_dummy; do
  10069. - test -z "$ac_dir" && ac_dir=.
  10070. - if test -f $ac_dir/$ac_word; then
  10071. - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  10072. - ac_prog_rejected=yes
  10073. - continue
  10074. - fi
  10075. - ac_cv_prog_CC="cc"
  10076. - break
  10077. - fi
  10078. - done
  10079. - IFS="$ac_save_ifs"
  10080. -if test $ac_prog_rejected = yes; then
  10081. - # We found a bogon in the path, so make sure we never use it.
  10082. - set dummy $ac_cv_prog_CC
  10083. - shift
  10084. - if test $# -gt 0; then
  10085. - # We chose a different compiler from the bogus one.
  10086. - # However, it has the same basename, so the bogon will be chosen
  10087. - # first if we set CC to just the basename; use the full file name.
  10088. - shift
  10089. - set dummy "$ac_dir/$ac_word" "$@"
  10090. - shift
  10091. - ac_cv_prog_CC="$@"
  10092. +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  10093. +rm -rf conftest* confdefs.h
  10094. +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  10095. +echo >confdefs.h
  10096. +
  10097. +# Predefined preprocessor variables.
  10098. +
  10099. +cat >>confdefs.h <<_ACEOF
  10100. +#define PACKAGE_NAME "$PACKAGE_NAME"
  10101. +_ACEOF
  10102. +
  10103. +
  10104. +cat >>confdefs.h <<_ACEOF
  10105. +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  10106. +_ACEOF
  10107. +
  10108. +
  10109. +cat >>confdefs.h <<_ACEOF
  10110. +#define PACKAGE_VERSION "$PACKAGE_VERSION"
  10111. +_ACEOF
  10112. +
  10113. +
  10114. +cat >>confdefs.h <<_ACEOF
  10115. +#define PACKAGE_STRING "$PACKAGE_STRING"
  10116. +_ACEOF
  10117. +
  10118. +
  10119. +cat >>confdefs.h <<_ACEOF
  10120. +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  10121. +_ACEOF
  10122. +
  10123. +
  10124. +# Let the site file select an alternate cache file if it wants to.
  10125. +# Prefer explicitly selected file to automatically selected ones.
  10126. +if test -z "$CONFIG_SITE"; then
  10127. + if test "x$prefix" != xNONE; then
  10128. + CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  10129. + else
  10130. + CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  10131. fi
  10132. fi
  10133. -fi
  10134. -fi
  10135. -CC="$ac_cv_prog_CC"
  10136. -if test -n "$CC"; then
  10137. - echo "$ac_t""$CC" 1>&6
  10138. -else
  10139. - echo "$ac_t""no" 1>&6
  10140. -fi
  10141. +for ac_site_file in $CONFIG_SITE; do
  10142. + if test -r "$ac_site_file"; then
  10143. + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  10144. +echo "$as_me: loading site script $ac_site_file" >&6;}
  10145. + sed 's/^/| /' "$ac_site_file" >&5
  10146. + . "$ac_site_file"
  10147. + fi
  10148. +done
  10149. - if test -z "$CC"; then
  10150. - case "`uname -s`" in
  10151. - *win32* | *WIN32*)
  10152. - # Extract the first word of "cl", so it can be a program name with args.
  10153. -set dummy cl; ac_word=$2
  10154. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10155. -echo "configure:746: checking for $ac_word" >&5
  10156. -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  10157. - echo $ac_n "(cached) $ac_c" 1>&6
  10158. -else
  10159. - if test -n "$CC"; then
  10160. - ac_cv_prog_CC="$CC" # Let the user override the test.
  10161. -else
  10162. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10163. - ac_dummy="$PATH"
  10164. - for ac_dir in $ac_dummy; do
  10165. - test -z "$ac_dir" && ac_dir=.
  10166. - if test -f $ac_dir/$ac_word; then
  10167. - ac_cv_prog_CC="cl"
  10168. - break
  10169. - fi
  10170. - done
  10171. - IFS="$ac_save_ifs"
  10172. -fi
  10173. -fi
  10174. -CC="$ac_cv_prog_CC"
  10175. -if test -n "$CC"; then
  10176. - echo "$ac_t""$CC" 1>&6
  10177. +if test -r "$cache_file"; then
  10178. + # Some versions of bash will fail to source /dev/null (special
  10179. + # files actually), so we avoid doing that.
  10180. + if test -f "$cache_file"; then
  10181. + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  10182. +echo "$as_me: loading cache $cache_file" >&6;}
  10183. + case $cache_file in
  10184. + [\\/]* | ?:[\\/]* ) . $cache_file;;
  10185. + *) . ./$cache_file;;
  10186. + esac
  10187. + fi
  10188. else
  10189. - echo "$ac_t""no" 1>&6
  10190. -fi
  10191. - ;;
  10192. + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  10193. +echo "$as_me: creating cache $cache_file" >&6;}
  10194. + >$cache_file
  10195. +fi
  10196. +
  10197. +# Check that the precious variables saved in the cache have kept the same
  10198. +# value.
  10199. +ac_cache_corrupted=false
  10200. +for ac_var in `(set) 2>&1 |
  10201. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  10202. + eval ac_old_set=\$ac_cv_env_${ac_var}_set
  10203. + eval ac_new_set=\$ac_env_${ac_var}_set
  10204. + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  10205. + eval ac_new_val="\$ac_env_${ac_var}_value"
  10206. + case $ac_old_set,$ac_new_set in
  10207. + set,)
  10208. + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  10209. +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  10210. + ac_cache_corrupted=: ;;
  10211. + ,set)
  10212. + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  10213. +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  10214. + ac_cache_corrupted=: ;;
  10215. + ,);;
  10216. + *)
  10217. + if test "x$ac_old_val" != "x$ac_new_val"; then
  10218. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  10219. +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  10220. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  10221. +echo "$as_me: former value: $ac_old_val" >&2;}
  10222. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  10223. +echo "$as_me: current value: $ac_new_val" >&2;}
  10224. + ac_cache_corrupted=:
  10225. + fi;;
  10226. + esac
  10227. + # Pass precious variables to config.status.
  10228. + if test "$ac_new_set" = set; then
  10229. + case $ac_new_val in
  10230. + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  10231. + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  10232. + *) ac_arg=$ac_var=$ac_new_val ;;
  10233. + esac
  10234. + case " $ac_configure_args " in
  10235. + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  10236. + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  10237. esac
  10238. fi
  10239. - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  10240. +done
  10241. +if $ac_cache_corrupted; then
  10242. + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  10243. +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  10244. + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  10245. +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  10246. + { (exit 1); exit 1; }; }
  10247. fi
  10248. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  10249. -echo "configure:778: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  10250. -
  10251. ac_ext=c
  10252. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10253. ac_cpp='$CPP $CPPFLAGS'
  10254. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10255. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10256. -cross_compiling=$ac_cv_prog_cc_cross
  10257. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10258. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10259. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10260. -cat > conftest.$ac_ext << EOF
  10261. -#line 789 "configure"
  10262. -#include "confdefs.h"
  10263. -main(){return(0);}
  10264. -EOF
  10265. -if { (eval echo configure:794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10266. - ac_cv_prog_cc_works=yes
  10267. - # If we can't run a trivial program, we are probably using a cross compiler.
  10268. - if (./conftest; exit) 2>/dev/null; then
  10269. - ac_cv_prog_cc_cross=no
  10270. - else
  10271. - ac_cv_prog_cc_cross=yes
  10272. - fi
  10273. -else
  10274. - echo "configure: failed program was:" >&5
  10275. - cat conftest.$ac_ext >&5
  10276. - ac_cv_prog_cc_works=no
  10277. -fi
  10278. -rm -fr conftest*
  10279. -ac_ext=c
  10280. -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10281. -ac_cpp='$CPP $CPPFLAGS'
  10282. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10283. -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10284. -cross_compiling=$ac_cv_prog_cc_cross
  10285. -
  10286. -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  10287. -if test $ac_cv_prog_cc_works = no; then
  10288. - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  10289. -fi
  10290. -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  10291. -echo "configure:820: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  10292. -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  10293. -cross_compiling=$ac_cv_prog_cc_cross
  10294. -
  10295. -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  10296. -echo "configure:825: checking whether we are using GNU C" >&5
  10297. -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  10298. - echo $ac_n "(cached) $ac_c" 1>&6
  10299. -else
  10300. - cat > conftest.c <<EOF
  10301. -#ifdef __GNUC__
  10302. - yes;
  10303. -#endif
  10304. -EOF
  10305. -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  10306. - ac_cv_prog_gcc=yes
  10307. -else
  10308. - ac_cv_prog_gcc=no
  10309. -fi
  10310. -fi
  10311. -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  10312. -if test $ac_cv_prog_gcc = yes; then
  10313. - GCC=yes
  10314. -else
  10315. - GCC=
  10316. -fi
  10317. -ac_test_CFLAGS="${CFLAGS+set}"
  10318. -ac_save_CFLAGS="$CFLAGS"
  10319. -CFLAGS=
  10320. -echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  10321. -echo "configure:853: checking whether ${CC-cc} accepts -g" >&5
  10322. -if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  10323. - echo $ac_n "(cached) $ac_c" 1>&6
  10324. -else
  10325. - echo 'void f(){}' > conftest.c
  10326. -if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  10327. - ac_cv_prog_cc_g=yes
  10328. -else
  10329. - ac_cv_prog_cc_g=no
  10330. -fi
  10331. -rm -f conftest*
  10332. -fi
  10333. -echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  10334. -if test "$ac_test_CFLAGS" = set; then
  10335. - CFLAGS="$ac_save_CFLAGS"
  10336. -elif test $ac_cv_prog_cc_g = yes; then
  10337. - if test "$GCC" = yes; then
  10338. - CFLAGS="-g -O2"
  10339. - else
  10340. - CFLAGS="-g"
  10341. - fi
  10342. -else
  10343. - if test "$GCC" = yes; then
  10344. - CFLAGS="-O2"
  10345. - else
  10346. - CFLAGS=
  10347. - fi
  10348. -fi
  10349. -echo $ac_n "checking for working const""... $ac_c" 1>&6
  10350. -echo "configure:886: checking for working const" >&5
  10351. -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  10352. - echo $ac_n "(cached) $ac_c" 1>&6
  10353. -else
  10354. - cat > conftest.$ac_ext <<EOF
  10355. -#line 891 "configure"
  10356. -#include "confdefs.h"
  10357. -int main() {
  10358. -/* Ultrix mips cc rejects this. */
  10359. -typedef int charset[2]; const charset x;
  10360. -/* SunOS 4.1.1 cc rejects this. */
  10361. -char const *const *ccp;
  10362. -char **p;
  10363. -/* NEC SVR4.0.2 mips cc rejects this. */
  10364. -struct point {int x, y;};
  10365. -static struct point const zero = {0,0};
  10366. -/* AIX XL C 1.02.0.0 rejects this.
  10367. - It does not let you subtract one const X* pointer from another in an arm
  10368. - of an if-expression whose if-part is not a constant expression */
  10369. -const char *g = "string";
  10370. -ccp = &g + (g ? g-g : 0);
  10371. -/* HPUX 7.0 cc rejects these. */
  10372. -++ccp;
  10373. -p = (char**) ccp;
  10374. -ccp = (char const *const *) p;
  10375. -{ /* SCO 3.2v4 cc rejects this. */
  10376. - char *t;
  10377. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  10378. -
  10379. - *t++ = 0;
  10380. -}
  10381. -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10382. - int x[] = {25, 17};
  10383. - const int *foo = &x[0];
  10384. - ++foo;
  10385. -}
  10386. -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10387. - typedef const int *iptr;
  10388. - iptr p = 0;
  10389. - ++p;
  10390. -}
  10391. -{ /* AIX XL C 1.02.0.0 rejects this saying
  10392. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10393. - struct s { int j; const int *ap[3]; };
  10394. - struct s *b; b->j = 5;
  10395. -}
  10396. -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10397. - const int foo = 10;
  10398. -}
  10399. -; return 0; }
  10400. -EOF
  10401. -if { (eval echo configure:940: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10402. - rm -rf conftest*
  10403. - ac_cv_c_const=yes
  10404. -else
  10405. - echo "configure: failed program was:" >&5
  10406. - cat conftest.$ac_ext >&5
  10407. - rm -rf conftest*
  10408. - ac_cv_c_const=no
  10409. -fi
  10410. -rm -f conftest*
  10411. -fi
  10412. -echo "$ac_t""$ac_cv_c_const" 1>&6
  10413. -if test $ac_cv_c_const = no; then
  10414. - cat >> confdefs.h <<\EOF
  10415. -#define const
  10416. -EOF
  10417. -fi
  10418. -if test $ac_cv_prog_gcc = yes; then
  10419. - CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
  10420. - CFLAGS="$CCOPTS"
  10421. -fi
  10422. -# Check whether --with-pf_packet or --without-pf_packet was given.
  10423. -if test "${with_pf_packet+set}" = set; then
  10424. - withval="$with_pf_packet"
  10425. - \
  10426. - with_pf_packet=yes
  10427. -else
  10428. - with_pf_packet=no
  10429. -fi
  10430. +ac_aux_dir=
  10431. +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  10432. + if test -f $ac_dir/install-sh; then
  10433. + ac_aux_dir=$ac_dir
  10434. + ac_install_sh="$ac_aux_dir/install-sh -c"
  10435. + break
  10436. + elif test -f $ac_dir/install.sh; then
  10437. + ac_aux_dir=$ac_dir
  10438. + ac_install_sh="$ac_aux_dir/install.sh -c"
  10439. + break
  10440. + elif test -f $ac_dir/shtool; then
  10441. + ac_aux_dir=$ac_dir
  10442. + ac_install_sh="$ac_aux_dir/shtool install -c"
  10443. + break
  10444. + fi
  10445. +done
  10446. +if test -z "$ac_aux_dir"; then
  10447. + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  10448. +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  10449. + { (exit 1); exit 1; }; }
  10450. +fi
  10451. +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  10452. +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  10453. +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  10454. -# Check whether --with-fast_x86_check or --without-fast_x86_check was given.
  10455. -if test "${with_fast_x86_check+set}" = set; then
  10456. - withval="$with_fast_x86_check"
  10457. - \
  10458. - cat >> confdefs.h <<\EOF
  10459. -#define LIBNET_FAST_X86_CHECK 1
  10460. -EOF
  10461. +# Make sure we can run config.sub.
  10462. +$ac_config_sub sun4 >/dev/null 2>&1 ||
  10463. + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  10464. +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  10465. + { (exit 1); exit 1; }; }
  10466. +
  10467. +echo "$as_me:$LINENO: checking build system type" >&5
  10468. +echo $ECHO_N "checking build system type... $ECHO_C" >&6
  10469. +if test "${ac_cv_build+set}" = set; then
  10470. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10471. +else
  10472. + ac_cv_build_alias=$build_alias
  10473. +test -z "$ac_cv_build_alias" &&
  10474. + ac_cv_build_alias=`$ac_config_guess`
  10475. +test -z "$ac_cv_build_alias" &&
  10476. + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  10477. +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  10478. + { (exit 1); exit 1; }; }
  10479. +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  10480. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  10481. +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  10482. + { (exit 1); exit 1; }; }
  10483. +
  10484. +fi
  10485. +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  10486. +echo "${ECHO_T}$ac_cv_build" >&6
  10487. +build=$ac_cv_build
  10488. +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  10489. +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  10490. +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  10491. +
  10492. +
  10493. +echo "$as_me:$LINENO: checking host system type" >&5
  10494. +echo $ECHO_N "checking host system type... $ECHO_C" >&6
  10495. +if test "${ac_cv_host+set}" = set; then
  10496. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10497. +else
  10498. + ac_cv_host_alias=$host_alias
  10499. +test -z "$ac_cv_host_alias" &&
  10500. + ac_cv_host_alias=$ac_cv_build_alias
  10501. +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  10502. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  10503. +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  10504. + { (exit 1); exit 1; }; }
  10505. +
  10506. +fi
  10507. +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  10508. +echo "${ECHO_T}$ac_cv_host" >&6
  10509. +host=$ac_cv_host
  10510. +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  10511. +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  10512. +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  10513. +
  10514. +
  10515. +echo "$as_me:$LINENO: checking target system type" >&5
  10516. +echo $ECHO_N "checking target system type... $ECHO_C" >&6
  10517. +if test "${ac_cv_target+set}" = set; then
  10518. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10519. +else
  10520. + ac_cv_target_alias=$target_alias
  10521. +test "x$ac_cv_target_alias" = "x" &&
  10522. + ac_cv_target_alias=$ac_cv_host_alias
  10523. +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  10524. + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  10525. +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  10526. + { (exit 1); exit 1; }; }
  10527. +
  10528. +fi
  10529. +echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  10530. +echo "${ECHO_T}$ac_cv_target" >&6
  10531. +target=$ac_cv_target
  10532. +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  10533. +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  10534. +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  10535. -fi
  10536. +
  10537. +# The aliases save the names the user supplied, while $host etc.
  10538. +# will get canonicalized.
  10539. +test -n "$target_alias" &&
  10540. + test "$program_prefix$program_suffix$program_transform_name" = \
  10541. + NONENONEs,x,x, &&
  10542. + program_prefix=${target_alias}-
  10543. +am__api_version="1.8"
  10544. # Find a good install program. We prefer a C program (faster),
  10545. # so one script is as good as another. But avoid the broken or
  10546. # incompatible versions:
  10547. @@ -991,330 +1590,7067 @@
  10548. # SunOS /usr/etc/install
  10549. # IRIX /sbin/install
  10550. # AIX /bin/install
  10551. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  10552. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  10553. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  10554. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  10555. +# OS/2's system install, which has a completely different semantic
  10556. # ./install, which can be erroneously created by make from ./install.sh.
  10557. -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  10558. -echo "configure:1000: checking for a BSD compatible install" >&5
  10559. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  10560. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  10561. if test -z "$INSTALL"; then
  10562. -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  10563. - echo $ac_n "(cached) $ac_c" 1>&6
  10564. +if test "${ac_cv_path_install+set}" = set; then
  10565. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10566. else
  10567. - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
  10568. - for ac_dir in $PATH; do
  10569. - # Account for people who put trailing slashes in PATH elements.
  10570. - case "$ac_dir/" in
  10571. - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  10572. - *)
  10573. - # OSF1 and SCO ODT 3.0 have their own names for install.
  10574. - # Don't use installbsd from OSF since it installs stuff as root
  10575. - # by default.
  10576. - for ac_prog in ginstall scoinst install; do
  10577. - if test -f $ac_dir/$ac_prog; then
  10578. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10579. +for as_dir in $PATH
  10580. +do
  10581. + IFS=$as_save_IFS
  10582. + test -z "$as_dir" && as_dir=.
  10583. + # Account for people who put trailing slashes in PATH elements.
  10584. +case $as_dir/ in
  10585. + ./ | .// | /cC/* | \
  10586. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  10587. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  10588. + /usr/ucb/* ) ;;
  10589. + *)
  10590. + # OSF1 and SCO ODT 3.0 have their own names for install.
  10591. + # Don't use installbsd from OSF since it installs stuff as root
  10592. + # by default.
  10593. + for ac_prog in ginstall scoinst install; do
  10594. + for ac_exec_ext in '' $ac_executable_extensions; do
  10595. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  10596. if test $ac_prog = install &&
  10597. - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  10598. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10599. # AIX install. It has an incompatible calling convention.
  10600. :
  10601. + elif test $ac_prog = install &&
  10602. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  10603. + # program-specific install script used by HP pwplus--don't use.
  10604. + :
  10605. else
  10606. - ac_cv_path_install="$ac_dir/$ac_prog -c"
  10607. - break 2
  10608. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  10609. + break 3
  10610. fi
  10611. fi
  10612. done
  10613. - ;;
  10614. - esac
  10615. - done
  10616. - IFS="$ac_save_IFS"
  10617. + done
  10618. + ;;
  10619. +esac
  10620. +done
  10621. +
  10622. fi
  10623. if test "${ac_cv_path_install+set}" = set; then
  10624. - INSTALL="$ac_cv_path_install"
  10625. + INSTALL=$ac_cv_path_install
  10626. else
  10627. # As a last resort, use the slow shell script. We don't cache a
  10628. # path for INSTALL within a source directory, because that will
  10629. # break other packages using the cache if that directory is
  10630. # removed, or if the path is relative.
  10631. - INSTALL="$ac_install_sh"
  10632. + INSTALL=$ac_install_sh
  10633. fi
  10634. fi
  10635. -echo "$ac_t""$INSTALL" 1>&6
  10636. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  10637. +echo "${ECHO_T}$INSTALL" >&6
  10638. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  10639. # It thinks the first close brace ends the variable substitution.
  10640. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  10641. -test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  10642. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  10643. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  10644. -echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  10645. -echo "configure:1053: checking whether ${MAKE-make} sets \${MAKE}" >&5
  10646. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  10647. -if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  10648. - echo $ac_n "(cached) $ac_c" 1>&6
  10649. -else
  10650. - cat > conftestmake <<\EOF
  10651. -all:
  10652. - @echo 'ac_maketemp="${MAKE}"'
  10653. -EOF
  10654. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  10655. -eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  10656. -if test -n "$ac_maketemp"; then
  10657. - eval ac_cv_prog_make_${ac_make}_set=yes
  10658. -else
  10659. - eval ac_cv_prog_make_${ac_make}_set=no
  10660. -fi
  10661. -rm -f conftestmake
  10662. -fi
  10663. -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  10664. - echo "$ac_t""yes" 1>&6
  10665. - SET_MAKE=
  10666. -else
  10667. - echo "$ac_t""no" 1>&6
  10668. - SET_MAKE="MAKE=${MAKE-make}"
  10669. +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  10670. +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  10671. +# Just in case
  10672. +sleep 1
  10673. +echo timestamp > conftest.file
  10674. +# Do `set' in a subshell so we don't clobber the current shell's
  10675. +# arguments. Must try -L first in case configure is actually a
  10676. +# symlink; some systems play weird games with the mod time of symlinks
  10677. +# (eg FreeBSD returns the mod time of the symlink's containing
  10678. +# directory).
  10679. +if (
  10680. + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  10681. + if test "$*" = "X"; then
  10682. + # -L didn't work.
  10683. + set X `ls -t $srcdir/configure conftest.file`
  10684. + fi
  10685. + rm -f conftest.file
  10686. + if test "$*" != "X $srcdir/configure conftest.file" \
  10687. + && test "$*" != "X conftest.file $srcdir/configure"; then
  10688. +
  10689. + # If neither matched, then we have a broken ls. This can happen
  10690. + # if, for instance, CONFIG_SHELL is bash and it inherits a
  10691. + # broken ls alias from the environment. This has actually
  10692. + # happened. Such a system could not be considered "sane".
  10693. + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  10694. +alias in your environment" >&5
  10695. +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  10696. +alias in your environment" >&2;}
  10697. + { (exit 1); exit 1; }; }
  10698. + fi
  10699. +
  10700. + test "$2" = conftest.file
  10701. + )
  10702. +then
  10703. + # Ok.
  10704. + :
  10705. +else
  10706. + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  10707. +Check your system clock" >&5
  10708. +echo "$as_me: error: newly created file is older than distributed files!
  10709. +Check your system clock" >&2;}
  10710. + { (exit 1); exit 1; }; }
  10711. +fi
  10712. +echo "$as_me:$LINENO: result: yes" >&5
  10713. +echo "${ECHO_T}yes" >&6
  10714. +test "$program_prefix" != NONE &&
  10715. + program_transform_name="s,^,$program_prefix,;$program_transform_name"
  10716. +# Use a double $ so make ignores it.
  10717. +test "$program_suffix" != NONE &&
  10718. + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  10719. +# Double any \ or $. echo might interpret backslashes.
  10720. +# By default was `s,x,x', remove it if useless.
  10721. +cat <<\_ACEOF >conftest.sed
  10722. +s/[\\$]/&&/g;s/;s,x,x,$//
  10723. +_ACEOF
  10724. +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  10725. +rm conftest.sed
  10726. +
  10727. +# expand $ac_aux_dir to an absolute path
  10728. +am_aux_dir=`cd $ac_aux_dir && pwd`
  10729. +
  10730. +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  10731. +# Use eval to expand $SHELL
  10732. +if eval "$MISSING --run true"; then
  10733. + am_missing_run="$MISSING --run "
  10734. +else
  10735. + am_missing_run=
  10736. + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  10737. +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  10738. +fi
  10739. +
  10740. +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  10741. + # Keeping the `.' argument allows $(mkdir_p) to be used without
  10742. + # argument. Indeed, we sometimes output rules like
  10743. + # $(mkdir_p) $(somedir)
  10744. + # where $(somedir) is conditionally defined.
  10745. + # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
  10746. + # expensive solution, as it forces Make to start a sub-shell.)
  10747. + mkdir_p='mkdir -p -- .'
  10748. +else
  10749. + # On NextStep and OpenStep, the `mkdir' command does not
  10750. + # recognize any option. It will interpret all options as
  10751. + # directories to create, and then abort because `.' already
  10752. + # exists.
  10753. + for d in ./-p ./--version;
  10754. + do
  10755. + test -d $d && rmdir $d
  10756. + done
  10757. + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  10758. + if test -f "$ac_aux_dir/mkinstalldirs"; then
  10759. + mkdir_p='$(mkinstalldirs)'
  10760. + else
  10761. + mkdir_p='$(install_sh) -d'
  10762. + fi
  10763. fi
  10764. -for ac_prog in ranlib
  10765. +for ac_prog in gawk mawk nawk awk
  10766. do
  10767. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  10768. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  10769. set dummy $ac_prog; ac_word=$2
  10770. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10771. -echo "configure:1084: checking for $ac_word" >&5
  10772. -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  10773. - echo $ac_n "(cached) $ac_c" 1>&6
  10774. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  10775. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10776. +if test "${ac_cv_prog_AWK+set}" = set; then
  10777. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10778. else
  10779. - if test -n "$RANLIB"; then
  10780. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  10781. + if test -n "$AWK"; then
  10782. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  10783. else
  10784. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10785. - ac_dummy="$PATH"
  10786. - for ac_dir in $ac_dummy; do
  10787. - test -z "$ac_dir" && ac_dir=.
  10788. - if test -f $ac_dir/$ac_word; then
  10789. - ac_cv_prog_RANLIB="$ac_prog"
  10790. - break
  10791. - fi
  10792. - done
  10793. - IFS="$ac_save_ifs"
  10794. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10795. +for as_dir in $PATH
  10796. +do
  10797. + IFS=$as_save_IFS
  10798. + test -z "$as_dir" && as_dir=.
  10799. + for ac_exec_ext in '' $ac_executable_extensions; do
  10800. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10801. + ac_cv_prog_AWK="$ac_prog"
  10802. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10803. + break 2
  10804. + fi
  10805. +done
  10806. +done
  10807. +
  10808. fi
  10809. fi
  10810. -RANLIB="$ac_cv_prog_RANLIB"
  10811. -if test -n "$RANLIB"; then
  10812. - echo "$ac_t""$RANLIB" 1>&6
  10813. +AWK=$ac_cv_prog_AWK
  10814. +if test -n "$AWK"; then
  10815. + echo "$as_me:$LINENO: result: $AWK" >&5
  10816. +echo "${ECHO_T}$AWK" >&6
  10817. else
  10818. - echo "$ac_t""no" 1>&6
  10819. + echo "$as_me:$LINENO: result: no" >&5
  10820. +echo "${ECHO_T}no" >&6
  10821. fi
  10822. -test -n "$RANLIB" && break
  10823. + test -n "$AWK" && break
  10824. done
  10825. -test -n "$RANLIB" || RANLIB="@true"
  10826. -for ac_prog in ar
  10827. -do
  10828. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  10829. -set dummy $ac_prog; ac_word=$2
  10830. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10831. -echo "configure:1119: checking for $ac_word" >&5
  10832. -if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  10833. - echo $ac_n "(cached) $ac_c" 1>&6
  10834. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  10835. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  10836. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  10837. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  10838. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10839. else
  10840. - if test -n "$AR"; then
  10841. - ac_cv_prog_AR="$AR" # Let the user override the test.
  10842. + cat >conftest.make <<\_ACEOF
  10843. +all:
  10844. + @echo 'ac_maketemp="$(MAKE)"'
  10845. +_ACEOF
  10846. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  10847. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  10848. +if test -n "$ac_maketemp"; then
  10849. + eval ac_cv_prog_make_${ac_make}_set=yes
  10850. else
  10851. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  10852. - ac_dummy="$PATH"
  10853. - for ac_dir in $ac_dummy; do
  10854. - test -z "$ac_dir" && ac_dir=.
  10855. - if test -f $ac_dir/$ac_word; then
  10856. - ac_cv_prog_AR="$ac_prog"
  10857. - break
  10858. - fi
  10859. - done
  10860. - IFS="$ac_save_ifs"
  10861. + eval ac_cv_prog_make_${ac_make}_set=no
  10862. fi
  10863. +rm -f conftest.make
  10864. fi
  10865. -AR="$ac_cv_prog_AR"
  10866. -if test -n "$AR"; then
  10867. - echo "$ac_t""$AR" 1>&6
  10868. +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  10869. + echo "$as_me:$LINENO: result: yes" >&5
  10870. +echo "${ECHO_T}yes" >&6
  10871. + SET_MAKE=
  10872. else
  10873. - echo "$ac_t""no" 1>&6
  10874. + echo "$as_me:$LINENO: result: no" >&5
  10875. +echo "${ECHO_T}no" >&6
  10876. + SET_MAKE="MAKE=${MAKE-make}"
  10877. fi
  10878. -test -n "$AR" && break
  10879. -done
  10880. -test -n "$AR" || AR="@true"
  10881. +rm -rf .tst 2>/dev/null
  10882. +mkdir .tst 2>/dev/null
  10883. +if test -d .tst; then
  10884. + am__leading_dot=.
  10885. +else
  10886. + am__leading_dot=_
  10887. +fi
  10888. +rmdir .tst 2>/dev/null
  10889. +
  10890. +# test to see if srcdir already configured
  10891. +if test "`cd $srcdir && pwd`" != "`pwd`" &&
  10892. + test -f $srcdir/config.status; then
  10893. + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  10894. +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  10895. + { (exit 1); exit 1; }; }
  10896. +fi
  10897. +
  10898. +# test whether we have cygpath
  10899. +if test -z "$CYGPATH_W"; then
  10900. + if (cygpath --version) >/dev/null 2>/dev/null; then
  10901. + CYGPATH_W='cygpath -w'
  10902. + else
  10903. + CYGPATH_W=echo
  10904. + fi
  10905. +fi
  10906. +
  10907. +
  10908. +# Define the identity of the package.
  10909. + PACKAGE=libnet
  10910. + VERSION=1.0.2a
  10911. +
  10912. +
  10913. +cat >>confdefs.h <<_ACEOF
  10914. +#define PACKAGE "$PACKAGE"
  10915. +_ACEOF
  10916. +
  10917. +
  10918. +cat >>confdefs.h <<_ACEOF
  10919. +#define VERSION "$VERSION"
  10920. +_ACEOF
  10921. +
  10922. +# Some tools Automake needs.
  10923. +
  10924. +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  10925. +
  10926. +
  10927. +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  10928. +
  10929. +
  10930. +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  10931. +
  10932. +
  10933. +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  10934. +
  10935. +
  10936. +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  10937. +
  10938. +
  10939. +AMTAR=${AMTAR-"${am_missing_run}tar"}
  10940. +
  10941. +install_sh=${install_sh-"$am_aux_dir/install-sh"}
  10942. +
  10943. +# Installed binaries are usually stripped using `strip' when the user
  10944. +# run `make install-strip'. However `strip' might not be the right
  10945. +# tool to use in cross-compilation environments, therefore Automake
  10946. +# will honor the `STRIP' environment variable to overrule this program.
  10947. +if test "$cross_compiling" != no; then
  10948. + if test -n "$ac_tool_prefix"; then
  10949. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  10950. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  10951. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  10952. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10953. +if test "${ac_cv_prog_STRIP+set}" = set; then
  10954. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10955. +else
  10956. + if test -n "$STRIP"; then
  10957. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  10958. +else
  10959. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10960. +for as_dir in $PATH
  10961. +do
  10962. + IFS=$as_save_IFS
  10963. + test -z "$as_dir" && as_dir=.
  10964. + for ac_exec_ext in '' $ac_executable_extensions; do
  10965. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10966. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  10967. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  10968. + break 2
  10969. + fi
  10970. +done
  10971. +done
  10972. +
  10973. +fi
  10974. +fi
  10975. +STRIP=$ac_cv_prog_STRIP
  10976. +if test -n "$STRIP"; then
  10977. + echo "$as_me:$LINENO: result: $STRIP" >&5
  10978. +echo "${ECHO_T}$STRIP" >&6
  10979. +else
  10980. + echo "$as_me:$LINENO: result: no" >&5
  10981. +echo "${ECHO_T}no" >&6
  10982. +fi
  10983. +
  10984. +fi
  10985. +if test -z "$ac_cv_prog_STRIP"; then
  10986. + ac_ct_STRIP=$STRIP
  10987. + # Extract the first word of "strip", so it can be a program name with args.
  10988. +set dummy strip; ac_word=$2
  10989. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  10990. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  10991. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  10992. + echo $ECHO_N "(cached) $ECHO_C" >&6
  10993. +else
  10994. + if test -n "$ac_ct_STRIP"; then
  10995. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  10996. +else
  10997. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10998. +for as_dir in $PATH
  10999. +do
  11000. + IFS=$as_save_IFS
  11001. + test -z "$as_dir" && as_dir=.
  11002. + for ac_exec_ext in '' $ac_executable_extensions; do
  11003. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11004. + ac_cv_prog_ac_ct_STRIP="strip"
  11005. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11006. + break 2
  11007. + fi
  11008. +done
  11009. +done
  11010. +
  11011. + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  11012. +fi
  11013. +fi
  11014. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  11015. +if test -n "$ac_ct_STRIP"; then
  11016. + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  11017. +echo "${ECHO_T}$ac_ct_STRIP" >&6
  11018. +else
  11019. + echo "$as_me:$LINENO: result: no" >&5
  11020. +echo "${ECHO_T}no" >&6
  11021. +fi
  11022. +
  11023. + STRIP=$ac_ct_STRIP
  11024. +else
  11025. + STRIP="$ac_cv_prog_STRIP"
  11026. +fi
  11027. +
  11028. +fi
  11029. +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  11030. +
  11031. +# We need awk for the "check" target. The system "awk" is bad on
  11032. +# some platforms.
  11033. +
  11034. +
  11035. +
  11036. +
  11037. +VER=`cat VERSION`
  11038. +echo "$as_me:$LINENO: result: Beginning autoconfiguration process for libnet-$VER..." >&5
  11039. +echo "${ECHO_T}Beginning autoconfiguration process for libnet-$VER..." >&6
  11040. +
  11041. +
  11042. +
  11043. +
  11044. +
  11045. +
  11046. +
  11047. +
  11048. +
  11049. +
  11050. +
  11051. +
  11052. +
  11053. +
  11054. +
  11055. +if test "$prefix" = "NONE"; then
  11056. + prefix="/usr"
  11057. +fi
  11058. +
  11059. +if test "$mandir" = "NONE"; then
  11060. + mandir="$prefix/man"
  11061. +fi
  11062. +
  11063. +ac_ext=c
  11064. +ac_cpp='$CPP $CPPFLAGS'
  11065. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11066. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11067. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11068. +if test -n "$ac_tool_prefix"; then
  11069. + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  11070. +set dummy ${ac_tool_prefix}gcc; ac_word=$2
  11071. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11072. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11073. +if test "${ac_cv_prog_CC+set}" = set; then
  11074. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11075. +else
  11076. + if test -n "$CC"; then
  11077. + ac_cv_prog_CC="$CC" # Let the user override the test.
  11078. +else
  11079. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11080. +for as_dir in $PATH
  11081. +do
  11082. + IFS=$as_save_IFS
  11083. + test -z "$as_dir" && as_dir=.
  11084. + for ac_exec_ext in '' $ac_executable_extensions; do
  11085. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11086. + ac_cv_prog_CC="${ac_tool_prefix}gcc"
  11087. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11088. + break 2
  11089. + fi
  11090. +done
  11091. +done
  11092. +
  11093. +fi
  11094. +fi
  11095. +CC=$ac_cv_prog_CC
  11096. +if test -n "$CC"; then
  11097. + echo "$as_me:$LINENO: result: $CC" >&5
  11098. +echo "${ECHO_T}$CC" >&6
  11099. +else
  11100. + echo "$as_me:$LINENO: result: no" >&5
  11101. +echo "${ECHO_T}no" >&6
  11102. +fi
  11103. +
  11104. +fi
  11105. +if test -z "$ac_cv_prog_CC"; then
  11106. + ac_ct_CC=$CC
  11107. + # Extract the first word of "gcc", so it can be a program name with args.
  11108. +set dummy gcc; ac_word=$2
  11109. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11110. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11111. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  11112. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11113. +else
  11114. + if test -n "$ac_ct_CC"; then
  11115. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11116. +else
  11117. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11118. +for as_dir in $PATH
  11119. +do
  11120. + IFS=$as_save_IFS
  11121. + test -z "$as_dir" && as_dir=.
  11122. + for ac_exec_ext in '' $ac_executable_extensions; do
  11123. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11124. + ac_cv_prog_ac_ct_CC="gcc"
  11125. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11126. + break 2
  11127. + fi
  11128. +done
  11129. +done
  11130. +
  11131. +fi
  11132. +fi
  11133. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11134. +if test -n "$ac_ct_CC"; then
  11135. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  11136. +echo "${ECHO_T}$ac_ct_CC" >&6
  11137. +else
  11138. + echo "$as_me:$LINENO: result: no" >&5
  11139. +echo "${ECHO_T}no" >&6
  11140. +fi
  11141. +
  11142. + CC=$ac_ct_CC
  11143. +else
  11144. + CC="$ac_cv_prog_CC"
  11145. +fi
  11146. +
  11147. +if test -z "$CC"; then
  11148. + if test -n "$ac_tool_prefix"; then
  11149. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  11150. +set dummy ${ac_tool_prefix}cc; ac_word=$2
  11151. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11152. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11153. +if test "${ac_cv_prog_CC+set}" = set; then
  11154. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11155. +else
  11156. + if test -n "$CC"; then
  11157. + ac_cv_prog_CC="$CC" # Let the user override the test.
  11158. +else
  11159. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11160. +for as_dir in $PATH
  11161. +do
  11162. + IFS=$as_save_IFS
  11163. + test -z "$as_dir" && as_dir=.
  11164. + for ac_exec_ext in '' $ac_executable_extensions; do
  11165. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11166. + ac_cv_prog_CC="${ac_tool_prefix}cc"
  11167. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11168. + break 2
  11169. + fi
  11170. +done
  11171. +done
  11172. +
  11173. +fi
  11174. +fi
  11175. +CC=$ac_cv_prog_CC
  11176. +if test -n "$CC"; then
  11177. + echo "$as_me:$LINENO: result: $CC" >&5
  11178. +echo "${ECHO_T}$CC" >&6
  11179. +else
  11180. + echo "$as_me:$LINENO: result: no" >&5
  11181. +echo "${ECHO_T}no" >&6
  11182. +fi
  11183. +
  11184. +fi
  11185. +if test -z "$ac_cv_prog_CC"; then
  11186. + ac_ct_CC=$CC
  11187. + # Extract the first word of "cc", so it can be a program name with args.
  11188. +set dummy cc; ac_word=$2
  11189. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11190. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11191. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  11192. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11193. +else
  11194. + if test -n "$ac_ct_CC"; then
  11195. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11196. +else
  11197. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11198. +for as_dir in $PATH
  11199. +do
  11200. + IFS=$as_save_IFS
  11201. + test -z "$as_dir" && as_dir=.
  11202. + for ac_exec_ext in '' $ac_executable_extensions; do
  11203. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11204. + ac_cv_prog_ac_ct_CC="cc"
  11205. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11206. + break 2
  11207. + fi
  11208. +done
  11209. +done
  11210. +
  11211. +fi
  11212. +fi
  11213. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11214. +if test -n "$ac_ct_CC"; then
  11215. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  11216. +echo "${ECHO_T}$ac_ct_CC" >&6
  11217. +else
  11218. + echo "$as_me:$LINENO: result: no" >&5
  11219. +echo "${ECHO_T}no" >&6
  11220. +fi
  11221. +
  11222. + CC=$ac_ct_CC
  11223. +else
  11224. + CC="$ac_cv_prog_CC"
  11225. +fi
  11226. +
  11227. +fi
  11228. +if test -z "$CC"; then
  11229. + # Extract the first word of "cc", so it can be a program name with args.
  11230. +set dummy cc; ac_word=$2
  11231. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11232. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11233. +if test "${ac_cv_prog_CC+set}" = set; then
  11234. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11235. +else
  11236. + if test -n "$CC"; then
  11237. + ac_cv_prog_CC="$CC" # Let the user override the test.
  11238. +else
  11239. + ac_prog_rejected=no
  11240. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11241. +for as_dir in $PATH
  11242. +do
  11243. + IFS=$as_save_IFS
  11244. + test -z "$as_dir" && as_dir=.
  11245. + for ac_exec_ext in '' $ac_executable_extensions; do
  11246. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11247. + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  11248. + ac_prog_rejected=yes
  11249. + continue
  11250. + fi
  11251. + ac_cv_prog_CC="cc"
  11252. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11253. + break 2
  11254. + fi
  11255. +done
  11256. +done
  11257. +
  11258. +if test $ac_prog_rejected = yes; then
  11259. + # We found a bogon in the path, so make sure we never use it.
  11260. + set dummy $ac_cv_prog_CC
  11261. + shift
  11262. + if test $# != 0; then
  11263. + # We chose a different compiler from the bogus one.
  11264. + # However, it has the same basename, so the bogon will be chosen
  11265. + # first if we set CC to just the basename; use the full file name.
  11266. + shift
  11267. + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  11268. + fi
  11269. +fi
  11270. +fi
  11271. +fi
  11272. +CC=$ac_cv_prog_CC
  11273. +if test -n "$CC"; then
  11274. + echo "$as_me:$LINENO: result: $CC" >&5
  11275. +echo "${ECHO_T}$CC" >&6
  11276. +else
  11277. + echo "$as_me:$LINENO: result: no" >&5
  11278. +echo "${ECHO_T}no" >&6
  11279. +fi
  11280. +
  11281. +fi
  11282. +if test -z "$CC"; then
  11283. + if test -n "$ac_tool_prefix"; then
  11284. + for ac_prog in cl
  11285. + do
  11286. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  11287. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  11288. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11289. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11290. +if test "${ac_cv_prog_CC+set}" = set; then
  11291. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11292. +else
  11293. + if test -n "$CC"; then
  11294. + ac_cv_prog_CC="$CC" # Let the user override the test.
  11295. +else
  11296. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11297. +for as_dir in $PATH
  11298. +do
  11299. + IFS=$as_save_IFS
  11300. + test -z "$as_dir" && as_dir=.
  11301. + for ac_exec_ext in '' $ac_executable_extensions; do
  11302. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11303. + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  11304. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11305. + break 2
  11306. + fi
  11307. +done
  11308. +done
  11309. +
  11310. +fi
  11311. +fi
  11312. +CC=$ac_cv_prog_CC
  11313. +if test -n "$CC"; then
  11314. + echo "$as_me:$LINENO: result: $CC" >&5
  11315. +echo "${ECHO_T}$CC" >&6
  11316. +else
  11317. + echo "$as_me:$LINENO: result: no" >&5
  11318. +echo "${ECHO_T}no" >&6
  11319. +fi
  11320. +
  11321. + test -n "$CC" && break
  11322. + done
  11323. +fi
  11324. +if test -z "$CC"; then
  11325. + ac_ct_CC=$CC
  11326. + for ac_prog in cl
  11327. +do
  11328. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  11329. +set dummy $ac_prog; ac_word=$2
  11330. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  11331. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  11332. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  11333. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11334. +else
  11335. + if test -n "$ac_ct_CC"; then
  11336. + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  11337. +else
  11338. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11339. +for as_dir in $PATH
  11340. +do
  11341. + IFS=$as_save_IFS
  11342. + test -z "$as_dir" && as_dir=.
  11343. + for ac_exec_ext in '' $ac_executable_extensions; do
  11344. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  11345. + ac_cv_prog_ac_ct_CC="$ac_prog"
  11346. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  11347. + break 2
  11348. + fi
  11349. +done
  11350. +done
  11351. +
  11352. +fi
  11353. +fi
  11354. +ac_ct_CC=$ac_cv_prog_ac_ct_CC
  11355. +if test -n "$ac_ct_CC"; then
  11356. + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  11357. +echo "${ECHO_T}$ac_ct_CC" >&6
  11358. +else
  11359. + echo "$as_me:$LINENO: result: no" >&5
  11360. +echo "${ECHO_T}no" >&6
  11361. +fi
  11362. +
  11363. + test -n "$ac_ct_CC" && break
  11364. +done
  11365. +
  11366. + CC=$ac_ct_CC
  11367. +fi
  11368. +
  11369. +fi
  11370. +
  11371. +
  11372. +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  11373. +See \`config.log' for more details." >&5
  11374. +echo "$as_me: error: no acceptable C compiler found in \$PATH
  11375. +See \`config.log' for more details." >&2;}
  11376. + { (exit 1); exit 1; }; }
  11377. +
  11378. +# Provide some information about the compiler.
  11379. +echo "$as_me:$LINENO:" \
  11380. + "checking for C compiler version" >&5
  11381. +ac_compiler=`set X $ac_compile; echo $2`
  11382. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  11383. + (eval $ac_compiler --version </dev/null >&5) 2>&5
  11384. + ac_status=$?
  11385. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11386. + (exit $ac_status); }
  11387. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  11388. + (eval $ac_compiler -v </dev/null >&5) 2>&5
  11389. + ac_status=$?
  11390. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11391. + (exit $ac_status); }
  11392. +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  11393. + (eval $ac_compiler -V </dev/null >&5) 2>&5
  11394. + ac_status=$?
  11395. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11396. + (exit $ac_status); }
  11397. +
  11398. +cat >conftest.$ac_ext <<_ACEOF
  11399. +/* confdefs.h. */
  11400. +_ACEOF
  11401. +cat confdefs.h >>conftest.$ac_ext
  11402. +cat >>conftest.$ac_ext <<_ACEOF
  11403. +/* end confdefs.h. */
  11404. +
  11405. +int
  11406. +main ()
  11407. +{
  11408. +
  11409. + ;
  11410. + return 0;
  11411. +}
  11412. +_ACEOF
  11413. +ac_clean_files_save=$ac_clean_files
  11414. +ac_clean_files="$ac_clean_files a.out a.exe b.out"
  11415. +# Try to create an executable without -o first, disregard a.out.
  11416. +# It will help us diagnose broken compilers, and finding out an intuition
  11417. +# of exeext.
  11418. +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  11419. +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  11420. +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  11421. +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  11422. + (eval $ac_link_default) 2>&5
  11423. + ac_status=$?
  11424. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11425. + (exit $ac_status); }; then
  11426. + # Find the output, starting from the most likely. This scheme is
  11427. +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  11428. +# resort.
  11429. +
  11430. +# Be careful to initialize this variable, since it used to be cached.
  11431. +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  11432. +ac_cv_exeext=
  11433. +# b.out is created by i960 compilers.
  11434. +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  11435. +do
  11436. + test -f "$ac_file" || continue
  11437. + case $ac_file in
  11438. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  11439. + ;;
  11440. + conftest.$ac_ext )
  11441. + # This is the source file.
  11442. + ;;
  11443. + [ab].out )
  11444. + # We found the default executable, but exeext='' is most
  11445. + # certainly right.
  11446. + break;;
  11447. + *.* )
  11448. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  11449. + # FIXME: I believe we export ac_cv_exeext for Libtool,
  11450. + # but it would be cool to find out if it's true. Does anybody
  11451. + # maintain Libtool? --akim.
  11452. + export ac_cv_exeext
  11453. + break;;
  11454. + * )
  11455. + break;;
  11456. + esac
  11457. +done
  11458. +else
  11459. + echo "$as_me: failed program was:" >&5
  11460. +sed 's/^/| /' conftest.$ac_ext >&5
  11461. +
  11462. +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  11463. +See \`config.log' for more details." >&5
  11464. +echo "$as_me: error: C compiler cannot create executables
  11465. +See \`config.log' for more details." >&2;}
  11466. + { (exit 77); exit 77; }; }
  11467. +fi
  11468. +
  11469. +ac_exeext=$ac_cv_exeext
  11470. +echo "$as_me:$LINENO: result: $ac_file" >&5
  11471. +echo "${ECHO_T}$ac_file" >&6
  11472. +
  11473. +# Check the compiler produces executables we can run. If not, either
  11474. +# the compiler is broken, or we cross compile.
  11475. +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  11476. +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  11477. +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  11478. +# If not cross compiling, check that we can run a simple program.
  11479. +if test "$cross_compiling" != yes; then
  11480. + if { ac_try='./$ac_file'
  11481. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11482. + (eval $ac_try) 2>&5
  11483. + ac_status=$?
  11484. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11485. + (exit $ac_status); }; }; then
  11486. + cross_compiling=no
  11487. + else
  11488. + if test "$cross_compiling" = maybe; then
  11489. + cross_compiling=yes
  11490. + else
  11491. + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  11492. +If you meant to cross compile, use \`--host'.
  11493. +See \`config.log' for more details." >&5
  11494. +echo "$as_me: error: cannot run C compiled programs.
  11495. +If you meant to cross compile, use \`--host'.
  11496. +See \`config.log' for more details." >&2;}
  11497. + { (exit 1); exit 1; }; }
  11498. + fi
  11499. + fi
  11500. +fi
  11501. +echo "$as_me:$LINENO: result: yes" >&5
  11502. +echo "${ECHO_T}yes" >&6
  11503. +
  11504. +rm -f a.out a.exe conftest$ac_cv_exeext b.out
  11505. +ac_clean_files=$ac_clean_files_save
  11506. +# Check the compiler produces executables we can run. If not, either
  11507. +# the compiler is broken, or we cross compile.
  11508. +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  11509. +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  11510. +echo "$as_me:$LINENO: result: $cross_compiling" >&5
  11511. +echo "${ECHO_T}$cross_compiling" >&6
  11512. +
  11513. +echo "$as_me:$LINENO: checking for suffix of executables" >&5
  11514. +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  11515. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11516. + (eval $ac_link) 2>&5
  11517. + ac_status=$?
  11518. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11519. + (exit $ac_status); }; then
  11520. + # If both `conftest.exe' and `conftest' are `present' (well, observable)
  11521. +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  11522. +# work properly (i.e., refer to `conftest.exe'), while it won't with
  11523. +# `rm'.
  11524. +for ac_file in conftest.exe conftest conftest.*; do
  11525. + test -f "$ac_file" || continue
  11526. + case $ac_file in
  11527. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  11528. + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  11529. + export ac_cv_exeext
  11530. + break;;
  11531. + * ) break;;
  11532. + esac
  11533. +done
  11534. +else
  11535. + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  11536. +See \`config.log' for more details." >&5
  11537. +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  11538. +See \`config.log' for more details." >&2;}
  11539. + { (exit 1); exit 1; }; }
  11540. +fi
  11541. +
  11542. +rm -f conftest$ac_cv_exeext
  11543. +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  11544. +echo "${ECHO_T}$ac_cv_exeext" >&6
  11545. +
  11546. +rm -f conftest.$ac_ext
  11547. +EXEEXT=$ac_cv_exeext
  11548. +ac_exeext=$EXEEXT
  11549. +echo "$as_me:$LINENO: checking for suffix of object files" >&5
  11550. +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  11551. +if test "${ac_cv_objext+set}" = set; then
  11552. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11553. +else
  11554. + cat >conftest.$ac_ext <<_ACEOF
  11555. +/* confdefs.h. */
  11556. +_ACEOF
  11557. +cat confdefs.h >>conftest.$ac_ext
  11558. +cat >>conftest.$ac_ext <<_ACEOF
  11559. +/* end confdefs.h. */
  11560. +
  11561. +int
  11562. +main ()
  11563. +{
  11564. +
  11565. + ;
  11566. + return 0;
  11567. +}
  11568. +_ACEOF
  11569. +rm -f conftest.o conftest.obj
  11570. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11571. + (eval $ac_compile) 2>&5
  11572. + ac_status=$?
  11573. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11574. + (exit $ac_status); }; then
  11575. + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  11576. + case $ac_file in
  11577. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  11578. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  11579. + break;;
  11580. + esac
  11581. +done
  11582. +else
  11583. + echo "$as_me: failed program was:" >&5
  11584. +sed 's/^/| /' conftest.$ac_ext >&5
  11585. +
  11586. +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  11587. +See \`config.log' for more details." >&5
  11588. +echo "$as_me: error: cannot compute suffix of object files: cannot compile
  11589. +See \`config.log' for more details." >&2;}
  11590. + { (exit 1); exit 1; }; }
  11591. +fi
  11592. +
  11593. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  11594. +fi
  11595. +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  11596. +echo "${ECHO_T}$ac_cv_objext" >&6
  11597. +OBJEXT=$ac_cv_objext
  11598. +ac_objext=$OBJEXT
  11599. +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  11600. +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  11601. +if test "${ac_cv_c_compiler_gnu+set}" = set; then
  11602. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11603. +else
  11604. + cat >conftest.$ac_ext <<_ACEOF
  11605. +/* confdefs.h. */
  11606. +_ACEOF
  11607. +cat confdefs.h >>conftest.$ac_ext
  11608. +cat >>conftest.$ac_ext <<_ACEOF
  11609. +/* end confdefs.h. */
  11610. +
  11611. +int
  11612. +main ()
  11613. +{
  11614. +#ifndef __GNUC__
  11615. + choke me
  11616. +#endif
  11617. +
  11618. + ;
  11619. + return 0;
  11620. +}
  11621. +_ACEOF
  11622. +rm -f conftest.$ac_objext
  11623. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11624. + (eval $ac_compile) 2>conftest.er1
  11625. + ac_status=$?
  11626. + grep -v '^ *+' conftest.er1 >conftest.err
  11627. + rm -f conftest.er1
  11628. + cat conftest.err >&5
  11629. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11630. + (exit $ac_status); } &&
  11631. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11632. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11633. + (eval $ac_try) 2>&5
  11634. + ac_status=$?
  11635. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11636. + (exit $ac_status); }; } &&
  11637. + { ac_try='test -s conftest.$ac_objext'
  11638. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11639. + (eval $ac_try) 2>&5
  11640. + ac_status=$?
  11641. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11642. + (exit $ac_status); }; }; then
  11643. + ac_compiler_gnu=yes
  11644. +else
  11645. + echo "$as_me: failed program was:" >&5
  11646. +sed 's/^/| /' conftest.$ac_ext >&5
  11647. +
  11648. +ac_compiler_gnu=no
  11649. +fi
  11650. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11651. +ac_cv_c_compiler_gnu=$ac_compiler_gnu
  11652. +
  11653. +fi
  11654. +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  11655. +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  11656. +GCC=`test $ac_compiler_gnu = yes && echo yes`
  11657. +ac_test_CFLAGS=${CFLAGS+set}
  11658. +ac_save_CFLAGS=$CFLAGS
  11659. +CFLAGS="-g"
  11660. +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  11661. +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  11662. +if test "${ac_cv_prog_cc_g+set}" = set; then
  11663. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11664. +else
  11665. + cat >conftest.$ac_ext <<_ACEOF
  11666. +/* confdefs.h. */
  11667. +_ACEOF
  11668. +cat confdefs.h >>conftest.$ac_ext
  11669. +cat >>conftest.$ac_ext <<_ACEOF
  11670. +/* end confdefs.h. */
  11671. +
  11672. +int
  11673. +main ()
  11674. +{
  11675. +
  11676. + ;
  11677. + return 0;
  11678. +}
  11679. +_ACEOF
  11680. +rm -f conftest.$ac_objext
  11681. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11682. + (eval $ac_compile) 2>conftest.er1
  11683. + ac_status=$?
  11684. + grep -v '^ *+' conftest.er1 >conftest.err
  11685. + rm -f conftest.er1
  11686. + cat conftest.err >&5
  11687. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11688. + (exit $ac_status); } &&
  11689. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11690. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11691. + (eval $ac_try) 2>&5
  11692. + ac_status=$?
  11693. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11694. + (exit $ac_status); }; } &&
  11695. + { ac_try='test -s conftest.$ac_objext'
  11696. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11697. + (eval $ac_try) 2>&5
  11698. + ac_status=$?
  11699. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11700. + (exit $ac_status); }; }; then
  11701. + ac_cv_prog_cc_g=yes
  11702. +else
  11703. + echo "$as_me: failed program was:" >&5
  11704. +sed 's/^/| /' conftest.$ac_ext >&5
  11705. +
  11706. +ac_cv_prog_cc_g=no
  11707. +fi
  11708. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11709. +fi
  11710. +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  11711. +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  11712. +if test "$ac_test_CFLAGS" = set; then
  11713. + CFLAGS=$ac_save_CFLAGS
  11714. +elif test $ac_cv_prog_cc_g = yes; then
  11715. + if test "$GCC" = yes; then
  11716. + CFLAGS="-g -O2"
  11717. + else
  11718. + CFLAGS="-g"
  11719. + fi
  11720. +else
  11721. + if test "$GCC" = yes; then
  11722. + CFLAGS="-O2"
  11723. + else
  11724. + CFLAGS=
  11725. + fi
  11726. +fi
  11727. +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  11728. +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  11729. +if test "${ac_cv_prog_cc_stdc+set}" = set; then
  11730. + echo $ECHO_N "(cached) $ECHO_C" >&6
  11731. +else
  11732. + ac_cv_prog_cc_stdc=no
  11733. +ac_save_CC=$CC
  11734. +cat >conftest.$ac_ext <<_ACEOF
  11735. +/* confdefs.h. */
  11736. +_ACEOF
  11737. +cat confdefs.h >>conftest.$ac_ext
  11738. +cat >>conftest.$ac_ext <<_ACEOF
  11739. +/* end confdefs.h. */
  11740. +#include <stdarg.h>
  11741. +#include <stdio.h>
  11742. +#include <sys/types.h>
  11743. +#include <sys/stat.h>
  11744. +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  11745. +struct buf { int x; };
  11746. +FILE * (*rcsopen) (struct buf *, struct stat *, int);
  11747. +static char *e (p, i)
  11748. + char **p;
  11749. + int i;
  11750. +{
  11751. + return p[i];
  11752. +}
  11753. +static char *f (char * (*g) (char **, int), char **p, ...)
  11754. +{
  11755. + char *s;
  11756. + va_list v;
  11757. + va_start (v,p);
  11758. + s = g (p, va_arg (v,int));
  11759. + va_end (v);
  11760. + return s;
  11761. +}
  11762. +
  11763. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  11764. + function prototypes and stuff, but not '\xHH' hex character constants.
  11765. + These don't provoke an error unfortunately, instead are silently treated
  11766. + as 'x'. The following induces an error, until -std1 is added to get
  11767. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  11768. + array size at least. It's necessary to write '\x00'==0 to get something
  11769. + that's true only with -std1. */
  11770. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  11771. +
  11772. +int test (int i, double x);
  11773. +struct s1 {int (*f) (int a);};
  11774. +struct s2 {int (*f) (double a);};
  11775. +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  11776. +int argc;
  11777. +char **argv;
  11778. +int
  11779. +main ()
  11780. +{
  11781. +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  11782. + ;
  11783. + return 0;
  11784. +}
  11785. +_ACEOF
  11786. +# Don't try gcc -ansi; that turns off useful extensions and
  11787. +# breaks some systems' header files.
  11788. +# AIX -qlanglvl=ansi
  11789. +# Ultrix and OSF/1 -std1
  11790. +# HP-UX 10.20 and later -Ae
  11791. +# HP-UX older versions -Aa -D_HPUX_SOURCE
  11792. +# SVR4 -Xc -D__EXTENSIONS__
  11793. +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  11794. +do
  11795. + CC="$ac_save_CC $ac_arg"
  11796. + rm -f conftest.$ac_objext
  11797. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11798. + (eval $ac_compile) 2>conftest.er1
  11799. + ac_status=$?
  11800. + grep -v '^ *+' conftest.er1 >conftest.err
  11801. + rm -f conftest.er1
  11802. + cat conftest.err >&5
  11803. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11804. + (exit $ac_status); } &&
  11805. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11806. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11807. + (eval $ac_try) 2>&5
  11808. + ac_status=$?
  11809. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11810. + (exit $ac_status); }; } &&
  11811. + { ac_try='test -s conftest.$ac_objext'
  11812. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11813. + (eval $ac_try) 2>&5
  11814. + ac_status=$?
  11815. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11816. + (exit $ac_status); }; }; then
  11817. + ac_cv_prog_cc_stdc=$ac_arg
  11818. +break
  11819. +else
  11820. + echo "$as_me: failed program was:" >&5
  11821. +sed 's/^/| /' conftest.$ac_ext >&5
  11822. +
  11823. +fi
  11824. +rm -f conftest.err conftest.$ac_objext
  11825. +done
  11826. +rm -f conftest.$ac_ext conftest.$ac_objext
  11827. +CC=$ac_save_CC
  11828. +
  11829. +fi
  11830. +
  11831. +case "x$ac_cv_prog_cc_stdc" in
  11832. + x|xno)
  11833. + echo "$as_me:$LINENO: result: none needed" >&5
  11834. +echo "${ECHO_T}none needed" >&6 ;;
  11835. + *)
  11836. + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  11837. +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  11838. + CC="$CC $ac_cv_prog_cc_stdc" ;;
  11839. +esac
  11840. +
  11841. +# Some people use a C++ compiler to compile C. Since we use `exit',
  11842. +# in C++ we need to declare it. In case someone uses the same compiler
  11843. +# for both compiling C and C++ we need to have the C++ compiler decide
  11844. +# the declaration of exit, since it's the most demanding environment.
  11845. +cat >conftest.$ac_ext <<_ACEOF
  11846. +#ifndef __cplusplus
  11847. + choke me
  11848. +#endif
  11849. +_ACEOF
  11850. +rm -f conftest.$ac_objext
  11851. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11852. + (eval $ac_compile) 2>conftest.er1
  11853. + ac_status=$?
  11854. + grep -v '^ *+' conftest.er1 >conftest.err
  11855. + rm -f conftest.er1
  11856. + cat conftest.err >&5
  11857. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11858. + (exit $ac_status); } &&
  11859. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11860. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11861. + (eval $ac_try) 2>&5
  11862. + ac_status=$?
  11863. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11864. + (exit $ac_status); }; } &&
  11865. + { ac_try='test -s conftest.$ac_objext'
  11866. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11867. + (eval $ac_try) 2>&5
  11868. + ac_status=$?
  11869. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11870. + (exit $ac_status); }; }; then
  11871. + for ac_declaration in \
  11872. + '' \
  11873. + 'extern "C" void std::exit (int) throw (); using std::exit;' \
  11874. + 'extern "C" void std::exit (int); using std::exit;' \
  11875. + 'extern "C" void exit (int) throw ();' \
  11876. + 'extern "C" void exit (int);' \
  11877. + 'void exit (int);'
  11878. +do
  11879. + cat >conftest.$ac_ext <<_ACEOF
  11880. +/* confdefs.h. */
  11881. +_ACEOF
  11882. +cat confdefs.h >>conftest.$ac_ext
  11883. +cat >>conftest.$ac_ext <<_ACEOF
  11884. +/* end confdefs.h. */
  11885. +$ac_declaration
  11886. +#include <stdlib.h>
  11887. +int
  11888. +main ()
  11889. +{
  11890. +exit (42);
  11891. + ;
  11892. + return 0;
  11893. +}
  11894. +_ACEOF
  11895. +rm -f conftest.$ac_objext
  11896. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11897. + (eval $ac_compile) 2>conftest.er1
  11898. + ac_status=$?
  11899. + grep -v '^ *+' conftest.er1 >conftest.err
  11900. + rm -f conftest.er1
  11901. + cat conftest.err >&5
  11902. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11903. + (exit $ac_status); } &&
  11904. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11905. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11906. + (eval $ac_try) 2>&5
  11907. + ac_status=$?
  11908. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11909. + (exit $ac_status); }; } &&
  11910. + { ac_try='test -s conftest.$ac_objext'
  11911. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11912. + (eval $ac_try) 2>&5
  11913. + ac_status=$?
  11914. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11915. + (exit $ac_status); }; }; then
  11916. + :
  11917. +else
  11918. + echo "$as_me: failed program was:" >&5
  11919. +sed 's/^/| /' conftest.$ac_ext >&5
  11920. +
  11921. +continue
  11922. +fi
  11923. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11924. + cat >conftest.$ac_ext <<_ACEOF
  11925. +/* confdefs.h. */
  11926. +_ACEOF
  11927. +cat confdefs.h >>conftest.$ac_ext
  11928. +cat >>conftest.$ac_ext <<_ACEOF
  11929. +/* end confdefs.h. */
  11930. +$ac_declaration
  11931. +int
  11932. +main ()
  11933. +{
  11934. +exit (42);
  11935. + ;
  11936. + return 0;
  11937. +}
  11938. +_ACEOF
  11939. +rm -f conftest.$ac_objext
  11940. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  11941. + (eval $ac_compile) 2>conftest.er1
  11942. + ac_status=$?
  11943. + grep -v '^ *+' conftest.er1 >conftest.err
  11944. + rm -f conftest.er1
  11945. + cat conftest.err >&5
  11946. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11947. + (exit $ac_status); } &&
  11948. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11949. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11950. + (eval $ac_try) 2>&5
  11951. + ac_status=$?
  11952. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11953. + (exit $ac_status); }; } &&
  11954. + { ac_try='test -s conftest.$ac_objext'
  11955. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11956. + (eval $ac_try) 2>&5
  11957. + ac_status=$?
  11958. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11959. + (exit $ac_status); }; }; then
  11960. + break
  11961. +else
  11962. + echo "$as_me: failed program was:" >&5
  11963. +sed 's/^/| /' conftest.$ac_ext >&5
  11964. +
  11965. +fi
  11966. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11967. +done
  11968. +rm -f conftest*
  11969. +if test -n "$ac_declaration"; then
  11970. + echo '#ifdef __cplusplus' >>confdefs.h
  11971. + echo $ac_declaration >>confdefs.h
  11972. + echo '#endif' >>confdefs.h
  11973. +fi
  11974. +
  11975. +else
  11976. + echo "$as_me: failed program was:" >&5
  11977. +sed 's/^/| /' conftest.$ac_ext >&5
  11978. +
  11979. +fi
  11980. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  11981. +ac_ext=c
  11982. +ac_cpp='$CPP $CPPFLAGS'
  11983. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11984. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11985. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11986. +DEPDIR="${am__leading_dot}deps"
  11987. +
  11988. + ac_config_commands="$ac_config_commands depfiles"
  11989. +
  11990. +
  11991. +am_make=${MAKE-make}
  11992. +cat > confinc << 'END'
  11993. +am__doit:
  11994. + @echo done
  11995. +.PHONY: am__doit
  11996. +END
  11997. +# If we don't find an include directive, just comment out the code.
  11998. +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  11999. +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  12000. +am__include="#"
  12001. +am__quote=
  12002. +_am_result=none
  12003. +# First try GNU make style include.
  12004. +echo "include confinc" > confmf
  12005. +# We grep out `Entering directory' and `Leaving directory'
  12006. +# messages which can occur if `w' ends up in MAKEFLAGS.
  12007. +# In particular we don't look at `^make:' because GNU make might
  12008. +# be invoked under some other name (usually "gmake"), in which
  12009. +# case it prints its new name instead of `make'.
  12010. +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  12011. + am__include=include
  12012. + am__quote=
  12013. + _am_result=GNU
  12014. +fi
  12015. +# Now try BSD make style include.
  12016. +if test "$am__include" = "#"; then
  12017. + echo '.include "confinc"' > confmf
  12018. + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  12019. + am__include=.include
  12020. + am__quote="\""
  12021. + _am_result=BSD
  12022. + fi
  12023. +fi
  12024. +
  12025. +
  12026. +echo "$as_me:$LINENO: result: $_am_result" >&5
  12027. +echo "${ECHO_T}$_am_result" >&6
  12028. +rm -f confinc confmf
  12029. +
  12030. +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  12031. +if test "${enable_dependency_tracking+set}" = set; then
  12032. + enableval="$enable_dependency_tracking"
  12033. +
  12034. +fi;
  12035. +if test "x$enable_dependency_tracking" != xno; then
  12036. + am_depcomp="$ac_aux_dir/depcomp"
  12037. + AMDEPBACKSLASH='\'
  12038. +fi
  12039. +
  12040. +
  12041. +if test "x$enable_dependency_tracking" != xno; then
  12042. + AMDEP_TRUE=
  12043. + AMDEP_FALSE='#'
  12044. +else
  12045. + AMDEP_TRUE='#'
  12046. + AMDEP_FALSE=
  12047. +fi
  12048. +
  12049. +
  12050. +
  12051. +
  12052. +depcc="$CC" am_compiler_list=
  12053. +
  12054. +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  12055. +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  12056. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  12057. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12058. +else
  12059. + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  12060. + # We make a subdir and do the tests there. Otherwise we can end up
  12061. + # making bogus files that we don't know about and never remove. For
  12062. + # instance it was reported that on HP-UX the gcc test will end up
  12063. + # making a dummy file named `D' -- because `-MD' means `put the output
  12064. + # in D'.
  12065. + mkdir conftest.dir
  12066. + # Copy depcomp to subdir because otherwise we won't find it if we're
  12067. + # using a relative directory.
  12068. + cp "$am_depcomp" conftest.dir
  12069. + cd conftest.dir
  12070. + # We will build objects and dependencies in a subdirectory because
  12071. + # it helps to detect inapplicable dependency modes. For instance
  12072. + # both Tru64's cc and ICC support -MD to output dependencies as a
  12073. + # side effect of compilation, but ICC will put the dependencies in
  12074. + # the current directory while Tru64 will put them in the object
  12075. + # directory.
  12076. + mkdir sub
  12077. +
  12078. + am_cv_CC_dependencies_compiler_type=none
  12079. + if test "$am_compiler_list" = ""; then
  12080. + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  12081. + fi
  12082. + for depmode in $am_compiler_list; do
  12083. + # Setup a source with many dependencies, because some compilers
  12084. + # like to wrap large dependency lists on column 80 (with \), and
  12085. + # we should not choose a depcomp mode which is confused by this.
  12086. + #
  12087. + # We need to recreate these files for each test, as the compiler may
  12088. + # overwrite some of them when testing with obscure command lines.
  12089. + # This happens at least with the AIX C compiler.
  12090. + : > sub/conftest.c
  12091. + for i in 1 2 3 4 5 6; do
  12092. + echo '#include "conftst'$i'.h"' >> sub/conftest.c
  12093. + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  12094. + # Solaris 8's {/usr,}/bin/sh.
  12095. + touch sub/conftst$i.h
  12096. + done
  12097. + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  12098. +
  12099. + case $depmode in
  12100. + nosideeffect)
  12101. + # after this tag, mechanisms are not by side-effect, so they'll
  12102. + # only be used when explicitly requested
  12103. + if test "x$enable_dependency_tracking" = xyes; then
  12104. + continue
  12105. + else
  12106. + break
  12107. + fi
  12108. + ;;
  12109. + none) break ;;
  12110. + esac
  12111. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  12112. + # mode. It turns out that the SunPro C++ compiler does not properly
  12113. + # handle `-M -o', and we need to detect this.
  12114. + if depmode=$depmode \
  12115. + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  12116. + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  12117. + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  12118. + >/dev/null 2>conftest.err &&
  12119. + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  12120. + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  12121. + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  12122. + # icc doesn't choke on unknown options, it will just issue warnings
  12123. + # or remarks (even with -Werror). So we grep stderr for any message
  12124. + # that says an option was ignored or not supported.
  12125. + # When given -MP, icc 7.0 and 7.1 complain thusly:
  12126. + # icc: Command line warning: ignoring option '-M'; no argument required
  12127. + # The diagnosis changed in icc 8.0:
  12128. + # icc: Command line remark: option '-MP' not supported
  12129. + if (grep 'ignoring option' conftest.err ||
  12130. + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  12131. + am_cv_CC_dependencies_compiler_type=$depmode
  12132. + break
  12133. + fi
  12134. + fi
  12135. + done
  12136. +
  12137. + cd ..
  12138. + rm -rf conftest.dir
  12139. +else
  12140. + am_cv_CC_dependencies_compiler_type=none
  12141. +fi
  12142. +
  12143. +fi
  12144. +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  12145. +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  12146. +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  12147. +
  12148. +
  12149. +
  12150. +if
  12151. + test "x$enable_dependency_tracking" != xno \
  12152. + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  12153. + am__fastdepCC_TRUE=
  12154. + am__fastdepCC_FALSE='#'
  12155. +else
  12156. + am__fastdepCC_TRUE='#'
  12157. + am__fastdepCC_FALSE=
  12158. +fi
  12159. +
  12160. +
  12161. +
  12162. +
  12163. +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  12164. +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  12165. +if test "${ac_cv_c_const+set}" = set; then
  12166. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12167. +else
  12168. + cat >conftest.$ac_ext <<_ACEOF
  12169. +/* confdefs.h. */
  12170. +_ACEOF
  12171. +cat confdefs.h >>conftest.$ac_ext
  12172. +cat >>conftest.$ac_ext <<_ACEOF
  12173. +/* end confdefs.h. */
  12174. +
  12175. +int
  12176. +main ()
  12177. +{
  12178. +/* FIXME: Include the comments suggested by Paul. */
  12179. +#ifndef __cplusplus
  12180. + /* Ultrix mips cc rejects this. */
  12181. + typedef int charset[2];
  12182. + const charset x;
  12183. + /* SunOS 4.1.1 cc rejects this. */
  12184. + char const *const *ccp;
  12185. + char **p;
  12186. + /* NEC SVR4.0.2 mips cc rejects this. */
  12187. + struct point {int x, y;};
  12188. + static struct point const zero = {0,0};
  12189. + /* AIX XL C 1.02.0.0 rejects this.
  12190. + It does not let you subtract one const X* pointer from another in
  12191. + an arm of an if-expression whose if-part is not a constant
  12192. + expression */
  12193. + const char *g = "string";
  12194. + ccp = &g + (g ? g-g : 0);
  12195. + /* HPUX 7.0 cc rejects these. */
  12196. + ++ccp;
  12197. + p = (char**) ccp;
  12198. + ccp = (char const *const *) p;
  12199. + { /* SCO 3.2v4 cc rejects this. */
  12200. + char *t;
  12201. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  12202. +
  12203. + *t++ = 0;
  12204. + }
  12205. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  12206. + int x[] = {25, 17};
  12207. + const int *foo = &x[0];
  12208. + ++foo;
  12209. + }
  12210. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  12211. + typedef const int *iptr;
  12212. + iptr p = 0;
  12213. + ++p;
  12214. + }
  12215. + { /* AIX XL C 1.02.0.0 rejects this saying
  12216. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  12217. + struct s { int j; const int *ap[3]; };
  12218. + struct s *b; b->j = 5;
  12219. + }
  12220. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  12221. + const int foo = 10;
  12222. + }
  12223. +#endif
  12224. +
  12225. + ;
  12226. + return 0;
  12227. +}
  12228. +_ACEOF
  12229. +rm -f conftest.$ac_objext
  12230. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  12231. + (eval $ac_compile) 2>conftest.er1
  12232. + ac_status=$?
  12233. + grep -v '^ *+' conftest.er1 >conftest.err
  12234. + rm -f conftest.er1
  12235. + cat conftest.err >&5
  12236. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12237. + (exit $ac_status); } &&
  12238. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  12239. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12240. + (eval $ac_try) 2>&5
  12241. + ac_status=$?
  12242. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12243. + (exit $ac_status); }; } &&
  12244. + { ac_try='test -s conftest.$ac_objext'
  12245. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  12246. + (eval $ac_try) 2>&5
  12247. + ac_status=$?
  12248. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12249. + (exit $ac_status); }; }; then
  12250. + ac_cv_c_const=yes
  12251. +else
  12252. + echo "$as_me: failed program was:" >&5
  12253. +sed 's/^/| /' conftest.$ac_ext >&5
  12254. +
  12255. +ac_cv_c_const=no
  12256. +fi
  12257. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  12258. +fi
  12259. +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  12260. +echo "${ECHO_T}$ac_cv_c_const" >&6
  12261. +if test $ac_cv_c_const = no; then
  12262. +
  12263. +cat >>confdefs.h <<\_ACEOF
  12264. +#define const
  12265. +_ACEOF
  12266. +
  12267. +fi
  12268. +
  12269. +
  12270. +
  12271. +if test $ac_cv_c_compiler_gnu = yes; then
  12272. + CCOPTS='-O2 -funroll-loops -fomit-frame-pointer -Wall'
  12273. + CFLAGS="$CCOPTS"
  12274. +fi
  12275. +
  12276. +
  12277. +# Check whether --with-pf_packet or --without-pf_packet was given.
  12278. +if test "${with_pf_packet+set}" = set; then
  12279. + withval="$with_pf_packet"
  12280. + \
  12281. + with_pf_packet=yes
  12282. +else
  12283. + with_pf_packet=no
  12284. +fi;
  12285. +
  12286. +
  12287. +# Check whether --with-fast_x86_check or --without-fast_x86_check was given.
  12288. +if test "${with_fast_x86_check+set}" = set; then
  12289. + withval="$with_fast_x86_check"
  12290. + \
  12291. + cat >>confdefs.h <<\_ACEOF
  12292. +#define LIBNET_FAST_X86_CHECK 1
  12293. +_ACEOF
  12294. +
  12295. +fi;
  12296. +
  12297. +# Find a good install program. We prefer a C program (faster),
  12298. +# so one script is as good as another. But avoid the broken or
  12299. +# incompatible versions:
  12300. +# SysV /etc/install, /usr/sbin/install
  12301. +# SunOS /usr/etc/install
  12302. +# IRIX /sbin/install
  12303. +# AIX /bin/install
  12304. +# AmigaOS /C/install, which installs bootblocks on floppy discs
  12305. +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  12306. +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  12307. +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  12308. +# OS/2's system install, which has a completely different semantic
  12309. +# ./install, which can be erroneously created by make from ./install.sh.
  12310. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  12311. +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  12312. +if test -z "$INSTALL"; then
  12313. +if test "${ac_cv_path_install+set}" = set; then
  12314. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12315. +else
  12316. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12317. +for as_dir in $PATH
  12318. +do
  12319. + IFS=$as_save_IFS
  12320. + test -z "$as_dir" && as_dir=.
  12321. + # Account for people who put trailing slashes in PATH elements.
  12322. +case $as_dir/ in
  12323. + ./ | .// | /cC/* | \
  12324. + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  12325. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  12326. + /usr/ucb/* ) ;;
  12327. + *)
  12328. + # OSF1 and SCO ODT 3.0 have their own names for install.
  12329. + # Don't use installbsd from OSF since it installs stuff as root
  12330. + # by default.
  12331. + for ac_prog in ginstall scoinst install; do
  12332. + for ac_exec_ext in '' $ac_executable_extensions; do
  12333. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  12334. + if test $ac_prog = install &&
  12335. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12336. + # AIX install. It has an incompatible calling convention.
  12337. + :
  12338. + elif test $ac_prog = install &&
  12339. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  12340. + # program-specific install script used by HP pwplus--don't use.
  12341. + :
  12342. + else
  12343. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  12344. + break 3
  12345. + fi
  12346. + fi
  12347. + done
  12348. + done
  12349. + ;;
  12350. +esac
  12351. +done
  12352. +
  12353. +
  12354. +fi
  12355. + if test "${ac_cv_path_install+set}" = set; then
  12356. + INSTALL=$ac_cv_path_install
  12357. + else
  12358. + # As a last resort, use the slow shell script. We don't cache a
  12359. + # path for INSTALL within a source directory, because that will
  12360. + # break other packages using the cache if that directory is
  12361. + # removed, or if the path is relative.
  12362. + INSTALL=$ac_install_sh
  12363. + fi
  12364. +fi
  12365. +echo "$as_me:$LINENO: result: $INSTALL" >&5
  12366. +echo "${ECHO_T}$INSTALL" >&6
  12367. +
  12368. +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  12369. +# It thinks the first close brace ends the variable substitution.
  12370. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  12371. +
  12372. +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  12373. +
  12374. +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  12375. +
  12376. +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  12377. +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  12378. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  12379. +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  12380. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12381. +else
  12382. + cat >conftest.make <<\_ACEOF
  12383. +all:
  12384. + @echo 'ac_maketemp="$(MAKE)"'
  12385. +_ACEOF
  12386. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  12387. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  12388. +if test -n "$ac_maketemp"; then
  12389. + eval ac_cv_prog_make_${ac_make}_set=yes
  12390. +else
  12391. + eval ac_cv_prog_make_${ac_make}_set=no
  12392. +fi
  12393. +rm -f conftest.make
  12394. +fi
  12395. +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  12396. + echo "$as_me:$LINENO: result: yes" >&5
  12397. +echo "${ECHO_T}yes" >&6
  12398. + SET_MAKE=
  12399. +else
  12400. + echo "$as_me:$LINENO: result: no" >&5
  12401. +echo "${ECHO_T}no" >&6
  12402. + SET_MAKE="MAKE=${MAKE-make}"
  12403. +fi
  12404. +
  12405. +for ac_prog in ranlib
  12406. +do
  12407. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  12408. +set dummy $ac_prog; ac_word=$2
  12409. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  12410. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12411. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  12412. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12413. +else
  12414. + if test -n "$RANLIB"; then
  12415. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  12416. +else
  12417. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12418. +for as_dir in $PATH
  12419. +do
  12420. + IFS=$as_save_IFS
  12421. + test -z "$as_dir" && as_dir=.
  12422. + for ac_exec_ext in '' $ac_executable_extensions; do
  12423. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12424. + ac_cv_prog_RANLIB="$ac_prog"
  12425. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12426. + break 2
  12427. + fi
  12428. +done
  12429. +done
  12430. +
  12431. +fi
  12432. +fi
  12433. +RANLIB=$ac_cv_prog_RANLIB
  12434. +if test -n "$RANLIB"; then
  12435. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  12436. +echo "${ECHO_T}$RANLIB" >&6
  12437. +else
  12438. + echo "$as_me:$LINENO: result: no" >&5
  12439. +echo "${ECHO_T}no" >&6
  12440. +fi
  12441. +
  12442. + test -n "$RANLIB" && break
  12443. +done
  12444. +test -n "$RANLIB" || RANLIB="@true"
  12445. +
  12446. +for ac_prog in ar
  12447. +do
  12448. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  12449. +set dummy $ac_prog; ac_word=$2
  12450. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  12451. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12452. +if test "${ac_cv_prog_AR+set}" = set; then
  12453. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12454. +else
  12455. + if test -n "$AR"; then
  12456. + ac_cv_prog_AR="$AR" # Let the user override the test.
  12457. +else
  12458. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12459. +for as_dir in $PATH
  12460. +do
  12461. + IFS=$as_save_IFS
  12462. + test -z "$as_dir" && as_dir=.
  12463. + for ac_exec_ext in '' $ac_executable_extensions; do
  12464. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12465. + ac_cv_prog_AR="$ac_prog"
  12466. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12467. + break 2
  12468. + fi
  12469. +done
  12470. +done
  12471. +
  12472. +fi
  12473. +fi
  12474. +AR=$ac_cv_prog_AR
  12475. +if test -n "$AR"; then
  12476. + echo "$as_me:$LINENO: result: $AR" >&5
  12477. +echo "${ECHO_T}$AR" >&6
  12478. +else
  12479. + echo "$as_me:$LINENO: result: no" >&5
  12480. +echo "${ECHO_T}no" >&6
  12481. +fi
  12482. +
  12483. + test -n "$AR" && break
  12484. +done
  12485. +test -n "$AR" || AR="@true"
  12486. +
  12487. +for ac_prog in ln
  12488. +do
  12489. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  12490. +set dummy $ac_prog; ac_word=$2
  12491. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  12492. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  12493. +if test "${ac_cv_prog_LN+set}" = set; then
  12494. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12495. +else
  12496. + if test -n "$LN"; then
  12497. + ac_cv_prog_LN="$LN" # Let the user override the test.
  12498. +else
  12499. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12500. +for as_dir in $PATH
  12501. +do
  12502. + IFS=$as_save_IFS
  12503. + test -z "$as_dir" && as_dir=.
  12504. + for ac_exec_ext in '' $ac_executable_extensions; do
  12505. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  12506. + ac_cv_prog_LN="$ac_prog"
  12507. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  12508. + break 2
  12509. + fi
  12510. +done
  12511. +done
  12512. +
  12513. +fi
  12514. +fi
  12515. +LN=$ac_cv_prog_LN
  12516. +if test -n "$LN"; then
  12517. + echo "$as_me:$LINENO: result: $LN" >&5
  12518. +echo "${ECHO_T}$LN" >&6
  12519. +else
  12520. + echo "$as_me:$LINENO: result: no" >&5
  12521. +echo "${ECHO_T}no" >&6
  12522. +fi
  12523. +
  12524. + test -n "$LN" && break
  12525. +done
  12526. +test -n "$LN" || LN="@true"
  12527. +
  12528. +
  12529. +# Check whether --enable-shared or --disable-shared was given.
  12530. +if test "${enable_shared+set}" = set; then
  12531. + enableval="$enable_shared"
  12532. + p=${PACKAGE-default}
  12533. +case $enableval in
  12534. +yes) enable_shared=yes ;;
  12535. +no) enable_shared=no ;;
  12536. +*)
  12537. + enable_shared=no
  12538. + # Look at the argument we got. We use all the common list separators.
  12539. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  12540. + for pkg in $enableval; do
  12541. + if test "X$pkg" = "X$p"; then
  12542. + enable_shared=yes
  12543. + fi
  12544. + done
  12545. + IFS="$ac_save_ifs"
  12546. + ;;
  12547. +esac
  12548. +else
  12549. + enable_shared=yes
  12550. +fi;
  12551. +# Check whether --enable-static or --disable-static was given.
  12552. +if test "${enable_static+set}" = set; then
  12553. + enableval="$enable_static"
  12554. + p=${PACKAGE-default}
  12555. +case $enableval in
  12556. +yes) enable_static=yes ;;
  12557. +no) enable_static=no ;;
  12558. +*)
  12559. + enable_static=no
  12560. + # Look at the argument we got. We use all the common list separators.
  12561. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  12562. + for pkg in $enableval; do
  12563. + if test "X$pkg" = "X$p"; then
  12564. + enable_static=yes
  12565. + fi
  12566. + done
  12567. + IFS="$ac_save_ifs"
  12568. + ;;
  12569. +esac
  12570. +else
  12571. + enable_static=yes
  12572. +fi;
  12573. +# Check whether --enable-fast-install or --disable-fast-install was given.
  12574. +if test "${enable_fast_install+set}" = set; then
  12575. + enableval="$enable_fast_install"
  12576. + p=${PACKAGE-default}
  12577. +case $enableval in
  12578. +yes) enable_fast_install=yes ;;
  12579. +no) enable_fast_install=no ;;
  12580. +*)
  12581. + enable_fast_install=no
  12582. + # Look at the argument we got. We use all the common list separators.
  12583. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  12584. + for pkg in $enableval; do
  12585. + if test "X$pkg" = "X$p"; then
  12586. + enable_fast_install=yes
  12587. + fi
  12588. + done
  12589. + IFS="$ac_save_ifs"
  12590. + ;;
  12591. +esac
  12592. +else
  12593. + enable_fast_install=yes
  12594. +fi;
  12595. +# Find the correct PATH separator. Usually this is `:', but
  12596. +# DJGPP uses `;' like DOS.
  12597. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  12598. + UNAME=${UNAME-`uname 2>/dev/null`}
  12599. + case X$UNAME in
  12600. + *-DOS) lt_cv_sys_path_separator=';' ;;
  12601. + *) lt_cv_sys_path_separator=':' ;;
  12602. + esac
  12603. + PATH_SEPARATOR=$lt_cv_sys_path_separator
  12604. +fi
  12605. +
  12606. +
  12607. +# Check whether --with-gnu-ld or --without-gnu-ld was given.
  12608. +if test "${with_gnu_ld+set}" = set; then
  12609. + withval="$with_gnu_ld"
  12610. + test "$withval" = no || with_gnu_ld=yes
  12611. +else
  12612. + with_gnu_ld=no
  12613. +fi;
  12614. +ac_prog=ld
  12615. +if test "$GCC" = yes; then
  12616. + # Check if gcc -print-prog-name=ld gives a path.
  12617. + echo "$as_me:$LINENO: checking for ld used by GCC" >&5
  12618. +echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
  12619. + case $host in
  12620. + *-*-mingw*)
  12621. + # gcc leaves a trailing carriage return which upsets mingw
  12622. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  12623. + *)
  12624. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  12625. + esac
  12626. + case $ac_prog in
  12627. + # Accept absolute paths.
  12628. + [\\/]* | [A-Za-z]:[\\/]*)
  12629. + re_direlt='/[^/][^/]*/\.\./'
  12630. + # Canonicalize the path of ld
  12631. + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  12632. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  12633. + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  12634. + done
  12635. + test -z "$LD" && LD="$ac_prog"
  12636. + ;;
  12637. + "")
  12638. + # If it fails, then pretend we aren't using GCC.
  12639. + ac_prog=ld
  12640. + ;;
  12641. + *)
  12642. + # If it is relative, then search for the first ld in PATH.
  12643. + with_gnu_ld=unknown
  12644. + ;;
  12645. + esac
  12646. +elif test "$with_gnu_ld" = yes; then
  12647. + echo "$as_me:$LINENO: checking for GNU ld" >&5
  12648. +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  12649. +else
  12650. + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  12651. +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  12652. +fi
  12653. +if test "${lt_cv_path_LD+set}" = set; then
  12654. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12655. +else
  12656. + if test -z "$LD"; then
  12657. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12658. + for ac_dir in $PATH; do
  12659. + test -z "$ac_dir" && ac_dir=.
  12660. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  12661. + lt_cv_path_LD="$ac_dir/$ac_prog"
  12662. + # Check to see if the program is GNU ld. I'd rather use --version,
  12663. + # but apparently some GNU ld's only accept -v.
  12664. + # Break only if it was the GNU/non-GNU ld that we prefer.
  12665. + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  12666. + test "$with_gnu_ld" != no && break
  12667. + else
  12668. + test "$with_gnu_ld" != yes && break
  12669. + fi
  12670. + fi
  12671. + done
  12672. + IFS="$ac_save_ifs"
  12673. +else
  12674. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  12675. +fi
  12676. +fi
  12677. +
  12678. +LD="$lt_cv_path_LD"
  12679. +if test -n "$LD"; then
  12680. + echo "$as_me:$LINENO: result: $LD" >&5
  12681. +echo "${ECHO_T}$LD" >&6
  12682. +else
  12683. + echo "$as_me:$LINENO: result: no" >&5
  12684. +echo "${ECHO_T}no" >&6
  12685. +fi
  12686. +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  12687. +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  12688. + { (exit 1); exit 1; }; }
  12689. +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  12690. +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  12691. +if test "${lt_cv_prog_gnu_ld+set}" = set; then
  12692. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12693. +else
  12694. + # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  12695. +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  12696. + lt_cv_prog_gnu_ld=yes
  12697. +else
  12698. + lt_cv_prog_gnu_ld=no
  12699. +fi
  12700. +fi
  12701. +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  12702. +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  12703. +with_gnu_ld=$lt_cv_prog_gnu_ld
  12704. +
  12705. +
  12706. +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  12707. +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  12708. +if test "${lt_cv_ld_reload_flag+set}" = set; then
  12709. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12710. +else
  12711. + lt_cv_ld_reload_flag='-r'
  12712. +fi
  12713. +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  12714. +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  12715. +reload_flag=$lt_cv_ld_reload_flag
  12716. +test -n "$reload_flag" && reload_flag=" $reload_flag"
  12717. +
  12718. +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  12719. +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  12720. +if test "${lt_cv_path_NM+set}" = set; then
  12721. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12722. +else
  12723. + if test -n "$NM"; then
  12724. + # Let the user override the test.
  12725. + lt_cv_path_NM="$NM"
  12726. +else
  12727. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  12728. + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  12729. + test -z "$ac_dir" && ac_dir=.
  12730. + tmp_nm=$ac_dir/${ac_tool_prefix}nm
  12731. + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  12732. + # Check to see if the nm accepts a BSD-compat flag.
  12733. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  12734. + # nm: unknown option "B" ignored
  12735. + # Tru64's nm complains that /dev/null is an invalid object file
  12736. + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  12737. + lt_cv_path_NM="$tmp_nm -B"
  12738. + break
  12739. + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  12740. + lt_cv_path_NM="$tmp_nm -p"
  12741. + break
  12742. + else
  12743. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  12744. + continue # so that we can try to find one that supports BSD flags
  12745. + fi
  12746. + fi
  12747. + done
  12748. + IFS="$ac_save_ifs"
  12749. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  12750. +fi
  12751. +fi
  12752. +
  12753. +NM="$lt_cv_path_NM"
  12754. +echo "$as_me:$LINENO: result: $NM" >&5
  12755. +echo "${ECHO_T}$NM" >&6
  12756. +
  12757. +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  12758. +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  12759. +if test "${lt_cv_path_SED+set}" = set; then
  12760. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12761. +else
  12762. + # Loop through the user's path and test for sed and gsed.
  12763. +# Then use that list of sed's as ones to test for truncation.
  12764. +as_executable_p="test -f"
  12765. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12766. +for as_dir in $PATH
  12767. +do
  12768. + IFS=$as_save_IFS
  12769. + test -z "$as_dir" && as_dir=.
  12770. + for ac_prog in sed gsed; do
  12771. + for ac_exec_ext in '' $ac_executable_extensions; do
  12772. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  12773. + _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  12774. + fi
  12775. + done
  12776. + done
  12777. +done
  12778. +
  12779. + # Create a temporary directory, and hook for its removal unless debugging.
  12780. +$debug ||
  12781. +{
  12782. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  12783. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  12784. +}
  12785. +
  12786. +# Create a (secure) tmp directory for tmp files.
  12787. +: ${TMPDIR=/tmp}
  12788. +{
  12789. + tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  12790. + test -n "$tmp" && test -d "$tmp"
  12791. +} ||
  12792. +{
  12793. + tmp=$TMPDIR/sed$$-$RANDOM
  12794. + (umask 077 && mkdir $tmp)
  12795. +} ||
  12796. +{
  12797. + echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  12798. + { (exit 1); exit 1; }
  12799. +}
  12800. + _max=0
  12801. + _count=0
  12802. + # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12803. + # along with /bin/sed that truncates output.
  12804. + for _sed in $_sed_list /usr/xpg4/bin/sed; do
  12805. + test ! -f ${_sed} && break
  12806. + cat /dev/null > "$tmp/sed.in"
  12807. + _count=0
  12808. + echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  12809. + # Check for GNU sed and select it if it is found.
  12810. + if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  12811. + lt_cv_path_SED=${_sed}
  12812. + break
  12813. + fi
  12814. + while true; do
  12815. + cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  12816. + mv "$tmp/sed.tmp" "$tmp/sed.in"
  12817. + cp "$tmp/sed.in" "$tmp/sed.nl"
  12818. + echo >>"$tmp/sed.nl"
  12819. + ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  12820. + cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  12821. + # 40000 chars as input seems more than enough
  12822. + test $_count -gt 10 && break
  12823. + _count=`expr $_count + 1`
  12824. + if test $_count -gt $_max; then
  12825. + _max=$_count
  12826. + lt_cv_path_SED=$_sed
  12827. + fi
  12828. + done
  12829. + done
  12830. + rm -rf "$tmp"
  12831. +
  12832. +fi
  12833. +
  12834. +if test "X$SED" != "X"; then
  12835. + lt_cv_path_SED=$SED
  12836. +else
  12837. + SED=$lt_cv_path_SED
  12838. +fi
  12839. +echo "$as_me:$LINENO: result: $SED" >&5
  12840. +echo "${ECHO_T}$SED" >&6
  12841. +
  12842. +echo "$as_me:$LINENO: checking whether ln -s works" >&5
  12843. +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  12844. +LN_S=$as_ln_s
  12845. +if test "$LN_S" = "ln -s"; then
  12846. + echo "$as_me:$LINENO: result: yes" >&5
  12847. +echo "${ECHO_T}yes" >&6
  12848. +else
  12849. + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  12850. +echo "${ECHO_T}no, using $LN_S" >&6
  12851. +fi
  12852. +
  12853. +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  12854. +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  12855. +if test "${lt_cv_deplibs_check_method+set}" = set; then
  12856. + echo $ECHO_N "(cached) $ECHO_C" >&6
  12857. +else
  12858. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  12859. +lt_cv_file_magic_test_file=
  12860. +lt_cv_deplibs_check_method='unknown'
  12861. +# Need to set the preceding variable on all platforms that support
  12862. +# interlibrary dependencies.
  12863. +# 'none' -- dependencies not supported.
  12864. +# `unknown' -- same as none, but documents that we really don't know.
  12865. +# 'pass_all' -- all dependencies passed with no checks.
  12866. +# 'test_compile' -- check by making test program.
  12867. +# 'file_magic [[regex]]' -- check by looking for files in library path
  12868. +# which responds to the $file_magic_cmd with a given egrep regex.
  12869. +# If you have `file' or equivalent on your system and you're not sure
  12870. +# whether `pass_all' will *always* work, you probably want this one.
  12871. +
  12872. +case $host_os in
  12873. +aix4* | aix5*)
  12874. + lt_cv_deplibs_check_method=pass_all
  12875. + ;;
  12876. +
  12877. +beos*)
  12878. + lt_cv_deplibs_check_method=pass_all
  12879. + ;;
  12880. +
  12881. +bsdi4*)
  12882. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  12883. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  12884. + lt_cv_file_magic_test_file=/shlib/libc.so
  12885. + ;;
  12886. +
  12887. +cygwin* | mingw* | pw32*)
  12888. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  12889. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  12890. + ;;
  12891. +
  12892. +darwin* | rhapsody*)
  12893. + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  12894. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  12895. + case "$host_os" in
  12896. + rhapsody* | darwin1.[012])
  12897. + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  12898. + ;;
  12899. + *) # Darwin 1.3 on
  12900. + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  12901. + ;;
  12902. + esac
  12903. + ;;
  12904. +
  12905. +freebsd*)
  12906. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  12907. + case $host_cpu in
  12908. + i*86 )
  12909. + # Not sure whether the presence of OpenBSD here was a mistake.
  12910. + # Let's accept both of them until this is cleared up.
  12911. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
  12912. + lt_cv_file_magic_cmd=/usr/bin/file
  12913. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  12914. + ;;
  12915. + esac
  12916. + else
  12917. + lt_cv_deplibs_check_method=pass_all
  12918. + fi
  12919. + ;;
  12920. +
  12921. +gnu*)
  12922. + lt_cv_deplibs_check_method=pass_all
  12923. + ;;
  12924. +
  12925. +hpux10.20*|hpux11*)
  12926. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  12927. + lt_cv_file_magic_cmd=/usr/bin/file
  12928. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  12929. + ;;
  12930. +
  12931. +irix5* | irix6* | nonstopux*)
  12932. + case $LD in
  12933. + *-32|*"-32 ") libmagic=32-bit;;
  12934. + *-n32|*"-n32 ") libmagic=N32;;
  12935. + *-64|*"-64 ") libmagic=64-bit;;
  12936. + *) libmagic=never-match;;
  12937. + esac
  12938. + lt_cv_deplibs_check_method=pass_all
  12939. + ;;
  12940. +
  12941. +# This must be Linux ELF.
  12942. +linux-gnu*)
  12943. + lt_cv_deplibs_check_method=pass_all
  12944. + ;;
  12945. +
  12946. +netbsd*)
  12947. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  12948. + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
  12949. + else
  12950. + lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
  12951. + fi
  12952. + ;;
  12953. +
  12954. +newos6*)
  12955. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  12956. + lt_cv_file_magic_cmd=/usr/bin/file
  12957. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  12958. + ;;
  12959. +
  12960. +openbsd*)
  12961. + lt_cv_file_magic_cmd=/usr/bin/file
  12962. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  12963. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12964. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
  12965. + else
  12966. + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  12967. + fi
  12968. + ;;
  12969. +
  12970. +osf3* | osf4* | osf5*)
  12971. + lt_cv_deplibs_check_method=pass_all
  12972. + ;;
  12973. +
  12974. +sco3.2v5*)
  12975. + lt_cv_deplibs_check_method=pass_all
  12976. + ;;
  12977. +
  12978. +solaris*)
  12979. + lt_cv_deplibs_check_method=pass_all
  12980. + ;;
  12981. +
  12982. +sysv5uw[78]* | sysv4*uw2*)
  12983. + lt_cv_deplibs_check_method=pass_all
  12984. + ;;
  12985. +
  12986. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  12987. + case $host_vendor in
  12988. + motorola)
  12989. + 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]'
  12990. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  12991. + ;;
  12992. + ncr)
  12993. + lt_cv_deplibs_check_method=pass_all
  12994. + ;;
  12995. + sequent)
  12996. + lt_cv_file_magic_cmd='/bin/file'
  12997. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  12998. + ;;
  12999. + sni)
  13000. + lt_cv_file_magic_cmd='/bin/file'
  13001. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  13002. + lt_cv_file_magic_test_file=/lib/libc.so
  13003. + ;;
  13004. + siemens)
  13005. + lt_cv_deplibs_check_method=pass_all
  13006. + ;;
  13007. + esac
  13008. + ;;
  13009. +esac
  13010. +
  13011. +fi
  13012. +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  13013. +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  13014. +file_magic_cmd=$lt_cv_file_magic_cmd
  13015. +deplibs_check_method=$lt_cv_deplibs_check_method
  13016. +
  13017. +
  13018. +
  13019. +
  13020. +
  13021. +
  13022. +
  13023. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  13024. +echo "$as_me:$LINENO: checking command to parse $NM output" >&5
  13025. +echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
  13026. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  13027. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13028. +else
  13029. +
  13030. +# These are sane defaults that work on at least a few old systems.
  13031. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  13032. +
  13033. +# Character class describing NM global symbol codes.
  13034. +symcode='[BCDEGRST]'
  13035. +
  13036. +# Regexp to match symbols that can be accessed directly from C.
  13037. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  13038. +
  13039. +# Transform the above into a raw symbol and a C symbol.
  13040. +symxfrm='\1 \2\3 \3'
  13041. +
  13042. +# Transform an extracted symbol line into a proper C declaration
  13043. +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  13044. +
  13045. +# Transform an extracted symbol line into symbol name and symbol address
  13046. +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  13047. +
  13048. +# Define system-specific variables.
  13049. +case $host_os in
  13050. +aix*)
  13051. + symcode='[BCDT]'
  13052. + ;;
  13053. +cygwin* | mingw* | pw32*)
  13054. + symcode='[ABCDGISTW]'
  13055. + ;;
  13056. +hpux*) # Its linker distinguishes data from code symbols
  13057. + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  13058. + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  13059. + ;;
  13060. +irix* | nonstopux*)
  13061. + symcode='[BCDEGRST]'
  13062. + ;;
  13063. +osf*)
  13064. + symcode='[BCDEGQRST]'
  13065. + ;;
  13066. +solaris* | sysv5*)
  13067. + symcode='[BDT]'
  13068. + ;;
  13069. +sysv4)
  13070. + symcode='[DFNSTU]'
  13071. + ;;
  13072. +esac
  13073. +
  13074. +# Handle CRLF in mingw tool chain
  13075. +opt_cr=
  13076. +case $host_os in
  13077. +mingw*)
  13078. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  13079. + ;;
  13080. +esac
  13081. +
  13082. +# If we're using GNU nm, then use its standard symbol codes.
  13083. +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  13084. + symcode='[ABCDGISTW]'
  13085. +fi
  13086. +
  13087. +# Try without a prefix undercore, then with it.
  13088. +for ac_symprfx in "" "_"; do
  13089. +
  13090. + # Write the raw and C identifiers.
  13091. +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  13092. +
  13093. + # Check to see that the pipe works correctly.
  13094. + pipe_works=no
  13095. + rm -f conftest*
  13096. + cat > conftest.$ac_ext <<EOF
  13097. +#ifdef __cplusplus
  13098. +extern "C" {
  13099. +#endif
  13100. +char nm_test_var;
  13101. +void nm_test_func(){}
  13102. +#ifdef __cplusplus
  13103. +}
  13104. +#endif
  13105. +int main(){nm_test_var='a';nm_test_func();return(0);}
  13106. +EOF
  13107. +
  13108. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13109. + (eval $ac_compile) 2>&5
  13110. + ac_status=$?
  13111. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13112. + (exit $ac_status); }; then
  13113. + # Now try to grab the symbols.
  13114. + nlist=conftest.nm
  13115. + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  13116. + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  13117. + ac_status=$?
  13118. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13119. + (exit $ac_status); } && test -s "$nlist"; then
  13120. + # Try sorting and uniquifying the output.
  13121. + if sort "$nlist" | uniq > "$nlist"T; then
  13122. + mv -f "$nlist"T "$nlist"
  13123. + else
  13124. + rm -f "$nlist"T
  13125. + fi
  13126. +
  13127. + # Make sure that we snagged all the symbols we need.
  13128. + if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  13129. + if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  13130. + cat <<EOF > conftest.$ac_ext
  13131. +#ifdef __cplusplus
  13132. +extern "C" {
  13133. +#endif
  13134. +
  13135. +EOF
  13136. + # Now generate the symbol file.
  13137. + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  13138. +
  13139. + cat <<EOF >> conftest.$ac_ext
  13140. +#if defined (__STDC__) && __STDC__
  13141. +# define lt_ptr void *
  13142. +#else
  13143. +# define lt_ptr char *
  13144. +# define const
  13145. +#endif
  13146. +
  13147. +/* The mapping between symbol names and symbols. */
  13148. +const struct {
  13149. + const char *name;
  13150. + lt_ptr address;
  13151. +}
  13152. +lt_preloaded_symbols[] =
  13153. +{
  13154. +EOF
  13155. + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  13156. + cat <<\EOF >> conftest.$ac_ext
  13157. + {0, (lt_ptr) 0}
  13158. +};
  13159. +
  13160. +#ifdef __cplusplus
  13161. +}
  13162. +#endif
  13163. +EOF
  13164. + # Now try linking the two files.
  13165. + mv conftest.$ac_objext conftstm.$ac_objext
  13166. + save_LIBS="$LIBS"
  13167. + save_CFLAGS="$CFLAGS"
  13168. + LIBS="conftstm.$ac_objext"
  13169. + CFLAGS="$CFLAGS$no_builtin_flag"
  13170. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13171. + (eval $ac_link) 2>&5
  13172. + ac_status=$?
  13173. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13174. + (exit $ac_status); } && test -s conftest$ac_exeext; then
  13175. + pipe_works=yes
  13176. + fi
  13177. + LIBS="$save_LIBS"
  13178. + CFLAGS="$save_CFLAGS"
  13179. + else
  13180. + echo "cannot find nm_test_func in $nlist" >&5
  13181. + fi
  13182. + else
  13183. + echo "cannot find nm_test_var in $nlist" >&5
  13184. + fi
  13185. + else
  13186. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  13187. + fi
  13188. + else
  13189. + echo "$progname: failed program was:" >&5
  13190. + cat conftest.$ac_ext >&5
  13191. + fi
  13192. + rm -f conftest* conftst*
  13193. +
  13194. + # Do not use the global_symbol_pipe unless it works.
  13195. + if test "$pipe_works" = yes; then
  13196. + break
  13197. + else
  13198. + lt_cv_sys_global_symbol_pipe=
  13199. + fi
  13200. +done
  13201. +
  13202. +fi
  13203. +
  13204. +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  13205. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  13206. + global_symbol_to_cdecl=
  13207. + global_symbol_to_c_name_address=
  13208. +else
  13209. + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  13210. + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  13211. +fi
  13212. +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  13213. +then
  13214. + echo "$as_me:$LINENO: result: failed" >&5
  13215. +echo "${ECHO_T}failed" >&6
  13216. +else
  13217. + echo "$as_me:$LINENO: result: ok" >&5
  13218. +echo "${ECHO_T}ok" >&6
  13219. +fi
  13220. +
  13221. +ac_ext=c
  13222. +ac_cpp='$CPP $CPPFLAGS'
  13223. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13224. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13225. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13226. +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  13227. +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  13228. +# On Suns, sometimes $CPP names a directory.
  13229. +if test -n "$CPP" && test -d "$CPP"; then
  13230. + CPP=
  13231. +fi
  13232. +if test -z "$CPP"; then
  13233. + if test "${ac_cv_prog_CPP+set}" = set; then
  13234. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13235. +else
  13236. + # Double quotes because CPP needs to be expanded
  13237. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  13238. + do
  13239. + ac_preproc_ok=false
  13240. +for ac_c_preproc_warn_flag in '' yes
  13241. +do
  13242. + # Use a header file that comes with gcc, so configuring glibc
  13243. + # with a fresh cross-compiler works.
  13244. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13245. + # <limits.h> exists even on freestanding compilers.
  13246. + # On the NeXT, cc -E runs the code through the compiler's parser,
  13247. + # not just through cpp. "Syntax error" is here to catch this case.
  13248. + cat >conftest.$ac_ext <<_ACEOF
  13249. +/* confdefs.h. */
  13250. +_ACEOF
  13251. +cat confdefs.h >>conftest.$ac_ext
  13252. +cat >>conftest.$ac_ext <<_ACEOF
  13253. +/* end confdefs.h. */
  13254. +#ifdef __STDC__
  13255. +# include <limits.h>
  13256. +#else
  13257. +# include <assert.h>
  13258. +#endif
  13259. + Syntax error
  13260. +_ACEOF
  13261. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13262. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13263. + ac_status=$?
  13264. + grep -v '^ *+' conftest.er1 >conftest.err
  13265. + rm -f conftest.er1
  13266. + cat conftest.err >&5
  13267. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13268. + (exit $ac_status); } >/dev/null; then
  13269. + if test -s conftest.err; then
  13270. + ac_cpp_err=$ac_c_preproc_warn_flag
  13271. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13272. + else
  13273. + ac_cpp_err=
  13274. + fi
  13275. +else
  13276. + ac_cpp_err=yes
  13277. +fi
  13278. +if test -z "$ac_cpp_err"; then
  13279. + :
  13280. +else
  13281. + echo "$as_me: failed program was:" >&5
  13282. +sed 's/^/| /' conftest.$ac_ext >&5
  13283. +
  13284. + # Broken: fails on valid input.
  13285. +continue
  13286. +fi
  13287. +rm -f conftest.err conftest.$ac_ext
  13288. +
  13289. + # OK, works on sane cases. Now check whether non-existent headers
  13290. + # can be detected and how.
  13291. + cat >conftest.$ac_ext <<_ACEOF
  13292. +/* confdefs.h. */
  13293. +_ACEOF
  13294. +cat confdefs.h >>conftest.$ac_ext
  13295. +cat >>conftest.$ac_ext <<_ACEOF
  13296. +/* end confdefs.h. */
  13297. +#include <ac_nonexistent.h>
  13298. +_ACEOF
  13299. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13300. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13301. + ac_status=$?
  13302. + grep -v '^ *+' conftest.er1 >conftest.err
  13303. + rm -f conftest.er1
  13304. + cat conftest.err >&5
  13305. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13306. + (exit $ac_status); } >/dev/null; then
  13307. + if test -s conftest.err; then
  13308. + ac_cpp_err=$ac_c_preproc_warn_flag
  13309. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13310. + else
  13311. + ac_cpp_err=
  13312. + fi
  13313. +else
  13314. + ac_cpp_err=yes
  13315. +fi
  13316. +if test -z "$ac_cpp_err"; then
  13317. + # Broken: success on invalid input.
  13318. +continue
  13319. +else
  13320. + echo "$as_me: failed program was:" >&5
  13321. +sed 's/^/| /' conftest.$ac_ext >&5
  13322. +
  13323. + # Passes both tests.
  13324. +ac_preproc_ok=:
  13325. +break
  13326. +fi
  13327. +rm -f conftest.err conftest.$ac_ext
  13328. +
  13329. +done
  13330. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13331. +rm -f conftest.err conftest.$ac_ext
  13332. +if $ac_preproc_ok; then
  13333. + break
  13334. +fi
  13335. +
  13336. + done
  13337. + ac_cv_prog_CPP=$CPP
  13338. +
  13339. +fi
  13340. + CPP=$ac_cv_prog_CPP
  13341. +else
  13342. + ac_cv_prog_CPP=$CPP
  13343. +fi
  13344. +echo "$as_me:$LINENO: result: $CPP" >&5
  13345. +echo "${ECHO_T}$CPP" >&6
  13346. +ac_preproc_ok=false
  13347. +for ac_c_preproc_warn_flag in '' yes
  13348. +do
  13349. + # Use a header file that comes with gcc, so configuring glibc
  13350. + # with a fresh cross-compiler works.
  13351. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  13352. + # <limits.h> exists even on freestanding compilers.
  13353. + # On the NeXT, cc -E runs the code through the compiler's parser,
  13354. + # not just through cpp. "Syntax error" is here to catch this case.
  13355. + cat >conftest.$ac_ext <<_ACEOF
  13356. +/* confdefs.h. */
  13357. +_ACEOF
  13358. +cat confdefs.h >>conftest.$ac_ext
  13359. +cat >>conftest.$ac_ext <<_ACEOF
  13360. +/* end confdefs.h. */
  13361. +#ifdef __STDC__
  13362. +# include <limits.h>
  13363. +#else
  13364. +# include <assert.h>
  13365. +#endif
  13366. + Syntax error
  13367. +_ACEOF
  13368. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13369. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13370. + ac_status=$?
  13371. + grep -v '^ *+' conftest.er1 >conftest.err
  13372. + rm -f conftest.er1
  13373. + cat conftest.err >&5
  13374. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13375. + (exit $ac_status); } >/dev/null; then
  13376. + if test -s conftest.err; then
  13377. + ac_cpp_err=$ac_c_preproc_warn_flag
  13378. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13379. + else
  13380. + ac_cpp_err=
  13381. + fi
  13382. +else
  13383. + ac_cpp_err=yes
  13384. +fi
  13385. +if test -z "$ac_cpp_err"; then
  13386. + :
  13387. +else
  13388. + echo "$as_me: failed program was:" >&5
  13389. +sed 's/^/| /' conftest.$ac_ext >&5
  13390. +
  13391. + # Broken: fails on valid input.
  13392. +continue
  13393. +fi
  13394. +rm -f conftest.err conftest.$ac_ext
  13395. +
  13396. + # OK, works on sane cases. Now check whether non-existent headers
  13397. + # can be detected and how.
  13398. + cat >conftest.$ac_ext <<_ACEOF
  13399. +/* confdefs.h. */
  13400. +_ACEOF
  13401. +cat confdefs.h >>conftest.$ac_ext
  13402. +cat >>conftest.$ac_ext <<_ACEOF
  13403. +/* end confdefs.h. */
  13404. +#include <ac_nonexistent.h>
  13405. +_ACEOF
  13406. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13407. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13408. + ac_status=$?
  13409. + grep -v '^ *+' conftest.er1 >conftest.err
  13410. + rm -f conftest.er1
  13411. + cat conftest.err >&5
  13412. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13413. + (exit $ac_status); } >/dev/null; then
  13414. + if test -s conftest.err; then
  13415. + ac_cpp_err=$ac_c_preproc_warn_flag
  13416. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13417. + else
  13418. + ac_cpp_err=
  13419. + fi
  13420. +else
  13421. + ac_cpp_err=yes
  13422. +fi
  13423. +if test -z "$ac_cpp_err"; then
  13424. + # Broken: success on invalid input.
  13425. +continue
  13426. +else
  13427. + echo "$as_me: failed program was:" >&5
  13428. +sed 's/^/| /' conftest.$ac_ext >&5
  13429. +
  13430. + # Passes both tests.
  13431. +ac_preproc_ok=:
  13432. +break
  13433. +fi
  13434. +rm -f conftest.err conftest.$ac_ext
  13435. +
  13436. +done
  13437. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  13438. +rm -f conftest.err conftest.$ac_ext
  13439. +if $ac_preproc_ok; then
  13440. + :
  13441. +else
  13442. + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  13443. +See \`config.log' for more details." >&5
  13444. +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  13445. +See \`config.log' for more details." >&2;}
  13446. + { (exit 1); exit 1; }; }
  13447. +fi
  13448. +
  13449. +ac_ext=c
  13450. +ac_cpp='$CPP $CPPFLAGS'
  13451. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13452. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13453. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13454. +
  13455. +
  13456. +echo "$as_me:$LINENO: checking for egrep" >&5
  13457. +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  13458. +if test "${ac_cv_prog_egrep+set}" = set; then
  13459. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13460. +else
  13461. + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  13462. + then ac_cv_prog_egrep='grep -E'
  13463. + else ac_cv_prog_egrep='egrep'
  13464. + fi
  13465. +fi
  13466. +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  13467. +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  13468. + EGREP=$ac_cv_prog_egrep
  13469. +
  13470. +
  13471. +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  13472. +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  13473. +if test "${ac_cv_header_stdc+set}" = set; then
  13474. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13475. +else
  13476. + cat >conftest.$ac_ext <<_ACEOF
  13477. +/* confdefs.h. */
  13478. +_ACEOF
  13479. +cat confdefs.h >>conftest.$ac_ext
  13480. +cat >>conftest.$ac_ext <<_ACEOF
  13481. +/* end confdefs.h. */
  13482. +#include <stdlib.h>
  13483. +#include <stdarg.h>
  13484. +#include <string.h>
  13485. +#include <float.h>
  13486. +
  13487. +int
  13488. +main ()
  13489. +{
  13490. +
  13491. + ;
  13492. + return 0;
  13493. +}
  13494. +_ACEOF
  13495. +rm -f conftest.$ac_objext
  13496. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13497. + (eval $ac_compile) 2>conftest.er1
  13498. + ac_status=$?
  13499. + grep -v '^ *+' conftest.er1 >conftest.err
  13500. + rm -f conftest.er1
  13501. + cat conftest.err >&5
  13502. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13503. + (exit $ac_status); } &&
  13504. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13505. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13506. + (eval $ac_try) 2>&5
  13507. + ac_status=$?
  13508. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13509. + (exit $ac_status); }; } &&
  13510. + { ac_try='test -s conftest.$ac_objext'
  13511. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13512. + (eval $ac_try) 2>&5
  13513. + ac_status=$?
  13514. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13515. + (exit $ac_status); }; }; then
  13516. + ac_cv_header_stdc=yes
  13517. +else
  13518. + echo "$as_me: failed program was:" >&5
  13519. +sed 's/^/| /' conftest.$ac_ext >&5
  13520. +
  13521. +ac_cv_header_stdc=no
  13522. +fi
  13523. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13524. +
  13525. +if test $ac_cv_header_stdc = yes; then
  13526. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  13527. + cat >conftest.$ac_ext <<_ACEOF
  13528. +/* confdefs.h. */
  13529. +_ACEOF
  13530. +cat confdefs.h >>conftest.$ac_ext
  13531. +cat >>conftest.$ac_ext <<_ACEOF
  13532. +/* end confdefs.h. */
  13533. +#include <string.h>
  13534. +
  13535. +_ACEOF
  13536. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13537. + $EGREP "memchr" >/dev/null 2>&1; then
  13538. + :
  13539. +else
  13540. + ac_cv_header_stdc=no
  13541. +fi
  13542. +rm -f conftest*
  13543. +
  13544. +fi
  13545. +
  13546. +if test $ac_cv_header_stdc = yes; then
  13547. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  13548. + cat >conftest.$ac_ext <<_ACEOF
  13549. +/* confdefs.h. */
  13550. +_ACEOF
  13551. +cat confdefs.h >>conftest.$ac_ext
  13552. +cat >>conftest.$ac_ext <<_ACEOF
  13553. +/* end confdefs.h. */
  13554. +#include <stdlib.h>
  13555. +
  13556. +_ACEOF
  13557. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  13558. + $EGREP "free" >/dev/null 2>&1; then
  13559. + :
  13560. +else
  13561. + ac_cv_header_stdc=no
  13562. +fi
  13563. +rm -f conftest*
  13564. +
  13565. +fi
  13566. +
  13567. +if test $ac_cv_header_stdc = yes; then
  13568. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  13569. + if test "$cross_compiling" = yes; then
  13570. + :
  13571. +else
  13572. + cat >conftest.$ac_ext <<_ACEOF
  13573. +/* confdefs.h. */
  13574. +_ACEOF
  13575. +cat confdefs.h >>conftest.$ac_ext
  13576. +cat >>conftest.$ac_ext <<_ACEOF
  13577. +/* end confdefs.h. */
  13578. +#include <ctype.h>
  13579. +#if ((' ' & 0x0FF) == 0x020)
  13580. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  13581. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  13582. +#else
  13583. +# define ISLOWER(c) \
  13584. + (('a' <= (c) && (c) <= 'i') \
  13585. + || ('j' <= (c) && (c) <= 'r') \
  13586. + || ('s' <= (c) && (c) <= 'z'))
  13587. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  13588. +#endif
  13589. +
  13590. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  13591. +int
  13592. +main ()
  13593. +{
  13594. + int i;
  13595. + for (i = 0; i < 256; i++)
  13596. + if (XOR (islower (i), ISLOWER (i))
  13597. + || toupper (i) != TOUPPER (i))
  13598. + exit(2);
  13599. + exit (0);
  13600. +}
  13601. +_ACEOF
  13602. +rm -f conftest$ac_exeext
  13603. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  13604. + (eval $ac_link) 2>&5
  13605. + ac_status=$?
  13606. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13607. + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  13608. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13609. + (eval $ac_try) 2>&5
  13610. + ac_status=$?
  13611. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13612. + (exit $ac_status); }; }; then
  13613. + :
  13614. +else
  13615. + echo "$as_me: program exited with status $ac_status" >&5
  13616. +echo "$as_me: failed program was:" >&5
  13617. +sed 's/^/| /' conftest.$ac_ext >&5
  13618. +
  13619. +( exit $ac_status )
  13620. +ac_cv_header_stdc=no
  13621. +fi
  13622. +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  13623. +fi
  13624. +fi
  13625. +fi
  13626. +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  13627. +echo "${ECHO_T}$ac_cv_header_stdc" >&6
  13628. +if test $ac_cv_header_stdc = yes; then
  13629. +
  13630. +cat >>confdefs.h <<\_ACEOF
  13631. +#define STDC_HEADERS 1
  13632. +_ACEOF
  13633. +
  13634. +fi
  13635. +
  13636. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  13637. +
  13638. +
  13639. +
  13640. +
  13641. +
  13642. +
  13643. +
  13644. +
  13645. +
  13646. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  13647. + inttypes.h stdint.h unistd.h
  13648. +do
  13649. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13650. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  13651. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13652. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13653. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13654. +else
  13655. + cat >conftest.$ac_ext <<_ACEOF
  13656. +/* confdefs.h. */
  13657. +_ACEOF
  13658. +cat confdefs.h >>conftest.$ac_ext
  13659. +cat >>conftest.$ac_ext <<_ACEOF
  13660. +/* end confdefs.h. */
  13661. +$ac_includes_default
  13662. +
  13663. +#include <$ac_header>
  13664. +_ACEOF
  13665. +rm -f conftest.$ac_objext
  13666. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13667. + (eval $ac_compile) 2>conftest.er1
  13668. + ac_status=$?
  13669. + grep -v '^ *+' conftest.er1 >conftest.err
  13670. + rm -f conftest.er1
  13671. + cat conftest.err >&5
  13672. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13673. + (exit $ac_status); } &&
  13674. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13675. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13676. + (eval $ac_try) 2>&5
  13677. + ac_status=$?
  13678. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13679. + (exit $ac_status); }; } &&
  13680. + { ac_try='test -s conftest.$ac_objext'
  13681. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13682. + (eval $ac_try) 2>&5
  13683. + ac_status=$?
  13684. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13685. + (exit $ac_status); }; }; then
  13686. + eval "$as_ac_Header=yes"
  13687. +else
  13688. + echo "$as_me: failed program was:" >&5
  13689. +sed 's/^/| /' conftest.$ac_ext >&5
  13690. +
  13691. +eval "$as_ac_Header=no"
  13692. +fi
  13693. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13694. +fi
  13695. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13696. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13697. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13698. + cat >>confdefs.h <<_ACEOF
  13699. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13700. +_ACEOF
  13701. +
  13702. +fi
  13703. +
  13704. +done
  13705. +
  13706. +
  13707. +
  13708. +for ac_header in dlfcn.h
  13709. +do
  13710. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  13711. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13712. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  13713. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13714. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13715. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13716. +fi
  13717. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13718. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13719. +else
  13720. + # Is the header compilable?
  13721. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  13722. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  13723. +cat >conftest.$ac_ext <<_ACEOF
  13724. +/* confdefs.h. */
  13725. +_ACEOF
  13726. +cat confdefs.h >>conftest.$ac_ext
  13727. +cat >>conftest.$ac_ext <<_ACEOF
  13728. +/* end confdefs.h. */
  13729. +$ac_includes_default
  13730. +#include <$ac_header>
  13731. +_ACEOF
  13732. +rm -f conftest.$ac_objext
  13733. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  13734. + (eval $ac_compile) 2>conftest.er1
  13735. + ac_status=$?
  13736. + grep -v '^ *+' conftest.er1 >conftest.err
  13737. + rm -f conftest.er1
  13738. + cat conftest.err >&5
  13739. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13740. + (exit $ac_status); } &&
  13741. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  13742. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13743. + (eval $ac_try) 2>&5
  13744. + ac_status=$?
  13745. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13746. + (exit $ac_status); }; } &&
  13747. + { ac_try='test -s conftest.$ac_objext'
  13748. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  13749. + (eval $ac_try) 2>&5
  13750. + ac_status=$?
  13751. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13752. + (exit $ac_status); }; }; then
  13753. + ac_header_compiler=yes
  13754. +else
  13755. + echo "$as_me: failed program was:" >&5
  13756. +sed 's/^/| /' conftest.$ac_ext >&5
  13757. +
  13758. +ac_header_compiler=no
  13759. +fi
  13760. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  13761. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  13762. +echo "${ECHO_T}$ac_header_compiler" >&6
  13763. +
  13764. +# Is the header present?
  13765. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  13766. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  13767. +cat >conftest.$ac_ext <<_ACEOF
  13768. +/* confdefs.h. */
  13769. +_ACEOF
  13770. +cat confdefs.h >>conftest.$ac_ext
  13771. +cat >>conftest.$ac_ext <<_ACEOF
  13772. +/* end confdefs.h. */
  13773. +#include <$ac_header>
  13774. +_ACEOF
  13775. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  13776. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  13777. + ac_status=$?
  13778. + grep -v '^ *+' conftest.er1 >conftest.err
  13779. + rm -f conftest.er1
  13780. + cat conftest.err >&5
  13781. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  13782. + (exit $ac_status); } >/dev/null; then
  13783. + if test -s conftest.err; then
  13784. + ac_cpp_err=$ac_c_preproc_warn_flag
  13785. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  13786. + else
  13787. + ac_cpp_err=
  13788. + fi
  13789. +else
  13790. + ac_cpp_err=yes
  13791. +fi
  13792. +if test -z "$ac_cpp_err"; then
  13793. + ac_header_preproc=yes
  13794. +else
  13795. + echo "$as_me: failed program was:" >&5
  13796. +sed 's/^/| /' conftest.$ac_ext >&5
  13797. +
  13798. + ac_header_preproc=no
  13799. +fi
  13800. +rm -f conftest.err conftest.$ac_ext
  13801. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  13802. +echo "${ECHO_T}$ac_header_preproc" >&6
  13803. +
  13804. +# So? What about this header?
  13805. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  13806. + yes:no: )
  13807. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  13808. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  13809. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  13810. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  13811. + ac_header_preproc=yes
  13812. + ;;
  13813. + no:yes:* )
  13814. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  13815. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  13816. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  13817. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  13818. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  13819. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  13820. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  13821. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  13822. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  13823. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  13824. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  13825. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  13826. + (
  13827. + cat <<\_ASBOX
  13828. +## ------------------------------------------ ##
  13829. +## Report this to the AC_PACKAGE_NAME lists. ##
  13830. +## ------------------------------------------ ##
  13831. +_ASBOX
  13832. + ) |
  13833. + sed "s/^/$as_me: WARNING: /" >&2
  13834. + ;;
  13835. +esac
  13836. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  13837. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  13838. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  13839. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13840. +else
  13841. + eval "$as_ac_Header=\$ac_header_preproc"
  13842. +fi
  13843. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  13844. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  13845. +
  13846. +fi
  13847. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  13848. + cat >>confdefs.h <<_ACEOF
  13849. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  13850. +_ACEOF
  13851. +
  13852. +fi
  13853. +
  13854. +done
  13855. +
  13856. +
  13857. +
  13858. +
  13859. +
  13860. +
  13861. +# Only perform the check for file, if the check method requires it
  13862. +case $deplibs_check_method in
  13863. +file_magic*)
  13864. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  13865. + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  13866. +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  13867. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  13868. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13869. +else
  13870. + case $MAGIC_CMD in
  13871. + /*)
  13872. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  13873. + ;;
  13874. + ?:/*)
  13875. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  13876. + ;;
  13877. + *)
  13878. + ac_save_MAGIC_CMD="$MAGIC_CMD"
  13879. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  13880. + ac_dummy="/usr/bin:$PATH"
  13881. + for ac_dir in $ac_dummy; do
  13882. + test -z "$ac_dir" && ac_dir=.
  13883. + if test -f $ac_dir/${ac_tool_prefix}file; then
  13884. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  13885. + if test -n "$file_magic_test_file"; then
  13886. + case $deplibs_check_method in
  13887. + "file_magic "*)
  13888. + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  13889. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13890. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  13891. + egrep "$file_magic_regex" > /dev/null; then
  13892. + :
  13893. + else
  13894. + cat <<EOF 1>&2
  13895. +
  13896. +*** Warning: the command libtool uses to detect shared libraries,
  13897. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  13898. +*** The result is that libtool may fail to recognize shared libraries
  13899. +*** as such. This will affect the creation of libtool libraries that
  13900. +*** depend on shared libraries, but programs linked with such libtool
  13901. +*** libraries will work regardless of this problem. Nevertheless, you
  13902. +*** may want to report the problem to your system manager and/or to
  13903. +*** bug-libtool@gnu.org
  13904. +
  13905. +EOF
  13906. + fi ;;
  13907. + esac
  13908. + fi
  13909. + break
  13910. + fi
  13911. + done
  13912. + IFS="$ac_save_ifs"
  13913. + MAGIC_CMD="$ac_save_MAGIC_CMD"
  13914. + ;;
  13915. +esac
  13916. +fi
  13917. +
  13918. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13919. +if test -n "$MAGIC_CMD"; then
  13920. + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  13921. +echo "${ECHO_T}$MAGIC_CMD" >&6
  13922. +else
  13923. + echo "$as_me:$LINENO: result: no" >&5
  13924. +echo "${ECHO_T}no" >&6
  13925. +fi
  13926. +
  13927. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  13928. + if test -n "$ac_tool_prefix"; then
  13929. + echo "$as_me:$LINENO: checking for file" >&5
  13930. +echo $ECHO_N "checking for file... $ECHO_C" >&6
  13931. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  13932. + echo $ECHO_N "(cached) $ECHO_C" >&6
  13933. +else
  13934. + case $MAGIC_CMD in
  13935. + /*)
  13936. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  13937. + ;;
  13938. + ?:/*)
  13939. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  13940. + ;;
  13941. + *)
  13942. + ac_save_MAGIC_CMD="$MAGIC_CMD"
  13943. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  13944. + ac_dummy="/usr/bin:$PATH"
  13945. + for ac_dir in $ac_dummy; do
  13946. + test -z "$ac_dir" && ac_dir=.
  13947. + if test -f $ac_dir/file; then
  13948. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  13949. + if test -n "$file_magic_test_file"; then
  13950. + case $deplibs_check_method in
  13951. + "file_magic "*)
  13952. + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  13953. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13954. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  13955. + egrep "$file_magic_regex" > /dev/null; then
  13956. + :
  13957. + else
  13958. + cat <<EOF 1>&2
  13959. +
  13960. +*** Warning: the command libtool uses to detect shared libraries,
  13961. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  13962. +*** The result is that libtool may fail to recognize shared libraries
  13963. +*** as such. This will affect the creation of libtool libraries that
  13964. +*** depend on shared libraries, but programs linked with such libtool
  13965. +*** libraries will work regardless of this problem. Nevertheless, you
  13966. +*** may want to report the problem to your system manager and/or to
  13967. +*** bug-libtool@gnu.org
  13968. +
  13969. +EOF
  13970. + fi ;;
  13971. + esac
  13972. + fi
  13973. + break
  13974. + fi
  13975. + done
  13976. + IFS="$ac_save_ifs"
  13977. + MAGIC_CMD="$ac_save_MAGIC_CMD"
  13978. + ;;
  13979. +esac
  13980. +fi
  13981. +
  13982. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  13983. +if test -n "$MAGIC_CMD"; then
  13984. + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  13985. +echo "${ECHO_T}$MAGIC_CMD" >&6
  13986. +else
  13987. + echo "$as_me:$LINENO: result: no" >&5
  13988. +echo "${ECHO_T}no" >&6
  13989. +fi
  13990. +
  13991. + else
  13992. + MAGIC_CMD=:
  13993. + fi
  13994. +fi
  13995. +
  13996. + fi
  13997. + ;;
  13998. +esac
  13999. +
  14000. +if test -n "$ac_tool_prefix"; then
  14001. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  14002. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  14003. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  14004. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14005. +if test "${ac_cv_prog_RANLIB+set}" = set; then
  14006. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14007. +else
  14008. + if test -n "$RANLIB"; then
  14009. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  14010. +else
  14011. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14012. +for as_dir in $PATH
  14013. +do
  14014. + IFS=$as_save_IFS
  14015. + test -z "$as_dir" && as_dir=.
  14016. + for ac_exec_ext in '' $ac_executable_extensions; do
  14017. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14018. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  14019. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14020. + break 2
  14021. + fi
  14022. +done
  14023. +done
  14024. +
  14025. +fi
  14026. +fi
  14027. +RANLIB=$ac_cv_prog_RANLIB
  14028. +if test -n "$RANLIB"; then
  14029. + echo "$as_me:$LINENO: result: $RANLIB" >&5
  14030. +echo "${ECHO_T}$RANLIB" >&6
  14031. +else
  14032. + echo "$as_me:$LINENO: result: no" >&5
  14033. +echo "${ECHO_T}no" >&6
  14034. +fi
  14035. +
  14036. +fi
  14037. +if test -z "$ac_cv_prog_RANLIB"; then
  14038. + ac_ct_RANLIB=$RANLIB
  14039. + # Extract the first word of "ranlib", so it can be a program name with args.
  14040. +set dummy ranlib; ac_word=$2
  14041. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  14042. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14043. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  14044. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14045. +else
  14046. + if test -n "$ac_ct_RANLIB"; then
  14047. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  14048. +else
  14049. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14050. +for as_dir in $PATH
  14051. +do
  14052. + IFS=$as_save_IFS
  14053. + test -z "$as_dir" && as_dir=.
  14054. + for ac_exec_ext in '' $ac_executable_extensions; do
  14055. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14056. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  14057. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14058. + break 2
  14059. + fi
  14060. +done
  14061. +done
  14062. +
  14063. + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  14064. +fi
  14065. +fi
  14066. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  14067. +if test -n "$ac_ct_RANLIB"; then
  14068. + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  14069. +echo "${ECHO_T}$ac_ct_RANLIB" >&6
  14070. +else
  14071. + echo "$as_me:$LINENO: result: no" >&5
  14072. +echo "${ECHO_T}no" >&6
  14073. +fi
  14074. +
  14075. + RANLIB=$ac_ct_RANLIB
  14076. +else
  14077. + RANLIB="$ac_cv_prog_RANLIB"
  14078. +fi
  14079. +
  14080. +if test -n "$ac_tool_prefix"; then
  14081. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  14082. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  14083. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  14084. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14085. +if test "${ac_cv_prog_STRIP+set}" = set; then
  14086. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14087. +else
  14088. + if test -n "$STRIP"; then
  14089. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  14090. +else
  14091. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14092. +for as_dir in $PATH
  14093. +do
  14094. + IFS=$as_save_IFS
  14095. + test -z "$as_dir" && as_dir=.
  14096. + for ac_exec_ext in '' $ac_executable_extensions; do
  14097. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14098. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  14099. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14100. + break 2
  14101. + fi
  14102. +done
  14103. +done
  14104. +
  14105. +fi
  14106. +fi
  14107. +STRIP=$ac_cv_prog_STRIP
  14108. +if test -n "$STRIP"; then
  14109. + echo "$as_me:$LINENO: result: $STRIP" >&5
  14110. +echo "${ECHO_T}$STRIP" >&6
  14111. +else
  14112. + echo "$as_me:$LINENO: result: no" >&5
  14113. +echo "${ECHO_T}no" >&6
  14114. +fi
  14115. +
  14116. +fi
  14117. +if test -z "$ac_cv_prog_STRIP"; then
  14118. + ac_ct_STRIP=$STRIP
  14119. + # Extract the first word of "strip", so it can be a program name with args.
  14120. +set dummy strip; ac_word=$2
  14121. +echo "$as_me:$LINENO: checking for $ac_word" >&5
  14122. +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  14123. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  14124. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14125. +else
  14126. + if test -n "$ac_ct_STRIP"; then
  14127. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  14128. +else
  14129. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14130. +for as_dir in $PATH
  14131. +do
  14132. + IFS=$as_save_IFS
  14133. + test -z "$as_dir" && as_dir=.
  14134. + for ac_exec_ext in '' $ac_executable_extensions; do
  14135. + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  14136. + ac_cv_prog_ac_ct_STRIP="strip"
  14137. + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  14138. + break 2
  14139. + fi
  14140. +done
  14141. +done
  14142. +
  14143. + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  14144. +fi
  14145. +fi
  14146. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  14147. +if test -n "$ac_ct_STRIP"; then
  14148. + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  14149. +echo "${ECHO_T}$ac_ct_STRIP" >&6
  14150. +else
  14151. + echo "$as_me:$LINENO: result: no" >&5
  14152. +echo "${ECHO_T}no" >&6
  14153. +fi
  14154. +
  14155. + STRIP=$ac_ct_STRIP
  14156. +else
  14157. + STRIP="$ac_cv_prog_STRIP"
  14158. +fi
  14159. +
  14160. +
  14161. +enable_dlopen=no
  14162. +enable_win32_dll=no
  14163. +
  14164. +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  14165. +if test "${enable_libtool_lock+set}" = set; then
  14166. + enableval="$enable_libtool_lock"
  14167. +
  14168. +fi;
  14169. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  14170. +
  14171. +# Some flags need to be propagated to the compiler or linker for good
  14172. +# libtool support.
  14173. +case $host in
  14174. +*-*-irix6*)
  14175. + # Find out which ABI we are using.
  14176. + echo '#line 5125 "configure"' > conftest.$ac_ext
  14177. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14178. + (eval $ac_compile) 2>&5
  14179. + ac_status=$?
  14180. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14181. + (exit $ac_status); }; then
  14182. + case `/usr/bin/file conftest.$ac_objext` in
  14183. + *32-bit*)
  14184. + LD="${LD-ld} -32"
  14185. + ;;
  14186. + *N32*)
  14187. + LD="${LD-ld} -n32"
  14188. + ;;
  14189. + *64-bit*)
  14190. + LD="${LD-ld} -64"
  14191. + ;;
  14192. + esac
  14193. + fi
  14194. + rm -rf conftest*
  14195. + ;;
  14196. +
  14197. +*-*-sco3.2v5*)
  14198. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  14199. + SAVE_CFLAGS="$CFLAGS"
  14200. + CFLAGS="$CFLAGS -belf"
  14201. + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  14202. +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  14203. +if test "${lt_cv_cc_needs_belf+set}" = set; then
  14204. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14205. +else
  14206. +
  14207. +
  14208. + ac_ext=c
  14209. +ac_cpp='$CPP $CPPFLAGS'
  14210. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14211. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14212. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14213. +
  14214. + cat >conftest.$ac_ext <<_ACEOF
  14215. +/* confdefs.h. */
  14216. +_ACEOF
  14217. +cat confdefs.h >>conftest.$ac_ext
  14218. +cat >>conftest.$ac_ext <<_ACEOF
  14219. +/* end confdefs.h. */
  14220. +
  14221. +int
  14222. +main ()
  14223. +{
  14224. +
  14225. + ;
  14226. + return 0;
  14227. +}
  14228. +_ACEOF
  14229. +rm -f conftest.$ac_objext conftest$ac_exeext
  14230. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14231. + (eval $ac_link) 2>conftest.er1
  14232. + ac_status=$?
  14233. + grep -v '^ *+' conftest.er1 >conftest.err
  14234. + rm -f conftest.er1
  14235. + cat conftest.err >&5
  14236. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14237. + (exit $ac_status); } &&
  14238. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14239. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14240. + (eval $ac_try) 2>&5
  14241. + ac_status=$?
  14242. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14243. + (exit $ac_status); }; } &&
  14244. + { ac_try='test -s conftest$ac_exeext'
  14245. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14246. + (eval $ac_try) 2>&5
  14247. + ac_status=$?
  14248. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14249. + (exit $ac_status); }; }; then
  14250. + lt_cv_cc_needs_belf=yes
  14251. +else
  14252. + echo "$as_me: failed program was:" >&5
  14253. +sed 's/^/| /' conftest.$ac_ext >&5
  14254. +
  14255. +lt_cv_cc_needs_belf=no
  14256. +fi
  14257. +rm -f conftest.err conftest.$ac_objext \
  14258. + conftest$ac_exeext conftest.$ac_ext
  14259. + ac_ext=c
  14260. +ac_cpp='$CPP $CPPFLAGS'
  14261. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  14262. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  14263. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  14264. +
  14265. +fi
  14266. +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  14267. +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  14268. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  14269. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  14270. + CFLAGS="$SAVE_CFLAGS"
  14271. + fi
  14272. + ;;
  14273. +
  14274. +
  14275. +esac
  14276. +
  14277. +# Sed substitution that helps us do robust quoting. It backslashifies
  14278. +# metacharacters that are still active within double-quoted strings.
  14279. +Xsed='sed -e s/^X//'
  14280. +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  14281. +
  14282. +# Same as above, but do not quote variable references.
  14283. +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  14284. +
  14285. +# Sed substitution to delay expansion of an escaped shell variable in a
  14286. +# double_quote_subst'ed string.
  14287. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  14288. +
  14289. +# Constants:
  14290. +rm="rm -f"
  14291. +
  14292. +# Global variables:
  14293. +default_ofile=libtool
  14294. +can_build_shared=yes
  14295. +
  14296. +# All known linkers require a `.a' archive for static linking (except M$VC,
  14297. +# which needs '.lib').
  14298. +libext=a
  14299. +ltmain="$ac_aux_dir/ltmain.sh"
  14300. +ofile="$default_ofile"
  14301. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  14302. +need_locks="$enable_libtool_lock"
  14303. +
  14304. +old_CC="$CC"
  14305. +old_CFLAGS="$CFLAGS"
  14306. +
  14307. +# Set sane defaults for various variables
  14308. +test -z "$AR" && AR=ar
  14309. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  14310. +test -z "$AS" && AS=as
  14311. +test -z "$CC" && CC=cc
  14312. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  14313. +test -z "$LD" && LD=ld
  14314. +test -z "$LN_S" && LN_S="ln -s"
  14315. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  14316. +test -z "$NM" && NM=nm
  14317. +test -z "$OBJDUMP" && OBJDUMP=objdump
  14318. +test -z "$RANLIB" && RANLIB=:
  14319. +test -z "$STRIP" && STRIP=:
  14320. +test -z "$ac_objext" && ac_objext=o
  14321. +
  14322. +if test x"$host" != x"$build"; then
  14323. + ac_tool_prefix=${host_alias}-
  14324. +else
  14325. + ac_tool_prefix=
  14326. +fi
  14327. +
  14328. +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  14329. +case $host_os in
  14330. +linux-gnu*) ;;
  14331. +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  14332. +esac
  14333. +
  14334. +case $host_os in
  14335. +aix3*)
  14336. + # AIX sometimes has problems with the GCC collect2 program. For some
  14337. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  14338. + # vanish in a puff of smoke.
  14339. + if test "X${COLLECT_NAMES+set}" != Xset; then
  14340. + COLLECT_NAMES=
  14341. + export COLLECT_NAMES
  14342. + fi
  14343. + ;;
  14344. +esac
  14345. +
  14346. +# Determine commands to create old-style static archives.
  14347. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  14348. +old_postinstall_cmds='chmod 644 $oldlib'
  14349. +old_postuninstall_cmds=
  14350. +
  14351. +if test -n "$RANLIB"; then
  14352. + case $host_os in
  14353. + openbsd*)
  14354. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  14355. + ;;
  14356. + *)
  14357. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  14358. + ;;
  14359. + esac
  14360. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  14361. +fi
  14362. +
  14363. +# Allow CC to be a program name with arguments.
  14364. +set dummy $CC
  14365. +compiler="$2"
  14366. +
  14367. +echo "$as_me:$LINENO: checking for objdir" >&5
  14368. +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  14369. +rm -f .libs 2>/dev/null
  14370. +mkdir .libs 2>/dev/null
  14371. +if test -d .libs; then
  14372. + objdir=.libs
  14373. +else
  14374. + # MS-DOS does not allow filenames that begin with a dot.
  14375. + objdir=_libs
  14376. +fi
  14377. +rmdir .libs 2>/dev/null
  14378. +echo "$as_me:$LINENO: result: $objdir" >&5
  14379. +echo "${ECHO_T}$objdir" >&6
  14380. +
  14381. +
  14382. +
  14383. +# Check whether --with-pic or --without-pic was given.
  14384. +if test "${with_pic+set}" = set; then
  14385. + withval="$with_pic"
  14386. + pic_mode="$withval"
  14387. +else
  14388. + pic_mode=default
  14389. +fi;
  14390. +test -z "$pic_mode" && pic_mode=default
  14391. +
  14392. +# We assume here that the value for lt_cv_prog_cc_pic will not be cached
  14393. +# in isolation, and that seeing it set (from the cache) indicates that
  14394. +# the associated values are set (in the cache) correctly too.
  14395. +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  14396. +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  14397. +if test "${lt_cv_prog_cc_pic+set}" = set; then
  14398. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14399. +else
  14400. + lt_cv_prog_cc_pic=
  14401. + lt_cv_prog_cc_shlib=
  14402. + lt_cv_prog_cc_wl=
  14403. + lt_cv_prog_cc_static=
  14404. + lt_cv_prog_cc_no_builtin=
  14405. + lt_cv_prog_cc_can_build_shared=$can_build_shared
  14406. +
  14407. + if test "$GCC" = yes; then
  14408. + lt_cv_prog_cc_wl='-Wl,'
  14409. + lt_cv_prog_cc_static='-static'
  14410. +
  14411. + case $host_os in
  14412. + aix*)
  14413. + # Below there is a dirty hack to force normal static linking with -ldl
  14414. + # The problem is because libdl dynamically linked with both libc and
  14415. + # libC (AIX C++ library), which obviously doesn't included in libraries
  14416. + # list by gcc. This cause undefined symbols with -static flags.
  14417. + # This hack allows C programs to be linked with "-static -ldl", but
  14418. + # not sure about C++ programs.
  14419. + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  14420. + ;;
  14421. + amigaos*)
  14422. + # FIXME: we need at least 68020 code to build shared libraries, but
  14423. + # adding the `-m68020' flag to GCC prevents building anything better,
  14424. + # like `-m68040'.
  14425. + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  14426. + ;;
  14427. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  14428. + # PIC is the default for these OSes.
  14429. + ;;
  14430. + darwin* | rhapsody*)
  14431. + # PIC is the default on this platform
  14432. + # Common symbols not allowed in MH_DYLIB files
  14433. + lt_cv_prog_cc_pic='-fno-common'
  14434. + ;;
  14435. + cygwin* | mingw* | pw32* | os2*)
  14436. + # This hack is so that the source file can tell whether it is being
  14437. + # built for inclusion in a dll (and should export symbols for example).
  14438. + lt_cv_prog_cc_pic='-DDLL_EXPORT'
  14439. + ;;
  14440. + sysv4*MP*)
  14441. + if test -d /usr/nec; then
  14442. + lt_cv_prog_cc_pic=-Kconform_pic
  14443. + fi
  14444. + ;;
  14445. + *)
  14446. + lt_cv_prog_cc_pic='-fPIC'
  14447. + ;;
  14448. + esac
  14449. + else
  14450. + # PORTME Check for PIC flags for the system compiler.
  14451. + case $host_os in
  14452. + aix3* | aix4* | aix5*)
  14453. + lt_cv_prog_cc_wl='-Wl,'
  14454. + # All AIX code is PIC.
  14455. + if test "$host_cpu" = ia64; then
  14456. + # AIX 5 now supports IA64 processor
  14457. + lt_cv_prog_cc_static='-Bstatic'
  14458. + else
  14459. + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  14460. + fi
  14461. + ;;
  14462. +
  14463. + hpux9* | hpux10* | hpux11*)
  14464. + # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  14465. + lt_cv_prog_cc_wl='-Wl,'
  14466. + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  14467. + lt_cv_prog_cc_pic='+Z'
  14468. + ;;
  14469. +
  14470. + irix5* | irix6* | nonstopux*)
  14471. + lt_cv_prog_cc_wl='-Wl,'
  14472. + lt_cv_prog_cc_static='-non_shared'
  14473. + # PIC (with -KPIC) is the default.
  14474. + ;;
  14475. +
  14476. + cygwin* | mingw* | pw32* | os2*)
  14477. + # This hack is so that the source file can tell whether it is being
  14478. + # built for inclusion in a dll (and should export symbols for example).
  14479. + lt_cv_prog_cc_pic='-DDLL_EXPORT'
  14480. + ;;
  14481. +
  14482. + newsos6)
  14483. + lt_cv_prog_cc_pic='-KPIC'
  14484. + lt_cv_prog_cc_static='-Bstatic'
  14485. + ;;
  14486. +
  14487. + osf3* | osf4* | osf5*)
  14488. + # All OSF/1 code is PIC.
  14489. + lt_cv_prog_cc_wl='-Wl,'
  14490. + lt_cv_prog_cc_static='-non_shared'
  14491. + ;;
  14492. +
  14493. + sco3.2v5*)
  14494. + lt_cv_prog_cc_pic='-Kpic'
  14495. + lt_cv_prog_cc_static='-dn'
  14496. + lt_cv_prog_cc_shlib='-belf'
  14497. + ;;
  14498. +
  14499. + solaris*)
  14500. + lt_cv_prog_cc_pic='-KPIC'
  14501. + lt_cv_prog_cc_static='-Bstatic'
  14502. + lt_cv_prog_cc_wl='-Wl,'
  14503. + ;;
  14504. +
  14505. + sunos4*)
  14506. + lt_cv_prog_cc_pic='-PIC'
  14507. + lt_cv_prog_cc_static='-Bstatic'
  14508. + lt_cv_prog_cc_wl='-Qoption ld '
  14509. + ;;
  14510. +
  14511. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  14512. + lt_cv_prog_cc_pic='-KPIC'
  14513. + lt_cv_prog_cc_static='-Bstatic'
  14514. + lt_cv_prog_cc_wl='-Wl,'
  14515. + ;;
  14516. +
  14517. + uts4*)
  14518. + lt_cv_prog_cc_pic='-pic'
  14519. + lt_cv_prog_cc_static='-Bstatic'
  14520. + ;;
  14521. +
  14522. + sysv4*MP*)
  14523. + if test -d /usr/nec ;then
  14524. + lt_cv_prog_cc_pic='-Kconform_pic'
  14525. + lt_cv_prog_cc_static='-Bstatic'
  14526. + fi
  14527. + ;;
  14528. +
  14529. + *)
  14530. + lt_cv_prog_cc_can_build_shared=no
  14531. + ;;
  14532. + esac
  14533. + fi
  14534. +
  14535. +fi
  14536. +
  14537. +if test -z "$lt_cv_prog_cc_pic"; then
  14538. + echo "$as_me:$LINENO: result: none" >&5
  14539. +echo "${ECHO_T}none" >&6
  14540. +else
  14541. + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
  14542. +echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
  14543. +
  14544. + # Check to make sure the pic_flag actually works.
  14545. + echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
  14546. +echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
  14547. + if test "${lt_cv_prog_cc_pic_works+set}" = set; then
  14548. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14549. +else
  14550. + save_CFLAGS="$CFLAGS"
  14551. + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  14552. + cat >conftest.$ac_ext <<_ACEOF
  14553. +/* confdefs.h. */
  14554. +_ACEOF
  14555. +cat confdefs.h >>conftest.$ac_ext
  14556. +cat >>conftest.$ac_ext <<_ACEOF
  14557. +/* end confdefs.h. */
  14558. +
  14559. +int
  14560. +main ()
  14561. +{
  14562. +
  14563. + ;
  14564. + return 0;
  14565. +}
  14566. +_ACEOF
  14567. +rm -f conftest.$ac_objext
  14568. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14569. + (eval $ac_compile) 2>conftest.er1
  14570. + ac_status=$?
  14571. + grep -v '^ *+' conftest.er1 >conftest.err
  14572. + rm -f conftest.er1
  14573. + cat conftest.err >&5
  14574. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14575. + (exit $ac_status); } &&
  14576. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14577. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14578. + (eval $ac_try) 2>&5
  14579. + ac_status=$?
  14580. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14581. + (exit $ac_status); }; } &&
  14582. + { ac_try='test -s conftest.$ac_objext'
  14583. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14584. + (eval $ac_try) 2>&5
  14585. + ac_status=$?
  14586. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14587. + (exit $ac_status); }; }; then
  14588. + case $host_os in
  14589. + hpux9* | hpux10* | hpux11*)
  14590. + # On HP-UX, both CC and GCC only warn that PIC is supported... then
  14591. + # they create non-PIC objects. So, if there were any warnings, we
  14592. + # assume that PIC is not supported.
  14593. + if test -s conftest.err; then
  14594. + lt_cv_prog_cc_pic_works=no
  14595. + else
  14596. + lt_cv_prog_cc_pic_works=yes
  14597. + fi
  14598. + ;;
  14599. + *)
  14600. + lt_cv_prog_cc_pic_works=yes
  14601. + ;;
  14602. + esac
  14603. +
  14604. +else
  14605. + echo "$as_me: failed program was:" >&5
  14606. +sed 's/^/| /' conftest.$ac_ext >&5
  14607. +
  14608. + lt_cv_prog_cc_pic_works=no
  14609. +
  14610. +fi
  14611. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14612. + CFLAGS="$save_CFLAGS"
  14613. +
  14614. +fi
  14615. +
  14616. +
  14617. + if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  14618. + lt_cv_prog_cc_pic=
  14619. + lt_cv_prog_cc_can_build_shared=no
  14620. + else
  14621. + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  14622. + fi
  14623. +
  14624. + echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
  14625. +echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
  14626. +fi
  14627. +
  14628. +# Check for any special shared library compilation flags.
  14629. +if test -n "$lt_cv_prog_cc_shlib"; then
  14630. + { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
  14631. +echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
  14632. + if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
  14633. + else
  14634. + { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  14635. +echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  14636. + lt_cv_prog_cc_can_build_shared=no
  14637. + fi
  14638. +fi
  14639. +
  14640. +echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
  14641. +echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
  14642. +if test "${lt_cv_prog_cc_static_works+set}" = set; then
  14643. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14644. +else
  14645. + lt_cv_prog_cc_static_works=no
  14646. + save_LDFLAGS="$LDFLAGS"
  14647. + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  14648. + cat >conftest.$ac_ext <<_ACEOF
  14649. +/* confdefs.h. */
  14650. +_ACEOF
  14651. +cat confdefs.h >>conftest.$ac_ext
  14652. +cat >>conftest.$ac_ext <<_ACEOF
  14653. +/* end confdefs.h. */
  14654. +
  14655. +int
  14656. +main ()
  14657. +{
  14658. +
  14659. + ;
  14660. + return 0;
  14661. +}
  14662. +_ACEOF
  14663. +rm -f conftest.$ac_objext conftest$ac_exeext
  14664. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  14665. + (eval $ac_link) 2>conftest.er1
  14666. + ac_status=$?
  14667. + grep -v '^ *+' conftest.er1 >conftest.err
  14668. + rm -f conftest.er1
  14669. + cat conftest.err >&5
  14670. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14671. + (exit $ac_status); } &&
  14672. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14673. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14674. + (eval $ac_try) 2>&5
  14675. + ac_status=$?
  14676. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14677. + (exit $ac_status); }; } &&
  14678. + { ac_try='test -s conftest$ac_exeext'
  14679. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14680. + (eval $ac_try) 2>&5
  14681. + ac_status=$?
  14682. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14683. + (exit $ac_status); }; }; then
  14684. + lt_cv_prog_cc_static_works=yes
  14685. +else
  14686. + echo "$as_me: failed program was:" >&5
  14687. +sed 's/^/| /' conftest.$ac_ext >&5
  14688. +
  14689. +fi
  14690. +rm -f conftest.err conftest.$ac_objext \
  14691. + conftest$ac_exeext conftest.$ac_ext
  14692. + LDFLAGS="$save_LDFLAGS"
  14693. +
  14694. +fi
  14695. +
  14696. +
  14697. +# Belt *and* braces to stop my trousers falling down:
  14698. +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  14699. +echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
  14700. +echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
  14701. +
  14702. +pic_flag="$lt_cv_prog_cc_pic"
  14703. +special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  14704. +wl="$lt_cv_prog_cc_wl"
  14705. +link_static_flag="$lt_cv_prog_cc_static"
  14706. +no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  14707. +can_build_shared="$lt_cv_prog_cc_can_build_shared"
  14708. +
  14709. +
  14710. +# Check to see if options -o and -c are simultaneously supported by compiler
  14711. +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  14712. +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  14713. +if test "${lt_cv_compiler_c_o+set}" = set; then
  14714. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14715. +else
  14716. +
  14717. +$rm -r conftest 2>/dev/null
  14718. +mkdir conftest
  14719. +cd conftest
  14720. +echo "int some_variable = 0;" > conftest.$ac_ext
  14721. +mkdir out
  14722. +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  14723. +# that will create temporary files in the current directory regardless of
  14724. +# the output directory. Thus, making CWD read-only will cause this test
  14725. +# to fail, enabling locking or at least warning the user not to do parallel
  14726. +# builds.
  14727. +chmod -w .
  14728. +save_CFLAGS="$CFLAGS"
  14729. +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  14730. +compiler_c_o=no
  14731. +if { (eval echo configure:5680: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  14732. + # The compiler can only warn and ignore the option if not recognized
  14733. + # So say no if there are warnings
  14734. + if test -s out/conftest.err; then
  14735. + lt_cv_compiler_c_o=no
  14736. + else
  14737. + lt_cv_compiler_c_o=yes
  14738. + fi
  14739. +else
  14740. + # Append any errors to the config.log.
  14741. + cat out/conftest.err 1>&5
  14742. + lt_cv_compiler_c_o=no
  14743. +fi
  14744. +CFLAGS="$save_CFLAGS"
  14745. +chmod u+w .
  14746. +$rm conftest* out/*
  14747. +rmdir out
  14748. +cd ..
  14749. +rmdir conftest
  14750. +$rm -r conftest 2>/dev/null
  14751. +
  14752. +fi
  14753. +
  14754. +compiler_c_o=$lt_cv_compiler_c_o
  14755. +echo "$as_me:$LINENO: result: $compiler_c_o" >&5
  14756. +echo "${ECHO_T}$compiler_c_o" >&6
  14757. +
  14758. +if test x"$compiler_c_o" = x"yes"; then
  14759. + # Check to see if we can write to a .lo
  14760. + echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
  14761. +echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
  14762. + if test "${lt_cv_compiler_o_lo+set}" = set; then
  14763. + echo $ECHO_N "(cached) $ECHO_C" >&6
  14764. +else
  14765. +
  14766. + lt_cv_compiler_o_lo=no
  14767. + save_CFLAGS="$CFLAGS"
  14768. + CFLAGS="$CFLAGS -c -o conftest.lo"
  14769. + save_objext="$ac_objext"
  14770. + ac_objext=lo
  14771. + cat >conftest.$ac_ext <<_ACEOF
  14772. +/* confdefs.h. */
  14773. +_ACEOF
  14774. +cat confdefs.h >>conftest.$ac_ext
  14775. +cat >>conftest.$ac_ext <<_ACEOF
  14776. +/* end confdefs.h. */
  14777. +
  14778. +int
  14779. +main ()
  14780. +{
  14781. +int some_variable = 0;
  14782. + ;
  14783. + return 0;
  14784. +}
  14785. +_ACEOF
  14786. +rm -f conftest.$ac_objext
  14787. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14788. + (eval $ac_compile) 2>conftest.er1
  14789. + ac_status=$?
  14790. + grep -v '^ *+' conftest.er1 >conftest.err
  14791. + rm -f conftest.er1
  14792. + cat conftest.err >&5
  14793. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14794. + (exit $ac_status); } &&
  14795. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14796. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14797. + (eval $ac_try) 2>&5
  14798. + ac_status=$?
  14799. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14800. + (exit $ac_status); }; } &&
  14801. + { ac_try='test -s conftest.$ac_objext'
  14802. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14803. + (eval $ac_try) 2>&5
  14804. + ac_status=$?
  14805. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14806. + (exit $ac_status); }; }; then
  14807. + # The compiler can only warn and ignore the option if not recognized
  14808. + # So say no if there are warnings
  14809. + if test -s conftest.err; then
  14810. + lt_cv_compiler_o_lo=no
  14811. + else
  14812. + lt_cv_compiler_o_lo=yes
  14813. + fi
  14814. +
  14815. +else
  14816. + echo "$as_me: failed program was:" >&5
  14817. +sed 's/^/| /' conftest.$ac_ext >&5
  14818. +
  14819. +fi
  14820. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14821. + ac_objext="$save_objext"
  14822. + CFLAGS="$save_CFLAGS"
  14823. +
  14824. +fi
  14825. +
  14826. + compiler_o_lo=$lt_cv_compiler_o_lo
  14827. + echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
  14828. +echo "${ECHO_T}$compiler_o_lo" >&6
  14829. +else
  14830. + compiler_o_lo=no
  14831. +fi
  14832. +
  14833. +# Check to see if we can do hard links to lock some files if needed
  14834. +hard_links="nottested"
  14835. +if test "$compiler_c_o" = no && test "$need_locks" != no; then
  14836. + # do not overwrite the value of need_locks provided by the user
  14837. + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  14838. +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  14839. + hard_links=yes
  14840. + $rm conftest*
  14841. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14842. + touch conftest.a
  14843. + ln conftest.a conftest.b 2>&5 || hard_links=no
  14844. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  14845. + echo "$as_me:$LINENO: result: $hard_links" >&5
  14846. +echo "${ECHO_T}$hard_links" >&6
  14847. + if test "$hard_links" = no; then
  14848. + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  14849. +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  14850. + need_locks=warn
  14851. + fi
  14852. +else
  14853. + need_locks=no
  14854. +fi
  14855. +
  14856. +if test "$GCC" = yes; then
  14857. + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  14858. + echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  14859. +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  14860. + echo "int some_variable = 0;" > conftest.$ac_ext
  14861. + save_CFLAGS="$CFLAGS"
  14862. + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  14863. + compiler_rtti_exceptions=no
  14864. + cat >conftest.$ac_ext <<_ACEOF
  14865. +/* confdefs.h. */
  14866. +_ACEOF
  14867. +cat confdefs.h >>conftest.$ac_ext
  14868. +cat >>conftest.$ac_ext <<_ACEOF
  14869. +/* end confdefs.h. */
  14870. +
  14871. +int
  14872. +main ()
  14873. +{
  14874. +int some_variable = 0;
  14875. + ;
  14876. + return 0;
  14877. +}
  14878. +_ACEOF
  14879. +rm -f conftest.$ac_objext
  14880. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  14881. + (eval $ac_compile) 2>conftest.er1
  14882. + ac_status=$?
  14883. + grep -v '^ *+' conftest.er1 >conftest.err
  14884. + rm -f conftest.er1
  14885. + cat conftest.err >&5
  14886. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14887. + (exit $ac_status); } &&
  14888. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  14889. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14890. + (eval $ac_try) 2>&5
  14891. + ac_status=$?
  14892. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14893. + (exit $ac_status); }; } &&
  14894. + { ac_try='test -s conftest.$ac_objext'
  14895. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  14896. + (eval $ac_try) 2>&5
  14897. + ac_status=$?
  14898. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  14899. + (exit $ac_status); }; }; then
  14900. + # The compiler can only warn and ignore the option if not recognized
  14901. + # So say no if there are warnings
  14902. + if test -s conftest.err; then
  14903. + compiler_rtti_exceptions=no
  14904. + else
  14905. + compiler_rtti_exceptions=yes
  14906. + fi
  14907. +
  14908. +else
  14909. + echo "$as_me: failed program was:" >&5
  14910. +sed 's/^/| /' conftest.$ac_ext >&5
  14911. +
  14912. +fi
  14913. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  14914. + CFLAGS="$save_CFLAGS"
  14915. + echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
  14916. +echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  14917. +
  14918. + if test "$compiler_rtti_exceptions" = "yes"; then
  14919. + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  14920. + else
  14921. + no_builtin_flag=' -fno-builtin'
  14922. + fi
  14923. +fi
  14924. +
  14925. +# See if the linker supports building shared libraries.
  14926. +echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
  14927. +echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
  14928. +
  14929. +allow_undefined_flag=
  14930. +no_undefined_flag=
  14931. +need_lib_prefix=unknown
  14932. +need_version=unknown
  14933. +# when you set need_version to no, make sure it does not cause -set_version
  14934. +# flags to be left without arguments
  14935. +archive_cmds=
  14936. +archive_expsym_cmds=
  14937. +old_archive_from_new_cmds=
  14938. +old_archive_from_expsyms_cmds=
  14939. +export_dynamic_flag_spec=
  14940. +whole_archive_flag_spec=
  14941. +thread_safe_flag_spec=
  14942. +hardcode_into_libs=no
  14943. +hardcode_libdir_flag_spec=
  14944. +hardcode_libdir_separator=
  14945. +hardcode_direct=no
  14946. +hardcode_minus_L=no
  14947. +hardcode_shlibpath_var=unsupported
  14948. +runpath_var=
  14949. +link_all_deplibs=unknown
  14950. +always_export_symbols=no
  14951. +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  14952. +# include_expsyms should be a list of space-separated symbols to be *always*
  14953. +# included in the symbol list
  14954. +include_expsyms=
  14955. +# exclude_expsyms can be an egrep regular expression of symbols to exclude
  14956. +# it will be wrapped by ` (' and `)$', so one must not match beginning or
  14957. +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  14958. +# as well as any symbol that contains `d'.
  14959. +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  14960. +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  14961. +# platforms (ab)use it in PIC code, but their linkers get confused if
  14962. +# the symbol is explicitly referenced. Since portable code cannot
  14963. +# rely on this symbol name, it's probably fine to never include it in
  14964. +# preloaded symbol tables.
  14965. +extract_expsyms_cmds=
  14966. +
  14967. +case $host_os in
  14968. +cygwin* | mingw* | pw32*)
  14969. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  14970. + # When not using gcc, we currently assume that we are using
  14971. + # Microsoft Visual C++.
  14972. + if test "$GCC" != yes; then
  14973. + with_gnu_ld=no
  14974. + fi
  14975. + ;;
  14976. +openbsd*)
  14977. + with_gnu_ld=no
  14978. + ;;
  14979. +esac
  14980. +
  14981. +ld_shlibs=yes
  14982. +if test "$with_gnu_ld" = yes; then
  14983. + # If archive_cmds runs LD, not CC, wlarc should be empty
  14984. + wlarc='${wl}'
  14985. +
  14986. + # See if GNU ld supports shared libraries.
  14987. + case $host_os in
  14988. + aix3* | aix4* | aix5*)
  14989. + # On AIX, the GNU linker is very broken
  14990. + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  14991. + ld_shlibs=no
  14992. + cat <<EOF 1>&2
  14993. +
  14994. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  14995. +*** to be unable to reliably create shared libraries on AIX.
  14996. +*** Therefore, libtool is disabling shared libraries support. If you
  14997. +*** really care for shared libraries, you may want to modify your PATH
  14998. +*** so that a non-GNU linker is found, and then restart.
  14999. +
  15000. +EOF
  15001. + ;;
  15002. +
  15003. + amigaos*)
  15004. + 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)'
  15005. + hardcode_libdir_flag_spec='-L$libdir'
  15006. + hardcode_minus_L=yes
  15007. +
  15008. + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  15009. + # that the semantics of dynamic libraries on AmigaOS, at least up
  15010. + # to version 4, is to share data among multiple programs linked
  15011. + # with the same dynamic library. Since this doesn't match the
  15012. + # behavior of shared libraries on other platforms, we can use
  15013. + # them.
  15014. + ld_shlibs=no
  15015. + ;;
  15016. +
  15017. + beos*)
  15018. + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  15019. + allow_undefined_flag=unsupported
  15020. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  15021. + # support --undefined. This deserves some investigation. FIXME
  15022. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15023. + else
  15024. + ld_shlibs=no
  15025. + fi
  15026. + ;;
  15027. +
  15028. + cygwin* | mingw* | pw32*)
  15029. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  15030. + # no search path for DLLs.
  15031. + hardcode_libdir_flag_spec='-L$libdir'
  15032. + allow_undefined_flag=unsupported
  15033. + always_export_symbols=yes
  15034. +
  15035. + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  15036. + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  15037. + test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  15038. + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  15039. + else $CC -o impgen impgen.c ; fi)~
  15040. + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  15041. +
  15042. + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  15043. +
  15044. + # cygwin and mingw dlls have different entry points and sets of symbols
  15045. + # to exclude.
  15046. + # FIXME: what about values for MSVC?
  15047. + dll_entry=__cygwin_dll_entry@12
  15048. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  15049. + case $host_os in
  15050. + mingw*)
  15051. + # mingw values
  15052. + dll_entry=_DllMainCRTStartup@12
  15053. + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  15054. + ;;
  15055. + esac
  15056. +
  15057. + # mingw and cygwin differ, and it's simplest to just exclude the union
  15058. + # of the two symbol sets.
  15059. + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  15060. +
  15061. + # recent cygwin and mingw systems supply a stub DllMain which the user
  15062. + # can override, but on older systems we have to supply one (in ltdll.c)
  15063. + if test "x$lt_cv_need_dllmain" = "xyes"; then
  15064. + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  15065. + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  15066. + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  15067. + else
  15068. + ltdll_obj=
  15069. + ltdll_cmds=
  15070. + fi
  15071. +
  15072. + # Extract the symbol export list from an `--export-all' def file,
  15073. + # then regenerate the def file from the symbol export list, so that
  15074. + # the compiled dll only exports the symbol export list.
  15075. + # Be careful not to strip the DATA tag left be newer dlltools.
  15076. + export_symbols_cmds="$ltdll_cmds"'
  15077. + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  15078. + sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  15079. +
  15080. + # If the export-symbols file already is a .def file (1st line
  15081. + # is EXPORTS), use it as is.
  15082. + # If DATA tags from a recent dlltool are present, honour them!
  15083. + archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  15084. + cp $export_symbols $output_objdir/$soname-def;
  15085. + else
  15086. + echo EXPORTS > $output_objdir/$soname-def;
  15087. + _lt_hint=1;
  15088. + cat $export_symbols | while read symbol; do
  15089. + set dummy \$symbol;
  15090. + case \$# in
  15091. + 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  15092. + 4) echo " \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  15093. + *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
  15094. + esac;
  15095. + _lt_hint=`expr 1 + \$_lt_hint`;
  15096. + done;
  15097. + fi~
  15098. + '"$ltdll_cmds"'
  15099. + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  15100. + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  15101. + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  15102. + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  15103. + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  15104. + ;;
  15105. +
  15106. + netbsd*)
  15107. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15108. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  15109. + wlarc=
  15110. + else
  15111. + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15112. + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15113. + fi
  15114. + ;;
  15115. +
  15116. + solaris* | sysv5*)
  15117. + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  15118. + ld_shlibs=no
  15119. + cat <<EOF 1>&2
  15120. +
  15121. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  15122. +*** create shared libraries on Solaris systems. Therefore, libtool
  15123. +*** is disabling shared libraries support. We urge you to upgrade GNU
  15124. +*** binutils to release 2.9.1 or newer. Another option is to modify
  15125. +*** your PATH or compiler configuration so that the native linker is
  15126. +*** used, and then restart.
  15127. +
  15128. +EOF
  15129. + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  15130. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15131. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15132. + else
  15133. + ld_shlibs=no
  15134. + fi
  15135. + ;;
  15136. +
  15137. + sunos4*)
  15138. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15139. + wlarc=
  15140. + hardcode_direct=yes
  15141. + hardcode_shlibpath_var=no
  15142. + ;;
  15143. +
  15144. + *)
  15145. + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  15146. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  15147. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  15148. + else
  15149. + ld_shlibs=no
  15150. + fi
  15151. + ;;
  15152. + esac
  15153. +
  15154. + if test "$ld_shlibs" = yes; then
  15155. + runpath_var=LD_RUN_PATH
  15156. + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  15157. + export_dynamic_flag_spec='${wl}--export-dynamic'
  15158. + case $host_os in
  15159. + cygwin* | mingw* | pw32*)
  15160. + # dlltool doesn't understand --whole-archive et. al.
  15161. + whole_archive_flag_spec=
  15162. + ;;
  15163. + *)
  15164. + # ancient GNU ld didn't support --whole-archive et. al.
  15165. + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  15166. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  15167. + else
  15168. + whole_archive_flag_spec=
  15169. + fi
  15170. + ;;
  15171. + esac
  15172. + fi
  15173. +else
  15174. + # PORTME fill in a description of your system's linker (not GNU ld)
  15175. + case $host_os in
  15176. + aix3*)
  15177. + allow_undefined_flag=unsupported
  15178. + always_export_symbols=yes
  15179. + 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'
  15180. + # Note: this linker hardcodes the directories in LIBPATH if there
  15181. + # are no directories specified by -L.
  15182. + hardcode_minus_L=yes
  15183. + if test "$GCC" = yes && test -z "$link_static_flag"; then
  15184. + # Neither direct hardcoding nor static linking is supported with a
  15185. + # broken collect2.
  15186. + hardcode_direct=unsupported
  15187. + fi
  15188. + ;;
  15189. +
  15190. + aix4* | aix5*)
  15191. + if test "$host_cpu" = ia64; then
  15192. + # On IA64, the linker does run time linking by default, so we don't
  15193. + # have to do anything special.
  15194. + aix_use_runtimelinking=no
  15195. + exp_sym_flag='-Bexport'
  15196. + no_entry_flag=""
  15197. + else
  15198. + aix_use_runtimelinking=no
  15199. +
  15200. + # Test if we are trying to use run time linking or normal
  15201. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  15202. + # need to do runtime linking.
  15203. + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  15204. + for ld_flag in $LDFLAGS; do
  15205. + case $ld_flag in
  15206. + *-brtl*)
  15207. + aix_use_runtimelinking=yes
  15208. + break
  15209. + ;;
  15210. + esac
  15211. + done
  15212. + esac
  15213. +
  15214. + exp_sym_flag='-bexport'
  15215. + no_entry_flag='-bnoentry'
  15216. + fi
  15217. +
  15218. + # When large executables or shared objects are built, AIX ld can
  15219. + # have problems creating the table of contents. If linking a library
  15220. + # or program results in "error TOC overflow" add -mminimal-toc to
  15221. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  15222. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  15223. +
  15224. + hardcode_direct=yes
  15225. + archive_cmds=''
  15226. + hardcode_libdir_separator=':'
  15227. + if test "$GCC" = yes; then
  15228. + case $host_os in aix4.[012]|aix4.[012].*)
  15229. + collect2name=`${CC} -print-prog-name=collect2`
  15230. + if test -f "$collect2name" && \
  15231. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  15232. + then
  15233. + # We have reworked collect2
  15234. + hardcode_direct=yes
  15235. + else
  15236. + # We have old collect2
  15237. + hardcode_direct=unsupported
  15238. + # It fails to find uninstalled libraries when the uninstalled
  15239. + # path is not listed in the libpath. Setting hardcode_minus_L
  15240. + # to unsupported forces relinking
  15241. + hardcode_minus_L=yes
  15242. + hardcode_libdir_flag_spec='-L$libdir'
  15243. + hardcode_libdir_separator=
  15244. + fi
  15245. + esac
  15246. +
  15247. + shared_flag='-shared'
  15248. + else
  15249. + # not using gcc
  15250. + if test "$host_cpu" = ia64; then
  15251. + shared_flag='${wl}-G'
  15252. + else
  15253. + if test "$aix_use_runtimelinking" = yes; then
  15254. + shared_flag='${wl}-G'
  15255. + else
  15256. + shared_flag='${wl}-bM:SRE'
  15257. + fi
  15258. + fi
  15259. + fi
  15260. +
  15261. + # It seems that -bexpall can do strange things, so it is better to
  15262. + # generate a list of symbols to export.
  15263. + always_export_symbols=yes
  15264. + if test "$aix_use_runtimelinking" = yes; then
  15265. + # Warning - without using the other runtime loading flags (-brtl),
  15266. + # -berok will link without error, but may produce a broken library.
  15267. + allow_undefined_flag='-berok'
  15268. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  15269. + 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"
  15270. + else
  15271. + if test "$host_cpu" = ia64; then
  15272. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  15273. + allow_undefined_flag="-z nodefs"
  15274. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  15275. + else
  15276. + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  15277. + # Warning - without using the other run time loading flags,
  15278. + # -berok will link without error, but may produce a broken library.
  15279. + allow_undefined_flag='${wl}-berok'
  15280. + # This is a bit strange, but is similar to how AIX traditionally builds
  15281. + # it's shared libraries.
  15282. + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
  15283. + fi
  15284. + fi
  15285. + ;;
  15286. +
  15287. + amigaos*)
  15288. + 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)'
  15289. + hardcode_libdir_flag_spec='-L$libdir'
  15290. + hardcode_minus_L=yes
  15291. + # see comment about different semantics on the GNU ld section
  15292. + ld_shlibs=no
  15293. + ;;
  15294. +
  15295. + cygwin* | mingw* | pw32*)
  15296. + # When not using gcc, we currently assume that we are using
  15297. + # Microsoft Visual C++.
  15298. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  15299. + # no search path for DLLs.
  15300. + hardcode_libdir_flag_spec=' '
  15301. + allow_undefined_flag=unsupported
  15302. + # Tell ltmain to make .lib files, not .a files.
  15303. + libext=lib
  15304. + # FIXME: Setting linknames here is a bad hack.
  15305. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  15306. + # The linker will automatically build a .lib file if we build a DLL.
  15307. + old_archive_from_new_cmds='true'
  15308. + # FIXME: Should let the user specify the lib program.
  15309. + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  15310. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  15311. + ;;
  15312. +
  15313. + darwin* | rhapsody*)
  15314. + case "$host_os" in
  15315. + rhapsody* | darwin1.[012])
  15316. + allow_undefined_flag='-undefined suppress'
  15317. + ;;
  15318. + *) # Darwin 1.3 on
  15319. + allow_undefined_flag='-flat_namespace -undefined suppress'
  15320. + ;;
  15321. + esac
  15322. + # FIXME: Relying on posixy $() will cause problems for
  15323. + # cross-compilation, but unfortunately the echo tests do not
  15324. + # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  15325. + # `"' quotes if we put them in here... so don't!
  15326. + archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
  15327. + # We need to add '_' to the symbols in $export_symbols first
  15328. + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  15329. + hardcode_direct=yes
  15330. + hardcode_shlibpath_var=no
  15331. + whole_archive_flag_spec='-all_load $convenience'
  15332. + ;;
  15333. +
  15334. + freebsd1*)
  15335. + ld_shlibs=no
  15336. + ;;
  15337. +
  15338. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  15339. + # support. Future versions do this automatically, but an explicit c++rt0.o
  15340. + # does not break anything, and helps significantly (at the cost of a little
  15341. + # extra space).
  15342. + freebsd2.2*)
  15343. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  15344. + hardcode_libdir_flag_spec='-R$libdir'
  15345. + hardcode_direct=yes
  15346. + hardcode_shlibpath_var=no
  15347. + ;;
  15348. +
  15349. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  15350. + freebsd2*)
  15351. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15352. + hardcode_direct=yes
  15353. + hardcode_minus_L=yes
  15354. + hardcode_shlibpath_var=no
  15355. + ;;
  15356. +
  15357. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  15358. + freebsd*)
  15359. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  15360. + hardcode_libdir_flag_spec='-R$libdir'
  15361. + hardcode_direct=yes
  15362. + hardcode_shlibpath_var=no
  15363. + ;;
  15364. +
  15365. + hpux9* | hpux10* | hpux11*)
  15366. + case $host_os in
  15367. + hpux9*) 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' ;;
  15368. + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  15369. + esac
  15370. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  15371. + hardcode_libdir_separator=:
  15372. + hardcode_direct=yes
  15373. + hardcode_minus_L=yes # Not in the search PATH, but as the default
  15374. + # location of the library.
  15375. + export_dynamic_flag_spec='${wl}-E'
  15376. + ;;
  15377. +
  15378. + irix5* | irix6* | nonstopux*)
  15379. + if test "$GCC" = yes; then
  15380. + 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'
  15381. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15382. + else
  15383. + 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'
  15384. + hardcode_libdir_flag_spec='-rpath $libdir'
  15385. + fi
  15386. + hardcode_libdir_separator=:
  15387. + link_all_deplibs=yes
  15388. + ;;
  15389. +
  15390. + netbsd*)
  15391. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15392. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  15393. + else
  15394. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  15395. + fi
  15396. + hardcode_libdir_flag_spec='-R$libdir'
  15397. + hardcode_direct=yes
  15398. + hardcode_shlibpath_var=no
  15399. + ;;
  15400. +
  15401. + newsos6)
  15402. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15403. + hardcode_direct=yes
  15404. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15405. + hardcode_libdir_separator=:
  15406. + hardcode_shlibpath_var=no
  15407. + ;;
  15408. +
  15409. + openbsd*)
  15410. + hardcode_direct=yes
  15411. + hardcode_shlibpath_var=no
  15412. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15413. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15414. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  15415. + export_dynamic_flag_spec='${wl}-E'
  15416. + else
  15417. + case "$host_os" in
  15418. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  15419. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  15420. + hardcode_libdir_flag_spec='-R$libdir'
  15421. + ;;
  15422. + *)
  15423. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  15424. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  15425. + ;;
  15426. + esac
  15427. + fi
  15428. + ;;
  15429. +
  15430. + os2*)
  15431. + hardcode_libdir_flag_spec='-L$libdir'
  15432. + hardcode_minus_L=yes
  15433. + allow_undefined_flag=unsupported
  15434. + 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'
  15435. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  15436. + ;;
  15437. +
  15438. + osf3*)
  15439. + if test "$GCC" = yes; then
  15440. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  15441. + 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'
  15442. + else
  15443. + allow_undefined_flag=' -expect_unresolved \*'
  15444. + 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'
  15445. + fi
  15446. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15447. + hardcode_libdir_separator=:
  15448. + ;;
  15449. +
  15450. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  15451. + if test "$GCC" = yes; then
  15452. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  15453. + 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'
  15454. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  15455. + else
  15456. + allow_undefined_flag=' -expect_unresolved \*'
  15457. + 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'
  15458. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  15459. + $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~$rm $lib.exp'
  15460. +
  15461. + #Both c and cxx compiler support -rpath directly
  15462. + hardcode_libdir_flag_spec='-rpath $libdir'
  15463. + fi
  15464. + hardcode_libdir_separator=:
  15465. + ;;
  15466. +
  15467. + sco3.2v5*)
  15468. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15469. + hardcode_shlibpath_var=no
  15470. + runpath_var=LD_RUN_PATH
  15471. + hardcode_runpath_var=yes
  15472. + export_dynamic_flag_spec='${wl}-Bexport'
  15473. + ;;
  15474. +
  15475. + solaris*)
  15476. + # gcc --version < 3.0 without binutils cannot create self contained
  15477. + # shared libraries reliably, requiring libgcc.a to resolve some of
  15478. + # the object symbols generated in some cases. Libraries that use
  15479. + # assert need libgcc.a to resolve __eprintf, for example. Linking
  15480. + # a copy of libgcc.a into every shared library to guarantee resolving
  15481. + # such symbols causes other problems: According to Tim Van Holder
  15482. + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
  15483. + # (to the application) exception stack for one thing.
  15484. + no_undefined_flag=' -z defs'
  15485. + if test "$GCC" = yes; then
  15486. + case `$CC --version 2>/dev/null` in
  15487. + [12].*)
  15488. + cat <<EOF 1>&2
  15489. +
  15490. +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  15491. +*** create self contained shared libraries on Solaris systems, without
  15492. +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  15493. +*** -no-undefined support, which will at least allow you to build shared
  15494. +*** libraries. However, you may find that when you link such libraries
  15495. +*** into an application without using GCC, you have to manually add
  15496. +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  15497. +*** upgrade to a newer version of GCC. Another option is to rebuild your
  15498. +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  15499. +
  15500. +EOF
  15501. + no_undefined_flag=
  15502. + ;;
  15503. + esac
  15504. + fi
  15505. + # $CC -shared without GNU ld will not create a library from C++
  15506. + # object files and a static libstdc++, better avoid it by now
  15507. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15508. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15509. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15510. + hardcode_libdir_flag_spec='-R$libdir'
  15511. + hardcode_shlibpath_var=no
  15512. + case $host_os in
  15513. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  15514. + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  15515. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  15516. + esac
  15517. + link_all_deplibs=yes
  15518. + ;;
  15519. +
  15520. + sunos4*)
  15521. + if test "x$host_vendor" = xsequent; then
  15522. + # Use $CC to link under sequent, because it throws in some extra .o
  15523. + # files that make .init and .fini sections work.
  15524. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  15525. + else
  15526. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  15527. + fi
  15528. + hardcode_libdir_flag_spec='-L$libdir'
  15529. + hardcode_direct=yes
  15530. + hardcode_minus_L=yes
  15531. + hardcode_shlibpath_var=no
  15532. + ;;
  15533. +
  15534. + sysv4)
  15535. + case $host_vendor in
  15536. + sni)
  15537. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15538. + hardcode_direct=yes # is this really true???
  15539. + ;;
  15540. + siemens)
  15541. + ## LD is ld it makes a PLAMLIB
  15542. + ## CC just makes a GrossModule.
  15543. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15544. + reload_cmds='$CC -r -o $output$reload_objs'
  15545. + hardcode_direct=no
  15546. + ;;
  15547. + motorola)
  15548. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15549. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  15550. + ;;
  15551. + esac
  15552. + runpath_var='LD_RUN_PATH'
  15553. + hardcode_shlibpath_var=no
  15554. + ;;
  15555. +
  15556. + sysv4.3*)
  15557. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15558. + hardcode_shlibpath_var=no
  15559. + export_dynamic_flag_spec='-Bexport'
  15560. + ;;
  15561. +
  15562. + sysv5*)
  15563. + no_undefined_flag=' -z text'
  15564. + # $CC -shared without GNU ld will not create a library from C++
  15565. + # object files and a static libstdc++, better avoid it by now
  15566. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15567. + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  15568. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  15569. + hardcode_libdir_flag_spec=
  15570. + hardcode_shlibpath_var=no
  15571. + runpath_var='LD_RUN_PATH'
  15572. + ;;
  15573. +
  15574. + uts4*)
  15575. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15576. + hardcode_libdir_flag_spec='-L$libdir'
  15577. + hardcode_shlibpath_var=no
  15578. + ;;
  15579. +
  15580. + dgux*)
  15581. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15582. + hardcode_libdir_flag_spec='-L$libdir'
  15583. + hardcode_shlibpath_var=no
  15584. + ;;
  15585. +
  15586. + sysv4*MP*)
  15587. + if test -d /usr/nec; then
  15588. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  15589. + hardcode_shlibpath_var=no
  15590. + runpath_var=LD_RUN_PATH
  15591. + hardcode_runpath_var=yes
  15592. + ld_shlibs=yes
  15593. + fi
  15594. + ;;
  15595. +
  15596. + sysv4.2uw2*)
  15597. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  15598. + hardcode_direct=yes
  15599. + hardcode_minus_L=no
  15600. + hardcode_shlibpath_var=no
  15601. + hardcode_runpath_var=yes
  15602. + runpath_var=LD_RUN_PATH
  15603. + ;;
  15604. +
  15605. + sysv5uw7* | unixware7*)
  15606. + no_undefined_flag='${wl}-z ${wl}text'
  15607. + if test "$GCC" = yes; then
  15608. + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15609. + else
  15610. + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  15611. + fi
  15612. + runpath_var='LD_RUN_PATH'
  15613. + hardcode_shlibpath_var=no
  15614. + ;;
  15615. +
  15616. + *)
  15617. + ld_shlibs=no
  15618. + ;;
  15619. + esac
  15620. +fi
  15621. +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  15622. +echo "${ECHO_T}$ld_shlibs" >&6
  15623. +test "$ld_shlibs" = no && can_build_shared=no
  15624. +
  15625. +# Check hardcoding attributes.
  15626. +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  15627. +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  15628. +hardcode_action=
  15629. +if test -n "$hardcode_libdir_flag_spec" || \
  15630. + test -n "$runpath_var"; then
  15631. +
  15632. + # We can hardcode non-existant directories.
  15633. + if test "$hardcode_direct" != no &&
  15634. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  15635. + # have to relink, otherwise we might link with an installed library
  15636. + # when we should be linking with a yet-to-be-installed one
  15637. + ## test "$hardcode_shlibpath_var" != no &&
  15638. + test "$hardcode_minus_L" != no; then
  15639. + # Linking always hardcodes the temporary library directory.
  15640. + hardcode_action=relink
  15641. + else
  15642. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  15643. + hardcode_action=immediate
  15644. + fi
  15645. +else
  15646. + # We cannot hardcode anything, or else we can only hardcode existing
  15647. + # directories.
  15648. + hardcode_action=unsupported
  15649. +fi
  15650. +echo "$as_me:$LINENO: result: $hardcode_action" >&5
  15651. +echo "${ECHO_T}$hardcode_action" >&6
  15652. +
  15653. +striplib=
  15654. +old_striplib=
  15655. +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  15656. +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  15657. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  15658. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  15659. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  15660. + echo "$as_me:$LINENO: result: yes" >&5
  15661. +echo "${ECHO_T}yes" >&6
  15662. +else
  15663. + echo "$as_me:$LINENO: result: no" >&5
  15664. +echo "${ECHO_T}no" >&6
  15665. +fi
  15666. +
  15667. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  15668. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  15669. +
  15670. +# PORTME Fill in your ld.so characteristics
  15671. +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  15672. +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  15673. +library_names_spec=
  15674. +libname_spec='lib$name'
  15675. +soname_spec=
  15676. +postinstall_cmds=
  15677. +postuninstall_cmds=
  15678. +finish_cmds=
  15679. +finish_eval=
  15680. +shlibpath_var=
  15681. +shlibpath_overrides_runpath=unknown
  15682. +version_type=none
  15683. +dynamic_linker="$host_os ld.so"
  15684. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  15685. +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  15686. +
  15687. +case $host_os in
  15688. +aix3*)
  15689. + version_type=linux
  15690. + library_names_spec='${libname}${release}.so$versuffix $libname.a'
  15691. + shlibpath_var=LIBPATH
  15692. +
  15693. + # AIX has no versioning support, so we append a major version to the name.
  15694. + soname_spec='${libname}${release}.so$major'
  15695. + ;;
  15696. +
  15697. +aix4* | aix5*)
  15698. + version_type=linux
  15699. + need_lib_prefix=no
  15700. + need_version=no
  15701. + hardcode_into_libs=yes
  15702. + if test "$host_cpu" = ia64; then
  15703. + # AIX 5 supports IA64
  15704. + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  15705. + shlibpath_var=LD_LIBRARY_PATH
  15706. + else
  15707. + # With GCC up to 2.95.x, collect2 would create an import file
  15708. + # for dependence libraries. The import file would start with
  15709. + # the line `#! .'. This would cause the generated library to
  15710. + # depend on `.', always an invalid library. This was fixed in
  15711. + # development snapshots of GCC prior to 3.0.
  15712. + case $host_os in
  15713. + aix4 | aix4.[01] | aix4.[01].*)
  15714. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  15715. + echo ' yes '
  15716. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  15717. + :
  15718. + else
  15719. + can_build_shared=no
  15720. + fi
  15721. + ;;
  15722. + esac
  15723. + # AIX (on Power*) has no versioning support, so currently we can
  15724. + # not hardcode correct soname into executable. Probably we can
  15725. + # add versioning support to collect2, so additional links can
  15726. + # be useful in future.
  15727. + if test "$aix_use_runtimelinking" = yes; then
  15728. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  15729. + # instead of lib<name>.a to let people know that these are not
  15730. + # typical AIX shared libraries.
  15731. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15732. + else
  15733. + # We preserve .a as extension for shared libraries through AIX4.2
  15734. + # and later when we are not doing run time linking.
  15735. + library_names_spec='${libname}${release}.a $libname.a'
  15736. + soname_spec='${libname}${release}.so$major'
  15737. + fi
  15738. + shlibpath_var=LIBPATH
  15739. + fi
  15740. + hardcode_into_libs=yes
  15741. + ;;
  15742. +
  15743. +amigaos*)
  15744. + library_names_spec='$libname.ixlibrary $libname.a'
  15745. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  15746. + 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'
  15747. + ;;
  15748. +
  15749. +beos*)
  15750. + library_names_spec='${libname}.so'
  15751. + dynamic_linker="$host_os ld.so"
  15752. + shlibpath_var=LIBRARY_PATH
  15753. + ;;
  15754. +
  15755. +bsdi4*)
  15756. + version_type=linux
  15757. + need_version=no
  15758. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15759. + soname_spec='${libname}${release}.so$major'
  15760. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  15761. + shlibpath_var=LD_LIBRARY_PATH
  15762. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  15763. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  15764. + export_dynamic_flag_spec=-rdynamic
  15765. + # the default ld.so.conf also contains /usr/contrib/lib and
  15766. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  15767. + # libtool to hard-code these into programs
  15768. + ;;
  15769. +
  15770. +cygwin* | mingw* | pw32*)
  15771. + version_type=windows
  15772. + need_version=no
  15773. + need_lib_prefix=no
  15774. + case $GCC,$host_os in
  15775. + yes,cygwin*)
  15776. + library_names_spec='$libname.dll.a'
  15777. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  15778. + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  15779. + dldir=$destdir/`dirname \$dlpath`~
  15780. + test -d \$dldir || mkdir -p \$dldir~
  15781. + $install_prog .libs/$dlname \$dldir/$dlname'
  15782. + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  15783. + dlpath=$dir/\$dldll~
  15784. + $rm \$dlpath'
  15785. + ;;
  15786. + yes,mingw*)
  15787. + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  15788. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  15789. + ;;
  15790. + yes,pw32*)
  15791. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
  15792. + ;;
  15793. + *)
  15794. + library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
  15795. + ;;
  15796. + esac
  15797. + dynamic_linker='Win32 ld.exe'
  15798. + # FIXME: first we should search . and the directory the executable is in
  15799. + shlibpath_var=PATH
  15800. + ;;
  15801. +
  15802. +darwin* | rhapsody*)
  15803. + dynamic_linker="$host_os dyld"
  15804. + version_type=darwin
  15805. + need_lib_prefix=no
  15806. + need_version=no
  15807. + # FIXME: Relying on posixy $() will cause problems for
  15808. + # cross-compilation, but unfortunately the echo tests do not
  15809. + # yet detect zsh echo's removal of \ escapes.
  15810. + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  15811. + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  15812. + shlibpath_overrides_runpath=yes
  15813. + shlibpath_var=DYLD_LIBRARY_PATH
  15814. + ;;
  15815. +
  15816. +freebsd1*)
  15817. + dynamic_linker=no
  15818. + ;;
  15819. +
  15820. +kfreebsd*-gnu*)
  15821. + version_type=linux
  15822. + need_lib_prefix=no
  15823. + need_version=no
  15824. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15825. + soname_spec='${libname}${release}.so$major'
  15826. + shlibpath_var=LD_LIBRARY_PATH
  15827. + shlibpath_overrides_runpath=no
  15828. + hardcode_into_libs=yes
  15829. + dynamic_linker='GNU/FreeBSD ld.so'
  15830. + ;;
  15831. +
  15832. +freebsd*)
  15833. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  15834. + version_type=freebsd-$objformat
  15835. + case $version_type in
  15836. + freebsd-elf*)
  15837. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  15838. + need_version=no
  15839. + need_lib_prefix=no
  15840. + ;;
  15841. + freebsd-*)
  15842. + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  15843. + need_version=yes
  15844. + ;;
  15845. + esac
  15846. + shlibpath_var=LD_LIBRARY_PATH
  15847. + case $host_os in
  15848. + freebsd2*)
  15849. + shlibpath_overrides_runpath=yes
  15850. + ;;
  15851. + *)
  15852. + shlibpath_overrides_runpath=no
  15853. + hardcode_into_libs=yes
  15854. + ;;
  15855. + esac
  15856. + ;;
  15857. +
  15858. +gnu*)
  15859. + version_type=linux
  15860. + need_lib_prefix=no
  15861. + need_version=no
  15862. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  15863. + soname_spec='${libname}${release}.so$major'
  15864. + shlibpath_var=LD_LIBRARY_PATH
  15865. + hardcode_into_libs=yes
  15866. + ;;
  15867. +
  15868. +hpux9* | hpux10* | hpux11*)
  15869. + # Give a soname corresponding to the major version so that dld.sl refuses to
  15870. + # link against other versions.
  15871. + dynamic_linker="$host_os dld.sl"
  15872. + version_type=sunos
  15873. + need_lib_prefix=no
  15874. + need_version=no
  15875. + shlibpath_var=SHLIB_PATH
  15876. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  15877. + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  15878. + soname_spec='${libname}${release}.sl$major'
  15879. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  15880. + postinstall_cmds='chmod 555 $lib'
  15881. + ;;
  15882. +
  15883. +irix5* | irix6* | nonstopux*)
  15884. + case $host_os in
  15885. + nonstopux*) version_type=nonstopux ;;
  15886. + *) version_type=irix ;;
  15887. + esac
  15888. + need_lib_prefix=no
  15889. + need_version=no
  15890. + soname_spec='${libname}${release}.so$major'
  15891. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  15892. + case $host_os in
  15893. + irix5* | nonstopux*)
  15894. + libsuff= shlibsuff=
  15895. + ;;
  15896. + *)
  15897. + case $LD in # libtool.m4 will add one of these switches to LD
  15898. + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  15899. + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  15900. + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  15901. + *) libsuff= shlibsuff= libmagic=never-match;;
  15902. + esac
  15903. + ;;
  15904. + esac
  15905. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  15906. + shlibpath_overrides_runpath=no
  15907. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  15908. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  15909. + ;;
  15910. +
  15911. +# No shared lib support for Linux oldld, aout, or coff.
  15912. +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  15913. + dynamic_linker=no
  15914. + ;;
  15915. +
  15916. +# This must be Linux ELF.
  15917. +linux-gnu*)
  15918. + version_type=linux
  15919. + need_lib_prefix=no
  15920. + need_version=no
  15921. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15922. + soname_spec='${libname}${release}.so$major'
  15923. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  15924. + shlibpath_var=LD_LIBRARY_PATH
  15925. + shlibpath_overrides_runpath=no
  15926. + # This implies no fast_install, which is unacceptable.
  15927. + # Some rework will be needed to allow for fast_install
  15928. + # before this can be enabled.
  15929. + hardcode_into_libs=yes
  15930. +
  15931. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  15932. + # powerpc, because MkLinux only supported shared libraries with the
  15933. + # GNU dynamic linker. Since this was broken with cross compilers,
  15934. + # most powerpc-linux boxes support dynamic linking these days and
  15935. + # people can always --disable-shared, the test was removed, and we
  15936. + # assume the GNU/Linux dynamic linker is in use.
  15937. + dynamic_linker='GNU/Linux ld.so'
  15938. + ;;
  15939. +
  15940. +netbsd*)
  15941. + version_type=sunos
  15942. + need_lib_prefix=no
  15943. + need_version=no
  15944. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  15945. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  15946. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15947. + dynamic_linker='NetBSD (a.out) ld.so'
  15948. + else
  15949. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  15950. + soname_spec='${libname}${release}.so$major'
  15951. + dynamic_linker='NetBSD ld.elf_so'
  15952. + fi
  15953. + shlibpath_var=LD_LIBRARY_PATH
  15954. + shlibpath_overrides_runpath=yes
  15955. + hardcode_into_libs=yes
  15956. + ;;
  15957. +
  15958. +newsos6)
  15959. + version_type=linux
  15960. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  15961. + shlibpath_var=LD_LIBRARY_PATH
  15962. + shlibpath_overrides_runpath=yes
  15963. + ;;
  15964. +
  15965. +openbsd*)
  15966. + version_type=sunos
  15967. + need_lib_prefix=no
  15968. + need_version=no
  15969. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  15970. + case "$host_os" in
  15971. + openbsd2.[89] | openbsd2.[89].*)
  15972. + shlibpath_overrides_runpath=no
  15973. + ;;
  15974. + *)
  15975. + shlibpath_overrides_runpath=yes
  15976. + ;;
  15977. + esac
  15978. + else
  15979. + shlibpath_overrides_runpath=yes
  15980. + fi
  15981. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  15982. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  15983. + shlibpath_var=LD_LIBRARY_PATH
  15984. + ;;
  15985. +
  15986. +os2*)
  15987. + libname_spec='$name'
  15988. + need_lib_prefix=no
  15989. + library_names_spec='$libname.dll $libname.a'
  15990. + dynamic_linker='OS/2 ld.exe'
  15991. + shlibpath_var=LIBPATH
  15992. + ;;
  15993. +
  15994. +osf3* | osf4* | osf5*)
  15995. + version_type=osf
  15996. + need_version=no
  15997. + need_lib_prefix=no
  15998. + soname_spec='${libname}${release}.so$major'
  15999. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  16000. + shlibpath_var=LD_LIBRARY_PATH
  16001. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  16002. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  16003. + hardcode_into_libs=yes
  16004. + ;;
  16005. +
  16006. +sco3.2v5*)
  16007. + version_type=osf
  16008. + soname_spec='${libname}${release}.so$major'
  16009. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  16010. + shlibpath_var=LD_LIBRARY_PATH
  16011. + ;;
  16012. +
  16013. +solaris*)
  16014. + version_type=linux
  16015. + need_lib_prefix=no
  16016. + need_version=no
  16017. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  16018. + soname_spec='${libname}${release}.so$major'
  16019. + shlibpath_var=LD_LIBRARY_PATH
  16020. + shlibpath_overrides_runpath=yes
  16021. + hardcode_into_libs=yes
  16022. + # ldd complains unless libraries are executable
  16023. + postinstall_cmds='chmod +x $lib'
  16024. + ;;
  16025. +
  16026. +sunos4*)
  16027. + version_type=sunos
  16028. + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  16029. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  16030. + shlibpath_var=LD_LIBRARY_PATH
  16031. + shlibpath_overrides_runpath=yes
  16032. + if test "$with_gnu_ld" = yes; then
  16033. + need_lib_prefix=no
  16034. + fi
  16035. + need_version=yes
  16036. + ;;
  16037. +
  16038. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  16039. + version_type=linux
  16040. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  16041. + soname_spec='${libname}${release}.so$major'
  16042. + shlibpath_var=LD_LIBRARY_PATH
  16043. + case $host_vendor in
  16044. + sni)
  16045. + shlibpath_overrides_runpath=no
  16046. + need_lib_prefix=no
  16047. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  16048. + runpath_var=LD_RUN_PATH
  16049. + ;;
  16050. + siemens)
  16051. + need_lib_prefix=no
  16052. + ;;
  16053. + motorola)
  16054. + need_lib_prefix=no
  16055. + need_version=no
  16056. + shlibpath_overrides_runpath=no
  16057. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  16058. + ;;
  16059. + esac
  16060. + ;;
  16061. +
  16062. +uts4*)
  16063. + version_type=linux
  16064. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  16065. + soname_spec='${libname}${release}.so$major'
  16066. + shlibpath_var=LD_LIBRARY_PATH
  16067. + ;;
  16068. +
  16069. +dgux*)
  16070. + version_type=linux
  16071. + need_lib_prefix=no
  16072. + need_version=no
  16073. + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  16074. + soname_spec='${libname}${release}.so$major'
  16075. + shlibpath_var=LD_LIBRARY_PATH
  16076. + ;;
  16077. +
  16078. +sysv4*MP*)
  16079. + if test -d /usr/nec ;then
  16080. + version_type=linux
  16081. + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  16082. + soname_spec='$libname.so.$major'
  16083. + shlibpath_var=LD_LIBRARY_PATH
  16084. + fi
  16085. + ;;
  16086. +
  16087. +*)
  16088. + dynamic_linker=no
  16089. + ;;
  16090. +esac
  16091. +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  16092. +echo "${ECHO_T}$dynamic_linker" >&6
  16093. +test "$dynamic_linker" = no && can_build_shared=no
  16094. +
  16095. +# Report the final consequences.
  16096. +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  16097. +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  16098. +echo "$as_me:$LINENO: result: $can_build_shared" >&5
  16099. +echo "${ECHO_T}$can_build_shared" >&6
  16100. +
  16101. +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  16102. +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  16103. +test "$can_build_shared" = "no" && enable_shared=no
  16104. +
  16105. +# On AIX, shared libraries and static libraries use the same namespace, and
  16106. +# are all built from PIC.
  16107. +case "$host_os" in
  16108. +aix3*)
  16109. + test "$enable_shared" = yes && enable_static=no
  16110. + if test -n "$RANLIB"; then
  16111. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  16112. + postinstall_cmds='$RANLIB $lib'
  16113. + fi
  16114. + ;;
  16115. +
  16116. +aix4*)
  16117. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  16118. + test "$enable_shared" = yes && enable_static=no
  16119. + fi
  16120. + ;;
  16121. +esac
  16122. +echo "$as_me:$LINENO: result: $enable_shared" >&5
  16123. +echo "${ECHO_T}$enable_shared" >&6
  16124. +
  16125. +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  16126. +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  16127. +# Make sure either enable_shared or enable_static is yes.
  16128. +test "$enable_shared" = yes || enable_static=yes
  16129. +echo "$as_me:$LINENO: result: $enable_static" >&5
  16130. +echo "${ECHO_T}$enable_static" >&6
  16131. +
  16132. +if test "$hardcode_action" = relink; then
  16133. + # Fast installation is not supported
  16134. + enable_fast_install=no
  16135. +elif test "$shlibpath_overrides_runpath" = yes ||
  16136. + test "$enable_shared" = no; then
  16137. + # Fast installation is not necessary
  16138. + enable_fast_install=needless
  16139. +fi
  16140. +
  16141. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  16142. +if test "$GCC" = yes; then
  16143. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  16144. +fi
  16145. +
  16146. +if test "x$enable_dlopen" != xyes; then
  16147. + enable_dlopen=unknown
  16148. + enable_dlopen_self=unknown
  16149. + enable_dlopen_self_static=unknown
  16150. +else
  16151. + lt_cv_dlopen=no
  16152. + lt_cv_dlopen_libs=
  16153. +
  16154. + case $host_os in
  16155. + beos*)
  16156. + lt_cv_dlopen="load_add_on"
  16157. + lt_cv_dlopen_libs=
  16158. + lt_cv_dlopen_self=yes
  16159. + ;;
  16160. +
  16161. + cygwin* | mingw* | pw32*)
  16162. + lt_cv_dlopen="LoadLibrary"
  16163. + lt_cv_dlopen_libs=
  16164. + ;;
  16165. +
  16166. + *)
  16167. + echo "$as_me:$LINENO: checking for shl_load" >&5
  16168. +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  16169. +if test "${ac_cv_func_shl_load+set}" = set; then
  16170. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16171. +else
  16172. + cat >conftest.$ac_ext <<_ACEOF
  16173. +/* confdefs.h. */
  16174. +_ACEOF
  16175. +cat confdefs.h >>conftest.$ac_ext
  16176. +cat >>conftest.$ac_ext <<_ACEOF
  16177. +/* end confdefs.h. */
  16178. +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  16179. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16180. +#define shl_load innocuous_shl_load
  16181. +
  16182. +/* System header to define __stub macros and hopefully few prototypes,
  16183. + which can conflict with char shl_load (); below.
  16184. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16185. + <limits.h> exists even on freestanding compilers. */
  16186. +
  16187. +#ifdef __STDC__
  16188. +# include <limits.h>
  16189. +#else
  16190. +# include <assert.h>
  16191. +#endif
  16192. +
  16193. +#undef shl_load
  16194. +
  16195. +/* Override any gcc2 internal prototype to avoid an error. */
  16196. +#ifdef __cplusplus
  16197. +extern "C"
  16198. +{
  16199. +#endif
  16200. +/* We use char because int might match the return type of a gcc2
  16201. + builtin and then its argument prototype would still apply. */
  16202. +char shl_load ();
  16203. +/* The GNU C library defines this for functions which it implements
  16204. + to always fail with ENOSYS. Some functions are actually named
  16205. + something starting with __ and the normal name is an alias. */
  16206. +#if defined (__stub_shl_load) || defined (__stub___shl_load)
  16207. +choke me
  16208. +#else
  16209. +char (*f) () = shl_load;
  16210. +#endif
  16211. +#ifdef __cplusplus
  16212. +}
  16213. +#endif
  16214. +
  16215. +int
  16216. +main ()
  16217. +{
  16218. +return f != shl_load;
  16219. + ;
  16220. + return 0;
  16221. +}
  16222. +_ACEOF
  16223. +rm -f conftest.$ac_objext conftest$ac_exeext
  16224. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16225. + (eval $ac_link) 2>conftest.er1
  16226. + ac_status=$?
  16227. + grep -v '^ *+' conftest.er1 >conftest.err
  16228. + rm -f conftest.er1
  16229. + cat conftest.err >&5
  16230. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16231. + (exit $ac_status); } &&
  16232. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16233. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16234. + (eval $ac_try) 2>&5
  16235. + ac_status=$?
  16236. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16237. + (exit $ac_status); }; } &&
  16238. + { ac_try='test -s conftest$ac_exeext'
  16239. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16240. + (eval $ac_try) 2>&5
  16241. + ac_status=$?
  16242. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16243. + (exit $ac_status); }; }; then
  16244. + ac_cv_func_shl_load=yes
  16245. +else
  16246. + echo "$as_me: failed program was:" >&5
  16247. +sed 's/^/| /' conftest.$ac_ext >&5
  16248. +
  16249. +ac_cv_func_shl_load=no
  16250. +fi
  16251. +rm -f conftest.err conftest.$ac_objext \
  16252. + conftest$ac_exeext conftest.$ac_ext
  16253. +fi
  16254. +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  16255. +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  16256. +if test $ac_cv_func_shl_load = yes; then
  16257. + lt_cv_dlopen="shl_load"
  16258. +else
  16259. + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  16260. +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  16261. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  16262. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16263. +else
  16264. + ac_check_lib_save_LIBS=$LIBS
  16265. +LIBS="-ldld $LIBS"
  16266. +cat >conftest.$ac_ext <<_ACEOF
  16267. +/* confdefs.h. */
  16268. +_ACEOF
  16269. +cat confdefs.h >>conftest.$ac_ext
  16270. +cat >>conftest.$ac_ext <<_ACEOF
  16271. +/* end confdefs.h. */
  16272. +
  16273. +/* Override any gcc2 internal prototype to avoid an error. */
  16274. +#ifdef __cplusplus
  16275. +extern "C"
  16276. +#endif
  16277. +/* We use char because int might match the return type of a gcc2
  16278. + builtin and then its argument prototype would still apply. */
  16279. +char shl_load ();
  16280. +int
  16281. +main ()
  16282. +{
  16283. +shl_load ();
  16284. + ;
  16285. + return 0;
  16286. +}
  16287. +_ACEOF
  16288. +rm -f conftest.$ac_objext conftest$ac_exeext
  16289. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16290. + (eval $ac_link) 2>conftest.er1
  16291. + ac_status=$?
  16292. + grep -v '^ *+' conftest.er1 >conftest.err
  16293. + rm -f conftest.er1
  16294. + cat conftest.err >&5
  16295. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16296. + (exit $ac_status); } &&
  16297. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16298. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16299. + (eval $ac_try) 2>&5
  16300. + ac_status=$?
  16301. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16302. + (exit $ac_status); }; } &&
  16303. + { ac_try='test -s conftest$ac_exeext'
  16304. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16305. + (eval $ac_try) 2>&5
  16306. + ac_status=$?
  16307. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16308. + (exit $ac_status); }; }; then
  16309. + ac_cv_lib_dld_shl_load=yes
  16310. +else
  16311. + echo "$as_me: failed program was:" >&5
  16312. +sed 's/^/| /' conftest.$ac_ext >&5
  16313. +
  16314. +ac_cv_lib_dld_shl_load=no
  16315. +fi
  16316. +rm -f conftest.err conftest.$ac_objext \
  16317. + conftest$ac_exeext conftest.$ac_ext
  16318. +LIBS=$ac_check_lib_save_LIBS
  16319. +fi
  16320. +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  16321. +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  16322. +if test $ac_cv_lib_dld_shl_load = yes; then
  16323. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  16324. +else
  16325. + echo "$as_me:$LINENO: checking for dlopen" >&5
  16326. +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  16327. +if test "${ac_cv_func_dlopen+set}" = set; then
  16328. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16329. +else
  16330. + cat >conftest.$ac_ext <<_ACEOF
  16331. +/* confdefs.h. */
  16332. +_ACEOF
  16333. +cat confdefs.h >>conftest.$ac_ext
  16334. +cat >>conftest.$ac_ext <<_ACEOF
  16335. +/* end confdefs.h. */
  16336. +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  16337. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  16338. +#define dlopen innocuous_dlopen
  16339. +
  16340. +/* System header to define __stub macros and hopefully few prototypes,
  16341. + which can conflict with char dlopen (); below.
  16342. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  16343. + <limits.h> exists even on freestanding compilers. */
  16344. +
  16345. +#ifdef __STDC__
  16346. +# include <limits.h>
  16347. +#else
  16348. +# include <assert.h>
  16349. +#endif
  16350. +
  16351. +#undef dlopen
  16352. +
  16353. +/* Override any gcc2 internal prototype to avoid an error. */
  16354. +#ifdef __cplusplus
  16355. +extern "C"
  16356. +{
  16357. +#endif
  16358. +/* We use char because int might match the return type of a gcc2
  16359. + builtin and then its argument prototype would still apply. */
  16360. +char dlopen ();
  16361. +/* The GNU C library defines this for functions which it implements
  16362. + to always fail with ENOSYS. Some functions are actually named
  16363. + something starting with __ and the normal name is an alias. */
  16364. +#if defined (__stub_dlopen) || defined (__stub___dlopen)
  16365. +choke me
  16366. +#else
  16367. +char (*f) () = dlopen;
  16368. +#endif
  16369. +#ifdef __cplusplus
  16370. +}
  16371. +#endif
  16372. +
  16373. +int
  16374. +main ()
  16375. +{
  16376. +return f != dlopen;
  16377. + ;
  16378. + return 0;
  16379. +}
  16380. +_ACEOF
  16381. +rm -f conftest.$ac_objext conftest$ac_exeext
  16382. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16383. + (eval $ac_link) 2>conftest.er1
  16384. + ac_status=$?
  16385. + grep -v '^ *+' conftest.er1 >conftest.err
  16386. + rm -f conftest.er1
  16387. + cat conftest.err >&5
  16388. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16389. + (exit $ac_status); } &&
  16390. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16391. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16392. + (eval $ac_try) 2>&5
  16393. + ac_status=$?
  16394. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16395. + (exit $ac_status); }; } &&
  16396. + { ac_try='test -s conftest$ac_exeext'
  16397. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16398. + (eval $ac_try) 2>&5
  16399. + ac_status=$?
  16400. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16401. + (exit $ac_status); }; }; then
  16402. + ac_cv_func_dlopen=yes
  16403. +else
  16404. + echo "$as_me: failed program was:" >&5
  16405. +sed 's/^/| /' conftest.$ac_ext >&5
  16406. +
  16407. +ac_cv_func_dlopen=no
  16408. +fi
  16409. +rm -f conftest.err conftest.$ac_objext \
  16410. + conftest$ac_exeext conftest.$ac_ext
  16411. +fi
  16412. +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  16413. +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  16414. +if test $ac_cv_func_dlopen = yes; then
  16415. + lt_cv_dlopen="dlopen"
  16416. +else
  16417. + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  16418. +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  16419. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  16420. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16421. +else
  16422. + ac_check_lib_save_LIBS=$LIBS
  16423. +LIBS="-ldl $LIBS"
  16424. +cat >conftest.$ac_ext <<_ACEOF
  16425. +/* confdefs.h. */
  16426. +_ACEOF
  16427. +cat confdefs.h >>conftest.$ac_ext
  16428. +cat >>conftest.$ac_ext <<_ACEOF
  16429. +/* end confdefs.h. */
  16430. +
  16431. +/* Override any gcc2 internal prototype to avoid an error. */
  16432. +#ifdef __cplusplus
  16433. +extern "C"
  16434. +#endif
  16435. +/* We use char because int might match the return type of a gcc2
  16436. + builtin and then its argument prototype would still apply. */
  16437. +char dlopen ();
  16438. +int
  16439. +main ()
  16440. +{
  16441. +dlopen ();
  16442. + ;
  16443. + return 0;
  16444. +}
  16445. +_ACEOF
  16446. +rm -f conftest.$ac_objext conftest$ac_exeext
  16447. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16448. + (eval $ac_link) 2>conftest.er1
  16449. + ac_status=$?
  16450. + grep -v '^ *+' conftest.er1 >conftest.err
  16451. + rm -f conftest.er1
  16452. + cat conftest.err >&5
  16453. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16454. + (exit $ac_status); } &&
  16455. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16456. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16457. + (eval $ac_try) 2>&5
  16458. + ac_status=$?
  16459. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16460. + (exit $ac_status); }; } &&
  16461. + { ac_try='test -s conftest$ac_exeext'
  16462. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16463. + (eval $ac_try) 2>&5
  16464. + ac_status=$?
  16465. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16466. + (exit $ac_status); }; }; then
  16467. + ac_cv_lib_dl_dlopen=yes
  16468. +else
  16469. + echo "$as_me: failed program was:" >&5
  16470. +sed 's/^/| /' conftest.$ac_ext >&5
  16471. +
  16472. +ac_cv_lib_dl_dlopen=no
  16473. +fi
  16474. +rm -f conftest.err conftest.$ac_objext \
  16475. + conftest$ac_exeext conftest.$ac_ext
  16476. +LIBS=$ac_check_lib_save_LIBS
  16477. +fi
  16478. +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  16479. +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  16480. +if test $ac_cv_lib_dl_dlopen = yes; then
  16481. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  16482. +else
  16483. + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  16484. +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  16485. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  16486. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16487. +else
  16488. + ac_check_lib_save_LIBS=$LIBS
  16489. +LIBS="-lsvld $LIBS"
  16490. +cat >conftest.$ac_ext <<_ACEOF
  16491. +/* confdefs.h. */
  16492. +_ACEOF
  16493. +cat confdefs.h >>conftest.$ac_ext
  16494. +cat >>conftest.$ac_ext <<_ACEOF
  16495. +/* end confdefs.h. */
  16496. +
  16497. +/* Override any gcc2 internal prototype to avoid an error. */
  16498. +#ifdef __cplusplus
  16499. +extern "C"
  16500. +#endif
  16501. +/* We use char because int might match the return type of a gcc2
  16502. + builtin and then its argument prototype would still apply. */
  16503. +char dlopen ();
  16504. +int
  16505. +main ()
  16506. +{
  16507. +dlopen ();
  16508. + ;
  16509. + return 0;
  16510. +}
  16511. +_ACEOF
  16512. +rm -f conftest.$ac_objext conftest$ac_exeext
  16513. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16514. + (eval $ac_link) 2>conftest.er1
  16515. + ac_status=$?
  16516. + grep -v '^ *+' conftest.er1 >conftest.err
  16517. + rm -f conftest.er1
  16518. + cat conftest.err >&5
  16519. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16520. + (exit $ac_status); } &&
  16521. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16522. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16523. + (eval $ac_try) 2>&5
  16524. + ac_status=$?
  16525. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16526. + (exit $ac_status); }; } &&
  16527. + { ac_try='test -s conftest$ac_exeext'
  16528. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16529. + (eval $ac_try) 2>&5
  16530. + ac_status=$?
  16531. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16532. + (exit $ac_status); }; }; then
  16533. + ac_cv_lib_svld_dlopen=yes
  16534. +else
  16535. + echo "$as_me: failed program was:" >&5
  16536. +sed 's/^/| /' conftest.$ac_ext >&5
  16537. +
  16538. +ac_cv_lib_svld_dlopen=no
  16539. +fi
  16540. +rm -f conftest.err conftest.$ac_objext \
  16541. + conftest$ac_exeext conftest.$ac_ext
  16542. +LIBS=$ac_check_lib_save_LIBS
  16543. +fi
  16544. +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  16545. +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  16546. +if test $ac_cv_lib_svld_dlopen = yes; then
  16547. + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  16548. +else
  16549. + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  16550. +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  16551. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  16552. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16553. +else
  16554. + ac_check_lib_save_LIBS=$LIBS
  16555. +LIBS="-ldld $LIBS"
  16556. +cat >conftest.$ac_ext <<_ACEOF
  16557. +/* confdefs.h. */
  16558. +_ACEOF
  16559. +cat confdefs.h >>conftest.$ac_ext
  16560. +cat >>conftest.$ac_ext <<_ACEOF
  16561. +/* end confdefs.h. */
  16562. +
  16563. +/* Override any gcc2 internal prototype to avoid an error. */
  16564. +#ifdef __cplusplus
  16565. +extern "C"
  16566. +#endif
  16567. +/* We use char because int might match the return type of a gcc2
  16568. + builtin and then its argument prototype would still apply. */
  16569. +char dld_link ();
  16570. +int
  16571. +main ()
  16572. +{
  16573. +dld_link ();
  16574. + ;
  16575. + return 0;
  16576. +}
  16577. +_ACEOF
  16578. +rm -f conftest.$ac_objext conftest$ac_exeext
  16579. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16580. + (eval $ac_link) 2>conftest.er1
  16581. + ac_status=$?
  16582. + grep -v '^ *+' conftest.er1 >conftest.err
  16583. + rm -f conftest.er1
  16584. + cat conftest.err >&5
  16585. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16586. + (exit $ac_status); } &&
  16587. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  16588. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16589. + (eval $ac_try) 2>&5
  16590. + ac_status=$?
  16591. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16592. + (exit $ac_status); }; } &&
  16593. + { ac_try='test -s conftest$ac_exeext'
  16594. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  16595. + (eval $ac_try) 2>&5
  16596. + ac_status=$?
  16597. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16598. + (exit $ac_status); }; }; then
  16599. + ac_cv_lib_dld_dld_link=yes
  16600. +else
  16601. + echo "$as_me: failed program was:" >&5
  16602. +sed 's/^/| /' conftest.$ac_ext >&5
  16603. +
  16604. +ac_cv_lib_dld_dld_link=no
  16605. +fi
  16606. +rm -f conftest.err conftest.$ac_objext \
  16607. + conftest$ac_exeext conftest.$ac_ext
  16608. +LIBS=$ac_check_lib_save_LIBS
  16609. +fi
  16610. +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  16611. +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  16612. +if test $ac_cv_lib_dld_dld_link = yes; then
  16613. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  16614. +fi
  16615. +
  16616. +
  16617. +fi
  16618. +
  16619. +
  16620. +fi
  16621. +
  16622. +
  16623. +fi
  16624. +
  16625. +
  16626. +fi
  16627. +
  16628. +
  16629. +fi
  16630. +
  16631. + ;;
  16632. + esac
  16633. +
  16634. + if test "x$lt_cv_dlopen" != xno; then
  16635. + enable_dlopen=yes
  16636. + else
  16637. + enable_dlopen=no
  16638. + fi
  16639. +
  16640. + case $lt_cv_dlopen in
  16641. + dlopen)
  16642. + save_CPPFLAGS="$CPPFLAGS"
  16643. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  16644. +
  16645. + save_LDFLAGS="$LDFLAGS"
  16646. + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  16647. +
  16648. + save_LIBS="$LIBS"
  16649. + LIBS="$lt_cv_dlopen_libs $LIBS"
  16650. +
  16651. + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  16652. +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  16653. +if test "${lt_cv_dlopen_self+set}" = set; then
  16654. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16655. +else
  16656. + if test "$cross_compiling" = yes; then :
  16657. + lt_cv_dlopen_self=cross
  16658. +else
  16659. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16660. + lt_status=$lt_dlunknown
  16661. + cat > conftest.$ac_ext <<EOF
  16662. +#line 7611 "configure"
  16663. +#include "confdefs.h"
  16664. +
  16665. +#if HAVE_DLFCN_H
  16666. +#include <dlfcn.h>
  16667. +#endif
  16668. +
  16669. +#include <stdio.h>
  16670. +
  16671. +#ifdef RTLD_GLOBAL
  16672. +# define LT_DLGLOBAL RTLD_GLOBAL
  16673. +#else
  16674. +# ifdef DL_GLOBAL
  16675. +# define LT_DLGLOBAL DL_GLOBAL
  16676. +# else
  16677. +# define LT_DLGLOBAL 0
  16678. +# endif
  16679. +#endif
  16680. +
  16681. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16682. + find out it does not work in some platform. */
  16683. +#ifndef LT_DLLAZY_OR_NOW
  16684. +# ifdef RTLD_LAZY
  16685. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  16686. +# else
  16687. +# ifdef DL_LAZY
  16688. +# define LT_DLLAZY_OR_NOW DL_LAZY
  16689. +# else
  16690. +# ifdef RTLD_NOW
  16691. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  16692. +# else
  16693. +# ifdef DL_NOW
  16694. +# define LT_DLLAZY_OR_NOW DL_NOW
  16695. +# else
  16696. +# define LT_DLLAZY_OR_NOW 0
  16697. +# endif
  16698. +# endif
  16699. +# endif
  16700. +# endif
  16701. +#endif
  16702. +
  16703. +#ifdef __cplusplus
  16704. +extern "C" void exit (int);
  16705. +#endif
  16706. +
  16707. +void fnord() { int i=42;}
  16708. +int main ()
  16709. +{
  16710. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16711. + int status = $lt_dlunknown;
  16712. +
  16713. + if (self)
  16714. + {
  16715. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16716. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16717. + /* dlclose (self); */
  16718. + }
  16719. +
  16720. + exit (status);
  16721. +}
  16722. +EOF
  16723. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16724. + (eval $ac_link) 2>&5
  16725. + ac_status=$?
  16726. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16727. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16728. + (./conftest; exit; ) 2>/dev/null
  16729. + lt_status=$?
  16730. + case x$lt_status in
  16731. + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  16732. + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  16733. + x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  16734. + esac
  16735. + else :
  16736. + # compilation failed
  16737. + lt_cv_dlopen_self=no
  16738. + fi
  16739. +fi
  16740. +rm -fr conftest*
  16741. +
  16742. +
  16743. +fi
  16744. +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  16745. +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  16746. +
  16747. + if test "x$lt_cv_dlopen_self" = xyes; then
  16748. + LDFLAGS="$LDFLAGS $link_static_flag"
  16749. + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  16750. +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  16751. +if test "${lt_cv_dlopen_self_static+set}" = set; then
  16752. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16753. +else
  16754. + if test "$cross_compiling" = yes; then :
  16755. + lt_cv_dlopen_self_static=cross
  16756. +else
  16757. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  16758. + lt_status=$lt_dlunknown
  16759. + cat > conftest.$ac_ext <<EOF
  16760. +#line 7709 "configure"
  16761. +#include "confdefs.h"
  16762. +
  16763. +#if HAVE_DLFCN_H
  16764. +#include <dlfcn.h>
  16765. +#endif
  16766. +
  16767. +#include <stdio.h>
  16768. +
  16769. +#ifdef RTLD_GLOBAL
  16770. +# define LT_DLGLOBAL RTLD_GLOBAL
  16771. +#else
  16772. +# ifdef DL_GLOBAL
  16773. +# define LT_DLGLOBAL DL_GLOBAL
  16774. +# else
  16775. +# define LT_DLGLOBAL 0
  16776. +# endif
  16777. +#endif
  16778. +
  16779. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  16780. + find out it does not work in some platform. */
  16781. +#ifndef LT_DLLAZY_OR_NOW
  16782. +# ifdef RTLD_LAZY
  16783. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  16784. +# else
  16785. +# ifdef DL_LAZY
  16786. +# define LT_DLLAZY_OR_NOW DL_LAZY
  16787. +# else
  16788. +# ifdef RTLD_NOW
  16789. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  16790. +# else
  16791. +# ifdef DL_NOW
  16792. +# define LT_DLLAZY_OR_NOW DL_NOW
  16793. +# else
  16794. +# define LT_DLLAZY_OR_NOW 0
  16795. +# endif
  16796. +# endif
  16797. +# endif
  16798. +# endif
  16799. +#endif
  16800. +
  16801. +#ifdef __cplusplus
  16802. +extern "C" void exit (int);
  16803. +#endif
  16804. +
  16805. +void fnord() { int i=42;}
  16806. +int main ()
  16807. +{
  16808. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  16809. + int status = $lt_dlunknown;
  16810. +
  16811. + if (self)
  16812. + {
  16813. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  16814. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  16815. + /* dlclose (self); */
  16816. + }
  16817. +
  16818. + exit (status);
  16819. +}
  16820. +EOF
  16821. + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  16822. + (eval $ac_link) 2>&5
  16823. + ac_status=$?
  16824. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16825. + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  16826. + (./conftest; exit; ) 2>/dev/null
  16827. + lt_status=$?
  16828. + case x$lt_status in
  16829. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  16830. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  16831. + x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  16832. + esac
  16833. + else :
  16834. + # compilation failed
  16835. + lt_cv_dlopen_self_static=no
  16836. + fi
  16837. +fi
  16838. +rm -fr conftest*
  16839. +
  16840. +
  16841. +fi
  16842. +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  16843. +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  16844. + fi
  16845. +
  16846. + CPPFLAGS="$save_CPPFLAGS"
  16847. + LDFLAGS="$save_LDFLAGS"
  16848. + LIBS="$save_LIBS"
  16849. + ;;
  16850. + esac
  16851. +
  16852. + case $lt_cv_dlopen_self in
  16853. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  16854. + *) enable_dlopen_self=unknown ;;
  16855. + esac
  16856. +
  16857. + case $lt_cv_dlopen_self_static in
  16858. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  16859. + *) enable_dlopen_self_static=unknown ;;
  16860. + esac
  16861. +fi
  16862. +
  16863. +
  16864. +if test "$enable_shared" = yes && test "$GCC" = yes; then
  16865. + case $archive_cmds in
  16866. + *'~'*)
  16867. + # FIXME: we may have to deal with multi-command sequences.
  16868. + ;;
  16869. + '$CC '*)
  16870. + # Test whether the compiler implicitly links with -lc since on some
  16871. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  16872. + # to ld, don't add -lc before -lgcc.
  16873. + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  16874. +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  16875. + if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
  16876. + echo $ECHO_N "(cached) $ECHO_C" >&6
  16877. +else
  16878. + $rm conftest*
  16879. + echo 'static int dummy;' > conftest.$ac_ext
  16880. +
  16881. + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  16882. + (eval $ac_compile) 2>&5
  16883. + ac_status=$?
  16884. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16885. + (exit $ac_status); }; then
  16886. + soname=conftest
  16887. + lib=conftest
  16888. + libobjs=conftest.$ac_objext
  16889. + deplibs=
  16890. + wl=$lt_cv_prog_cc_wl
  16891. + compiler_flags=-v
  16892. + linker_flags=-v
  16893. + verstring=
  16894. + output_objdir=.
  16895. + libname=conftest
  16896. + save_allow_undefined_flag=$allow_undefined_flag
  16897. + allow_undefined_flag=
  16898. + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  16899. + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  16900. + ac_status=$?
  16901. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  16902. + (exit $ac_status); }
  16903. + then
  16904. + lt_cv_archive_cmds_need_lc=no
  16905. + else
  16906. + lt_cv_archive_cmds_need_lc=yes
  16907. + fi
  16908. + allow_undefined_flag=$save_allow_undefined_flag
  16909. + else
  16910. + cat conftest.err 1>&5
  16911. + fi
  16912. +fi
  16913. +
  16914. + echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
  16915. +echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
  16916. + ;;
  16917. + esac
  16918. +fi
  16919. +need_lc=${lt_cv_archive_cmds_need_lc-yes}
  16920. +
  16921. +# The second clause should only fire when bootstrapping the
  16922. +# libtool distribution, otherwise you forgot to ship ltmain.sh
  16923. +# with your package, and you will get complaints that there are
  16924. +# no rules to generate ltmain.sh.
  16925. +if test -f "$ltmain"; then
  16926. + :
  16927. +else
  16928. + # If there is no Makefile yet, we rely on a make rule to execute
  16929. + # `config.status --recheck' to rerun these tests and create the
  16930. + # libtool script then.
  16931. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  16932. + if test -f "$ltmain_in"; then
  16933. + test -f Makefile && make "$ltmain"
  16934. + fi
  16935. +fi
  16936. +
  16937. +if test -f "$ltmain"; then
  16938. + trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  16939. + $rm -f "${ofile}T"
  16940. +
  16941. + echo creating $ofile
  16942. +
  16943. + # Now quote all the things that may contain metacharacters while being
  16944. + # careful not to overquote the AC_SUBSTed values. We take copies of the
  16945. + # variables and quote the copies for generation of the libtool script.
  16946. + for var in echo old_CC old_CFLAGS SED \
  16947. + AR AR_FLAGS CC LD LN_S NM SHELL STRIP \
  16948. + reload_flag reload_cmds wl \
  16949. + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  16950. + thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  16951. + library_names_spec soname_spec \
  16952. + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  16953. + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  16954. + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  16955. + old_striplib striplib file_magic_cmd export_symbols_cmds \
  16956. + deplibs_check_method allow_undefined_flag no_undefined_flag \
  16957. + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  16958. + global_symbol_to_c_name_address \
  16959. + hardcode_libdir_flag_spec hardcode_libdir_separator \
  16960. + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  16961. + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  16962. +
  16963. + case $var in
  16964. + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  16965. + old_postinstall_cmds | old_postuninstall_cmds | \
  16966. + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  16967. + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  16968. + postinstall_cmds | postuninstall_cmds | \
  16969. + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  16970. + # Double-quote double-evaled strings.
  16971. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  16972. + ;;
  16973. + *)
  16974. + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  16975. + ;;
  16976. + esac
  16977. + done
  16978. +
  16979. + cat <<__EOF__ > "${ofile}T"
  16980. +#! $SHELL
  16981. +
  16982. +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  16983. +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  16984. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  16985. +#
  16986. +# Copyright (C) 1996-2000 Free Software Foundation, Inc.
  16987. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  16988. +#
  16989. +# This program is free software; you can redistribute it and/or modify
  16990. +# it under the terms of the GNU General Public License as published by
  16991. +# the Free Software Foundation; either version 2 of the License, or
  16992. +# (at your option) any later version.
  16993. +#
  16994. +# This program is distributed in the hope that it will be useful, but
  16995. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  16996. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  16997. +# General Public License for more details.
  16998. +#
  16999. +# You should have received a copy of the GNU General Public License
  17000. +# along with this program; if not, write to the Free Software
  17001. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17002. +#
  17003. +# As a special exception to the GNU General Public License, if you
  17004. +# distribute this file as part of a program that contains a
  17005. +# configuration script generated by Autoconf, you may include it under
  17006. +# the same distribution terms that you use for the rest of that program.
  17007. +
  17008. +# A sed that does not truncate output.
  17009. +SED=$lt_SED
  17010. +
  17011. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  17012. +Xsed="${SED} -e s/^X//"
  17013. +
  17014. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  17015. +# if CDPATH is set.
  17016. +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  17017. +
  17018. +# ### BEGIN LIBTOOL CONFIG
  17019. +
  17020. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  17021. +
  17022. +# Shell to use when invoking shell scripts.
  17023. +SHELL=$lt_SHELL
  17024. +
  17025. +# Whether or not to build shared libraries.
  17026. +build_libtool_libs=$enable_shared
  17027. +
  17028. +# Whether or not to build static libraries.
  17029. +build_old_libs=$enable_static
  17030. +
  17031. +# Whether or not to add -lc for building shared libraries.
  17032. +build_libtool_need_lc=$need_lc
  17033. +
  17034. +# Whether or not to optimize for fast installation.
  17035. +fast_install=$enable_fast_install
  17036. +
  17037. +# The host system.
  17038. +host_alias=$host_alias
  17039. +host=$host
  17040. +
  17041. +# An echo program that does not interpret backslashes.
  17042. +echo=$lt_echo
  17043. +
  17044. +# The archiver.
  17045. +AR=$lt_AR
  17046. +AR_FLAGS=$lt_AR_FLAGS
  17047. +
  17048. +# The default C compiler.
  17049. +CC=$lt_CC
  17050. +
  17051. +# Is the compiler the GNU C compiler?
  17052. +with_gcc=$GCC
  17053. +
  17054. +# The linker used to build libraries.
  17055. +LD=$lt_LD
  17056. +
  17057. +# Whether we need hard or soft links.
  17058. +LN_S=$lt_LN_S
  17059. +
  17060. +# A BSD-compatible nm program.
  17061. +NM=$lt_NM
  17062. +
  17063. +# A symbol stripping program
  17064. +STRIP=$lt_STRIP
  17065. +
  17066. +# Used to examine libraries when file_magic_cmd begins "file"
  17067. +MAGIC_CMD=$MAGIC_CMD
  17068. +
  17069. +# Used on cygwin: DLL creation program.
  17070. +DLLTOOL="$DLLTOOL"
  17071. +
  17072. +# Used on cygwin: object dumper.
  17073. +OBJDUMP="$OBJDUMP"
  17074. +
  17075. +# Used on cygwin: assembler.
  17076. +AS="$AS"
  17077. +
  17078. +# The name of the directory that contains temporary libtool files.
  17079. +objdir=$objdir
  17080. +
  17081. +# How to create reloadable object files.
  17082. +reload_flag=$lt_reload_flag
  17083. +reload_cmds=$lt_reload_cmds
  17084. +
  17085. +# How to pass a linker flag through the compiler.
  17086. +wl=$lt_wl
  17087. +
  17088. +# Object file suffix (normally "o").
  17089. +objext="$ac_objext"
  17090. +
  17091. +# Old archive suffix (normally "a").
  17092. +libext="$libext"
  17093. +
  17094. +# Executable file suffix (normally "").
  17095. +exeext="$exeext"
  17096. +
  17097. +# Additional compiler flags for building library objects.
  17098. +pic_flag=$lt_pic_flag
  17099. +pic_mode=$pic_mode
  17100. +
  17101. +# Does compiler simultaneously support -c and -o options?
  17102. +compiler_c_o=$lt_compiler_c_o
  17103. +
  17104. +# Can we write directly to a .lo ?
  17105. +compiler_o_lo=$lt_compiler_o_lo
  17106. +
  17107. +# Must we lock files when doing compilation ?
  17108. +need_locks=$lt_need_locks
  17109. +
  17110. +# Do we need the lib prefix for modules?
  17111. +need_lib_prefix=$need_lib_prefix
  17112. +
  17113. +# Do we need a version for libraries?
  17114. +need_version=$need_version
  17115. +
  17116. +# Whether dlopen is supported.
  17117. +dlopen_support=$enable_dlopen
  17118. +
  17119. +# Whether dlopen of programs is supported.
  17120. +dlopen_self=$enable_dlopen_self
  17121. +
  17122. +# Whether dlopen of statically linked programs is supported.
  17123. +dlopen_self_static=$enable_dlopen_self_static
  17124. +
  17125. +# Compiler flag to prevent dynamic linking.
  17126. +link_static_flag=$lt_link_static_flag
  17127. +
  17128. +# Compiler flag to turn off builtin functions.
  17129. +no_builtin_flag=$lt_no_builtin_flag
  17130. +
  17131. +# Compiler flag to allow reflexive dlopens.
  17132. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  17133. +
  17134. +# Compiler flag to generate shared objects directly from archives.
  17135. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  17136. +
  17137. +# Compiler flag to generate thread-safe objects.
  17138. +thread_safe_flag_spec=$lt_thread_safe_flag_spec
  17139. +
  17140. +# Library versioning type.
  17141. +version_type=$version_type
  17142. +
  17143. +# Format of library name prefix.
  17144. +libname_spec=$lt_libname_spec
  17145. +
  17146. +# List of archive names. First name is the real one, the rest are links.
  17147. +# The last name is the one that the linker finds with -lNAME.
  17148. +library_names_spec=$lt_library_names_spec
  17149. +
  17150. +# The coded name of the library, if different from the real name.
  17151. +soname_spec=$lt_soname_spec
  17152. +
  17153. +# Commands used to build and install an old-style archive.
  17154. +RANLIB=$lt_RANLIB
  17155. +old_archive_cmds=$lt_old_archive_cmds
  17156. +old_postinstall_cmds=$lt_old_postinstall_cmds
  17157. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  17158. +
  17159. +# Create an old-style archive from a shared archive.
  17160. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  17161. +
  17162. +# Create a temporary old-style archive to link instead of a shared archive.
  17163. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  17164. +
  17165. +# Commands used to build and install a shared archive.
  17166. +archive_cmds=$lt_archive_cmds
  17167. +archive_expsym_cmds=$lt_archive_expsym_cmds
  17168. +postinstall_cmds=$lt_postinstall_cmds
  17169. +postuninstall_cmds=$lt_postuninstall_cmds
  17170. +
  17171. +# Commands to strip libraries.
  17172. +old_striplib=$lt_old_striplib
  17173. +striplib=$lt_striplib
  17174. +
  17175. +# Method to check whether dependent libraries are shared objects.
  17176. +deplibs_check_method=$lt_deplibs_check_method
  17177. +
  17178. +# Command to use when deplibs_check_method == file_magic.
  17179. +file_magic_cmd=$lt_file_magic_cmd
  17180. +
  17181. +# Flag that allows shared libraries with undefined symbols to be built.
  17182. +allow_undefined_flag=$lt_allow_undefined_flag
  17183. +
  17184. +# Flag that forces no undefined symbols.
  17185. +no_undefined_flag=$lt_no_undefined_flag
  17186. +
  17187. +# Commands used to finish a libtool library installation in a directory.
  17188. +finish_cmds=$lt_finish_cmds
  17189. +
  17190. +# Same as above, but a single script fragment to be evaled but not shown.
  17191. +finish_eval=$lt_finish_eval
  17192. +
  17193. +# Take the output of nm and produce a listing of raw symbols and C names.
  17194. +global_symbol_pipe=$lt_global_symbol_pipe
  17195. +
  17196. +# Transform the output of nm in a proper C declaration
  17197. +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  17198. +
  17199. +# Transform the output of nm in a C name address pair
  17200. +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  17201. +
  17202. +# This is the shared library runtime path variable.
  17203. +runpath_var=$runpath_var
  17204. +
  17205. +# This is the shared library path variable.
  17206. +shlibpath_var=$shlibpath_var
  17207. +
  17208. +# Is shlibpath searched before the hard-coded library search path?
  17209. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  17210. +
  17211. +# How to hardcode a shared library path into an executable.
  17212. +hardcode_action=$hardcode_action
  17213. +
  17214. +# Whether we should hardcode library paths into libraries.
  17215. +hardcode_into_libs=$hardcode_into_libs
  17216. +
  17217. +# Flag to hardcode \$libdir into a binary during linking.
  17218. +# This must work even if \$libdir does not exist.
  17219. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  17220. +
  17221. +# Whether we need a single -rpath flag with a separated argument.
  17222. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  17223. +
  17224. +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  17225. +# resulting binary.
  17226. +hardcode_direct=$hardcode_direct
  17227. +
  17228. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  17229. +# resulting binary.
  17230. +hardcode_minus_L=$hardcode_minus_L
  17231. +
  17232. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  17233. +# the resulting binary.
  17234. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  17235. +
  17236. +# Variables whose values should be saved in libtool wrapper scripts and
  17237. +# restored at relink time.
  17238. +variables_saved_for_relink="$variables_saved_for_relink"
  17239. +
  17240. +# Whether libtool must link a program against all its dependency libraries.
  17241. +link_all_deplibs=$link_all_deplibs
  17242. +
  17243. +# Compile-time system search path for libraries
  17244. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  17245. +
  17246. +# Run-time system search path for libraries
  17247. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  17248. +
  17249. +# Fix the shell variable \$srcfile for the compiler.
  17250. +fix_srcfile_path="$fix_srcfile_path"
  17251. +
  17252. +# Set to yes if exported symbols are required.
  17253. +always_export_symbols=$always_export_symbols
  17254. +
  17255. +# The commands to list exported symbols.
  17256. +export_symbols_cmds=$lt_export_symbols_cmds
  17257. +
  17258. +# The commands to extract the exported symbol list from a shared archive.
  17259. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  17260. +
  17261. +# Symbols that should not be listed in the preloaded symbols.
  17262. +exclude_expsyms=$lt_exclude_expsyms
  17263. +
  17264. +# Symbols that must always be exported.
  17265. +include_expsyms=$lt_include_expsyms
  17266. +
  17267. +# ### END LIBTOOL CONFIG
  17268. +
  17269. +__EOF__
  17270. +
  17271. + case $host_os in
  17272. + aix3*)
  17273. + cat <<\EOF >> "${ofile}T"
  17274. +
  17275. +# AIX sometimes has problems with the GCC collect2 program. For some
  17276. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  17277. +# vanish in a puff of smoke.
  17278. +if test "X${COLLECT_NAMES+set}" != Xset; then
  17279. + COLLECT_NAMES=
  17280. + export COLLECT_NAMES
  17281. +fi
  17282. +EOF
  17283. + ;;
  17284. + esac
  17285. +
  17286. + case $host_os in
  17287. + cygwin* | mingw* | pw32* | os2*)
  17288. + cat <<'EOF' >> "${ofile}T"
  17289. + # This is a source program that is used to create dlls on Windows
  17290. + # Don't remove nor modify the starting and closing comments
  17291. +# /* ltdll.c starts here */
  17292. +# #define WIN32_LEAN_AND_MEAN
  17293. +# #include <windows.h>
  17294. +# #undef WIN32_LEAN_AND_MEAN
  17295. +# #include <stdio.h>
  17296. +#
  17297. +# #ifndef __CYGWIN__
  17298. +# # ifdef __CYGWIN32__
  17299. +# # define __CYGWIN__ __CYGWIN32__
  17300. +# # endif
  17301. +# #endif
  17302. +#
  17303. +# #ifdef __cplusplus
  17304. +# extern "C" {
  17305. +# #endif
  17306. +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  17307. +# #ifdef __cplusplus
  17308. +# }
  17309. +# #endif
  17310. +#
  17311. +# #ifdef __CYGWIN__
  17312. +# #include <cygwin/cygwin_dll.h>
  17313. +# DECLARE_CYGWIN_DLL( DllMain );
  17314. +# #endif
  17315. +# HINSTANCE __hDllInstance_base;
  17316. +#
  17317. +# BOOL APIENTRY
  17318. +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  17319. +# {
  17320. +# __hDllInstance_base = hInst;
  17321. +# return TRUE;
  17322. +# }
  17323. +# /* ltdll.c ends here */
  17324. + # This is a source program that is used to create import libraries
  17325. + # on Windows for dlls which lack them. Don't remove nor modify the
  17326. + # starting and closing comments
  17327. +# /* impgen.c starts here */
  17328. +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  17329. +#
  17330. +# This file is part of GNU libtool.
  17331. +#
  17332. +# This program is free software; you can redistribute it and/or modify
  17333. +# it under the terms of the GNU General Public License as published by
  17334. +# the Free Software Foundation; either version 2 of the License, or
  17335. +# (at your option) any later version.
  17336. +#
  17337. +# This program is distributed in the hope that it will be useful,
  17338. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  17339. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17340. +# GNU General Public License for more details.
  17341. +#
  17342. +# You should have received a copy of the GNU General Public License
  17343. +# along with this program; if not, write to the Free Software
  17344. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17345. +# */
  17346. +#
  17347. +# #include <stdio.h> /* for printf() */
  17348. +# #include <unistd.h> /* for open(), lseek(), read() */
  17349. +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  17350. +# #include <string.h> /* for strdup() */
  17351. +#
  17352. +# /* O_BINARY isn't required (or even defined sometimes) under Unix */
  17353. +# #ifndef O_BINARY
  17354. +# #define O_BINARY 0
  17355. +# #endif
  17356. +#
  17357. +# static unsigned int
  17358. +# pe_get16 (fd, offset)
  17359. +# int fd;
  17360. +# int offset;
  17361. +# {
  17362. +# unsigned char b[2];
  17363. +# lseek (fd, offset, SEEK_SET);
  17364. +# read (fd, b, 2);
  17365. +# return b[0] + (b[1]<<8);
  17366. +# }
  17367. +#
  17368. +# static unsigned int
  17369. +# pe_get32 (fd, offset)
  17370. +# int fd;
  17371. +# int offset;
  17372. +# {
  17373. +# unsigned char b[4];
  17374. +# lseek (fd, offset, SEEK_SET);
  17375. +# read (fd, b, 4);
  17376. +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  17377. +# }
  17378. +#
  17379. +# static unsigned int
  17380. +# pe_as32 (ptr)
  17381. +# void *ptr;
  17382. +# {
  17383. +# unsigned char *b = ptr;
  17384. +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  17385. +# }
  17386. +#
  17387. +# int
  17388. +# main (argc, argv)
  17389. +# int argc;
  17390. +# char *argv[];
  17391. +# {
  17392. +# int dll;
  17393. +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  17394. +# unsigned long export_rva, export_size, nsections, secptr, expptr;
  17395. +# unsigned long name_rvas, nexp;
  17396. +# unsigned char *expdata, *erva;
  17397. +# char *filename, *dll_name;
  17398. +#
  17399. +# filename = argv[1];
  17400. +#
  17401. +# dll = open(filename, O_RDONLY|O_BINARY);
  17402. +# if (dll < 1)
  17403. +# return 1;
  17404. +#
  17405. +# dll_name = filename;
  17406. +#
  17407. +# for (i=0; filename[i]; i++)
  17408. +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  17409. +# dll_name = filename + i +1;
  17410. +#
  17411. +# pe_header_offset = pe_get32 (dll, 0x3c);
  17412. +# opthdr_ofs = pe_header_offset + 4 + 20;
  17413. +# num_entries = pe_get32 (dll, opthdr_ofs + 92);
  17414. +#
  17415. +# if (num_entries < 1) /* no exports */
  17416. +# return 1;
  17417. +#
  17418. +# export_rva = pe_get32 (dll, opthdr_ofs + 96);
  17419. +# export_size = pe_get32 (dll, opthdr_ofs + 100);
  17420. +# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  17421. +# secptr = (pe_header_offset + 4 + 20 +
  17422. +# pe_get16 (dll, pe_header_offset + 4 + 16));
  17423. +#
  17424. +# expptr = 0;
  17425. +# for (i = 0; i < nsections; i++)
  17426. +# {
  17427. +# char sname[8];
  17428. +# unsigned long secptr1 = secptr + 40 * i;
  17429. +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  17430. +# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  17431. +# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  17432. +# lseek(dll, secptr1, SEEK_SET);
  17433. +# read(dll, sname, 8);
  17434. +# if (vaddr <= export_rva && vaddr+vsize > export_rva)
  17435. +# {
  17436. +# expptr = fptr + (export_rva - vaddr);
  17437. +# if (export_rva + export_size > vaddr + vsize)
  17438. +# export_size = vsize - (export_rva - vaddr);
  17439. +# break;
  17440. +# }
  17441. +# }
  17442. +#
  17443. +# expdata = (unsigned char*)malloc(export_size);
  17444. +# lseek (dll, expptr, SEEK_SET);
  17445. +# read (dll, expdata, export_size);
  17446. +# erva = expdata - export_rva;
  17447. +#
  17448. +# nexp = pe_as32 (expdata+24);
  17449. +# name_rvas = pe_as32 (expdata+32);
  17450. +#
  17451. +# printf ("EXPORTS\n");
  17452. +# for (i = 0; i<nexp; i++)
  17453. +# {
  17454. +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  17455. +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  17456. +# }
  17457. +#
  17458. +# return 0;
  17459. +# }
  17460. +# /* impgen.c ends here */
  17461. +
  17462. +EOF
  17463. + ;;
  17464. + esac
  17465. -for ac_prog in ln
  17466. -do
  17467. -# Extract the first word of "$ac_prog", so it can be a program name with args.
  17468. -set dummy $ac_prog; ac_word=$2
  17469. -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  17470. -echo "configure:1154: checking for $ac_word" >&5
  17471. -if eval "test \"`echo '$''{'ac_cv_prog_LN'+set}'`\" = set"; then
  17472. - echo $ac_n "(cached) $ac_c" 1>&6
  17473. -else
  17474. - if test -n "$LN"; then
  17475. - ac_cv_prog_LN="$LN" # Let the user override the test.
  17476. -else
  17477. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  17478. - ac_dummy="$PATH"
  17479. - for ac_dir in $ac_dummy; do
  17480. - test -z "$ac_dir" && ac_dir=.
  17481. - if test -f $ac_dir/$ac_word; then
  17482. - ac_cv_prog_LN="$ac_prog"
  17483. - break
  17484. - fi
  17485. - done
  17486. - IFS="$ac_save_ifs"
  17487. -fi
  17488. -fi
  17489. -LN="$ac_cv_prog_LN"
  17490. -if test -n "$LN"; then
  17491. - echo "$ac_t""$LN" 1>&6
  17492. -else
  17493. - echo "$ac_t""no" 1>&6
  17494. + # We use sed instead of cat because bash on DJGPP gets confused if
  17495. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  17496. + # text mode, it properly converts lines to CR/LF. This bash problem
  17497. + # is reportedly fixed, but why not run on old versions too?
  17498. + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  17499. +
  17500. + mv -f "${ofile}T" "$ofile" || \
  17501. + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  17502. + chmod +x "$ofile"
  17503. fi
  17504. -test -n "$LN" && break
  17505. -done
  17506. -test -n "$LN" || LN="@true"
  17507. +
  17508. +
  17509. +
  17510. +
  17511. +# This can be used to rebuild libtool when needed
  17512. +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  17513. +
  17514. +# Always use our own libtool.
  17515. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  17516. +
  17517. +# Prevent multiple expansion
  17518. +
  17519. +
  17520. for ac_func in strerror
  17521. do
  17522. -echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17523. -echo "configure:1188: checking for $ac_func" >&5
  17524. -if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17525. - echo $ac_n "(cached) $ac_c" 1>&6
  17526. -else
  17527. - cat > conftest.$ac_ext <<EOF
  17528. -#line 1193 "configure"
  17529. -#include "confdefs.h"
  17530. +as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  17531. +echo "$as_me:$LINENO: checking for $ac_func" >&5
  17532. +echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  17533. +if eval "test \"\${$as_ac_var+set}\" = set"; then
  17534. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17535. +else
  17536. + cat >conftest.$ac_ext <<_ACEOF
  17537. +/* confdefs.h. */
  17538. +_ACEOF
  17539. +cat confdefs.h >>conftest.$ac_ext
  17540. +cat >>conftest.$ac_ext <<_ACEOF
  17541. +/* end confdefs.h. */
  17542. +/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  17543. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17544. +#define $ac_func innocuous_$ac_func
  17545. +
  17546. /* System header to define __stub macros and hopefully few prototypes,
  17547. - which can conflict with char $ac_func(); below. */
  17548. -#include <assert.h>
  17549. -/* Override any gcc2 internal prototype to avoid an error. */
  17550. -/* We use char because int might match the return type of a gcc2
  17551. - builtin and then its argument prototype would still apply. */
  17552. -char $ac_func();
  17553. + which can conflict with char $ac_func (); below.
  17554. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17555. + <limits.h> exists even on freestanding compilers. */
  17556. +
  17557. +#ifdef __STDC__
  17558. +# include <limits.h>
  17559. +#else
  17560. +# include <assert.h>
  17561. +#endif
  17562. -int main() {
  17563. +#undef $ac_func
  17564. +/* Override any gcc2 internal prototype to avoid an error. */
  17565. +#ifdef __cplusplus
  17566. +extern "C"
  17567. +{
  17568. +#endif
  17569. +/* We use char because int might match the return type of a gcc2
  17570. + builtin and then its argument prototype would still apply. */
  17571. +char $ac_func ();
  17572. /* The GNU C library defines this for functions which it implements
  17573. to always fail with ENOSYS. Some functions are actually named
  17574. something starting with __ and the normal name is an alias. */
  17575. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17576. choke me
  17577. #else
  17578. -$ac_func();
  17579. +char (*f) () = $ac_func;
  17580. +#endif
  17581. +#ifdef __cplusplus
  17582. +}
  17583. #endif
  17584. -; return 0; }
  17585. -EOF
  17586. -if { (eval echo configure:1216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17587. - rm -rf conftest*
  17588. - eval "ac_cv_func_$ac_func=yes"
  17589. -else
  17590. - echo "configure: failed program was:" >&5
  17591. - cat conftest.$ac_ext >&5
  17592. - rm -rf conftest*
  17593. - eval "ac_cv_func_$ac_func=no"
  17594. -fi
  17595. -rm -f conftest*
  17596. -fi
  17597. +int
  17598. +main ()
  17599. +{
  17600. +return f != $ac_func;
  17601. + ;
  17602. + return 0;
  17603. +}
  17604. +_ACEOF
  17605. +rm -f conftest.$ac_objext conftest$ac_exeext
  17606. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17607. + (eval $ac_link) 2>conftest.er1
  17608. + ac_status=$?
  17609. + grep -v '^ *+' conftest.er1 >conftest.err
  17610. + rm -f conftest.er1
  17611. + cat conftest.err >&5
  17612. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17613. + (exit $ac_status); } &&
  17614. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17615. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17616. + (eval $ac_try) 2>&5
  17617. + ac_status=$?
  17618. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17619. + (exit $ac_status); }; } &&
  17620. + { ac_try='test -s conftest$ac_exeext'
  17621. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17622. + (eval $ac_try) 2>&5
  17623. + ac_status=$?
  17624. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17625. + (exit $ac_status); }; }; then
  17626. + eval "$as_ac_var=yes"
  17627. +else
  17628. + echo "$as_me: failed program was:" >&5
  17629. +sed 's/^/| /' conftest.$ac_ext >&5
  17630. +
  17631. +eval "$as_ac_var=no"
  17632. +fi
  17633. +rm -f conftest.err conftest.$ac_objext \
  17634. + conftest$ac_exeext conftest.$ac_ext
  17635. +fi
  17636. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  17637. +echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  17638. +if test `eval echo '${'$as_ac_var'}'` = yes; then
  17639. + cat >>confdefs.h <<_ACEOF
  17640. +#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  17641. +_ACEOF
  17642. -if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17643. - echo "$ac_t""yes" 1>&6
  17644. - ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17645. - cat >> confdefs.h <<EOF
  17646. -#define $ac_tr_func 1
  17647. -EOF
  17648. -
  17649. -else
  17650. - echo "$ac_t""no" 1>&6
  17651. fi
  17652. done
  17653. -echo $ac_n "checking for pcap_open_live in -lpcap""... $ac_c" 1>&6
  17654. -echo "configure:1242: checking for pcap_open_live in -lpcap" >&5
  17655. -ac_lib_var=`echo pcap'_'pcap_open_live | sed 'y%./+-%__p_%'`
  17656. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  17657. - echo $ac_n "(cached) $ac_c" 1>&6
  17658. +echo "$as_me:$LINENO: checking for pcap_open_live in -lpcap" >&5
  17659. +echo $ECHO_N "checking for pcap_open_live in -lpcap... $ECHO_C" >&6
  17660. +if test "${ac_cv_lib_pcap_pcap_open_live+set}" = set; then
  17661. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17662. else
  17663. - ac_save_LIBS="$LIBS"
  17664. + ac_check_lib_save_LIBS=$LIBS
  17665. LIBS="-lpcap $LIBS"
  17666. -cat > conftest.$ac_ext <<EOF
  17667. -#line 1250 "configure"
  17668. -#include "confdefs.h"
  17669. +cat >conftest.$ac_ext <<_ACEOF
  17670. +/* confdefs.h. */
  17671. +_ACEOF
  17672. +cat confdefs.h >>conftest.$ac_ext
  17673. +cat >>conftest.$ac_ext <<_ACEOF
  17674. +/* end confdefs.h. */
  17675. +
  17676. /* Override any gcc2 internal prototype to avoid an error. */
  17677. +#ifdef __cplusplus
  17678. +extern "C"
  17679. +#endif
  17680. /* We use char because int might match the return type of a gcc2
  17681. - builtin and then its argument prototype would still apply. */
  17682. -char pcap_open_live();
  17683. -
  17684. -int main() {
  17685. -pcap_open_live()
  17686. -; return 0; }
  17687. -EOF
  17688. -if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17689. - rm -rf conftest*
  17690. - eval "ac_cv_lib_$ac_lib_var=yes"
  17691. -else
  17692. - echo "configure: failed program was:" >&5
  17693. - cat conftest.$ac_ext >&5
  17694. - rm -rf conftest*
  17695. - eval "ac_cv_lib_$ac_lib_var=no"
  17696. -fi
  17697. -rm -f conftest*
  17698. -LIBS="$ac_save_LIBS"
  17699. -
  17700. -fi
  17701. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  17702. - echo "$ac_t""yes" 1>&6
  17703. - cat >> confdefs.h <<\EOF
  17704. + builtin and then its argument prototype would still apply. */
  17705. +char pcap_open_live ();
  17706. +int
  17707. +main ()
  17708. +{
  17709. +pcap_open_live ();
  17710. + ;
  17711. + return 0;
  17712. +}
  17713. +_ACEOF
  17714. +rm -f conftest.$ac_objext conftest$ac_exeext
  17715. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  17716. + (eval $ac_link) 2>conftest.er1
  17717. + ac_status=$?
  17718. + grep -v '^ *+' conftest.er1 >conftest.err
  17719. + rm -f conftest.er1
  17720. + cat conftest.err >&5
  17721. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17722. + (exit $ac_status); } &&
  17723. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  17724. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17725. + (eval $ac_try) 2>&5
  17726. + ac_status=$?
  17727. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17728. + (exit $ac_status); }; } &&
  17729. + { ac_try='test -s conftest$ac_exeext'
  17730. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  17731. + (eval $ac_try) 2>&5
  17732. + ac_status=$?
  17733. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  17734. + (exit $ac_status); }; }; then
  17735. + ac_cv_lib_pcap_pcap_open_live=yes
  17736. +else
  17737. + echo "$as_me: failed program was:" >&5
  17738. +sed 's/^/| /' conftest.$ac_ext >&5
  17739. +
  17740. +ac_cv_lib_pcap_pcap_open_live=no
  17741. +fi
  17742. +rm -f conftest.err conftest.$ac_objext \
  17743. + conftest$ac_exeext conftest.$ac_ext
  17744. +LIBS=$ac_check_lib_save_LIBS
  17745. +fi
  17746. +echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_open_live" >&5
  17747. +echo "${ECHO_T}$ac_cv_lib_pcap_pcap_open_live" >&6
  17748. +if test $ac_cv_lib_pcap_pcap_open_live = yes; then
  17749. + cat >>confdefs.h <<\_ACEOF
  17750. #define HAVE_LIB_PCAP 1
  17751. -EOF
  17752. +_ACEOF
  17753. -else
  17754. - echo "$ac_t""no" 1>&6
  17755. fi
  17756. -echo $ac_n "checking low-level packet interface type""... $ac_c" 1>&6
  17757. -echo "configure:1286: checking low-level packet interface type" >&5
  17758. +echo "$as_me:$LINENO: checking low-level packet interface type" >&5
  17759. +echo $ECHO_N "checking low-level packet interface type... $ECHO_C" >&6
  17760. if test -r /dev/bpf0 ; then
  17761. LL_INT_TYPE=bpf
  17762. - echo "$ac_t""found bpf" 1>&6
  17763. + echo "$as_me:$LINENO: result: found bpf" >&5
  17764. +echo "${ECHO_T}found bpf" >&6
  17765. elif test -r /usr/include/net/pfilt.h ; then
  17766. LL_INT_TYPE=pf
  17767. - echo "$ac_t""found pf" 1>&6
  17768. + echo "$as_me:$LINENO: result: found pf" >&5
  17769. +echo "${ECHO_T}found pf" >&6
  17770. elif test -r /dev/nit ; then
  17771. LL_INT_TYPE=snit
  17772. - echo "$ac_t""found snit" 1>&6
  17773. + echo "$as_me:$LINENO: result: found snit" >&5
  17774. +echo "${ECHO_T}found snit" >&6
  17775. elif test -r /usr/include/sys/net/nit.h ; then
  17776. LL_INT_TYPE=nit
  17777. - echo "$ac_t""found nit" 1>&6
  17778. + echo "$as_me:$LINENO: result: found nit" >&5
  17779. +echo "${ECHO_T}found nit" >&6
  17780. elif test -r /usr/include/net/raw.h ; then
  17781. LL_INT_TYPE=snoop
  17782. - echo "$ac_t""found snoop" 1>&6
  17783. + echo "$as_me:$LINENO: result: found snoop" >&5
  17784. +echo "${ECHO_T}found snoop" >&6
  17785. elif test -r /usr/include/sys/dlpi.h ; then
  17786. LL_INT_TYPE=dlpi
  17787. - echo "$ac_t""found dlpi" 1>&6
  17788. - cat >> confdefs.h <<\EOF
  17789. + echo "$as_me:$LINENO: result: found dlpi" >&5
  17790. +echo "${ECHO_T}found dlpi" >&6
  17791. + cat >>confdefs.h <<\_ACEOF
  17792. #define HAVE_DLPI 1
  17793. -EOF
  17794. +_ACEOF
  17795. elif test -r /usr/include/linux/socket.h ; then
  17796. LL_INT_TYPE=sockpacket
  17797. - echo "$ac_t""found SOCK_PACKET" 1>&6
  17798. + echo "$as_me:$LINENO: result: found linux primitives" >&5
  17799. +echo "${ECHO_T}found linux primitives" >&6
  17800. if test $with_pf_packet = yes; then
  17801. -
  17802. - echo $ac_n "checking for PF_PACKET""... $ac_c" 1>&6
  17803. -echo "configure:1316: checking for PF_PACKET" >&5
  17804. - if eval "test \"`echo '$''{'ac_libnet_have_pf_packet'+set}'`\" = set"; then
  17805. - echo $ac_n "(cached) $ac_c" 1>&6
  17806. +
  17807. + echo "$as_me:$LINENO: checking for PF_PACKET" >&5
  17808. +echo $ECHO_N "checking for PF_PACKET... $ECHO_C" >&6
  17809. + if test "${ac_libnet_have_pf_packet+set}" = set; then
  17810. + echo $ECHO_N "(cached) $ECHO_C" >&6
  17811. else
  17812. case "$target_os" in
  17813. @@ -1324,66 +8660,43 @@
  17814. *)
  17815. cat > pf_packet-test.c << EOF
  17816. -#include <net/if.h>
  17817. -#if (__GLIBC__)
  17818. -#include <netinet/if_ether.h>
  17819. -#include <net/if_arp.h>
  17820. +#include <stdio.h>
  17821. +#include <errno.h>
  17822. +#include <stdlib.h>
  17823. +#include <netinet/in.h>
  17824. +#include <sys/socket.h>
  17825. +#include <features.h> /* for the glibc version number */
  17826. +#if __GLIBC__ >= 2 && __GLIBC_MINOR >= 1
  17827. +#include <netpacket/packet.h>
  17828. +#include <net/ethernet.h> /* the L2 protocols */
  17829. #else
  17830. -#include <linux/if_arp.h>
  17831. -#include <linux/if_ether.h>
  17832. +#include <asm/types.h>
  17833. +#include <linux/if_packet.h>
  17834. +#include <linux/if_ether.h> /* The L2 protocols */
  17835. #endif
  17836. -#if (PF_PACKET)
  17837. +
  17838. #ifndef SOL_PACKET
  17839. #define SOL_PACKET 263
  17840. #endif /* SOL_PACKET */
  17841. -#include <linux/if_packet.h>
  17842. -#endif
  17843. -#include <stdlib.h>
  17844. -#include <linux/sockios.h>
  17845. int
  17846. main()
  17847. {
  17848. -#if (PF_PACKET)
  17849. int fd;
  17850. - struct sockaddr_ll sa;
  17851. - struct ifreq ifr;
  17852. - struct packet_mreq mr;
  17853. - char *device ="lo";
  17854. fd = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
  17855. if (fd == -1)
  17856. {
  17857. - printf("choked");
  17858. - exit (EXIT_FAILURE);
  17859. - }
  17860. -
  17861. - memset(&sa, 0, sizeof(sa));
  17862. - strcpy(ifr.ifr_name, device);
  17863. - if (ioctl(fd, SIOCGIFINDEX, &ifr) < 0)
  17864. - {
  17865. - printf("choked");
  17866. - exit (EXIT_FAILURE);
  17867. - }
  17868. - sa.sll_family = AF_PACKET;
  17869. - sa.sll_ifindex = ifr.ifr_ifindex;
  17870. - sa.sll_protocol = htons(ETH_P_ALL);
  17871. -
  17872. - memset(&mr, 0, sizeof (mr));
  17873. - mr.mr_ifindex = sa.sll_ifindex;
  17874. - mr.mr_type = PACKET_MR_ALLMULTI;
  17875. -
  17876. - if (setsockopt(fd, SOL_PACKET, PACKET_ADD_MEMBERSHIP, (char *)&mr,
  17877. - sizeof (mr)) < 0)
  17878. - {
  17879. - printf("choked\n");
  17880. + if (errno == EPERM)
  17881. + {
  17882. + /* user's UID != 0 */
  17883. + printf("probably");
  17884. + exit (EXIT_FAILURE);
  17885. + }
  17886. + printf("no");
  17887. exit (EXIT_FAILURE);
  17888. }
  17889. - /* yay. we made it and it workz! */
  17890. printf("yes");
  17891. -#else /* PF_PACKET */
  17892. - printf("no");
  17893. -#endif
  17894. exit (EXIT_SUCCESS);
  17895. }
  17896. EOF
  17897. @@ -1397,38 +8710,52 @@
  17898. fi
  17899. if test $ac_libnet_have_pf_packet = choked; then
  17900. - echo "$ac_t""test program choked... assuming no" 1>&6
  17901. + echo "$as_me:$LINENO: result: test program choked... assuming no" >&5
  17902. +echo "${ECHO_T}test program choked... assuming no" >&6
  17903. elif test $ac_libnet_have_pf_packet = yes; then
  17904. - cat >> confdefs.h <<\EOF
  17905. -#define HAVE_PF_PACKET 1
  17906. -EOF
  17907. -
  17908. + echo "$as_me:$LINENO: result: yes" >&5
  17909. +echo "${ECHO_T}yes" >&6
  17910. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_PF_PACKET"
  17911. + elif test $ac_libnet_have_pf_packet = probably; then
  17912. + echo "$as_me:$LINENO: result: test program got EPERM... assuming yes" >&5
  17913. +echo "${ECHO_T}test program got EPERM... assuming yes" >&6
  17914. + elif test $ac_libnet_have_pf_packet = no; then
  17915. + echo "$as_me:$LINENO: result: no" >&5
  17916. +echo "${ECHO_T}no" >&6
  17917. fi
  17918. - if test $ac_libnet_have_pf_packet != choked; then
  17919. - echo "$ac_t""$ac_libnet_have_pf_packet" 1>&6
  17920. - fi
  17921. rm -f pf_packet-test* core core.pf_packet-test
  17922. ;;
  17923. esac
  17924. fi
  17925. + if test $ac_libnet_have_pf_packet = yes -o $ac_libnet_have_pf_packet = probably; then
  17926. + cat >>confdefs.h <<\_ACEOF
  17927. +#define HAVE_PF_PACKET 1
  17928. +_ACEOF
  17929. +
  17930. + fi
  17931. +
  17932. fi
  17933. elif test -c /dev/bpf0 ; then # check again in case not readable
  17934. LL_INT_TYPE=bpf
  17935. - echo "$ac_t""found bpf" 1>&6
  17936. + echo "$as_me:$LINENO: result: found bpf" >&5
  17937. +echo "${ECHO_T}found bpf" >&6
  17938. elif test -c /dev/enet ; then # check again in case not readable
  17939. LL_INT_TYPE=enet
  17940. - echo "$ac_t""found enet" 1>&6
  17941. + echo "$as_me:$LINENO: result: found enet" >&5
  17942. +echo "${ECHO_T}found enet" >&6
  17943. elif test -c /dev/nit ; then # check again in case not readable
  17944. LL_INT_TYPE=snit
  17945. - echo "$ac_t""found snit" 1>&6
  17946. + echo "$as_me:$LINENO: result: found snit" >&5
  17947. +echo "${ECHO_T}found snit" >&6
  17948. else
  17949. LL_INT_TYPE=null
  17950. - echo "configure: warning: could not find a low level packet interface" 1>&2
  17951. - echo "configure: warning: low level packet creation API will not be added to the library" 1>&2
  17952. + { echo "$as_me:$LINENO: WARNING: could not find a low level packet interface" >&5
  17953. +echo "$as_me: WARNING: could not find a low level packet interface" >&2;}
  17954. + { echo "$as_me:$LINENO: WARNING: low level packet creation API will not be added to the library" >&5
  17955. +echo "$as_me: WARNING: low level packet creation API will not be added to the library" >&2;}
  17956. fi
  17957. LL_INT_TYPE_UC=`echo $LL_INT_TYPE | tr a-z A-Z`
  17958. @@ -1437,158 +8764,187 @@
  17959. case "$target_os" in
  17960. *linux*)
  17961. - cat >> confdefs.h <<\EOF
  17962. + cat >>confdefs.h <<\_ACEOF
  17963. #define _BSD_SOURCE 1
  17964. -EOF
  17965. +_ACEOF
  17966. - cat >> confdefs.h <<\EOF
  17967. + cat >>confdefs.h <<\_ACEOF
  17968. #define __BSD_SOURCE 1
  17969. -EOF
  17970. +_ACEOF
  17971. - cat >> confdefs.h <<\EOF
  17972. + cat >>confdefs.h <<\_ACEOF
  17973. #define __FAVOR_BSD 1
  17974. -EOF
  17975. +_ACEOF
  17976. LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
  17977. - echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  17978. -echo "configure:1455: checking how to run the C preprocessor" >&5
  17979. -# On Suns, sometimes $CPP names a directory.
  17980. -if test -n "$CPP" && test -d "$CPP"; then
  17981. - CPP=
  17982. -fi
  17983. -if test -z "$CPP"; then
  17984. -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  17985. - echo $ac_n "(cached) $ac_c" 1>&6
  17986. -else
  17987. - # This must be in double quotes, not single quotes, because CPP may get
  17988. - # substituted into the Makefile and "${CC-cc}" will confuse make.
  17989. - CPP="${CC-cc} -E"
  17990. - # On the NeXT, cc -E runs the code through the compiler's parser,
  17991. - # not just through cpp.
  17992. - cat > conftest.$ac_ext <<EOF
  17993. -#line 1470 "configure"
  17994. -#include "confdefs.h"
  17995. -#include <assert.h>
  17996. -Syntax Error
  17997. -EOF
  17998. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  17999. -{ (eval echo configure:1476: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  18000. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  18001. -if test -z "$ac_err"; then
  18002. - :
  18003. -else
  18004. - echo "$ac_err" >&5
  18005. - echo "configure: failed program was:" >&5
  18006. - cat conftest.$ac_ext >&5
  18007. - rm -rf conftest*
  18008. - CPP="${CC-cc} -E -traditional-cpp"
  18009. - cat > conftest.$ac_ext <<EOF
  18010. -#line 1487 "configure"
  18011. -#include "confdefs.h"
  18012. -#include <assert.h>
  18013. -Syntax Error
  18014. -EOF
  18015. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  18016. -{ (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  18017. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  18018. -if test -z "$ac_err"; then
  18019. - :
  18020. -else
  18021. - echo "$ac_err" >&5
  18022. - echo "configure: failed program was:" >&5
  18023. - cat conftest.$ac_ext >&5
  18024. - rm -rf conftest*
  18025. - CPP="${CC-cc} -nologo -E"
  18026. - cat > conftest.$ac_ext <<EOF
  18027. -#line 1504 "configure"
  18028. -#include "confdefs.h"
  18029. -#include <assert.h>
  18030. -Syntax Error
  18031. -EOF
  18032. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  18033. -{ (eval echo configure:1510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  18034. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  18035. -if test -z "$ac_err"; then
  18036. - :
  18037. +
  18038. +for ac_header in net/ethernet.h
  18039. +do
  18040. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18041. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18042. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  18043. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18044. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18045. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18046. +fi
  18047. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18048. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18049. +else
  18050. + # Is the header compilable?
  18051. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18052. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18053. +cat >conftest.$ac_ext <<_ACEOF
  18054. +/* confdefs.h. */
  18055. +_ACEOF
  18056. +cat confdefs.h >>conftest.$ac_ext
  18057. +cat >>conftest.$ac_ext <<_ACEOF
  18058. +/* end confdefs.h. */
  18059. +$ac_includes_default
  18060. +#include <$ac_header>
  18061. +_ACEOF
  18062. +rm -f conftest.$ac_objext
  18063. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18064. + (eval $ac_compile) 2>conftest.er1
  18065. + ac_status=$?
  18066. + grep -v '^ *+' conftest.er1 >conftest.err
  18067. + rm -f conftest.er1
  18068. + cat conftest.err >&5
  18069. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18070. + (exit $ac_status); } &&
  18071. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18072. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18073. + (eval $ac_try) 2>&5
  18074. + ac_status=$?
  18075. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18076. + (exit $ac_status); }; } &&
  18077. + { ac_try='test -s conftest.$ac_objext'
  18078. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18079. + (eval $ac_try) 2>&5
  18080. + ac_status=$?
  18081. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18082. + (exit $ac_status); }; }; then
  18083. + ac_header_compiler=yes
  18084. +else
  18085. + echo "$as_me: failed program was:" >&5
  18086. +sed 's/^/| /' conftest.$ac_ext >&5
  18087. +
  18088. +ac_header_compiler=no
  18089. +fi
  18090. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18091. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18092. +echo "${ECHO_T}$ac_header_compiler" >&6
  18093. +
  18094. +# Is the header present?
  18095. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18096. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18097. +cat >conftest.$ac_ext <<_ACEOF
  18098. +/* confdefs.h. */
  18099. +_ACEOF
  18100. +cat confdefs.h >>conftest.$ac_ext
  18101. +cat >>conftest.$ac_ext <<_ACEOF
  18102. +/* end confdefs.h. */
  18103. +#include <$ac_header>
  18104. +_ACEOF
  18105. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18106. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18107. + ac_status=$?
  18108. + grep -v '^ *+' conftest.er1 >conftest.err
  18109. + rm -f conftest.er1
  18110. + cat conftest.err >&5
  18111. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18112. + (exit $ac_status); } >/dev/null; then
  18113. + if test -s conftest.err; then
  18114. + ac_cpp_err=$ac_c_preproc_warn_flag
  18115. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18116. + else
  18117. + ac_cpp_err=
  18118. + fi
  18119. else
  18120. - echo "$ac_err" >&5
  18121. - echo "configure: failed program was:" >&5
  18122. - cat conftest.$ac_ext >&5
  18123. - rm -rf conftest*
  18124. - CPP=/lib/cpp
  18125. -fi
  18126. -rm -f conftest*
  18127. -fi
  18128. -rm -f conftest*
  18129. -fi
  18130. -rm -f conftest*
  18131. - ac_cv_prog_CPP="$CPP"
  18132. + ac_cpp_err=yes
  18133. fi
  18134. - CPP="$ac_cv_prog_CPP"
  18135. +if test -z "$ac_cpp_err"; then
  18136. + ac_header_preproc=yes
  18137. else
  18138. - ac_cv_prog_CPP="$CPP"
  18139. -fi
  18140. -echo "$ac_t""$CPP" 1>&6
  18141. + echo "$as_me: failed program was:" >&5
  18142. +sed 's/^/| /' conftest.$ac_ext >&5
  18143. -for ac_hdr in net/ethernet.h
  18144. -do
  18145. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  18146. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  18147. -echo "configure:1538: checking for $ac_hdr" >&5
  18148. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  18149. - echo $ac_n "(cached) $ac_c" 1>&6
  18150. -else
  18151. - cat > conftest.$ac_ext <<EOF
  18152. -#line 1543 "configure"
  18153. -#include "confdefs.h"
  18154. -#include <$ac_hdr>
  18155. -EOF
  18156. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  18157. -{ (eval echo configure:1548: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  18158. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  18159. -if test -z "$ac_err"; then
  18160. - rm -rf conftest*
  18161. - eval "ac_cv_header_$ac_safe=yes"
  18162. + ac_header_preproc=no
  18163. +fi
  18164. +rm -f conftest.err conftest.$ac_ext
  18165. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18166. +echo "${ECHO_T}$ac_header_preproc" >&6
  18167. +
  18168. +# So? What about this header?
  18169. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18170. + yes:no: )
  18171. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18172. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18173. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18174. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18175. + ac_header_preproc=yes
  18176. + ;;
  18177. + no:yes:* )
  18178. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18179. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18180. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18181. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18182. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18183. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18184. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18185. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18186. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18187. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18188. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18189. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18190. + (
  18191. + cat <<\_ASBOX
  18192. +## ------------------------------------------ ##
  18193. +## Report this to the AC_PACKAGE_NAME lists. ##
  18194. +## ------------------------------------------ ##
  18195. +_ASBOX
  18196. + ) |
  18197. + sed "s/^/$as_me: WARNING: /" >&2
  18198. + ;;
  18199. +esac
  18200. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  18201. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18202. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18203. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18204. else
  18205. - echo "$ac_err" >&5
  18206. - echo "configure: failed program was:" >&5
  18207. - cat conftest.$ac_ext >&5
  18208. - rm -rf conftest*
  18209. - eval "ac_cv_header_$ac_safe=no"
  18210. + eval "$as_ac_Header=\$ac_header_preproc"
  18211. fi
  18212. -rm -f conftest*
  18213. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18214. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18215. +
  18216. fi
  18217. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  18218. - echo "$ac_t""yes" 1>&6
  18219. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  18220. - cat >> confdefs.h <<EOF
  18221. -#define $ac_tr_hdr 1
  18222. -EOF
  18223. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18224. + cat >>confdefs.h <<_ACEOF
  18225. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18226. +_ACEOF
  18227. \
  18228. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H"
  18229. -else
  18230. - echo "$ac_t""no" 1>&6
  18231. fi
  18232. +
  18233. done
  18234. - MAN_PREFIX="$prefix/man/man3/"
  18235. + MAN_PREFIX="$mandir/man3/"
  18236. LIB_PREFIX="$prefix/lib/"
  18237. INC_PREFIX="$prefix/include/"
  18238. BIN_PREFIX="$prefix/bin/"
  18239. ;;
  18240. *freebsd*)
  18241. - cat >> confdefs.h <<\EOF
  18242. + cat >>confdefs.h <<\_ACEOF
  18243. #define LIBNET_BSDISH_OS 1
  18244. -EOF
  18245. +_ACEOF
  18246. - cat >> confdefs.h <<\EOF
  18247. + cat >>confdefs.h <<\_ACEOF
  18248. #define LIBNET_BSD_BYTE_SWAP 1
  18249. -EOF
  18250. +_ACEOF
  18251. - cat >> confdefs.h <<\EOF
  18252. + cat >>confdefs.h <<\_ACEOF
  18253. #define HAVE_SOCKADDR_SA_LEN 1
  18254. -EOF
  18255. +_ACEOF
  18256. LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP \
  18257. -DHAVE_SOCKADDR_SA_LEN"
  18258. @@ -1596,19 +8952,21 @@
  18259. LIB_PREFIX="$prefix/lib/aout"
  18260. INC_PREFIX="$prefix/include/"
  18261. BIN_PREFIX="$prefix/bin/"
  18262. - echo "$ac_t""Note: support/bpf-lkm/etherspoof contains the lkm source \
  18263. -required to spoof ethernet frames" 1>&6
  18264. + echo "$as_me:$LINENO: result: Note: support/bpf-lkm/etherspoof contains the lkm source \
  18265. +required to spoof ethernet frames" >&5
  18266. +echo "${ECHO_T}Note: support/bpf-lkm/etherspoof contains the lkm source \
  18267. +required to spoof ethernet frames" >&6
  18268. ln -sf FreeBSD support/bpf-lkm/etherspoof
  18269. ;;
  18270. *netbsd*)
  18271. - cat >> confdefs.h <<\EOF
  18272. + cat >>confdefs.h <<\_ACEOF
  18273. #define LIBNET_BSDISH_OS 1
  18274. -EOF
  18275. +_ACEOF
  18276. - cat >> confdefs.h <<\EOF
  18277. + cat >>confdefs.h <<\_ACEOF
  18278. #define LIBNET_BSD_BYTE_SWAP 1
  18279. -EOF
  18280. +_ACEOF
  18281. LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
  18282. MAN_PREFIX="$prefix/man/man3/"
  18283. @@ -1618,32 +8976,34 @@
  18284. ;;
  18285. *openbsd*)
  18286. - cat >> confdefs.h <<\EOF
  18287. + cat >>confdefs.h <<\_ACEOF
  18288. #define LIBNET_BSDISH_OS 1
  18289. -EOF
  18290. +_ACEOF
  18291. - cat >> confdefs.h <<\EOF
  18292. + cat >>confdefs.h <<\_ACEOF
  18293. #define HAVE_SOCKADDR_SA_LEN 1
  18294. -EOF
  18295. +_ACEOF
  18296. LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS"
  18297. MAN_PREFIX="$prefix/man/man3/"
  18298. LIB_PREFIX="$prefix/lib/"
  18299. INC_PREFIX="$prefix/include/"
  18300. BIN_PREFIX="$prefix/bin/"
  18301. - echo "$ac_t""Note: support/bpf-lkm/etherspoof contains the lkm required \
  18302. -to spoof ethernet frames" 1>&6
  18303. + echo "$as_me:$LINENO: result: Note: support/bpf-lkm/etherspoof contains the lkm required \
  18304. +to spoof ethernet frames" >&5
  18305. +echo "${ECHO_T}Note: support/bpf-lkm/etherspoof contains the lkm required \
  18306. +to spoof ethernet frames" >&6
  18307. ln -sf OpenBSD support/bpf-lkm/etherspoof
  18308. ;;
  18309. *bsdi*)
  18310. - cat >> confdefs.h <<\EOF
  18311. + cat >>confdefs.h <<\_ACEOF
  18312. #define LIBNET_BSDISH_OS 1
  18313. -EOF
  18314. +_ACEOF
  18315. - cat >> confdefs.h <<\EOF
  18316. + cat >>confdefs.h <<\_ACEOF
  18317. #define LIBNET_BSD_BYTE_SWAP 1
  18318. -EOF
  18319. +_ACEOF
  18320. LIBNET_CONFIG_DEFINES="-DLIBNET_BSDISH_OS -DLIBNET_BSD_BYTE_SWAP"
  18321. MAN_PREFIX="$prefix/man/man3/"
  18322. @@ -1653,181 +9013,353 @@
  18323. ;;
  18324. *solaris*)
  18325. - cat >> confdefs.h <<\EOF
  18326. + cat >>confdefs.h <<\_ACEOF
  18327. #define HAVE_SOLARIS 1
  18328. -EOF
  18329. +_ACEOF
  18330. - for ac_hdr in sys/bufmod.h sys/dlpi_ext.h
  18331. +
  18332. +
  18333. +for ac_header in sys/bufmod.h sys/dlpi_ext.h
  18334. do
  18335. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  18336. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  18337. -echo "configure:1665: checking for $ac_hdr" >&5
  18338. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  18339. - echo $ac_n "(cached) $ac_c" 1>&6
  18340. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  18341. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18342. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  18343. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18344. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18345. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18346. +fi
  18347. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18348. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18349. +else
  18350. + # Is the header compilable?
  18351. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  18352. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  18353. +cat >conftest.$ac_ext <<_ACEOF
  18354. +/* confdefs.h. */
  18355. +_ACEOF
  18356. +cat confdefs.h >>conftest.$ac_ext
  18357. +cat >>conftest.$ac_ext <<_ACEOF
  18358. +/* end confdefs.h. */
  18359. +$ac_includes_default
  18360. +#include <$ac_header>
  18361. +_ACEOF
  18362. +rm -f conftest.$ac_objext
  18363. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  18364. + (eval $ac_compile) 2>conftest.er1
  18365. + ac_status=$?
  18366. + grep -v '^ *+' conftest.er1 >conftest.err
  18367. + rm -f conftest.er1
  18368. + cat conftest.err >&5
  18369. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18370. + (exit $ac_status); } &&
  18371. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18372. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18373. + (eval $ac_try) 2>&5
  18374. + ac_status=$?
  18375. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18376. + (exit $ac_status); }; } &&
  18377. + { ac_try='test -s conftest.$ac_objext'
  18378. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18379. + (eval $ac_try) 2>&5
  18380. + ac_status=$?
  18381. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18382. + (exit $ac_status); }; }; then
  18383. + ac_header_compiler=yes
  18384. +else
  18385. + echo "$as_me: failed program was:" >&5
  18386. +sed 's/^/| /' conftest.$ac_ext >&5
  18387. +
  18388. +ac_header_compiler=no
  18389. +fi
  18390. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  18391. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  18392. +echo "${ECHO_T}$ac_header_compiler" >&6
  18393. +
  18394. +# Is the header present?
  18395. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  18396. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  18397. +cat >conftest.$ac_ext <<_ACEOF
  18398. +/* confdefs.h. */
  18399. +_ACEOF
  18400. +cat confdefs.h >>conftest.$ac_ext
  18401. +cat >>conftest.$ac_ext <<_ACEOF
  18402. +/* end confdefs.h. */
  18403. +#include <$ac_header>
  18404. +_ACEOF
  18405. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  18406. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  18407. + ac_status=$?
  18408. + grep -v '^ *+' conftest.er1 >conftest.err
  18409. + rm -f conftest.er1
  18410. + cat conftest.err >&5
  18411. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18412. + (exit $ac_status); } >/dev/null; then
  18413. + if test -s conftest.err; then
  18414. + ac_cpp_err=$ac_c_preproc_warn_flag
  18415. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  18416. + else
  18417. + ac_cpp_err=
  18418. + fi
  18419. else
  18420. - cat > conftest.$ac_ext <<EOF
  18421. -#line 1670 "configure"
  18422. -#include "confdefs.h"
  18423. -#include <$ac_hdr>
  18424. -EOF
  18425. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  18426. -{ (eval echo configure:1675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  18427. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  18428. -if test -z "$ac_err"; then
  18429. - rm -rf conftest*
  18430. - eval "ac_cv_header_$ac_safe=yes"
  18431. + ac_cpp_err=yes
  18432. +fi
  18433. +if test -z "$ac_cpp_err"; then
  18434. + ac_header_preproc=yes
  18435. else
  18436. - echo "$ac_err" >&5
  18437. - echo "configure: failed program was:" >&5
  18438. - cat conftest.$ac_ext >&5
  18439. - rm -rf conftest*
  18440. - eval "ac_cv_header_$ac_safe=no"
  18441. + echo "$as_me: failed program was:" >&5
  18442. +sed 's/^/| /' conftest.$ac_ext >&5
  18443. +
  18444. + ac_header_preproc=no
  18445. +fi
  18446. +rm -f conftest.err conftest.$ac_ext
  18447. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  18448. +echo "${ECHO_T}$ac_header_preproc" >&6
  18449. +
  18450. +# So? What about this header?
  18451. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  18452. + yes:no: )
  18453. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  18454. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18455. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  18456. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  18457. + ac_header_preproc=yes
  18458. + ;;
  18459. + no:yes:* )
  18460. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  18461. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  18462. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  18463. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  18464. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  18465. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  18466. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  18467. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  18468. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  18469. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  18470. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  18471. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  18472. + (
  18473. + cat <<\_ASBOX
  18474. +## ------------------------------------------ ##
  18475. +## Report this to the AC_PACKAGE_NAME lists. ##
  18476. +## ------------------------------------------ ##
  18477. +_ASBOX
  18478. + ) |
  18479. + sed "s/^/$as_me: WARNING: /" >&2
  18480. + ;;
  18481. +esac
  18482. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  18483. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  18484. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  18485. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18486. +else
  18487. + eval "$as_ac_Header=\$ac_header_preproc"
  18488. fi
  18489. -rm -f conftest*
  18490. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  18491. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  18492. +
  18493. fi
  18494. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  18495. - echo "$ac_t""yes" 1>&6
  18496. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  18497. - cat >> confdefs.h <<EOF
  18498. -#define $ac_tr_hdr 1
  18499. -EOF
  18500. -
  18501. -else
  18502. - echo "$ac_t""no" 1>&6
  18503. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  18504. + cat >>confdefs.h <<_ACEOF
  18505. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  18506. +_ACEOF
  18507. +
  18508. fi
  18509. +
  18510. done
  18511. - echo $ac_n "checking for /dev/dlpi device""... $ac_c" 1>&6
  18512. -echo "configure:1702: checking for /dev/dlpi device" >&5
  18513. + echo "$as_me:$LINENO: checking for /dev/dlpi device" >&5
  18514. +echo $ECHO_N "checking for /dev/dlpi device... $ECHO_C" >&6
  18515. if test -c /dev/dlpi; then
  18516. - echo "$ac_t""yes" 1>&6
  18517. - cat >> confdefs.h <<\EOF
  18518. + echo "$as_me:$LINENO: result: yes" >&5
  18519. +echo "${ECHO_T}yes" >&6
  18520. + cat >>confdefs.h <<\_ACEOF
  18521. #define HAVE_DEV_DLPI 1
  18522. -EOF
  18523. +_ACEOF
  18524. else
  18525. - echo "$ac_t""no" 1>&6
  18526. + echo "$as_me:$LINENO: result: no" >&5
  18527. +echo "${ECHO_T}no" >&6
  18528. dir="/dev/dlpi"
  18529. - echo $ac_n "checking for $dir directory""... $ac_c" 1>&6
  18530. -echo "configure:1713: checking for $dir directory" >&5
  18531. + echo "$as_me:$LINENO: checking for $dir directory" >&5
  18532. +echo $ECHO_N "checking for $dir directory... $ECHO_C" >&6
  18533. if test -d $dir ; then
  18534. - echo "$ac_t""yes" 1>&6
  18535. - cat >> confdefs.h <<EOF
  18536. + echo "$as_me:$LINENO: result: yes" >&5
  18537. +echo "${ECHO_T}yes" >&6
  18538. + cat >>confdefs.h <<_ACEOF
  18539. #define DLPI_DEV_PREFIX "$dir"
  18540. -EOF
  18541. +_ACEOF
  18542. else
  18543. - echo "$ac_t""no" 1>&6
  18544. + echo "$as_me:$LINENO: result: no" >&5
  18545. +echo "${ECHO_T}no" >&6
  18546. fi
  18547. fi
  18548. - echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  18549. -echo "configure:1725: checking for socket in -lsocket" >&5
  18550. -ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  18551. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  18552. - echo $ac_n "(cached) $ac_c" 1>&6
  18553. +
  18554. +echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  18555. +echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  18556. +if test "${ac_cv_lib_socket_socket+set}" = set; then
  18557. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18558. else
  18559. - ac_save_LIBS="$LIBS"
  18560. + ac_check_lib_save_LIBS=$LIBS
  18561. LIBS="-lsocket $LIBS"
  18562. -cat > conftest.$ac_ext <<EOF
  18563. -#line 1733 "configure"
  18564. -#include "confdefs.h"
  18565. +cat >conftest.$ac_ext <<_ACEOF
  18566. +/* confdefs.h. */
  18567. +_ACEOF
  18568. +cat confdefs.h >>conftest.$ac_ext
  18569. +cat >>conftest.$ac_ext <<_ACEOF
  18570. +/* end confdefs.h. */
  18571. +
  18572. /* Override any gcc2 internal prototype to avoid an error. */
  18573. +#ifdef __cplusplus
  18574. +extern "C"
  18575. +#endif
  18576. /* We use char because int might match the return type of a gcc2
  18577. - builtin and then its argument prototype would still apply. */
  18578. -char socket();
  18579. -
  18580. -int main() {
  18581. -socket()
  18582. -; return 0; }
  18583. -EOF
  18584. -if { (eval echo configure:1744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18585. - rm -rf conftest*
  18586. - eval "ac_cv_lib_$ac_lib_var=yes"
  18587. -else
  18588. - echo "configure: failed program was:" >&5
  18589. - cat conftest.$ac_ext >&5
  18590. - rm -rf conftest*
  18591. - eval "ac_cv_lib_$ac_lib_var=no"
  18592. -fi
  18593. -rm -f conftest*
  18594. -LIBS="$ac_save_LIBS"
  18595. -
  18596. -fi
  18597. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  18598. - echo "$ac_t""yes" 1>&6
  18599. - ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  18600. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  18601. - cat >> confdefs.h <<EOF
  18602. -#define $ac_tr_lib 1
  18603. -EOF
  18604. + builtin and then its argument prototype would still apply. */
  18605. +char socket ();
  18606. +int
  18607. +main ()
  18608. +{
  18609. +socket ();
  18610. + ;
  18611. + return 0;
  18612. +}
  18613. +_ACEOF
  18614. +rm -f conftest.$ac_objext conftest$ac_exeext
  18615. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18616. + (eval $ac_link) 2>conftest.er1
  18617. + ac_status=$?
  18618. + grep -v '^ *+' conftest.er1 >conftest.err
  18619. + rm -f conftest.er1
  18620. + cat conftest.err >&5
  18621. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18622. + (exit $ac_status); } &&
  18623. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18624. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18625. + (eval $ac_try) 2>&5
  18626. + ac_status=$?
  18627. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18628. + (exit $ac_status); }; } &&
  18629. + { ac_try='test -s conftest$ac_exeext'
  18630. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18631. + (eval $ac_try) 2>&5
  18632. + ac_status=$?
  18633. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18634. + (exit $ac_status); }; }; then
  18635. + ac_cv_lib_socket_socket=yes
  18636. +else
  18637. + echo "$as_me: failed program was:" >&5
  18638. +sed 's/^/| /' conftest.$ac_ext >&5
  18639. +
  18640. +ac_cv_lib_socket_socket=no
  18641. +fi
  18642. +rm -f conftest.err conftest.$ac_objext \
  18643. + conftest$ac_exeext conftest.$ac_ext
  18644. +LIBS=$ac_check_lib_save_LIBS
  18645. +fi
  18646. +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  18647. +echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  18648. +if test $ac_cv_lib_socket_socket = yes; then
  18649. + cat >>confdefs.h <<_ACEOF
  18650. +#define HAVE_LIBSOCKET 1
  18651. +_ACEOF
  18652. LIBS="-lsocket $LIBS"
  18653. else
  18654. - echo "$ac_t""no" 1>&6
  18655. -{ echo "configure: error: libsocket not found." 1>&2; exit 1; }
  18656. + { { echo "$as_me:$LINENO: error: libsocket not found." >&5
  18657. +echo "$as_me: error: libsocket not found." >&2;}
  18658. + { (exit 1); exit 1; }; }
  18659. fi
  18660. - echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  18661. -echo "configure:1773: checking for gethostbyname in -lnsl" >&5
  18662. -ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  18663. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  18664. - echo $ac_n "(cached) $ac_c" 1>&6
  18665. +
  18666. +echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  18667. +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  18668. +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  18669. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18670. else
  18671. - ac_save_LIBS="$LIBS"
  18672. + ac_check_lib_save_LIBS=$LIBS
  18673. LIBS="-lnsl $LIBS"
  18674. -cat > conftest.$ac_ext <<EOF
  18675. -#line 1781 "configure"
  18676. -#include "confdefs.h"
  18677. +cat >conftest.$ac_ext <<_ACEOF
  18678. +/* confdefs.h. */
  18679. +_ACEOF
  18680. +cat confdefs.h >>conftest.$ac_ext
  18681. +cat >>conftest.$ac_ext <<_ACEOF
  18682. +/* end confdefs.h. */
  18683. +
  18684. /* Override any gcc2 internal prototype to avoid an error. */
  18685. +#ifdef __cplusplus
  18686. +extern "C"
  18687. +#endif
  18688. /* We use char because int might match the return type of a gcc2
  18689. - builtin and then its argument prototype would still apply. */
  18690. -char gethostbyname();
  18691. -
  18692. -int main() {
  18693. -gethostbyname()
  18694. -; return 0; }
  18695. -EOF
  18696. -if { (eval echo configure:1792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18697. - rm -rf conftest*
  18698. - eval "ac_cv_lib_$ac_lib_var=yes"
  18699. -else
  18700. - echo "configure: failed program was:" >&5
  18701. - cat conftest.$ac_ext >&5
  18702. - rm -rf conftest*
  18703. - eval "ac_cv_lib_$ac_lib_var=no"
  18704. -fi
  18705. -rm -f conftest*
  18706. -LIBS="$ac_save_LIBS"
  18707. -
  18708. -fi
  18709. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  18710. - echo "$ac_t""yes" 1>&6
  18711. - ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
  18712. - -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
  18713. - cat >> confdefs.h <<EOF
  18714. -#define $ac_tr_lib 1
  18715. -EOF
  18716. + builtin and then its argument prototype would still apply. */
  18717. +char gethostbyname ();
  18718. +int
  18719. +main ()
  18720. +{
  18721. +gethostbyname ();
  18722. + ;
  18723. + return 0;
  18724. +}
  18725. +_ACEOF
  18726. +rm -f conftest.$ac_objext conftest$ac_exeext
  18727. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18728. + (eval $ac_link) 2>conftest.er1
  18729. + ac_status=$?
  18730. + grep -v '^ *+' conftest.er1 >conftest.err
  18731. + rm -f conftest.er1
  18732. + cat conftest.err >&5
  18733. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18734. + (exit $ac_status); } &&
  18735. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18736. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18737. + (eval $ac_try) 2>&5
  18738. + ac_status=$?
  18739. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18740. + (exit $ac_status); }; } &&
  18741. + { ac_try='test -s conftest$ac_exeext'
  18742. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18743. + (eval $ac_try) 2>&5
  18744. + ac_status=$?
  18745. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18746. + (exit $ac_status); }; }; then
  18747. + ac_cv_lib_nsl_gethostbyname=yes
  18748. +else
  18749. + echo "$as_me: failed program was:" >&5
  18750. +sed 's/^/| /' conftest.$ac_ext >&5
  18751. +
  18752. +ac_cv_lib_nsl_gethostbyname=no
  18753. +fi
  18754. +rm -f conftest.err conftest.$ac_objext \
  18755. + conftest$ac_exeext conftest.$ac_ext
  18756. +LIBS=$ac_check_lib_save_LIBS
  18757. +fi
  18758. +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  18759. +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  18760. +if test $ac_cv_lib_nsl_gethostbyname = yes; then
  18761. + cat >>confdefs.h <<_ACEOF
  18762. +#define HAVE_LIBNSL 1
  18763. +_ACEOF
  18764. LIBS="-lnsl $LIBS"
  18765. else
  18766. - echo "$ac_t""no" 1>&6
  18767. -{ echo "configure: error: libnsl not found." 1>&2; exit 1; }
  18768. + { { echo "$as_me:$LINENO: error: libnsl not found." >&5
  18769. +echo "$as_me: error: libnsl not found." >&2;}
  18770. + { (exit 1); exit 1; }; }
  18771. fi
  18772. case "`uname -r`" in
  18773. 5.4)
  18774. - cat >> confdefs.h <<\EOF
  18775. + cat >>confdefs.h <<\_ACEOF
  18776. #define STUPID_SOLARIS_CHECKSUM_BUG 1
  18777. -EOF
  18778. +_ACEOF
  18779. ;;
  18780. 5.5*)
  18781. - cat >> confdefs.h <<\EOF
  18782. + cat >>confdefs.h <<\_ACEOF
  18783. #define STUPID_SOLARIS_CHECKSUM_BUG 1
  18784. -EOF
  18785. +_ACEOF
  18786. ;;
  18787. @@ -1842,73 +9374,112 @@
  18788. ;;
  18789. *)
  18790. - echo "configure: warning: apparently your OS is not officially supported yet" 1>&2
  18791. - echo "configure: warning: this may not work" 1>&2
  18792. - echo "$ac_t""you'll have to edit the makefile by hand" 1>&6
  18793. - echo "$ac_t""please send diffs to mike@infonexus.com" 1>&6
  18794. + { echo "$as_me:$LINENO: WARNING: apparently your OS is not officially supported yet" >&5
  18795. +echo "$as_me: WARNING: apparently your OS is not officially supported yet" >&2;}
  18796. + { echo "$as_me:$LINENO: WARNING: this may not work" >&5
  18797. +echo "$as_me: WARNING: this may not work" >&2;}
  18798. + echo "$as_me:$LINENO: result: you'll have to edit the makefile by hand" >&5
  18799. +echo "${ECHO_T}you'll have to edit the makefile by hand" >&6
  18800. + echo "$as_me:$LINENO: result: please send diffs to mike@infonexus.com" >&5
  18801. +echo "${ECHO_T}please send diffs to mike@infonexus.com" >&6
  18802. ;;
  18803. esac
  18804. - echo $ac_n "checking for libnet_build_ip in -lnet""... $ac_c" 1>&6
  18805. -echo "configure:1856: checking for libnet_build_ip in -lnet" >&5
  18806. -ac_lib_var=`echo net'_'libnet_build_ip | sed 'y%./+-%__p_%'`
  18807. -if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  18808. - echo $ac_n "(cached) $ac_c" 1>&6
  18809. + echo "$as_me:$LINENO: checking for libnet_build_ip in -lnet" >&5
  18810. +echo $ECHO_N "checking for libnet_build_ip in -lnet... $ECHO_C" >&6
  18811. +if test "${ac_cv_lib_net_libnet_build_ip+set}" = set; then
  18812. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18813. else
  18814. - ac_save_LIBS="$LIBS"
  18815. + ac_check_lib_save_LIBS=$LIBS
  18816. LIBS="-lnet $LIBS"
  18817. -cat > conftest.$ac_ext <<EOF
  18818. -#line 1864 "configure"
  18819. -#include "confdefs.h"
  18820. +cat >conftest.$ac_ext <<_ACEOF
  18821. +/* confdefs.h. */
  18822. +_ACEOF
  18823. +cat confdefs.h >>conftest.$ac_ext
  18824. +cat >>conftest.$ac_ext <<_ACEOF
  18825. +/* end confdefs.h. */
  18826. +
  18827. /* Override any gcc2 internal prototype to avoid an error. */
  18828. +#ifdef __cplusplus
  18829. +extern "C"
  18830. +#endif
  18831. /* We use char because int might match the return type of a gcc2
  18832. - builtin and then its argument prototype would still apply. */
  18833. -char libnet_build_ip();
  18834. -
  18835. -int main() {
  18836. -libnet_build_ip()
  18837. -; return 0; }
  18838. -EOF
  18839. -if { (eval echo configure:1875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18840. - rm -rf conftest*
  18841. - eval "ac_cv_lib_$ac_lib_var=yes"
  18842. -else
  18843. - echo "configure: failed program was:" >&5
  18844. - cat conftest.$ac_ext >&5
  18845. - rm -rf conftest*
  18846. - eval "ac_cv_lib_$ac_lib_var=no"
  18847. -fi
  18848. -rm -f conftest*
  18849. -LIBS="$ac_save_LIBS"
  18850. -
  18851. -fi
  18852. -if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  18853. - echo "$ac_t""yes" 1>&6
  18854. - echo $ac_n "checking version""... $ac_c" 1>&6
  18855. -echo "configure:1891: checking version" >&5 \
  18856. + builtin and then its argument prototype would still apply. */
  18857. +char libnet_build_ip ();
  18858. +int
  18859. +main ()
  18860. +{
  18861. +libnet_build_ip ();
  18862. + ;
  18863. + return 0;
  18864. +}
  18865. +_ACEOF
  18866. +rm -f conftest.$ac_objext conftest$ac_exeext
  18867. +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  18868. + (eval $ac_link) 2>conftest.er1
  18869. + ac_status=$?
  18870. + grep -v '^ *+' conftest.er1 >conftest.err
  18871. + rm -f conftest.er1
  18872. + cat conftest.err >&5
  18873. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18874. + (exit $ac_status); } &&
  18875. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  18876. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18877. + (eval $ac_try) 2>&5
  18878. + ac_status=$?
  18879. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18880. + (exit $ac_status); }; } &&
  18881. + { ac_try='test -s conftest$ac_exeext'
  18882. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  18883. + (eval $ac_try) 2>&5
  18884. + ac_status=$?
  18885. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  18886. + (exit $ac_status); }; }; then
  18887. + ac_cv_lib_net_libnet_build_ip=yes
  18888. +else
  18889. + echo "$as_me: failed program was:" >&5
  18890. +sed 's/^/| /' conftest.$ac_ext >&5
  18891. +
  18892. +ac_cv_lib_net_libnet_build_ip=no
  18893. +fi
  18894. +rm -f conftest.err conftest.$ac_objext \
  18895. + conftest$ac_exeext conftest.$ac_ext
  18896. +LIBS=$ac_check_lib_save_LIBS
  18897. +fi
  18898. +echo "$as_me:$LINENO: result: $ac_cv_lib_net_libnet_build_ip" >&5
  18899. +echo "${ECHO_T}$ac_cv_lib_net_libnet_build_ip" >&6
  18900. +if test $ac_cv_lib_net_libnet_build_ip = yes; then
  18901. + echo "$as_me:$LINENO: checking version" >&5
  18902. +echo $ECHO_N "checking version... $ECHO_C" >&6 \
  18903. if [ ! -f $LIB_PREFIX/libnet.a ] ; then
  18904. - echo "$ac_t""$LIB_PREFIX/libnet.a doesn't exist" 1>&6
  18905. - echo "$ac_t""previous libnet install lives elsewhere" 1>&6
  18906. + echo "$as_me:$LINENO: result: $LIB_PREFIX/libnet.a doesn't exist" >&5
  18907. +echo "${ECHO_T}$LIB_PREFIX/libnet.a doesn't exist" >&6
  18908. + echo "$as_me:$LINENO: result: previous libnet install lives elsewhere" >&5
  18909. +echo "${ECHO_T}previous libnet install lives elsewhere" >&6
  18910. else
  18911. __LIBNET_VERSION=`strings $LIB_PREFIX/libnet.a | grep "libnet version"\
  18912. | cut -f3 -d" "`;\
  18913. if test -z "$__LIBNET_VERSION"; then
  18914. - echo "$ac_t""<0.8" 1>&6
  18915. + echo "$as_me:$LINENO: result: <0.8" >&5
  18916. +echo "${ECHO_T}<0.8" >&6
  18917. else
  18918. - echo "$ac_t""$__LIBNET_VERSION" 1>&6
  18919. + echo "$as_me:$LINENO: result: $__LIBNET_VERSION" >&5
  18920. +echo "${ECHO_T}$__LIBNET_VERSION" >&6
  18921. fi
  18922. fi\
  18923. -
  18924. -else
  18925. - echo "$ac_t""no" 1>&6
  18926. +
  18927. fi
  18928. -echo $ac_n "checking machine endianess""... $ac_c" 1>&6
  18929. -echo "configure:1912: checking machine endianess" >&5
  18930. +echo "$as_me:$LINENO: checking machine endianess" >&5
  18931. +echo $ECHO_N "checking machine endianess... $ECHO_C" >&6
  18932. + if test "${ac_cv_libnet_endianess+set}" = set; then
  18933. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18934. +else
  18935. +
  18936. cat > conftest.c << EOF
  18937. # include <stdio.h>
  18938. @@ -1957,30 +9528,34 @@
  18939. ac_cv_libnet_endianess=lil
  18940. else
  18941. ac_cv_libnet_endianess=unknown
  18942. - fi
  18943. + fi
  18944. fi
  18945. rm -f conftest* core core.conftest
  18946. - echo "$ac_t""$ac_cv_libnet_endianess" 1>&6
  18947. +
  18948. +fi
  18949. +
  18950. + echo "$as_me:$LINENO: result: $ac_cv_libnet_endianess" >&5
  18951. +echo "${ECHO_T}$ac_cv_libnet_endianess" >&6
  18952. if test $ac_cv_libnet_endianess = big ; then
  18953. - cat >> confdefs.h <<\EOF
  18954. + cat >>confdefs.h <<\_ACEOF
  18955. #define LIBNET_BIG_ENDIAN 1
  18956. -EOF
  18957. +_ACEOF
  18958. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_BIG_ENDIAN"
  18959. elif test $ac_cv_libnet_endianess = lil ; then
  18960. - cat >> confdefs.h <<\EOF
  18961. + cat >>confdefs.h <<\_ACEOF
  18962. #define LIBNET_LIL_ENDIAN 1
  18963. -EOF
  18964. +_ACEOF
  18965. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DLIBNET_LIL_ENDIAN"
  18966. fi
  18967. -
  18968. -echo $ac_n "checking if unaligned accesses fail""... $ac_c" 1>&6
  18969. -echo "configure:1982: checking if unaligned accesses fail" >&5
  18970. - if eval "test \"`echo '$''{'ac_cv_lbl_unaligned_fail'+set}'`\" = set"; then
  18971. - echo $ac_n "(cached) $ac_c" 1>&6
  18972. +
  18973. +echo "$as_me:$LINENO: checking if unaligned accesses fail" >&5
  18974. +echo $ECHO_N "checking if unaligned accesses fail... $ECHO_C" >&6
  18975. + if test "${ac_cv_lbl_unaligned_fail+set}" = set; then
  18976. + echo $ECHO_N "(cached) $ECHO_C" >&6
  18977. else
  18978. case "$target_cpu" in
  18979. @@ -2039,446 +9614,1598 @@
  18980. esac
  18981. fi
  18982. - echo "$ac_t""$ac_cv_lbl_unaligned_fail" 1>&6
  18983. + echo "$as_me:$LINENO: result: $ac_cv_lbl_unaligned_fail" >&5
  18984. +echo "${ECHO_T}$ac_cv_lbl_unaligned_fail" >&6
  18985. if test $ac_cv_lbl_unaligned_fail = yes ; then
  18986. - cat >> confdefs.h <<\EOF
  18987. + cat >>confdefs.h <<\_ACEOF
  18988. #define LBL_ALIGN 1
  18989. -EOF
  18990. +_ACEOF
  18991. fi
  18992. -for ac_hdr in sys/sockio.h
  18993. +
  18994. +for ac_header in sys/sockio.h
  18995. do
  18996. -ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  18997. -echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  18998. -echo "configure:2056: checking for $ac_hdr" >&5
  18999. -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  19000. - echo $ac_n "(cached) $ac_c" 1>&6
  19001. +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  19002. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19003. + echo "$as_me:$LINENO: checking for $ac_header" >&5
  19004. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19005. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19006. + echo $ECHO_N "(cached) $ECHO_C" >&6
  19007. +fi
  19008. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19009. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19010. +else
  19011. + # Is the header compilable?
  19012. +echo "$as_me:$LINENO: checking $ac_header usability" >&5
  19013. +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  19014. +cat >conftest.$ac_ext <<_ACEOF
  19015. +/* confdefs.h. */
  19016. +_ACEOF
  19017. +cat confdefs.h >>conftest.$ac_ext
  19018. +cat >>conftest.$ac_ext <<_ACEOF
  19019. +/* end confdefs.h. */
  19020. +$ac_includes_default
  19021. +#include <$ac_header>
  19022. +_ACEOF
  19023. +rm -f conftest.$ac_objext
  19024. +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19025. + (eval $ac_compile) 2>conftest.er1
  19026. + ac_status=$?
  19027. + grep -v '^ *+' conftest.er1 >conftest.err
  19028. + rm -f conftest.er1
  19029. + cat conftest.err >&5
  19030. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19031. + (exit $ac_status); } &&
  19032. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  19033. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19034. + (eval $ac_try) 2>&5
  19035. + ac_status=$?
  19036. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19037. + (exit $ac_status); }; } &&
  19038. + { ac_try='test -s conftest.$ac_objext'
  19039. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19040. + (eval $ac_try) 2>&5
  19041. + ac_status=$?
  19042. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19043. + (exit $ac_status); }; }; then
  19044. + ac_header_compiler=yes
  19045. +else
  19046. + echo "$as_me: failed program was:" >&5
  19047. +sed 's/^/| /' conftest.$ac_ext >&5
  19048. +
  19049. +ac_header_compiler=no
  19050. +fi
  19051. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  19052. +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  19053. +echo "${ECHO_T}$ac_header_compiler" >&6
  19054. +
  19055. +# Is the header present?
  19056. +echo "$as_me:$LINENO: checking $ac_header presence" >&5
  19057. +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  19058. +cat >conftest.$ac_ext <<_ACEOF
  19059. +/* confdefs.h. */
  19060. +_ACEOF
  19061. +cat confdefs.h >>conftest.$ac_ext
  19062. +cat >>conftest.$ac_ext <<_ACEOF
  19063. +/* end confdefs.h. */
  19064. +#include <$ac_header>
  19065. +_ACEOF
  19066. +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  19067. + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  19068. + ac_status=$?
  19069. + grep -v '^ *+' conftest.er1 >conftest.err
  19070. + rm -f conftest.er1
  19071. + cat conftest.err >&5
  19072. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19073. + (exit $ac_status); } >/dev/null; then
  19074. + if test -s conftest.err; then
  19075. + ac_cpp_err=$ac_c_preproc_warn_flag
  19076. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  19077. + else
  19078. + ac_cpp_err=
  19079. + fi
  19080. else
  19081. - cat > conftest.$ac_ext <<EOF
  19082. -#line 2061 "configure"
  19083. -#include "confdefs.h"
  19084. -#include <$ac_hdr>
  19085. -EOF
  19086. -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  19087. -{ (eval echo configure:2066: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  19088. -ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  19089. -if test -z "$ac_err"; then
  19090. - rm -rf conftest*
  19091. - eval "ac_cv_header_$ac_safe=yes"
  19092. + ac_cpp_err=yes
  19093. +fi
  19094. +if test -z "$ac_cpp_err"; then
  19095. + ac_header_preproc=yes
  19096. else
  19097. - echo "$ac_err" >&5
  19098. - echo "configure: failed program was:" >&5
  19099. - cat conftest.$ac_ext >&5
  19100. - rm -rf conftest*
  19101. - eval "ac_cv_header_$ac_safe=no"
  19102. + echo "$as_me: failed program was:" >&5
  19103. +sed 's/^/| /' conftest.$ac_ext >&5
  19104. +
  19105. + ac_header_preproc=no
  19106. +fi
  19107. +rm -f conftest.err conftest.$ac_ext
  19108. +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  19109. +echo "${ECHO_T}$ac_header_preproc" >&6
  19110. +
  19111. +# So? What about this header?
  19112. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  19113. + yes:no: )
  19114. + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  19115. +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  19116. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  19117. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  19118. + ac_header_preproc=yes
  19119. + ;;
  19120. + no:yes:* )
  19121. + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  19122. +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  19123. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  19124. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  19125. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  19126. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  19127. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  19128. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  19129. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  19130. +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  19131. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  19132. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  19133. + (
  19134. + cat <<\_ASBOX
  19135. +## ------------------------------------------ ##
  19136. +## Report this to the AC_PACKAGE_NAME lists. ##
  19137. +## ------------------------------------------ ##
  19138. +_ASBOX
  19139. + ) |
  19140. + sed "s/^/$as_me: WARNING: /" >&2
  19141. + ;;
  19142. +esac
  19143. +echo "$as_me:$LINENO: checking for $ac_header" >&5
  19144. +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  19145. +if eval "test \"\${$as_ac_Header+set}\" = set"; then
  19146. + echo $ECHO_N "(cached) $ECHO_C" >&6
  19147. +else
  19148. + eval "$as_ac_Header=\$ac_header_preproc"
  19149. fi
  19150. -rm -f conftest*
  19151. +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  19152. +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  19153. +
  19154. fi
  19155. -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  19156. - echo "$ac_t""yes" 1>&6
  19157. - ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  19158. - cat >> confdefs.h <<EOF
  19159. -#define $ac_tr_hdr 1
  19160. -EOF
  19161. -
  19162. -else
  19163. - echo "$ac_t""no" 1>&6
  19164. +if test `eval echo '${'$as_ac_Header'}'` = yes; then
  19165. + cat >>confdefs.h <<_ACEOF
  19166. +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  19167. +_ACEOF
  19168. +
  19169. fi
  19170. +
  19171. done
  19172. + ac_config_headers="$ac_config_headers include/config.h"
  19173. -trap '' 1 2 15
  19174. -cat > confcache <<\EOF
  19175. + ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile include/libnet/Makefile libnet-config"
  19176. +cat >confcache <<\_ACEOF
  19177. # This file is a shell script that caches the results of configure
  19178. # tests run on this system so they can be shared between configure
  19179. -# scripts and configure runs. It is not useful on other systems.
  19180. -# If it contains results you don't want to keep, you may remove or edit it.
  19181. +# scripts and configure runs, see configure's option --config-cache.
  19182. +# It is not useful on other systems. If it contains results you don't
  19183. +# want to keep, you may remove or edit it.
  19184. #
  19185. -# By default, configure uses ./config.cache as the cache file,
  19186. -# creating it if it does not exist already. You can give configure
  19187. -# the --cache-file=FILE option to use a different cache file; that is
  19188. -# what configure does when it calls configure scripts in
  19189. -# subdirectories, so they share the cache.
  19190. -# Giving --cache-file=/dev/null disables caching, for debugging configure.
  19191. -# config.status only pays attention to the cache file if you give it the
  19192. -# --recheck option to rerun configure.
  19193. +# config.status only pays attention to the cache file if you give it
  19194. +# the --recheck option to rerun configure.
  19195. #
  19196. -EOF
  19197. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  19198. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  19199. +# following values.
  19200. +
  19201. +_ACEOF
  19202. +
  19203. # The following way of writing the cache mishandles newlines in values,
  19204. # but we know of no workaround that is simple, portable, and efficient.
  19205. # So, don't put newlines in cache variables' values.
  19206. # Ultrix sh set writes to stderr and can't be redirected directly,
  19207. # and sets the high bit in the cache file unless we assign to the vars.
  19208. -(set) 2>&1 |
  19209. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  19210. - *ac_space=\ *)
  19211. - # `set' does not quote correctly, so add quotes (double-quote substitution
  19212. - # turns \\\\ into \\, and sed turns \\ into \).
  19213. - sed -n \
  19214. - -e "s/'/'\\\\''/g" \
  19215. - -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  19216. - ;;
  19217. - *)
  19218. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  19219. - sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  19220. - ;;
  19221. - esac >> confcache
  19222. -if cmp -s $cache_file confcache; then
  19223. - :
  19224. -else
  19225. +{
  19226. + (set) 2>&1 |
  19227. + case `(ac_space=' '; set | grep ac_space) 2>&1` in
  19228. + *ac_space=\ *)
  19229. + # `set' does not quote correctly, so add quotes (double-quote
  19230. + # substitution turns \\\\ into \\, and sed turns \\ into \).
  19231. + sed -n \
  19232. + "s/'/'\\\\''/g;
  19233. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  19234. + ;;
  19235. + *)
  19236. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  19237. + sed -n \
  19238. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  19239. + ;;
  19240. + esac;
  19241. +} |
  19242. + sed '
  19243. + t clear
  19244. + : clear
  19245. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  19246. + t end
  19247. + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  19248. + : end' >>confcache
  19249. +if diff $cache_file confcache >/dev/null 2>&1; then :; else
  19250. if test -w $cache_file; then
  19251. - echo "updating cache $cache_file"
  19252. - cat confcache > $cache_file
  19253. + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  19254. + cat confcache >$cache_file
  19255. else
  19256. echo "not updating unwritable cache $cache_file"
  19257. fi
  19258. fi
  19259. rm -f confcache
  19260. -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  19261. -
  19262. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  19263. # Let make expand exec_prefix.
  19264. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  19265. -# Any assignment to VPATH causes Sun make to only execute
  19266. -# the first set of double-colon rules, so remove it if not needed.
  19267. -# If there is a colon in the path, we need to keep it.
  19268. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  19269. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  19270. +# trailing colons and then remove the whole line if VPATH becomes empty
  19271. +# (actually we leave an empty line to preserve line numbers).
  19272. if test "x$srcdir" = x.; then
  19273. - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
  19274. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  19275. +s/:*\$(srcdir):*/:/;
  19276. +s/:*\${srcdir}:*/:/;
  19277. +s/:*@srcdir@:*/:/;
  19278. +s/^\([^=]*=[ ]*\):*/\1/;
  19279. +s/:*$//;
  19280. +s/^[^=]*=[ ]*$//;
  19281. +}'
  19282. fi
  19283. -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  19284. -
  19285. DEFS=-DHAVE_CONFIG_H
  19286. -# Without the "./", some shells look in PATH for config.status.
  19287. -: ${CONFIG_STATUS=./config.status}
  19288. +ac_libobjs=
  19289. +ac_ltlibobjs=
  19290. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  19291. + # 1. Remove the extension, and $U if already installed.
  19292. + ac_i=`echo "$ac_i" |
  19293. + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  19294. + # 2. Add them.
  19295. + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  19296. + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  19297. +done
  19298. +LIBOBJS=$ac_libobjs
  19299. -echo creating $CONFIG_STATUS
  19300. -rm -f $CONFIG_STATUS
  19301. -cat > $CONFIG_STATUS <<EOF
  19302. -#! /bin/sh
  19303. -# Generated automatically by configure.
  19304. +LTLIBOBJS=$ac_ltlibobjs
  19305. +
  19306. +
  19307. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  19308. + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  19309. +Usually this means the macro was only invoked conditionally." >&5
  19310. +echo "$as_me: error: conditional \"AMDEP\" was never defined.
  19311. +Usually this means the macro was only invoked conditionally." >&2;}
  19312. + { (exit 1); exit 1; }; }
  19313. +fi
  19314. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  19315. + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  19316. +Usually this means the macro was only invoked conditionally." >&5
  19317. +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  19318. +Usually this means the macro was only invoked conditionally." >&2;}
  19319. + { (exit 1); exit 1; }; }
  19320. +fi
  19321. +
  19322. +: ${CONFIG_STATUS=./config.status}
  19323. +ac_clean_files_save=$ac_clean_files
  19324. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  19325. +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  19326. +echo "$as_me: creating $CONFIG_STATUS" >&6;}
  19327. +cat >$CONFIG_STATUS <<_ACEOF
  19328. +#! $SHELL
  19329. +# Generated by $as_me.
  19330. # Run this file to recreate the current configuration.
  19331. -# This directory was configured as follows,
  19332. -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  19333. -#
  19334. -# $0 $ac_configure_args
  19335. -#
  19336. # Compiler output produced by configure, useful for debugging
  19337. -# configure, is in ./config.log if it exists.
  19338. +# configure, is in config.log if it exists.
  19339. -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  19340. -for ac_option
  19341. +debug=false
  19342. +ac_cs_recheck=false
  19343. +ac_cs_silent=false
  19344. +SHELL=\${CONFIG_SHELL-$SHELL}
  19345. +_ACEOF
  19346. +
  19347. +cat >>$CONFIG_STATUS <<\_ACEOF
  19348. +## --------------------- ##
  19349. +## M4sh Initialization. ##
  19350. +## --------------------- ##
  19351. +
  19352. +# Be Bourne compatible
  19353. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  19354. + emulate sh
  19355. + NULLCMD=:
  19356. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19357. + # is contrary to our usage. Disable this feature.
  19358. + alias -g '${1+"$@"}'='"$@"'
  19359. +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19360. + set -o posix
  19361. +fi
  19362. +DUALCASE=1; export DUALCASE # for MKS sh
  19363. +
  19364. +# Support unset when possible.
  19365. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  19366. + as_unset=unset
  19367. +else
  19368. + as_unset=false
  19369. +fi
  19370. +
  19371. +
  19372. +# Work around bugs in pre-3.0 UWIN ksh.
  19373. +$as_unset ENV MAIL MAILPATH
  19374. +PS1='$ '
  19375. +PS2='> '
  19376. +PS4='+ '
  19377. +
  19378. +# NLS nuisances.
  19379. +for as_var in \
  19380. + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  19381. + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  19382. + LC_TELEPHONE LC_TIME
  19383. do
  19384. - case "\$ac_option" in
  19385. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19386. - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  19387. - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  19388. - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  19389. - echo "$CONFIG_STATUS generated by autoconf version 2.13"
  19390. - exit 0 ;;
  19391. - -help | --help | --hel | --he | --h)
  19392. - echo "\$ac_cs_usage"; exit 0 ;;
  19393. - *) echo "\$ac_cs_usage"; exit 1 ;;
  19394. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  19395. + eval $as_var=C; export $as_var
  19396. + else
  19397. + $as_unset $as_var
  19398. + fi
  19399. +done
  19400. +
  19401. +# Required to use basename.
  19402. +if expr a : '\(a\)' >/dev/null 2>&1; then
  19403. + as_expr=expr
  19404. +else
  19405. + as_expr=false
  19406. +fi
  19407. +
  19408. +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  19409. + as_basename=basename
  19410. +else
  19411. + as_basename=false
  19412. +fi
  19413. +
  19414. +
  19415. +# Name of the executable.
  19416. +as_me=`$as_basename "$0" ||
  19417. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  19418. + X"$0" : 'X\(//\)$' \| \
  19419. + X"$0" : 'X\(/\)$' \| \
  19420. + . : '\(.\)' 2>/dev/null ||
  19421. +echo X/"$0" |
  19422. + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  19423. + /^X\/\(\/\/\)$/{ s//\1/; q; }
  19424. + /^X\/\(\/\).*/{ s//\1/; q; }
  19425. + s/.*/./; q'`
  19426. +
  19427. +
  19428. +# PATH needs CR, and LINENO needs CR and PATH.
  19429. +# Avoid depending upon Character Ranges.
  19430. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  19431. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  19432. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  19433. +as_cr_digits='0123456789'
  19434. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  19435. +
  19436. +# The user is always right.
  19437. +if test "${PATH_SEPARATOR+set}" != set; then
  19438. + echo "#! /bin/sh" >conf$$.sh
  19439. + echo "exit 0" >>conf$$.sh
  19440. + chmod +x conf$$.sh
  19441. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  19442. + PATH_SEPARATOR=';'
  19443. + else
  19444. + PATH_SEPARATOR=:
  19445. + fi
  19446. + rm -f conf$$.sh
  19447. +fi
  19448. +
  19449. +
  19450. + as_lineno_1=$LINENO
  19451. + as_lineno_2=$LINENO
  19452. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  19453. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  19454. + test "x$as_lineno_3" = "x$as_lineno_2" || {
  19455. + # Find who we are. Look in the path if we contain no path at all
  19456. + # relative or not.
  19457. + case $0 in
  19458. + *[\\/]* ) as_myself=$0 ;;
  19459. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19460. +for as_dir in $PATH
  19461. +do
  19462. + IFS=$as_save_IFS
  19463. + test -z "$as_dir" && as_dir=.
  19464. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  19465. +done
  19466. +
  19467. + ;;
  19468. esac
  19469. + # We did not find ourselves, most probably we were run as `sh COMMAND'
  19470. + # in which case we are not to be found in the path.
  19471. + if test "x$as_myself" = x; then
  19472. + as_myself=$0
  19473. + fi
  19474. + if test ! -f "$as_myself"; then
  19475. + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  19476. +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  19477. + { (exit 1); exit 1; }; }
  19478. + fi
  19479. + case $CONFIG_SHELL in
  19480. + '')
  19481. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19482. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  19483. +do
  19484. + IFS=$as_save_IFS
  19485. + test -z "$as_dir" && as_dir=.
  19486. + for as_base in sh bash ksh sh5; do
  19487. + case $as_dir in
  19488. + /*)
  19489. + if ("$as_dir/$as_base" -c '
  19490. + as_lineno_1=$LINENO
  19491. + as_lineno_2=$LINENO
  19492. + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  19493. + test "x$as_lineno_1" != "x$as_lineno_2" &&
  19494. + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  19495. + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  19496. + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  19497. + CONFIG_SHELL=$as_dir/$as_base
  19498. + export CONFIG_SHELL
  19499. + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  19500. + fi;;
  19501. + esac
  19502. + done
  19503. done
  19504. +;;
  19505. + esac
  19506. -ac_given_srcdir=$srcdir
  19507. -ac_given_INSTALL="$INSTALL"
  19508. -
  19509. -trap 'rm -fr `echo "Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
  19510. - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
  19511. - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
  19512. - libnet-config include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  19513. -EOF
  19514. -cat >> $CONFIG_STATUS <<EOF
  19515. + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  19516. + # uniformly replaced by the line number. The first 'sed' inserts a
  19517. + # line-number line before each line; the second 'sed' does the real
  19518. + # work. The second script uses 'N' to pair each line-number line
  19519. + # with the numbered line, and appends trailing '-' during
  19520. + # substitution so that $LINENO is not a special case at line end.
  19521. + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  19522. + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  19523. + sed '=' <$as_myself |
  19524. + sed '
  19525. + N
  19526. + s,$,-,
  19527. + : loop
  19528. + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  19529. + t loop
  19530. + s,-$,,
  19531. + s,^['$as_cr_digits']*\n,,
  19532. + ' >$as_me.lineno &&
  19533. + chmod +x $as_me.lineno ||
  19534. + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  19535. +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  19536. + { (exit 1); exit 1; }; }
  19537. +
  19538. + # Don't try to exec as it changes $[0], causing all sort of problems
  19539. + # (the dirname of $[0] is not the place where we might find the
  19540. + # original and so on. Autoconf is especially sensible to this).
  19541. + . ./$as_me.lineno
  19542. + # Exit status is that of the last command.
  19543. + exit
  19544. +}
  19545. -# Protect against being on the right side of a sed subst in config.status.
  19546. -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  19547. - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  19548. -$ac_vpsub
  19549. -$extrasub
  19550. -s%@SHELL@%$SHELL%g
  19551. -s%@CFLAGS@%$CFLAGS%g
  19552. -s%@CPPFLAGS@%$CPPFLAGS%g
  19553. -s%@CXXFLAGS@%$CXXFLAGS%g
  19554. -s%@FFLAGS@%$FFLAGS%g
  19555. -s%@DEFS@%$DEFS%g
  19556. -s%@LDFLAGS@%$LDFLAGS%g
  19557. -s%@LIBS@%$LIBS%g
  19558. -s%@exec_prefix@%$exec_prefix%g
  19559. -s%@prefix@%$prefix%g
  19560. -s%@program_transform_name@%$program_transform_name%g
  19561. -s%@bindir@%$bindir%g
  19562. -s%@sbindir@%$sbindir%g
  19563. -s%@libexecdir@%$libexecdir%g
  19564. -s%@datadir@%$datadir%g
  19565. -s%@sysconfdir@%$sysconfdir%g
  19566. -s%@sharedstatedir@%$sharedstatedir%g
  19567. -s%@localstatedir@%$localstatedir%g
  19568. -s%@libdir@%$libdir%g
  19569. -s%@includedir@%$includedir%g
  19570. -s%@oldincludedir@%$oldincludedir%g
  19571. -s%@infodir@%$infodir%g
  19572. -s%@mandir@%$mandir%g
  19573. -s%@LL_INT_TYPE_UC@%$LL_INT_TYPE_UC%g
  19574. -s%@LL_INT_TYPE@%$LL_INT_TYPE%g
  19575. -s%@LIB_PREFIX@%$LIB_PREFIX%g
  19576. -s%@INC_PREFIX@%$INC_PREFIX%g
  19577. -s%@MAN_PREFIX@%$MAN_PREFIX%g
  19578. -s%@BIN_PREFIX@%$BIN_PREFIX%g
  19579. -s%@RANLIB@%$RANLIB%g
  19580. -s%@AR@%$AR%g
  19581. -s%@LN@%$LN%g
  19582. -s%@ADDITIONAL_LIBS@%$ADDITIONAL_LIBS%g
  19583. -s%@LIBNET_CONFIG_DEFINES@%$LIBNET_CONFIG_DEFINES%g
  19584. -s%@LIBNET_CONFIG_LIBS@%$LIBNET_CONFIG_LIBS%g
  19585. -s%@LIBNET_CONFIG_CFLAGS@%$LIBNET_CONFIG_CFLAGS%g
  19586. -s%@host@%$host%g
  19587. -s%@host_alias@%$host_alias%g
  19588. -s%@host_cpu@%$host_cpu%g
  19589. -s%@host_vendor@%$host_vendor%g
  19590. -s%@host_os@%$host_os%g
  19591. -s%@target@%$target%g
  19592. -s%@target_alias@%$target_alias%g
  19593. -s%@target_cpu@%$target_cpu%g
  19594. -s%@target_vendor@%$target_vendor%g
  19595. -s%@target_os@%$target_os%g
  19596. -s%@build@%$build%g
  19597. -s%@build_alias@%$build_alias%g
  19598. -s%@build_cpu@%$build_cpu%g
  19599. -s%@build_vendor@%$build_vendor%g
  19600. -s%@build_os@%$build_os%g
  19601. -s%@CC@%$CC%g
  19602. -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  19603. -s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  19604. -s%@INSTALL_DATA@%$INSTALL_DATA%g
  19605. -s%@SET_MAKE@%$SET_MAKE%g
  19606. -s%@CPP@%$CPP%g
  19607. -CEOF
  19608. -EOF
  19609. +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  19610. + *c*,-n*) ECHO_N= ECHO_C='
  19611. +' ECHO_T=' ' ;;
  19612. + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  19613. + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  19614. +esac
  19615. -cat >> $CONFIG_STATUS <<\EOF
  19616. +if expr a : '\(a\)' >/dev/null 2>&1; then
  19617. + as_expr=expr
  19618. +else
  19619. + as_expr=false
  19620. +fi
  19621. -# Split the substitutions into bite-sized pieces for seds with
  19622. -# small command number limits, like on Digital OSF/1 and HP-UX.
  19623. -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  19624. -ac_file=1 # Number of current file.
  19625. -ac_beg=1 # First line for current file.
  19626. -ac_end=$ac_max_sed_cmds # Line after last line for current file.
  19627. -ac_more_lines=:
  19628. -ac_sed_cmds=""
  19629. -while $ac_more_lines; do
  19630. - if test $ac_beg -gt 1; then
  19631. - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  19632. - else
  19633. - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  19634. - fi
  19635. - if test ! -s conftest.s$ac_file; then
  19636. - ac_more_lines=false
  19637. - rm -f conftest.s$ac_file
  19638. - else
  19639. - if test -z "$ac_sed_cmds"; then
  19640. - ac_sed_cmds="sed -f conftest.s$ac_file"
  19641. - else
  19642. - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  19643. - fi
  19644. - ac_file=`expr $ac_file + 1`
  19645. - ac_beg=$ac_end
  19646. - ac_end=`expr $ac_end + $ac_max_sed_cmds`
  19647. +rm -f conf$$ conf$$.exe conf$$.file
  19648. +echo >conf$$.file
  19649. +if ln -s conf$$.file conf$$ 2>/dev/null; then
  19650. + # We could just check for DJGPP; but this test a) works b) is more generic
  19651. + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  19652. + if test -f conf$$.exe; then
  19653. + # Don't use ln at all; we don't have any links
  19654. + as_ln_s='cp -p'
  19655. + else
  19656. + as_ln_s='ln -s'
  19657. fi
  19658. +elif ln conf$$.file conf$$ 2>/dev/null; then
  19659. + as_ln_s=ln
  19660. +else
  19661. + as_ln_s='cp -p'
  19662. +fi
  19663. +rm -f conf$$ conf$$.exe conf$$.file
  19664. +
  19665. +if mkdir -p . 2>/dev/null; then
  19666. + as_mkdir_p=:
  19667. +else
  19668. + test -d ./-p && rmdir ./-p
  19669. + as_mkdir_p=false
  19670. +fi
  19671. +
  19672. +as_executable_p="test -f"
  19673. +
  19674. +# Sed expression to map a string onto a valid CPP name.
  19675. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  19676. +
  19677. +# Sed expression to map a string onto a valid variable name.
  19678. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  19679. +
  19680. +
  19681. +# IFS
  19682. +# We need space, tab and new line, in precisely that order.
  19683. +as_nl='
  19684. +'
  19685. +IFS=" $as_nl"
  19686. +
  19687. +# CDPATH.
  19688. +$as_unset CDPATH
  19689. +
  19690. +exec 6>&1
  19691. +
  19692. +# Open the log real soon, to keep \$[0] and so on meaningful, and to
  19693. +# report actual input values of CONFIG_FILES etc. instead of their
  19694. +# values after options handling. Logging --version etc. is OK.
  19695. +exec 5>>config.log
  19696. +{
  19697. + echo
  19698. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  19699. +## Running $as_me. ##
  19700. +_ASBOX
  19701. +} >&5
  19702. +cat >&5 <<_CSEOF
  19703. +
  19704. +This file was extended by $as_me, which was
  19705. +generated by GNU Autoconf 2.59. Invocation command line was
  19706. +
  19707. + CONFIG_FILES = $CONFIG_FILES
  19708. + CONFIG_HEADERS = $CONFIG_HEADERS
  19709. + CONFIG_LINKS = $CONFIG_LINKS
  19710. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  19711. + $ $0 $@
  19712. +
  19713. +_CSEOF
  19714. +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  19715. +echo >&5
  19716. +_ACEOF
  19717. +
  19718. +# Files that config.status was made for.
  19719. +if test -n "$ac_config_files"; then
  19720. + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  19721. +fi
  19722. +
  19723. +if test -n "$ac_config_headers"; then
  19724. + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  19725. +fi
  19726. +
  19727. +if test -n "$ac_config_links"; then
  19728. + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  19729. +fi
  19730. +
  19731. +if test -n "$ac_config_commands"; then
  19732. + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  19733. +fi
  19734. +
  19735. +cat >>$CONFIG_STATUS <<\_ACEOF
  19736. +
  19737. +ac_cs_usage="\
  19738. +\`$as_me' instantiates files from templates according to the
  19739. +current configuration.
  19740. +
  19741. +Usage: $0 [OPTIONS] [FILE]...
  19742. +
  19743. + -h, --help print this help, then exit
  19744. + -V, --version print version number, then exit
  19745. + -q, --quiet do not print progress messages
  19746. + -d, --debug don't remove temporary files
  19747. + --recheck update $as_me by reconfiguring in the same conditions
  19748. + --file=FILE[:TEMPLATE]
  19749. + instantiate the configuration file FILE
  19750. + --header=FILE[:TEMPLATE]
  19751. + instantiate the configuration header FILE
  19752. +
  19753. +Configuration files:
  19754. +$config_files
  19755. +
  19756. +Configuration headers:
  19757. +$config_headers
  19758. +
  19759. +Configuration commands:
  19760. +$config_commands
  19761. +
  19762. +Report bugs to <bug-autoconf@gnu.org>."
  19763. +_ACEOF
  19764. +
  19765. +cat >>$CONFIG_STATUS <<_ACEOF
  19766. +ac_cs_version="\\
  19767. +config.status
  19768. +configured by $0, generated by GNU Autoconf 2.59,
  19769. + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  19770. +
  19771. +Copyright (C) 2003 Free Software Foundation, Inc.
  19772. +This config.status script is free software; the Free Software Foundation
  19773. +gives unlimited permission to copy, distribute and modify it."
  19774. +srcdir=$srcdir
  19775. +INSTALL="$INSTALL"
  19776. +_ACEOF
  19777. +
  19778. +cat >>$CONFIG_STATUS <<\_ACEOF
  19779. +# If no file are specified by the user, then we need to provide default
  19780. +# value. By we need to know if files were specified by the user.
  19781. +ac_need_defaults=:
  19782. +while test $# != 0
  19783. +do
  19784. + case $1 in
  19785. + --*=*)
  19786. + ac_option=`expr "x$1" : 'x\([^=]*\)='`
  19787. + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  19788. + ac_shift=:
  19789. + ;;
  19790. + -*)
  19791. + ac_option=$1
  19792. + ac_optarg=$2
  19793. + ac_shift=shift
  19794. + ;;
  19795. + *) # This is not an option, so the user has probably given explicit
  19796. + # arguments.
  19797. + ac_option=$1
  19798. + ac_need_defaults=false;;
  19799. + esac
  19800. +
  19801. + case $ac_option in
  19802. + # Handling of the options.
  19803. +_ACEOF
  19804. +cat >>$CONFIG_STATUS <<\_ACEOF
  19805. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  19806. + ac_cs_recheck=: ;;
  19807. + --version | --vers* | -V )
  19808. + echo "$ac_cs_version"; exit 0 ;;
  19809. + --he | --h)
  19810. + # Conflict between --help and --header
  19811. + { { echo "$as_me:$LINENO: error: ambiguous option: $1
  19812. +Try \`$0 --help' for more information." >&5
  19813. +echo "$as_me: error: ambiguous option: $1
  19814. +Try \`$0 --help' for more information." >&2;}
  19815. + { (exit 1); exit 1; }; };;
  19816. + --help | --hel | -h )
  19817. + echo "$ac_cs_usage"; exit 0 ;;
  19818. + --debug | --d* | -d )
  19819. + debug=: ;;
  19820. + --file | --fil | --fi | --f )
  19821. + $ac_shift
  19822. + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  19823. + ac_need_defaults=false;;
  19824. + --header | --heade | --head | --hea )
  19825. + $ac_shift
  19826. + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  19827. + ac_need_defaults=false;;
  19828. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19829. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  19830. + ac_cs_silent=: ;;
  19831. +
  19832. + # This is an error.
  19833. + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  19834. +Try \`$0 --help' for more information." >&5
  19835. +echo "$as_me: error: unrecognized option: $1
  19836. +Try \`$0 --help' for more information." >&2;}
  19837. + { (exit 1); exit 1; }; } ;;
  19838. +
  19839. + *) ac_config_targets="$ac_config_targets $1" ;;
  19840. +
  19841. + esac
  19842. + shift
  19843. done
  19844. -if test -z "$ac_sed_cmds"; then
  19845. - ac_sed_cmds=cat
  19846. +
  19847. +ac_configure_extra_args=
  19848. +
  19849. +if $ac_cs_silent; then
  19850. + exec 6>/dev/null
  19851. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  19852. fi
  19853. -EOF
  19854. -cat >> $CONFIG_STATUS <<EOF
  19855. +_ACEOF
  19856. +cat >>$CONFIG_STATUS <<_ACEOF
  19857. +if \$ac_cs_recheck; then
  19858. + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  19859. + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  19860. +fi
  19861. -CONFIG_FILES=\${CONFIG_FILES-"Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
  19862. - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
  19863. - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
  19864. - libnet-config"}
  19865. -EOF
  19866. -cat >> $CONFIG_STATUS <<\EOF
  19867. -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  19868. +_ACEOF
  19869. +
  19870. +cat >>$CONFIG_STATUS <<_ACEOF
  19871. +#
  19872. +# INIT-COMMANDS section.
  19873. +#
  19874. +
  19875. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  19876. +
  19877. +_ACEOF
  19878. +
  19879. +
  19880. +
  19881. +cat >>$CONFIG_STATUS <<\_ACEOF
  19882. +for ac_config_target in $ac_config_targets
  19883. +do
  19884. + case "$ac_config_target" in
  19885. + # Handling of arguments.
  19886. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  19887. + "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  19888. + "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  19889. + "include/libnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/libnet/Makefile" ;;
  19890. + "libnet-config" ) CONFIG_FILES="$CONFIG_FILES libnet-config" ;;
  19891. + "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  19892. + "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
  19893. + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  19894. +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  19895. + { (exit 1); exit 1; }; };;
  19896. + esac
  19897. +done
  19898. +
  19899. +# If the user did not use the arguments to specify the items to instantiate,
  19900. +# then the envvar interface is used. Set only those that are not.
  19901. +# We use the long form for the default assignment because of an extremely
  19902. +# bizarre bug on SunOS 4.1.3.
  19903. +if $ac_need_defaults; then
  19904. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  19905. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  19906. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  19907. +fi
  19908. +
  19909. +# Have a temporary directory for convenience. Make it in the build tree
  19910. +# simply because there is no reason to put it here, and in addition,
  19911. +# creating and moving files from /tmp can sometimes cause problems.
  19912. +# Create a temporary directory, and hook for its removal unless debugging.
  19913. +$debug ||
  19914. +{
  19915. + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  19916. + trap '{ (exit 1); exit 1; }' 1 2 13 15
  19917. +}
  19918. +
  19919. +# Create a (secure) tmp directory for tmp files.
  19920. +
  19921. +{
  19922. + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  19923. + test -n "$tmp" && test -d "$tmp"
  19924. +} ||
  19925. +{
  19926. + tmp=./confstat$$-$RANDOM
  19927. + (umask 077 && mkdir $tmp)
  19928. +} ||
  19929. +{
  19930. + echo "$me: cannot create a temporary directory in ." >&2
  19931. + { (exit 1); exit 1; }
  19932. +}
  19933. +
  19934. +_ACEOF
  19935. +
  19936. +cat >>$CONFIG_STATUS <<_ACEOF
  19937. +
  19938. +#
  19939. +# CONFIG_FILES section.
  19940. +#
  19941. +
  19942. +# No need to generate the scripts if there are no CONFIG_FILES.
  19943. +# This happens for instance when ./config.status config.h
  19944. +if test -n "\$CONFIG_FILES"; then
  19945. + # Protect against being on the right side of a sed subst in config.status.
  19946. + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  19947. + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  19948. +s,@SHELL@,$SHELL,;t t
  19949. +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  19950. +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  19951. +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  19952. +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  19953. +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  19954. +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  19955. +s,@exec_prefix@,$exec_prefix,;t t
  19956. +s,@prefix@,$prefix,;t t
  19957. +s,@program_transform_name@,$program_transform_name,;t t
  19958. +s,@bindir@,$bindir,;t t
  19959. +s,@sbindir@,$sbindir,;t t
  19960. +s,@libexecdir@,$libexecdir,;t t
  19961. +s,@datadir@,$datadir,;t t
  19962. +s,@sysconfdir@,$sysconfdir,;t t
  19963. +s,@sharedstatedir@,$sharedstatedir,;t t
  19964. +s,@localstatedir@,$localstatedir,;t t
  19965. +s,@libdir@,$libdir,;t t
  19966. +s,@includedir@,$includedir,;t t
  19967. +s,@oldincludedir@,$oldincludedir,;t t
  19968. +s,@infodir@,$infodir,;t t
  19969. +s,@mandir@,$mandir,;t t
  19970. +s,@build_alias@,$build_alias,;t t
  19971. +s,@host_alias@,$host_alias,;t t
  19972. +s,@target_alias@,$target_alias,;t t
  19973. +s,@DEFS@,$DEFS,;t t
  19974. +s,@ECHO_C@,$ECHO_C,;t t
  19975. +s,@ECHO_N@,$ECHO_N,;t t
  19976. +s,@ECHO_T@,$ECHO_T,;t t
  19977. +s,@LIBS@,$LIBS,;t t
  19978. +s,@build@,$build,;t t
  19979. +s,@build_cpu@,$build_cpu,;t t
  19980. +s,@build_vendor@,$build_vendor,;t t
  19981. +s,@build_os@,$build_os,;t t
  19982. +s,@host@,$host,;t t
  19983. +s,@host_cpu@,$host_cpu,;t t
  19984. +s,@host_vendor@,$host_vendor,;t t
  19985. +s,@host_os@,$host_os,;t t
  19986. +s,@target@,$target,;t t
  19987. +s,@target_cpu@,$target_cpu,;t t
  19988. +s,@target_vendor@,$target_vendor,;t t
  19989. +s,@target_os@,$target_os,;t t
  19990. +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  19991. +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  19992. +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  19993. +s,@CYGPATH_W@,$CYGPATH_W,;t t
  19994. +s,@PACKAGE@,$PACKAGE,;t t
  19995. +s,@VERSION@,$VERSION,;t t
  19996. +s,@ACLOCAL@,$ACLOCAL,;t t
  19997. +s,@AUTOCONF@,$AUTOCONF,;t t
  19998. +s,@AUTOMAKE@,$AUTOMAKE,;t t
  19999. +s,@AUTOHEADER@,$AUTOHEADER,;t t
  20000. +s,@MAKEINFO@,$MAKEINFO,;t t
  20001. +s,@AMTAR@,$AMTAR,;t t
  20002. +s,@install_sh@,$install_sh,;t t
  20003. +s,@STRIP@,$STRIP,;t t
  20004. +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  20005. +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  20006. +s,@mkdir_p@,$mkdir_p,;t t
  20007. +s,@AWK@,$AWK,;t t
  20008. +s,@SET_MAKE@,$SET_MAKE,;t t
  20009. +s,@am__leading_dot@,$am__leading_dot,;t t
  20010. +s,@LL_INT_TYPE_UC@,$LL_INT_TYPE_UC,;t t
  20011. +s,@LL_INT_TYPE@,$LL_INT_TYPE,;t t
  20012. +s,@LIB_PREFIX@,$LIB_PREFIX,;t t
  20013. +s,@INC_PREFIX@,$INC_PREFIX,;t t
  20014. +s,@MAN_PREFIX@,$MAN_PREFIX,;t t
  20015. +s,@BIN_PREFIX@,$BIN_PREFIX,;t t
  20016. +s,@RANLIB@,$RANLIB,;t t
  20017. +s,@AR@,$AR,;t t
  20018. +s,@LN@,$LN,;t t
  20019. +s,@ADDITIONAL_LIBS@,$ADDITIONAL_LIBS,;t t
  20020. +s,@LIBNET_CONFIG_DEFINES@,$LIBNET_CONFIG_DEFINES,;t t
  20021. +s,@LIBNET_CONFIG_LIBS@,$LIBNET_CONFIG_LIBS,;t t
  20022. +s,@LIBNET_CONFIG_CFLAGS@,$LIBNET_CONFIG_CFLAGS,;t t
  20023. +s,@CC@,$CC,;t t
  20024. +s,@CFLAGS@,$CFLAGS,;t t
  20025. +s,@LDFLAGS@,$LDFLAGS,;t t
  20026. +s,@CPPFLAGS@,$CPPFLAGS,;t t
  20027. +s,@ac_ct_CC@,$ac_ct_CC,;t t
  20028. +s,@EXEEXT@,$EXEEXT,;t t
  20029. +s,@OBJEXT@,$OBJEXT,;t t
  20030. +s,@DEPDIR@,$DEPDIR,;t t
  20031. +s,@am__include@,$am__include,;t t
  20032. +s,@am__quote@,$am__quote,;t t
  20033. +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  20034. +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  20035. +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  20036. +s,@CCDEPMODE@,$CCDEPMODE,;t t
  20037. +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  20038. +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  20039. +s,@LN_S@,$LN_S,;t t
  20040. +s,@ECHO@,$ECHO,;t t
  20041. +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  20042. +s,@CPP@,$CPP,;t t
  20043. +s,@EGREP@,$EGREP,;t t
  20044. +s,@LIBTOOL@,$LIBTOOL,;t t
  20045. +s,@LIBOBJS@,$LIBOBJS,;t t
  20046. +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  20047. +CEOF
  20048. +
  20049. +_ACEOF
  20050. +
  20051. + cat >>$CONFIG_STATUS <<\_ACEOF
  20052. + # Split the substitutions into bite-sized pieces for seds with
  20053. + # small command number limits, like on Digital OSF/1 and HP-UX.
  20054. + ac_max_sed_lines=48
  20055. + ac_sed_frag=1 # Number of current file.
  20056. + ac_beg=1 # First line for current file.
  20057. + ac_end=$ac_max_sed_lines # Line after last line for current file.
  20058. + ac_more_lines=:
  20059. + ac_sed_cmds=
  20060. + while $ac_more_lines; do
  20061. + if test $ac_beg -gt 1; then
  20062. + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  20063. + else
  20064. + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  20065. + fi
  20066. + if test ! -s $tmp/subs.frag; then
  20067. + ac_more_lines=false
  20068. + else
  20069. + # The purpose of the label and of the branching condition is to
  20070. + # speed up the sed processing (if there are no `@' at all, there
  20071. + # is no need to browse any of the substitutions).
  20072. + # These are the two extra sed commands mentioned above.
  20073. + (echo ':t
  20074. + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  20075. + if test -z "$ac_sed_cmds"; then
  20076. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  20077. + else
  20078. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  20079. + fi
  20080. + ac_sed_frag=`expr $ac_sed_frag + 1`
  20081. + ac_beg=$ac_end
  20082. + ac_end=`expr $ac_end + $ac_max_sed_lines`
  20083. + fi
  20084. + done
  20085. + if test -z "$ac_sed_cmds"; then
  20086. + ac_sed_cmds=cat
  20087. + fi
  20088. +fi # test -n "$CONFIG_FILES"
  20089. +
  20090. +_ACEOF
  20091. +cat >>$CONFIG_STATUS <<\_ACEOF
  20092. +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  20093. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  20094. - case "$ac_file" in
  20095. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  20096. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20097. - *) ac_file_in="${ac_file}.in" ;;
  20098. - esac
  20099. -
  20100. - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  20101. -
  20102. - # Remove last slash and all that follows it. Not all systems have dirname.
  20103. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  20104. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  20105. - # The file is in a subdirectory.
  20106. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  20107. - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  20108. - # A "../" for each directory in $ac_dir_suffix.
  20109. - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  20110. - else
  20111. - ac_dir_suffix= ac_dots=
  20112. - fi
  20113. -
  20114. - case "$ac_given_srcdir" in
  20115. - .) srcdir=.
  20116. - if test -z "$ac_dots"; then top_srcdir=.
  20117. - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  20118. - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  20119. + case $ac_file in
  20120. + - | *:- | *:-:* ) # input from stdin
  20121. + cat >$tmp/stdin
  20122. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20123. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  20124. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20125. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  20126. + * ) ac_file_in=$ac_file.in ;;
  20127. + esac
  20128. +
  20129. + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  20130. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  20131. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20132. + X"$ac_file" : 'X\(//\)[^/]' \| \
  20133. + X"$ac_file" : 'X\(//\)$' \| \
  20134. + X"$ac_file" : 'X\(/\)' \| \
  20135. + . : '\(.\)' 2>/dev/null ||
  20136. +echo X"$ac_file" |
  20137. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20138. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20139. + /^X\(\/\/\)$/{ s//\1/; q; }
  20140. + /^X\(\/\).*/{ s//\1/; q; }
  20141. + s/.*/./; q'`
  20142. + { if $as_mkdir_p; then
  20143. + mkdir -p "$ac_dir"
  20144. + else
  20145. + as_dir="$ac_dir"
  20146. + as_dirs=
  20147. + while test ! -d "$as_dir"; do
  20148. + as_dirs="$as_dir $as_dirs"
  20149. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  20150. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20151. + X"$as_dir" : 'X\(//\)[^/]' \| \
  20152. + X"$as_dir" : 'X\(//\)$' \| \
  20153. + X"$as_dir" : 'X\(/\)' \| \
  20154. + . : '\(.\)' 2>/dev/null ||
  20155. +echo X"$as_dir" |
  20156. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20157. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20158. + /^X\(\/\/\)$/{ s//\1/; q; }
  20159. + /^X\(\/\).*/{ s//\1/; q; }
  20160. + s/.*/./; q'`
  20161. + done
  20162. + test ! -n "$as_dirs" || mkdir $as_dirs
  20163. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  20164. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  20165. + { (exit 1); exit 1; }; }; }
  20166. +
  20167. + ac_builddir=.
  20168. +
  20169. +if test "$ac_dir" != .; then
  20170. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20171. + # A "../" for each directory in $ac_dir_suffix.
  20172. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  20173. +else
  20174. + ac_dir_suffix= ac_top_builddir=
  20175. +fi
  20176. +
  20177. +case $srcdir in
  20178. + .) # No --srcdir option. We are building in place.
  20179. + ac_srcdir=.
  20180. + if test -z "$ac_top_builddir"; then
  20181. + ac_top_srcdir=.
  20182. + else
  20183. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  20184. + fi ;;
  20185. + [\\/]* | ?:[\\/]* ) # Absolute path.
  20186. + ac_srcdir=$srcdir$ac_dir_suffix;
  20187. + ac_top_srcdir=$srcdir ;;
  20188. *) # Relative path.
  20189. - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  20190. - top_srcdir="$ac_dots$ac_given_srcdir" ;;
  20191. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  20192. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  20193. +esac
  20194. +
  20195. +# Do not use `cd foo && pwd` to compute absolute paths, because
  20196. +# the directories may not exist.
  20197. +case `pwd` in
  20198. +.) ac_abs_builddir="$ac_dir";;
  20199. +*)
  20200. + case "$ac_dir" in
  20201. + .) ac_abs_builddir=`pwd`;;
  20202. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  20203. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  20204. + esac;;
  20205. +esac
  20206. +case $ac_abs_builddir in
  20207. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  20208. +*)
  20209. + case ${ac_top_builddir}. in
  20210. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  20211. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  20212. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  20213. + esac;;
  20214. +esac
  20215. +case $ac_abs_builddir in
  20216. +.) ac_abs_srcdir=$ac_srcdir;;
  20217. +*)
  20218. + case $ac_srcdir in
  20219. + .) ac_abs_srcdir=$ac_abs_builddir;;
  20220. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  20221. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  20222. + esac;;
  20223. +esac
  20224. +case $ac_abs_builddir in
  20225. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  20226. +*)
  20227. + case $ac_top_srcdir in
  20228. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  20229. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  20230. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  20231. + esac;;
  20232. +esac
  20233. +
  20234. +
  20235. + case $INSTALL in
  20236. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  20237. + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  20238. esac
  20239. - case "$ac_given_INSTALL" in
  20240. - [/$]*) INSTALL="$ac_given_INSTALL" ;;
  20241. - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  20242. - esac
  20243. -
  20244. - echo creating "$ac_file"
  20245. - rm -f "$ac_file"
  20246. - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  20247. - case "$ac_file" in
  20248. - *Makefile*) ac_comsub="1i\\
  20249. -# $configure_input" ;;
  20250. - *) ac_comsub= ;;
  20251. - esac
  20252. -
  20253. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  20254. - sed -e "$ac_comsub
  20255. -s%@configure_input@%$configure_input%g
  20256. -s%@srcdir@%$srcdir%g
  20257. -s%@top_srcdir@%$top_srcdir%g
  20258. -s%@INSTALL@%$INSTALL%g
  20259. -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  20260. -fi; done
  20261. -rm -f conftest.s*
  20262. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  20263. + # use $as_me), people would be surprised to read:
  20264. + # /* config.h. Generated by config.status. */
  20265. + if test x"$ac_file" = x-; then
  20266. + configure_input=
  20267. + else
  20268. + configure_input="$ac_file. "
  20269. + fi
  20270. + configure_input=$configure_input"Generated from `echo $ac_file_in |
  20271. + sed 's,.*/,,'` by configure."
  20272. +
  20273. + # First look for the input files in the build tree, otherwise in the
  20274. + # src tree.
  20275. + ac_file_inputs=`IFS=:
  20276. + for f in $ac_file_in; do
  20277. + case $f in
  20278. + -) echo $tmp/stdin ;;
  20279. + [\\/$]*)
  20280. + # Absolute (can't be DOS-style, as IFS=:)
  20281. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  20282. +echo "$as_me: error: cannot find input file: $f" >&2;}
  20283. + { (exit 1); exit 1; }; }
  20284. + echo "$f";;
  20285. + *) # Relative
  20286. + if test -f "$f"; then
  20287. + # Build tree
  20288. + echo "$f"
  20289. + elif test -f "$srcdir/$f"; then
  20290. + # Source tree
  20291. + echo "$srcdir/$f"
  20292. + else
  20293. + # /dev/null tree
  20294. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  20295. +echo "$as_me: error: cannot find input file: $f" >&2;}
  20296. + { (exit 1); exit 1; }; }
  20297. + fi;;
  20298. + esac
  20299. + done` || { (exit 1); exit 1; }
  20300. +
  20301. + if test x"$ac_file" != x-; then
  20302. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  20303. +echo "$as_me: creating $ac_file" >&6;}
  20304. + rm -f "$ac_file"
  20305. + fi
  20306. +_ACEOF
  20307. +cat >>$CONFIG_STATUS <<_ACEOF
  20308. + sed "$ac_vpsub
  20309. +$extrasub
  20310. +_ACEOF
  20311. +cat >>$CONFIG_STATUS <<\_ACEOF
  20312. +:t
  20313. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  20314. +s,@configure_input@,$configure_input,;t t
  20315. +s,@srcdir@,$ac_srcdir,;t t
  20316. +s,@abs_srcdir@,$ac_abs_srcdir,;t t
  20317. +s,@top_srcdir@,$ac_top_srcdir,;t t
  20318. +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  20319. +s,@builddir@,$ac_builddir,;t t
  20320. +s,@abs_builddir@,$ac_abs_builddir,;t t
  20321. +s,@top_builddir@,$ac_top_builddir,;t t
  20322. +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  20323. +s,@INSTALL@,$ac_INSTALL,;t t
  20324. +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  20325. + rm -f $tmp/stdin
  20326. + if test x"$ac_file" != x-; then
  20327. + mv $tmp/out $ac_file
  20328. + else
  20329. + cat $tmp/out
  20330. + rm -f $tmp/out
  20331. + fi
  20332. +
  20333. +done
  20334. +_ACEOF
  20335. +cat >>$CONFIG_STATUS <<\_ACEOF
  20336. +
  20337. +#
  20338. +# CONFIG_HEADER section.
  20339. +#
  20340. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  20341. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  20342. #
  20343. # ac_d sets the value in "#define NAME VALUE" lines.
  20344. -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  20345. -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
  20346. -ac_dC='\3'
  20347. -ac_dD='%g'
  20348. -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  20349. -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  20350. -ac_uB='\([ ]\)%\1#\2define\3'
  20351. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  20352. +ac_dB='[ ].*$,\1#\2'
  20353. +ac_dC=' '
  20354. +ac_dD=',;t'
  20355. +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  20356. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  20357. +ac_uB='$,\1#\2define\3'
  20358. ac_uC=' '
  20359. -ac_uD='\4%g'
  20360. -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  20361. -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  20362. -ac_eB='$%\1#\2define\3'
  20363. -ac_eC=' '
  20364. -ac_eD='%g'
  20365. +ac_uD=',;t'
  20366. -if test "${CONFIG_HEADERS+set}" != set; then
  20367. -EOF
  20368. -cat >> $CONFIG_STATUS <<EOF
  20369. - CONFIG_HEADERS="include/config.h"
  20370. -EOF
  20371. -cat >> $CONFIG_STATUS <<\EOF
  20372. -fi
  20373. -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  20374. +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  20375. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  20376. - case "$ac_file" in
  20377. - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  20378. - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  20379. - *) ac_file_in="${ac_file}.in" ;;
  20380. + case $ac_file in
  20381. + - | *:- | *:-:* ) # input from stdin
  20382. + cat >$tmp/stdin
  20383. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20384. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  20385. + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20386. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  20387. + * ) ac_file_in=$ac_file.in ;;
  20388. esac
  20389. - echo creating $ac_file
  20390. -
  20391. - rm -f conftest.frag conftest.in conftest.out
  20392. - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  20393. - cat $ac_file_inputs > conftest.in
  20394. -
  20395. -EOF
  20396. + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  20397. +echo "$as_me: creating $ac_file" >&6;}
  20398. -# Transform confdefs.h into a sed script conftest.vals that substitutes
  20399. -# the proper values into config.h.in to produce config.h. And first:
  20400. -# Protect against being on the right side of a sed subst in config.status.
  20401. -# Protect against being in an unquoted here document in config.status.
  20402. -rm -f conftest.vals
  20403. -cat > conftest.hdr <<\EOF
  20404. -s/[\\&%]/\\&/g
  20405. -s%[\\$`]%\\&%g
  20406. -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  20407. -s%ac_d%ac_u%gp
  20408. -s%ac_u%ac_e%gp
  20409. -EOF
  20410. -sed -n -f conftest.hdr confdefs.h > conftest.vals
  20411. -rm -f conftest.hdr
  20412. + # First look for the input files in the build tree, otherwise in the
  20413. + # src tree.
  20414. + ac_file_inputs=`IFS=:
  20415. + for f in $ac_file_in; do
  20416. + case $f in
  20417. + -) echo $tmp/stdin ;;
  20418. + [\\/$]*)
  20419. + # Absolute (can't be DOS-style, as IFS=:)
  20420. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  20421. +echo "$as_me: error: cannot find input file: $f" >&2;}
  20422. + { (exit 1); exit 1; }; }
  20423. + # Do quote $f, to prevent DOS paths from being IFS'd.
  20424. + echo "$f";;
  20425. + *) # Relative
  20426. + if test -f "$f"; then
  20427. + # Build tree
  20428. + echo "$f"
  20429. + elif test -f "$srcdir/$f"; then
  20430. + # Source tree
  20431. + echo "$srcdir/$f"
  20432. + else
  20433. + # /dev/null tree
  20434. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  20435. +echo "$as_me: error: cannot find input file: $f" >&2;}
  20436. + { (exit 1); exit 1; }; }
  20437. + fi;;
  20438. + esac
  20439. + done` || { (exit 1); exit 1; }
  20440. + # Remove the trailing spaces.
  20441. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  20442. +
  20443. +_ACEOF
  20444. +
  20445. +# Transform confdefs.h into two sed scripts, `conftest.defines' and
  20446. +# `conftest.undefs', that substitutes the proper values into
  20447. +# config.h.in to produce config.h. The first handles `#define'
  20448. +# templates, and the second `#undef' templates.
  20449. +# And first: Protect against being on the right side of a sed subst in
  20450. +# config.status. Protect against being in an unquoted here document
  20451. +# in config.status.
  20452. +rm -f conftest.defines conftest.undefs
  20453. +# Using a here document instead of a string reduces the quoting nightmare.
  20454. +# Putting comments in sed scripts is not portable.
  20455. +#
  20456. +# `end' is used to avoid that the second main sed command (meant for
  20457. +# 0-ary CPP macros) applies to n-ary macro definitions.
  20458. +# See the Autoconf documentation for `clear'.
  20459. +cat >confdef2sed.sed <<\_ACEOF
  20460. +s/[\\&,]/\\&/g
  20461. +s,[\\$`],\\&,g
  20462. +t clear
  20463. +: clear
  20464. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  20465. +t end
  20466. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  20467. +: end
  20468. +_ACEOF
  20469. +# If some macros were called several times there might be several times
  20470. +# the same #defines, which is useless. Nevertheless, we may not want to
  20471. +# sort them, since we want the *last* AC-DEFINE to be honored.
  20472. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  20473. +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  20474. +rm -f confdef2sed.sed
  20475. # This sed command replaces #undef with comments. This is necessary, for
  20476. # example, in the case of _POSIX_SOURCE, which is predefined and required
  20477. # on some systems where configure will not decide to define it.
  20478. -cat >> conftest.vals <<\EOF
  20479. -s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  20480. -EOF
  20481. -
  20482. -# Break up conftest.vals because some shells have a limit on
  20483. -# the size of here documents, and old seds have small limits too.
  20484. -
  20485. +cat >>conftest.undefs <<\_ACEOF
  20486. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  20487. +_ACEOF
  20488. +
  20489. +# Break up conftest.defines because some shells have a limit on the size
  20490. +# of here documents, and old seds have small limits too (100 cmds).
  20491. +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  20492. +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  20493. +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  20494. +echo ' :' >>$CONFIG_STATUS
  20495. +rm -f conftest.tail
  20496. +while grep . conftest.defines >/dev/null
  20497. +do
  20498. + # Write a limited-size here document to $tmp/defines.sed.
  20499. + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  20500. + # Speed up: don't consider the non `#define' lines.
  20501. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  20502. + # Work around the forget-to-reset-the-flag bug.
  20503. + echo 't clr' >>$CONFIG_STATUS
  20504. + echo ': clr' >>$CONFIG_STATUS
  20505. + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  20506. + echo 'CEOF
  20507. + sed -f $tmp/defines.sed $tmp/in >$tmp/out
  20508. + rm -f $tmp/in
  20509. + mv $tmp/out $tmp/in
  20510. +' >>$CONFIG_STATUS
  20511. + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  20512. + rm -f conftest.defines
  20513. + mv conftest.tail conftest.defines
  20514. +done
  20515. +rm -f conftest.defines
  20516. +echo ' fi # grep' >>$CONFIG_STATUS
  20517. +echo >>$CONFIG_STATUS
  20518. +
  20519. +# Break up conftest.undefs because some shells have a limit on the size
  20520. +# of here documents, and old seds have small limits too (100 cmds).
  20521. +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  20522. rm -f conftest.tail
  20523. -while :
  20524. +while grep . conftest.undefs >/dev/null
  20525. do
  20526. - ac_lines=`grep -c . conftest.vals`
  20527. - # grep -c gives empty output for an empty file on some AIX systems.
  20528. - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  20529. - # Write a limited-size here document to conftest.frag.
  20530. - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  20531. - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  20532. + # Write a limited-size here document to $tmp/undefs.sed.
  20533. + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  20534. + # Speed up: don't consider the non `#undef'
  20535. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  20536. + # Work around the forget-to-reset-the-flag bug.
  20537. + echo 't clr' >>$CONFIG_STATUS
  20538. + echo ': clr' >>$CONFIG_STATUS
  20539. + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  20540. echo 'CEOF
  20541. - sed -f conftest.frag conftest.in > conftest.out
  20542. - rm -f conftest.in
  20543. - mv conftest.out conftest.in
  20544. -' >> $CONFIG_STATUS
  20545. - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  20546. - rm -f conftest.vals
  20547. - mv conftest.tail conftest.vals
  20548. -done
  20549. -rm -f conftest.vals
  20550. -
  20551. -cat >> $CONFIG_STATUS <<\EOF
  20552. - rm -f conftest.frag conftest.h
  20553. - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
  20554. - cat conftest.in >> conftest.h
  20555. - rm -f conftest.in
  20556. - if cmp -s $ac_file conftest.h 2>/dev/null; then
  20557. - echo "$ac_file is unchanged"
  20558. - rm -f conftest.h
  20559. - else
  20560. - # Remove last slash and all that follows it. Not all systems have dirname.
  20561. - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  20562. - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  20563. - # The file is in a subdirectory.
  20564. - test ! -d "$ac_dir" && mkdir "$ac_dir"
  20565. + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  20566. + rm -f $tmp/in
  20567. + mv $tmp/out $tmp/in
  20568. +' >>$CONFIG_STATUS
  20569. + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  20570. + rm -f conftest.undefs
  20571. + mv conftest.tail conftest.undefs
  20572. +done
  20573. +rm -f conftest.undefs
  20574. +
  20575. +cat >>$CONFIG_STATUS <<\_ACEOF
  20576. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  20577. + # use $as_me), people would be surprised to read:
  20578. + # /* config.h. Generated by config.status. */
  20579. + if test x"$ac_file" = x-; then
  20580. + echo "/* Generated by configure. */" >$tmp/config.h
  20581. + else
  20582. + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  20583. + fi
  20584. + cat $tmp/in >>$tmp/config.h
  20585. + rm -f $tmp/in
  20586. + if test x"$ac_file" != x-; then
  20587. + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  20588. + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  20589. +echo "$as_me: $ac_file is unchanged" >&6;}
  20590. + else
  20591. + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  20592. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20593. + X"$ac_file" : 'X\(//\)[^/]' \| \
  20594. + X"$ac_file" : 'X\(//\)$' \| \
  20595. + X"$ac_file" : 'X\(/\)' \| \
  20596. + . : '\(.\)' 2>/dev/null ||
  20597. +echo X"$ac_file" |
  20598. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20599. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20600. + /^X\(\/\/\)$/{ s//\1/; q; }
  20601. + /^X\(\/\).*/{ s//\1/; q; }
  20602. + s/.*/./; q'`
  20603. + { if $as_mkdir_p; then
  20604. + mkdir -p "$ac_dir"
  20605. + else
  20606. + as_dir="$ac_dir"
  20607. + as_dirs=
  20608. + while test ! -d "$as_dir"; do
  20609. + as_dirs="$as_dir $as_dirs"
  20610. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  20611. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20612. + X"$as_dir" : 'X\(//\)[^/]' \| \
  20613. + X"$as_dir" : 'X\(//\)$' \| \
  20614. + X"$as_dir" : 'X\(/\)' \| \
  20615. + . : '\(.\)' 2>/dev/null ||
  20616. +echo X"$as_dir" |
  20617. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20618. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20619. + /^X\(\/\/\)$/{ s//\1/; q; }
  20620. + /^X\(\/\).*/{ s//\1/; q; }
  20621. + s/.*/./; q'`
  20622. + done
  20623. + test ! -n "$as_dirs" || mkdir $as_dirs
  20624. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  20625. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  20626. + { (exit 1); exit 1; }; }; }
  20627. +
  20628. + rm -f $ac_file
  20629. + mv $tmp/config.h $ac_file
  20630. fi
  20631. - rm -f $ac_file
  20632. - mv conftest.h $ac_file
  20633. + else
  20634. + cat $tmp/config.h
  20635. + rm -f $tmp/config.h
  20636. fi
  20637. -fi; done
  20638. +# Compute $ac_file's index in $config_headers.
  20639. +_am_stamp_count=1
  20640. +for _am_header in $config_headers :; do
  20641. + case $_am_header in
  20642. + $ac_file | $ac_file:* )
  20643. + break ;;
  20644. + * )
  20645. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  20646. + esac
  20647. +done
  20648. +echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  20649. +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20650. + X$ac_file : 'X\(//\)[^/]' \| \
  20651. + X$ac_file : 'X\(//\)$' \| \
  20652. + X$ac_file : 'X\(/\)' \| \
  20653. + . : '\(.\)' 2>/dev/null ||
  20654. +echo X$ac_file |
  20655. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20656. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20657. + /^X\(\/\/\)$/{ s//\1/; q; }
  20658. + /^X\(\/\).*/{ s//\1/; q; }
  20659. + s/.*/./; q'`/stamp-h$_am_stamp_count
  20660. +done
  20661. +_ACEOF
  20662. +cat >>$CONFIG_STATUS <<\_ACEOF
  20663. -EOF
  20664. -cat >> $CONFIG_STATUS <<EOF
  20665. +#
  20666. +# CONFIG_COMMANDS section.
  20667. +#
  20668. +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  20669. + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  20670. + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  20671. + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  20672. +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20673. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  20674. + X"$ac_dest" : 'X\(//\)$' \| \
  20675. + X"$ac_dest" : 'X\(/\)' \| \
  20676. + . : '\(.\)' 2>/dev/null ||
  20677. +echo X"$ac_dest" |
  20678. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20679. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20680. + /^X\(\/\/\)$/{ s//\1/; q; }
  20681. + /^X\(\/\).*/{ s//\1/; q; }
  20682. + s/.*/./; q'`
  20683. + { if $as_mkdir_p; then
  20684. + mkdir -p "$ac_dir"
  20685. + else
  20686. + as_dir="$ac_dir"
  20687. + as_dirs=
  20688. + while test ! -d "$as_dir"; do
  20689. + as_dirs="$as_dir $as_dirs"
  20690. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  20691. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20692. + X"$as_dir" : 'X\(//\)[^/]' \| \
  20693. + X"$as_dir" : 'X\(//\)$' \| \
  20694. + X"$as_dir" : 'X\(/\)' \| \
  20695. + . : '\(.\)' 2>/dev/null ||
  20696. +echo X"$as_dir" |
  20697. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20698. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20699. + /^X\(\/\/\)$/{ s//\1/; q; }
  20700. + /^X\(\/\).*/{ s//\1/; q; }
  20701. + s/.*/./; q'`
  20702. + done
  20703. + test ! -n "$as_dirs" || mkdir $as_dirs
  20704. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  20705. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  20706. + { (exit 1); exit 1; }; }; }
  20707. +
  20708. + ac_builddir=.
  20709. +
  20710. +if test "$ac_dir" != .; then
  20711. + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  20712. + # A "../" for each directory in $ac_dir_suffix.
  20713. + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  20714. +else
  20715. + ac_dir_suffix= ac_top_builddir=
  20716. +fi
  20717. +
  20718. +case $srcdir in
  20719. + .) # No --srcdir option. We are building in place.
  20720. + ac_srcdir=.
  20721. + if test -z "$ac_top_builddir"; then
  20722. + ac_top_srcdir=.
  20723. + else
  20724. + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  20725. + fi ;;
  20726. + [\\/]* | ?:[\\/]* ) # Absolute path.
  20727. + ac_srcdir=$srcdir$ac_dir_suffix;
  20728. + ac_top_srcdir=$srcdir ;;
  20729. + *) # Relative path.
  20730. + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  20731. + ac_top_srcdir=$ac_top_builddir$srcdir ;;
  20732. +esac
  20733. -EOF
  20734. -cat >> $CONFIG_STATUS <<\EOF
  20735. -chmod +x libnet-config
  20736. -exit 0
  20737. -EOF
  20738. +# Do not use `cd foo && pwd` to compute absolute paths, because
  20739. +# the directories may not exist.
  20740. +case `pwd` in
  20741. +.) ac_abs_builddir="$ac_dir";;
  20742. +*)
  20743. + case "$ac_dir" in
  20744. + .) ac_abs_builddir=`pwd`;;
  20745. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  20746. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  20747. + esac;;
  20748. +esac
  20749. +case $ac_abs_builddir in
  20750. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  20751. +*)
  20752. + case ${ac_top_builddir}. in
  20753. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  20754. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  20755. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  20756. + esac;;
  20757. +esac
  20758. +case $ac_abs_builddir in
  20759. +.) ac_abs_srcdir=$ac_srcdir;;
  20760. +*)
  20761. + case $ac_srcdir in
  20762. + .) ac_abs_srcdir=$ac_abs_builddir;;
  20763. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  20764. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  20765. + esac;;
  20766. +esac
  20767. +case $ac_abs_builddir in
  20768. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  20769. +*)
  20770. + case $ac_top_srcdir in
  20771. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  20772. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  20773. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  20774. + esac;;
  20775. +esac
  20776. +
  20777. +
  20778. + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  20779. +echo "$as_me: executing $ac_dest commands" >&6;}
  20780. + case $ac_dest in
  20781. + depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  20782. + # Strip MF so we end up with the name of the file.
  20783. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  20784. + # Check whether this is an Automake generated Makefile or not.
  20785. + # We used to match only the files named `Makefile.in', but
  20786. + # some people rename them; so instead we look at the file content.
  20787. + # Grep'ing the first line is not enough: some people post-process
  20788. + # each Makefile.in and add a new line on top of each file to say so.
  20789. + # So let's grep whole file.
  20790. + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  20791. + dirpart=`(dirname "$mf") 2>/dev/null ||
  20792. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20793. + X"$mf" : 'X\(//\)[^/]' \| \
  20794. + X"$mf" : 'X\(//\)$' \| \
  20795. + X"$mf" : 'X\(/\)' \| \
  20796. + . : '\(.\)' 2>/dev/null ||
  20797. +echo X"$mf" |
  20798. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20799. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20800. + /^X\(\/\/\)$/{ s//\1/; q; }
  20801. + /^X\(\/\).*/{ s//\1/; q; }
  20802. + s/.*/./; q'`
  20803. + else
  20804. + continue
  20805. + fi
  20806. + grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  20807. + # Extract the definition of DEP_FILES from the Makefile without
  20808. + # running `make'.
  20809. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  20810. + test -z "$DEPDIR" && continue
  20811. + # When using ansi2knr, U may be empty or an underscore; expand it
  20812. + U=`sed -n 's/^U = //p' < "$mf"`
  20813. + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  20814. + # We invoke sed twice because it is the simplest approach to
  20815. + # changing $(DEPDIR) to its actual value in the expansion.
  20816. + for file in `sed -n '
  20817. + /^DEP_FILES = .*\\\\$/ {
  20818. + s/^DEP_FILES = //
  20819. + :loop
  20820. + s/\\\\$//
  20821. + p
  20822. + n
  20823. + /\\\\$/ b loop
  20824. + p
  20825. + }
  20826. + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  20827. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  20828. + # Make sure the directory exists.
  20829. + test -f "$dirpart/$file" && continue
  20830. + fdir=`(dirname "$file") 2>/dev/null ||
  20831. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20832. + X"$file" : 'X\(//\)[^/]' \| \
  20833. + X"$file" : 'X\(//\)$' \| \
  20834. + X"$file" : 'X\(/\)' \| \
  20835. + . : '\(.\)' 2>/dev/null ||
  20836. +echo X"$file" |
  20837. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20838. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20839. + /^X\(\/\/\)$/{ s//\1/; q; }
  20840. + /^X\(\/\).*/{ s//\1/; q; }
  20841. + s/.*/./; q'`
  20842. + { if $as_mkdir_p; then
  20843. + mkdir -p $dirpart/$fdir
  20844. + else
  20845. + as_dir=$dirpart/$fdir
  20846. + as_dirs=
  20847. + while test ! -d "$as_dir"; do
  20848. + as_dirs="$as_dir $as_dirs"
  20849. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  20850. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  20851. + X"$as_dir" : 'X\(//\)[^/]' \| \
  20852. + X"$as_dir" : 'X\(//\)$' \| \
  20853. + X"$as_dir" : 'X\(/\)' \| \
  20854. + . : '\(.\)' 2>/dev/null ||
  20855. +echo X"$as_dir" |
  20856. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  20857. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  20858. + /^X\(\/\/\)$/{ s//\1/; q; }
  20859. + /^X\(\/\).*/{ s//\1/; q; }
  20860. + s/.*/./; q'`
  20861. + done
  20862. + test ! -n "$as_dirs" || mkdir $as_dirs
  20863. + fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  20864. +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  20865. + { (exit 1); exit 1; }; }; }
  20866. +
  20867. + # echo "creating $dirpart/$file"
  20868. + echo '# dummy' > "$dirpart/$file"
  20869. + done
  20870. +done
  20871. + ;;
  20872. + esac
  20873. +done
  20874. +_ACEOF
  20875. +
  20876. +cat >>$CONFIG_STATUS <<\_ACEOF
  20877. +
  20878. +{ (exit 0); exit 0; }
  20879. +_ACEOF
  20880. chmod +x $CONFIG_STATUS
  20881. -rm -fr confdefs* $ac_clean_files
  20882. -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  20883. +ac_clean_files=$ac_clean_files_save
  20884. +
  20885. +
  20886. +# configure is writing to config.log, and then calls config.status.
  20887. +# config.status does its own redirection, appending to config.log.
  20888. +# Unfortunately, on DOS this fails, as config.log is still kept open
  20889. +# by configure, so config.status won't be able to write to it; its
  20890. +# output is simply discarded. So we exec the FD to /dev/null,
  20891. +# effectively closing config.log, so it can be properly (re)opened and
  20892. +# appended to by config.status. When coming back to configure, we
  20893. +# need to make the FD available again.
  20894. +if test "$no_create" != yes; then
  20895. + ac_cs_success=:
  20896. + ac_config_status_args=
  20897. + test "$silent" = yes &&
  20898. + ac_config_status_args="$ac_config_status_args --quiet"
  20899. + exec 5>/dev/null
  20900. + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  20901. + exec 5>>config.log
  20902. + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  20903. + # would make configure fail if this is the last instruction.
  20904. + $ac_cs_success || { (exit 1); exit 1; }
  20905. +fi
  20906. diff -ruN libnet-1.0.2a-orig/configure.in libnet-1.0.2a-7/configure.in
  20907. --- libnet-1.0.2a-orig/configure.in 2001-01-17 21:59:30.000000000 +0100
  20908. +++ libnet-1.0.2a-7/configure.in 2005-03-08 03:53:26.000000000 +0100
  20909. @@ -8,6 +8,14 @@
  20910. AC_INIT(src/libnet_build_ip.c)
  20911. +dnl
  20912. +dnl Determine hosttype and set the root install directory.
  20913. +dnl
  20914. +AC_CANONICAL_SYSTEM
  20915. +AC_PREFIX_DEFAULT(/usr)
  20916. +
  20917. +AM_INIT_AUTOMAKE(libnet, 1.0.2a)
  20918. +
  20919. VER=`cat VERSION`
  20920. AC_MSG_RESULT(Beginning autoconfiguration process for libnet-$VER...)
  20921. @@ -25,16 +33,14 @@
  20922. AC_SUBST(LIBNET_CONFIG_LIBS)
  20923. AC_SUBST(LIBNET_CONFIG_CFLAGS)
  20924. -dnl
  20925. -dnl Determine hosttype and set the root install directory.
  20926. -dnl
  20927. -AC_CANONICAL_SYSTEM
  20928. -AC_PREFIX_DEFAULT(/usr)
  20929. -
  20930. if test "$prefix" = "NONE"; then
  20931. prefix="/usr"
  20932. fi
  20933. +if test "$mandir" = "NONE"; then
  20934. + mandir="$prefix/man"
  20935. +fi
  20936. +
  20937. dnl
  20938. dnl Check compiler type.
  20939. dnl
  20940. @@ -74,6 +80,8 @@
  20941. AC_CHECK_PROGS(AR, ar, @true)
  20942. AC_CHECK_PROGS(LN, ln, @true)
  20943. +AC_PROG_LIBTOOL
  20944. +
  20945. dnl
  20946. dnl Check for library functions.
  20947. dnl
  20948. @@ -110,7 +118,7 @@
  20949. AC_DEFINE(HAVE_DLPI)
  20950. elif test -r /usr/include/linux/socket.h ; then
  20951. LL_INT_TYPE=sockpacket
  20952. - AC_MSG_RESULT(found SOCK_PACKET)
  20953. + AC_MSG_RESULT(found linux primitives)
  20954. if test $with_pf_packet = yes; then
  20955. AC_LIBNET_CHECK_PF_PACKET
  20956. fi
  20957. @@ -147,7 +155,7 @@
  20958. LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD"
  20959. AC_CHECK_HEADERS(net/ethernet.h, \
  20960. LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H")
  20961. - MAN_PREFIX="$prefix/man/man3/"
  20962. + MAN_PREFIX="$mandir/man3/"
  20963. LIB_PREFIX="$prefix/lib/"
  20964. INC_PREFIX="$prefix/include/"
  20965. BIN_PREFIX="$prefix/bin/"
  20966. @@ -258,9 +266,11 @@
  20967. AC_CHECK_HEADERS(sys/sockio.h)
  20968. AC_CONFIG_HEADER(include/config.h)
  20969. -AC_OUTPUT(Makefile test/Makefile test/TCP/Makefile test/Ethernet/Makefile \
  20970. - test/UDP/Makefile test/ICMP/Makefile test/Random/Makefile \
  20971. - test/OSPF/Makefile util/Makefile util/Get-mac/Makefile example/Makefile \
  20972. - libnet-config, chmod +x libnet-config)
  20973. +AC_OUTPUT( \
  20974. + Makefile \
  20975. + src/Makefile \
  20976. + include/Makefile \
  20977. + include/libnet/Makefile \
  20978. + libnet-config)
  20979. dnl EOF
  20980. diff -ruN libnet-1.0.2a-orig/include/Makefile.am libnet-1.0.2a-7/include/Makefile.am
  20981. --- libnet-1.0.2a-orig/include/Makefile.am 1970-01-01 01:00:00.000000000 +0100
  20982. +++ libnet-1.0.2a-7/include/Makefile.am 2005-03-08 03:53:26.000000000 +0100
  20983. @@ -0,0 +1,5 @@
  20984. +include $(top_srcdir)/Makefile.am.common
  20985. +
  20986. +SUBDIRS = libnet
  20987. +
  20988. +include_HEADERS = libnet.h
  20989. diff -ruN libnet-1.0.2a-orig/include/Makefile.in libnet-1.0.2a-7/include/Makefile.in
  20990. --- libnet-1.0.2a-orig/include/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  20991. +++ libnet-1.0.2a-7/include/Makefile.in 2005-03-08 03:53:26.000000000 +0100
  20992. @@ -0,0 +1,509 @@
  20993. +# Makefile.in generated by automake 1.8.5 from Makefile.am.
  20994. +# @configure_input@
  20995. +
  20996. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  20997. +# 2003, 2004 Free Software Foundation, Inc.
  20998. +# This Makefile.in is free software; the Free Software Foundation
  20999. +# gives unlimited permission to copy and/or distribute it,
  21000. +# with or without modifications, as long as this notice is preserved.
  21001. +
  21002. +# This program is distributed in the hope that it will be useful,
  21003. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  21004. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  21005. +# PARTICULAR PURPOSE.
  21006. +
  21007. +@SET_MAKE@
  21008. +
  21009. +srcdir = @srcdir@
  21010. +top_srcdir = @top_srcdir@
  21011. +VPATH = @srcdir@
  21012. +pkgdatadir = $(datadir)/@PACKAGE@
  21013. +pkglibdir = $(libdir)/@PACKAGE@
  21014. +pkgincludedir = $(includedir)/@PACKAGE@
  21015. +top_builddir = ..
  21016. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  21017. +INSTALL = @INSTALL@
  21018. +install_sh_DATA = $(install_sh) -c -m 644
  21019. +install_sh_PROGRAM = $(install_sh) -c
  21020. +install_sh_SCRIPT = $(install_sh) -c
  21021. +INSTALL_HEADER = $(INSTALL_DATA)
  21022. +transform = $(program_transform_name)
  21023. +NORMAL_INSTALL = :
  21024. +PRE_INSTALL = :
  21025. +POST_INSTALL = :
  21026. +NORMAL_UNINSTALL = :
  21027. +PRE_UNINSTALL = :
  21028. +POST_UNINSTALL = :
  21029. +build_triplet = @build@
  21030. +host_triplet = @host@
  21031. +target_triplet = @target@
  21032. +DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
  21033. + $(srcdir)/Makefile.in $(srcdir)/config.h.in \
  21034. + $(top_srcdir)/Makefile.am.common
  21035. +subdir = include
  21036. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  21037. +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
  21038. + $(top_srcdir)/configure.in
  21039. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  21040. + $(ACLOCAL_M4)
  21041. +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  21042. +CONFIG_HEADER = config.h
  21043. +CONFIG_CLEAN_FILES =
  21044. +depcomp =
  21045. +am__depfiles_maybe =
  21046. +SOURCES =
  21047. +DIST_SOURCES =
  21048. +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  21049. + html-recursive info-recursive install-data-recursive \
  21050. + install-exec-recursive install-info-recursive \
  21051. + install-recursive installcheck-recursive installdirs-recursive \
  21052. + pdf-recursive ps-recursive uninstall-info-recursive \
  21053. + uninstall-recursive
  21054. +am__installdirs = "$(DESTDIR)$(includedir)"
  21055. +includeHEADERS_INSTALL = $(INSTALL_HEADER)
  21056. +HEADERS = $(include_HEADERS)
  21057. +ETAGS = etags
  21058. +CTAGS = ctags
  21059. +DIST_SUBDIRS = $(SUBDIRS)
  21060. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  21061. +ACLOCAL = @ACLOCAL@
  21062. +ADDITIONAL_LIBS = @ADDITIONAL_LIBS@
  21063. +AMDEP_FALSE = @AMDEP_FALSE@
  21064. +AMDEP_TRUE = @AMDEP_TRUE@
  21065. +AMTAR = @AMTAR@
  21066. +AR = @AR@
  21067. +AUTOCONF = @AUTOCONF@
  21068. +AUTOHEADER = @AUTOHEADER@
  21069. +AUTOMAKE = @AUTOMAKE@
  21070. +AWK = @AWK@
  21071. +BIN_PREFIX = @BIN_PREFIX@
  21072. +CC = @CC@
  21073. +CCDEPMODE = @CCDEPMODE@
  21074. +CFLAGS = @CFLAGS@
  21075. +CPP = @CPP@
  21076. +CPPFLAGS = @CPPFLAGS@
  21077. +CYGPATH_W = @CYGPATH_W@
  21078. +DEFS = @DEFS@
  21079. +DEPDIR = @DEPDIR@
  21080. +ECHO = @ECHO@
  21081. +ECHO_C = @ECHO_C@
  21082. +ECHO_N = @ECHO_N@
  21083. +ECHO_T = @ECHO_T@
  21084. +EGREP = @EGREP@
  21085. +EXEEXT = @EXEEXT@
  21086. +INC_PREFIX = @INC_PREFIX@
  21087. +INSTALL_DATA = @INSTALL_DATA@
  21088. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  21089. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  21090. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  21091. +LDFLAGS = @LDFLAGS@
  21092. +LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  21093. +LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  21094. +LIBNET_CONFIG_LIBS = @LIBNET_CONFIG_LIBS@
  21095. +LIBOBJS = @LIBOBJS@
  21096. +LIBS = @LIBS@
  21097. +LIBTOOL = @LIBTOOL@
  21098. +LIB_PREFIX = @LIB_PREFIX@
  21099. +LL_INT_TYPE = @LL_INT_TYPE@
  21100. +LL_INT_TYPE_UC = @LL_INT_TYPE_UC@
  21101. +LN = @LN@
  21102. +LN_S = @LN_S@
  21103. +LTLIBOBJS = @LTLIBOBJS@
  21104. +MAKEINFO = @MAKEINFO@
  21105. +MAN_PREFIX = @MAN_PREFIX@
  21106. +OBJEXT = @OBJEXT@
  21107. +PACKAGE = @PACKAGE@
  21108. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  21109. +PACKAGE_NAME = @PACKAGE_NAME@
  21110. +PACKAGE_STRING = @PACKAGE_STRING@
  21111. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  21112. +PACKAGE_VERSION = @PACKAGE_VERSION@
  21113. +PATH_SEPARATOR = @PATH_SEPARATOR@
  21114. +RANLIB = @RANLIB@
  21115. +SET_MAKE = @SET_MAKE@
  21116. +SHELL = @SHELL@
  21117. +STRIP = @STRIP@
  21118. +VERSION = @VERSION@
  21119. +ac_ct_CC = @ac_ct_CC@
  21120. +ac_ct_RANLIB = @ac_ct_RANLIB@
  21121. +ac_ct_STRIP = @ac_ct_STRIP@
  21122. +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  21123. +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  21124. +am__include = @am__include@
  21125. +am__leading_dot = @am__leading_dot@
  21126. +am__quote = @am__quote@
  21127. +bindir = @bindir@
  21128. +build = @build@
  21129. +build_alias = @build_alias@
  21130. +build_cpu = @build_cpu@
  21131. +build_os = @build_os@
  21132. +build_vendor = @build_vendor@
  21133. +datadir = @datadir@
  21134. +exec_prefix = @exec_prefix@
  21135. +host = @host@
  21136. +host_alias = @host_alias@
  21137. +host_cpu = @host_cpu@
  21138. +host_os = @host_os@
  21139. +host_vendor = @host_vendor@
  21140. +includedir = @includedir@
  21141. +infodir = @infodir@
  21142. +install_sh = @install_sh@
  21143. +libdir = @libdir@
  21144. +libexecdir = @libexecdir@
  21145. +localstatedir = @localstatedir@
  21146. +mandir = @mandir@
  21147. +mkdir_p = @mkdir_p@
  21148. +oldincludedir = @oldincludedir@
  21149. +prefix = @prefix@
  21150. +program_transform_name = @program_transform_name@
  21151. +sbindir = @sbindir@
  21152. +sharedstatedir = @sharedstatedir@
  21153. +sysconfdir = @sysconfdir@
  21154. +target = @target@
  21155. +target_alias = @target_alias@
  21156. +target_cpu = @target_cpu@
  21157. +target_os = @target_os@
  21158. +target_vendor = @target_vendor@
  21159. +AUTOMAKE_OPTIONS = foreign no-dependencies
  21160. +DISTCLEANFILES = *~
  21161. +SUBDIRS = libnet
  21162. +include_HEADERS = libnet.h
  21163. +all: config.h
  21164. + $(MAKE) $(AM_MAKEFLAGS) all-recursive
  21165. +
  21166. +.SUFFIXES:
  21167. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  21168. + @for dep in $?; do \
  21169. + case '$(am__configure_deps)' in \
  21170. + *$$dep*) \
  21171. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  21172. + && exit 0; \
  21173. + exit 1;; \
  21174. + esac; \
  21175. + done; \
  21176. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/Makefile'; \
  21177. + cd $(top_srcdir) && \
  21178. + $(AUTOMAKE) --foreign include/Makefile
  21179. +.PRECIOUS: Makefile
  21180. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  21181. + @case '$?' in \
  21182. + *config.status*) \
  21183. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  21184. + *) \
  21185. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  21186. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  21187. + esac;
  21188. +
  21189. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  21190. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  21191. +
  21192. +$(top_srcdir)/configure: $(am__configure_deps)
  21193. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  21194. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  21195. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  21196. +
  21197. +config.h: stamp-h1
  21198. + @if test ! -f $@; then \
  21199. + rm -f stamp-h1; \
  21200. + $(MAKE) stamp-h1; \
  21201. + else :; fi
  21202. +
  21203. +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  21204. + @rm -f stamp-h1
  21205. + cd $(top_builddir) && $(SHELL) ./config.status include/config.h
  21206. +$(srcdir)/config.h.in: $(am__configure_deps) $(top_srcdir)/acconfig.h
  21207. + cd $(top_srcdir) && $(AUTOHEADER)
  21208. + rm -f stamp-h1
  21209. + touch $@
  21210. +
  21211. +distclean-hdr:
  21212. + -rm -f config.h stamp-h1
  21213. +
  21214. +mostlyclean-libtool:
  21215. + -rm -f *.lo
  21216. +
  21217. +clean-libtool:
  21218. + -rm -rf .libs _libs
  21219. +
  21220. +distclean-libtool:
  21221. + -rm -f libtool
  21222. +uninstall-info-am:
  21223. +install-includeHEADERS: $(include_HEADERS)
  21224. + @$(NORMAL_INSTALL)
  21225. + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
  21226. + @list='$(include_HEADERS)'; for p in $$list; do \
  21227. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  21228. + f="`echo $$p | sed -e 's|^.*/||'`"; \
  21229. + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
  21230. + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
  21231. + done
  21232. +
  21233. +uninstall-includeHEADERS:
  21234. + @$(NORMAL_UNINSTALL)
  21235. + @list='$(include_HEADERS)'; for p in $$list; do \
  21236. + f="`echo $$p | sed -e 's|^.*/||'`"; \
  21237. + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
  21238. + rm -f "$(DESTDIR)$(includedir)/$$f"; \
  21239. + done
  21240. +
  21241. +# This directory's subdirectories are mostly independent; you can cd
  21242. +# into them and run `make' without going through this Makefile.
  21243. +# To change the values of `make' variables: instead of editing Makefiles,
  21244. +# (1) if the variable is set in `config.status', edit `config.status'
  21245. +# (which will cause the Makefiles to be regenerated when you run `make');
  21246. +# (2) otherwise, pass the desired values on the `make' command line.
  21247. +$(RECURSIVE_TARGETS):
  21248. + @set fnord $$MAKEFLAGS; amf=$$2; \
  21249. + dot_seen=no; \
  21250. + target=`echo $@ | sed s/-recursive//`; \
  21251. + list='$(SUBDIRS)'; for subdir in $$list; do \
  21252. + echo "Making $$target in $$subdir"; \
  21253. + if test "$$subdir" = "."; then \
  21254. + dot_seen=yes; \
  21255. + local_target="$$target-am"; \
  21256. + else \
  21257. + local_target="$$target"; \
  21258. + fi; \
  21259. + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  21260. + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  21261. + done; \
  21262. + if test "$$dot_seen" = "no"; then \
  21263. + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  21264. + fi; test -z "$$fail"
  21265. +
  21266. +mostlyclean-recursive clean-recursive distclean-recursive \
  21267. +maintainer-clean-recursive:
  21268. + @set fnord $$MAKEFLAGS; amf=$$2; \
  21269. + dot_seen=no; \
  21270. + case "$@" in \
  21271. + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
  21272. + *) list='$(SUBDIRS)' ;; \
  21273. + esac; \
  21274. + rev=''; for subdir in $$list; do \
  21275. + if test "$$subdir" = "."; then :; else \
  21276. + rev="$$subdir $$rev"; \
  21277. + fi; \
  21278. + done; \
  21279. + rev="$$rev ."; \
  21280. + target=`echo $@ | sed s/-recursive//`; \
  21281. + for subdir in $$rev; do \
  21282. + echo "Making $$target in $$subdir"; \
  21283. + if test "$$subdir" = "."; then \
  21284. + local_target="$$target-am"; \
  21285. + else \
  21286. + local_target="$$target"; \
  21287. + fi; \
  21288. + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  21289. + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  21290. + done && test -z "$$fail"
  21291. +tags-recursive:
  21292. + list='$(SUBDIRS)'; for subdir in $$list; do \
  21293. + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  21294. + done
  21295. +ctags-recursive:
  21296. + list='$(SUBDIRS)'; for subdir in $$list; do \
  21297. + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  21298. + done
  21299. +
  21300. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  21301. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  21302. + unique=`for i in $$list; do \
  21303. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  21304. + done | \
  21305. + $(AWK) ' { files[$$0] = 1; } \
  21306. + END { for (i in files) print i; }'`; \
  21307. + mkid -fID $$unique
  21308. +tags: TAGS
  21309. +
  21310. +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  21311. + $(TAGS_FILES) $(LISP)
  21312. + tags=; \
  21313. + here=`pwd`; \
  21314. + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  21315. + include_option=--etags-include; \
  21316. + empty_fix=.; \
  21317. + else \
  21318. + include_option=--include; \
  21319. + empty_fix=; \
  21320. + fi; \
  21321. + list='$(SUBDIRS)'; for subdir in $$list; do \
  21322. + if test "$$subdir" = .; then :; else \
  21323. + test ! -f $$subdir/TAGS || \
  21324. + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  21325. + fi; \
  21326. + done; \
  21327. + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  21328. + unique=`for i in $$list; do \
  21329. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  21330. + done | \
  21331. + $(AWK) ' { files[$$0] = 1; } \
  21332. + END { for (i in files) print i; }'`; \
  21333. + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  21334. + test -n "$$unique" || unique=$$empty_fix; \
  21335. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  21336. + $$tags $$unique; \
  21337. + fi
  21338. +ctags: CTAGS
  21339. +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  21340. + $(TAGS_FILES) $(LISP)
  21341. + tags=; \
  21342. + here=`pwd`; \
  21343. + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  21344. + unique=`for i in $$list; do \
  21345. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  21346. + done | \
  21347. + $(AWK) ' { files[$$0] = 1; } \
  21348. + END { for (i in files) print i; }'`; \
  21349. + test -z "$(CTAGS_ARGS)$$tags$$unique" \
  21350. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  21351. + $$tags $$unique
  21352. +
  21353. +GTAGS:
  21354. + here=`$(am__cd) $(top_builddir) && pwd` \
  21355. + && cd $(top_srcdir) \
  21356. + && gtags -i $(GTAGS_ARGS) $$here
  21357. +
  21358. +distclean-tags:
  21359. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  21360. +
  21361. +distdir: $(DISTFILES)
  21362. + $(mkdir_p) $(distdir)/..
  21363. + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  21364. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  21365. + list='$(DISTFILES)'; for file in $$list; do \
  21366. + case $$file in \
  21367. + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  21368. + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  21369. + esac; \
  21370. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  21371. + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  21372. + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  21373. + dir="/$$dir"; \
  21374. + $(mkdir_p) "$(distdir)$$dir"; \
  21375. + else \
  21376. + dir=''; \
  21377. + fi; \
  21378. + if test -d $$d/$$file; then \
  21379. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  21380. + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  21381. + fi; \
  21382. + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  21383. + else \
  21384. + test -f $(distdir)/$$file \
  21385. + || cp -p $$d/$$file $(distdir)/$$file \
  21386. + || exit 1; \
  21387. + fi; \
  21388. + done
  21389. + list='$(SUBDIRS)'; for subdir in $$list; do \
  21390. + if test "$$subdir" = .; then :; else \
  21391. + test -d "$(distdir)/$$subdir" \
  21392. + || mkdir "$(distdir)/$$subdir" \
  21393. + || exit 1; \
  21394. + (cd $$subdir && \
  21395. + $(MAKE) $(AM_MAKEFLAGS) \
  21396. + top_distdir="../$(top_distdir)" \
  21397. + distdir="../$(distdir)/$$subdir" \
  21398. + distdir) \
  21399. + || exit 1; \
  21400. + fi; \
  21401. + done
  21402. +check-am: all-am
  21403. +check: check-recursive
  21404. +all-am: Makefile $(HEADERS) config.h
  21405. +installdirs: installdirs-recursive
  21406. +installdirs-am:
  21407. + for dir in "$(DESTDIR)$(includedir)"; do \
  21408. + test -z "$$dir" || $(mkdir_p) "$$dir"; \
  21409. + done
  21410. +install: install-recursive
  21411. +install-exec: install-exec-recursive
  21412. +install-data: install-data-recursive
  21413. +uninstall: uninstall-recursive
  21414. +
  21415. +install-am: all-am
  21416. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  21417. +
  21418. +installcheck: installcheck-recursive
  21419. +install-strip:
  21420. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  21421. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  21422. + `test -z '$(STRIP)' || \
  21423. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  21424. +mostlyclean-generic:
  21425. +
  21426. +clean-generic:
  21427. +
  21428. +distclean-generic:
  21429. + -rm -f $(CONFIG_CLEAN_FILES)
  21430. + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  21431. +
  21432. +maintainer-clean-generic:
  21433. + @echo "This command is intended for maintainers to use"
  21434. + @echo "it deletes files that may require special tools to rebuild."
  21435. +clean: clean-recursive
  21436. +
  21437. +clean-am: clean-generic clean-libtool mostlyclean-am
  21438. +
  21439. +distclean: distclean-recursive
  21440. + -rm -f Makefile
  21441. +distclean-am: clean-am distclean-generic distclean-hdr \
  21442. + distclean-libtool distclean-tags
  21443. +
  21444. +dvi: dvi-recursive
  21445. +
  21446. +dvi-am:
  21447. +
  21448. +html: html-recursive
  21449. +
  21450. +info: info-recursive
  21451. +
  21452. +info-am:
  21453. +
  21454. +install-data-am: install-includeHEADERS
  21455. +
  21456. +install-exec-am:
  21457. +
  21458. +install-info: install-info-recursive
  21459. +
  21460. +install-man:
  21461. +
  21462. +installcheck-am:
  21463. +
  21464. +maintainer-clean: maintainer-clean-recursive
  21465. + -rm -f Makefile
  21466. +maintainer-clean-am: distclean-am maintainer-clean-generic
  21467. +
  21468. +mostlyclean: mostlyclean-recursive
  21469. +
  21470. +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  21471. +
  21472. +pdf: pdf-recursive
  21473. +
  21474. +pdf-am:
  21475. +
  21476. +ps: ps-recursive
  21477. +
  21478. +ps-am:
  21479. +
  21480. +uninstall-am: uninstall-includeHEADERS uninstall-info-am
  21481. +
  21482. +uninstall-info: uninstall-info-recursive
  21483. +
  21484. +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
  21485. + clean clean-generic clean-libtool clean-recursive ctags \
  21486. + ctags-recursive distclean distclean-generic distclean-hdr \
  21487. + distclean-libtool distclean-recursive distclean-tags distdir \
  21488. + dvi dvi-am html html-am info info-am install install-am \
  21489. + install-data install-data-am install-exec install-exec-am \
  21490. + install-includeHEADERS install-info install-info-am \
  21491. + install-man install-strip installcheck installcheck-am \
  21492. + installdirs installdirs-am maintainer-clean \
  21493. + maintainer-clean-generic maintainer-clean-recursive \
  21494. + mostlyclean mostlyclean-generic mostlyclean-libtool \
  21495. + mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
  21496. + uninstall uninstall-am uninstall-includeHEADERS \
  21497. + uninstall-info-am
  21498. +
  21499. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  21500. +# Otherwise a system limit (for SysV at least) may be exceeded.
  21501. +.NOEXPORT:
  21502. diff -ruN libnet-1.0.2a-orig/include/config.h.in libnet-1.0.2a-7/include/config.h.in
  21503. --- libnet-1.0.2a-orig/include/config.h.in 2000-05-25 02:28:49.000000000 +0200
  21504. +++ libnet-1.0.2a-7/include/config.h.in 2005-03-08 03:53:26.000000000 +0100
  21505. @@ -1,14 +1,20 @@
  21506. -/* include/config.h.in. Generated automatically from configure.in by autoheader. */
  21507. -
  21508. -/* Define to empty if the keyword does not work. */
  21509. -#undef const
  21510. +/* include/config.h.in. Generated from configure.in by autoheader. */
  21511. +/*
  21512. + *
  21513. + * Libnet autoconfiguration acconfig.h file
  21514. + * Copyright (c) 1998 - 2001 Mike D. Schiffman <mike@infonexus.com>
  21515. + * All rights reserved.
  21516. + *
  21517. + * Process this file with autoheader to produce a config.h file.
  21518. + */
  21519. #undef LIBNET_BSDISH_OS
  21520. #undef LIBNET_BSD_BYTE_SWAP
  21521. #undef DLPI_DEV_PREFIX
  21522. +#undef LIBNET_FAST_X86_CHECK
  21523. +#undef HAVE_SOLARIS
  21524. #undef HAVE_DEV_DLPI
  21525. #undef HAVE_SOCKADDR_SA_LEN
  21526. -#undef HAVE_SOLARIS
  21527. #undef HAVE_DLPI
  21528. #undef HAVE_PF_PACKET
  21529. #undef HAVE_STRUCT_IP_CSUM
  21530. @@ -21,23 +27,80 @@
  21531. #undef LIBNET_BIG_ENDIAN
  21532. #undef LIBNET_LIL_ENDIAN
  21533. -/* Define if you have the strerror function. */
  21534. -#undef HAVE_STRERROR
  21535. +/* Define to 1 if you have the <dlfcn.h> header file. */
  21536. +#undef HAVE_DLFCN_H
  21537. +
  21538. +/* Define to 1 if you have the <inttypes.h> header file. */
  21539. +#undef HAVE_INTTYPES_H
  21540. +
  21541. +/* Define to 1 if you have the `nsl' library (-lnsl). */
  21542. +#undef HAVE_LIBNSL
  21543. -/* Define if you have the <net/ethernet.h> header file. */
  21544. +/* Define to 1 if you have the `socket' library (-lsocket). */
  21545. +#undef HAVE_LIBSOCKET
  21546. +
  21547. +/* Define to 1 if you have the <memory.h> header file. */
  21548. +#undef HAVE_MEMORY_H
  21549. +
  21550. +/* Define to 1 if you have the <net/ethernet.h> header file. */
  21551. #undef HAVE_NET_ETHERNET_H
  21552. -/* Define if you have the <sys/bufmod.h> header file. */
  21553. +/* Define to 1 if you have the <stdint.h> header file. */
  21554. +#undef HAVE_STDINT_H
  21555. +
  21556. +/* Define to 1 if you have the <stdlib.h> header file. */
  21557. +#undef HAVE_STDLIB_H
  21558. +
  21559. +/* Define to 1 if you have the `strerror' function. */
  21560. +#undef HAVE_STRERROR
  21561. +
  21562. +/* Define to 1 if you have the <strings.h> header file. */
  21563. +#undef HAVE_STRINGS_H
  21564. +
  21565. +/* Define to 1 if you have the <string.h> header file. */
  21566. +#undef HAVE_STRING_H
  21567. +
  21568. +/* Define to 1 if you have the <sys/bufmod.h> header file. */
  21569. #undef HAVE_SYS_BUFMOD_H
  21570. -/* Define if you have the <sys/dlpi_ext.h> header file. */
  21571. +/* Define to 1 if you have the <sys/dlpi_ext.h> header file. */
  21572. #undef HAVE_SYS_DLPI_EXT_H
  21573. -/* Define if you have the <sys/sockio.h> header file. */
  21574. +/* Define to 1 if you have the <sys/sockio.h> header file. */
  21575. #undef HAVE_SYS_SOCKIO_H
  21576. -/* Define if you have the nsl library (-lnsl). */
  21577. -#undef HAVE_LIBNSL
  21578. +/* Define to 1 if you have the <sys/stat.h> header file. */
  21579. +#undef HAVE_SYS_STAT_H
  21580. -/* Define if you have the socket library (-lsocket). */
  21581. -#undef HAVE_LIBSOCKET
  21582. +/* Define to 1 if you have the <sys/types.h> header file. */
  21583. +#undef HAVE_SYS_TYPES_H
  21584. +
  21585. +/* Define to 1 if you have the <unistd.h> header file. */
  21586. +#undef HAVE_UNISTD_H
  21587. +
  21588. +/* Name of package */
  21589. +#undef PACKAGE
  21590. +
  21591. +/* Define to the address where bug reports for this package should be sent. */
  21592. +#undef PACKAGE_BUGREPORT
  21593. +
  21594. +/* Define to the full name of this package. */
  21595. +#undef PACKAGE_NAME
  21596. +
  21597. +/* Define to the full name and version of this package. */
  21598. +#undef PACKAGE_STRING
  21599. +
  21600. +/* Define to the one symbol short name of this package. */
  21601. +#undef PACKAGE_TARNAME
  21602. +
  21603. +/* Define to the version of this package. */
  21604. +#undef PACKAGE_VERSION
  21605. +
  21606. +/* Define to 1 if you have the ANSI C header files. */
  21607. +#undef STDC_HEADERS
  21608. +
  21609. +/* Version number of package */
  21610. +#undef VERSION
  21611. +
  21612. +/* Define to empty if `const' does not conform to ANSI C. */
  21613. +#undef const
  21614. diff -ruN libnet-1.0.2a-orig/include/libnet/Makefile.am libnet-1.0.2a-7/include/libnet/Makefile.am
  21615. --- libnet-1.0.2a-orig/include/libnet/Makefile.am 1970-01-01 01:00:00.000000000 +0100
  21616. +++ libnet-1.0.2a-7/include/libnet/Makefile.am 2005-03-08 03:53:26.000000000 +0100
  21617. @@ -0,0 +1,9 @@
  21618. +include $(top_srcdir)/Makefile.am.common
  21619. +
  21620. +pkginclude_HEADERS = \
  21621. + libnet-asn1.h \
  21622. + libnet-functions.h \
  21623. + libnet-headers.h \
  21624. + libnet-macros.h \
  21625. + libnet-ospf.h \
  21626. + libnet-structures.h
  21627. diff -ruN libnet-1.0.2a-orig/include/libnet/Makefile.in libnet-1.0.2a-7/include/libnet/Makefile.in
  21628. --- libnet-1.0.2a-orig/include/libnet/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  21629. +++ libnet-1.0.2a-7/include/libnet/Makefile.in 2005-03-08 03:53:26.000000000 +0100
  21630. @@ -0,0 +1,398 @@
  21631. +# Makefile.in generated by automake 1.8.5 from Makefile.am.
  21632. +# @configure_input@
  21633. +
  21634. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  21635. +# 2003, 2004 Free Software Foundation, Inc.
  21636. +# This Makefile.in is free software; the Free Software Foundation
  21637. +# gives unlimited permission to copy and/or distribute it,
  21638. +# with or without modifications, as long as this notice is preserved.
  21639. +
  21640. +# This program is distributed in the hope that it will be useful,
  21641. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  21642. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  21643. +# PARTICULAR PURPOSE.
  21644. +
  21645. +@SET_MAKE@
  21646. +
  21647. +srcdir = @srcdir@
  21648. +top_srcdir = @top_srcdir@
  21649. +VPATH = @srcdir@
  21650. +pkgdatadir = $(datadir)/@PACKAGE@
  21651. +pkglibdir = $(libdir)/@PACKAGE@
  21652. +pkgincludedir = $(includedir)/@PACKAGE@
  21653. +top_builddir = ../..
  21654. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  21655. +INSTALL = @INSTALL@
  21656. +install_sh_DATA = $(install_sh) -c -m 644
  21657. +install_sh_PROGRAM = $(install_sh) -c
  21658. +install_sh_SCRIPT = $(install_sh) -c
  21659. +INSTALL_HEADER = $(INSTALL_DATA)
  21660. +transform = $(program_transform_name)
  21661. +NORMAL_INSTALL = :
  21662. +PRE_INSTALL = :
  21663. +POST_INSTALL = :
  21664. +NORMAL_UNINSTALL = :
  21665. +PRE_UNINSTALL = :
  21666. +POST_UNINSTALL = :
  21667. +build_triplet = @build@
  21668. +host_triplet = @host@
  21669. +target_triplet = @target@
  21670. +DIST_COMMON = $(pkginclude_HEADERS) $(srcdir)/Makefile.am \
  21671. + $(srcdir)/Makefile.in $(top_srcdir)/Makefile.am.common
  21672. +subdir = include/libnet
  21673. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  21674. +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
  21675. + $(top_srcdir)/configure.in
  21676. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  21677. + $(ACLOCAL_M4)
  21678. +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  21679. +CONFIG_HEADER = $(top_builddir)/include/config.h
  21680. +CONFIG_CLEAN_FILES =
  21681. +depcomp =
  21682. +am__depfiles_maybe =
  21683. +SOURCES =
  21684. +DIST_SOURCES =
  21685. +am__installdirs = "$(DESTDIR)$(pkgincludedir)"
  21686. +pkgincludeHEADERS_INSTALL = $(INSTALL_HEADER)
  21687. +HEADERS = $(pkginclude_HEADERS)
  21688. +ETAGS = etags
  21689. +CTAGS = ctags
  21690. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  21691. +ACLOCAL = @ACLOCAL@
  21692. +ADDITIONAL_LIBS = @ADDITIONAL_LIBS@
  21693. +AMDEP_FALSE = @AMDEP_FALSE@
  21694. +AMDEP_TRUE = @AMDEP_TRUE@
  21695. +AMTAR = @AMTAR@
  21696. +AR = @AR@
  21697. +AUTOCONF = @AUTOCONF@
  21698. +AUTOHEADER = @AUTOHEADER@
  21699. +AUTOMAKE = @AUTOMAKE@
  21700. +AWK = @AWK@
  21701. +BIN_PREFIX = @BIN_PREFIX@
  21702. +CC = @CC@
  21703. +CCDEPMODE = @CCDEPMODE@
  21704. +CFLAGS = @CFLAGS@
  21705. +CPP = @CPP@
  21706. +CPPFLAGS = @CPPFLAGS@
  21707. +CYGPATH_W = @CYGPATH_W@
  21708. +DEFS = @DEFS@
  21709. +DEPDIR = @DEPDIR@
  21710. +ECHO = @ECHO@
  21711. +ECHO_C = @ECHO_C@
  21712. +ECHO_N = @ECHO_N@
  21713. +ECHO_T = @ECHO_T@
  21714. +EGREP = @EGREP@
  21715. +EXEEXT = @EXEEXT@
  21716. +INC_PREFIX = @INC_PREFIX@
  21717. +INSTALL_DATA = @INSTALL_DATA@
  21718. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  21719. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  21720. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  21721. +LDFLAGS = @LDFLAGS@
  21722. +LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  21723. +LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  21724. +LIBNET_CONFIG_LIBS = @LIBNET_CONFIG_LIBS@
  21725. +LIBOBJS = @LIBOBJS@
  21726. +LIBS = @LIBS@
  21727. +LIBTOOL = @LIBTOOL@
  21728. +LIB_PREFIX = @LIB_PREFIX@
  21729. +LL_INT_TYPE = @LL_INT_TYPE@
  21730. +LL_INT_TYPE_UC = @LL_INT_TYPE_UC@
  21731. +LN = @LN@
  21732. +LN_S = @LN_S@
  21733. +LTLIBOBJS = @LTLIBOBJS@
  21734. +MAKEINFO = @MAKEINFO@
  21735. +MAN_PREFIX = @MAN_PREFIX@
  21736. +OBJEXT = @OBJEXT@
  21737. +PACKAGE = @PACKAGE@
  21738. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  21739. +PACKAGE_NAME = @PACKAGE_NAME@
  21740. +PACKAGE_STRING = @PACKAGE_STRING@
  21741. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  21742. +PACKAGE_VERSION = @PACKAGE_VERSION@
  21743. +PATH_SEPARATOR = @PATH_SEPARATOR@
  21744. +RANLIB = @RANLIB@
  21745. +SET_MAKE = @SET_MAKE@
  21746. +SHELL = @SHELL@
  21747. +STRIP = @STRIP@
  21748. +VERSION = @VERSION@
  21749. +ac_ct_CC = @ac_ct_CC@
  21750. +ac_ct_RANLIB = @ac_ct_RANLIB@
  21751. +ac_ct_STRIP = @ac_ct_STRIP@
  21752. +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  21753. +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  21754. +am__include = @am__include@
  21755. +am__leading_dot = @am__leading_dot@
  21756. +am__quote = @am__quote@
  21757. +bindir = @bindir@
  21758. +build = @build@
  21759. +build_alias = @build_alias@
  21760. +build_cpu = @build_cpu@
  21761. +build_os = @build_os@
  21762. +build_vendor = @build_vendor@
  21763. +datadir = @datadir@
  21764. +exec_prefix = @exec_prefix@
  21765. +host = @host@
  21766. +host_alias = @host_alias@
  21767. +host_cpu = @host_cpu@
  21768. +host_os = @host_os@
  21769. +host_vendor = @host_vendor@
  21770. +includedir = @includedir@
  21771. +infodir = @infodir@
  21772. +install_sh = @install_sh@
  21773. +libdir = @libdir@
  21774. +libexecdir = @libexecdir@
  21775. +localstatedir = @localstatedir@
  21776. +mandir = @mandir@
  21777. +mkdir_p = @mkdir_p@
  21778. +oldincludedir = @oldincludedir@
  21779. +prefix = @prefix@
  21780. +program_transform_name = @program_transform_name@
  21781. +sbindir = @sbindir@
  21782. +sharedstatedir = @sharedstatedir@
  21783. +sysconfdir = @sysconfdir@
  21784. +target = @target@
  21785. +target_alias = @target_alias@
  21786. +target_cpu = @target_cpu@
  21787. +target_os = @target_os@
  21788. +target_vendor = @target_vendor@
  21789. +AUTOMAKE_OPTIONS = foreign no-dependencies
  21790. +DISTCLEANFILES = *~
  21791. +pkginclude_HEADERS = \
  21792. + libnet-asn1.h \
  21793. + libnet-functions.h \
  21794. + libnet-headers.h \
  21795. + libnet-macros.h \
  21796. + libnet-ospf.h \
  21797. + libnet-structures.h
  21798. +
  21799. +all: all-am
  21800. +
  21801. +.SUFFIXES:
  21802. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  21803. + @for dep in $?; do \
  21804. + case '$(am__configure_deps)' in \
  21805. + *$$dep*) \
  21806. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  21807. + && exit 0; \
  21808. + exit 1;; \
  21809. + esac; \
  21810. + done; \
  21811. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign include/libnet/Makefile'; \
  21812. + cd $(top_srcdir) && \
  21813. + $(AUTOMAKE) --foreign include/libnet/Makefile
  21814. +.PRECIOUS: Makefile
  21815. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  21816. + @case '$?' in \
  21817. + *config.status*) \
  21818. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  21819. + *) \
  21820. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  21821. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  21822. + esac;
  21823. +
  21824. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  21825. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  21826. +
  21827. +$(top_srcdir)/configure: $(am__configure_deps)
  21828. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  21829. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  21830. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  21831. +
  21832. +mostlyclean-libtool:
  21833. + -rm -f *.lo
  21834. +
  21835. +clean-libtool:
  21836. + -rm -rf .libs _libs
  21837. +
  21838. +distclean-libtool:
  21839. + -rm -f libtool
  21840. +uninstall-info-am:
  21841. +install-pkgincludeHEADERS: $(pkginclude_HEADERS)
  21842. + @$(NORMAL_INSTALL)
  21843. + test -z "$(pkgincludedir)" || $(mkdir_p) "$(DESTDIR)$(pkgincludedir)"
  21844. + @list='$(pkginclude_HEADERS)'; for p in $$list; do \
  21845. + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  21846. + f="`echo $$p | sed -e 's|^.*/||'`"; \
  21847. + echo " $(pkgincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgincludedir)/$$f'"; \
  21848. + $(pkgincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgincludedir)/$$f"; \
  21849. + done
  21850. +
  21851. +uninstall-pkgincludeHEADERS:
  21852. + @$(NORMAL_UNINSTALL)
  21853. + @list='$(pkginclude_HEADERS)'; for p in $$list; do \
  21854. + f="`echo $$p | sed -e 's|^.*/||'`"; \
  21855. + echo " rm -f '$(DESTDIR)$(pkgincludedir)/$$f'"; \
  21856. + rm -f "$(DESTDIR)$(pkgincludedir)/$$f"; \
  21857. + done
  21858. +
  21859. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  21860. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  21861. + unique=`for i in $$list; do \
  21862. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  21863. + done | \
  21864. + $(AWK) ' { files[$$0] = 1; } \
  21865. + END { for (i in files) print i; }'`; \
  21866. + mkid -fID $$unique
  21867. +tags: TAGS
  21868. +
  21869. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  21870. + $(TAGS_FILES) $(LISP)
  21871. + tags=; \
  21872. + here=`pwd`; \
  21873. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  21874. + unique=`for i in $$list; do \
  21875. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  21876. + done | \
  21877. + $(AWK) ' { files[$$0] = 1; } \
  21878. + END { for (i in files) print i; }'`; \
  21879. + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  21880. + test -n "$$unique" || unique=$$empty_fix; \
  21881. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  21882. + $$tags $$unique; \
  21883. + fi
  21884. +ctags: CTAGS
  21885. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  21886. + $(TAGS_FILES) $(LISP)
  21887. + tags=; \
  21888. + here=`pwd`; \
  21889. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  21890. + unique=`for i in $$list; do \
  21891. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  21892. + done | \
  21893. + $(AWK) ' { files[$$0] = 1; } \
  21894. + END { for (i in files) print i; }'`; \
  21895. + test -z "$(CTAGS_ARGS)$$tags$$unique" \
  21896. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  21897. + $$tags $$unique
  21898. +
  21899. +GTAGS:
  21900. + here=`$(am__cd) $(top_builddir) && pwd` \
  21901. + && cd $(top_srcdir) \
  21902. + && gtags -i $(GTAGS_ARGS) $$here
  21903. +
  21904. +distclean-tags:
  21905. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  21906. +
  21907. +distdir: $(DISTFILES)
  21908. + $(mkdir_p) $(distdir)/../..
  21909. + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  21910. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  21911. + list='$(DISTFILES)'; for file in $$list; do \
  21912. + case $$file in \
  21913. + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  21914. + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  21915. + esac; \
  21916. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  21917. + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  21918. + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  21919. + dir="/$$dir"; \
  21920. + $(mkdir_p) "$(distdir)$$dir"; \
  21921. + else \
  21922. + dir=''; \
  21923. + fi; \
  21924. + if test -d $$d/$$file; then \
  21925. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  21926. + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  21927. + fi; \
  21928. + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  21929. + else \
  21930. + test -f $(distdir)/$$file \
  21931. + || cp -p $$d/$$file $(distdir)/$$file \
  21932. + || exit 1; \
  21933. + fi; \
  21934. + done
  21935. +check-am: all-am
  21936. +check: check-am
  21937. +all-am: Makefile $(HEADERS)
  21938. +installdirs:
  21939. + for dir in "$(DESTDIR)$(pkgincludedir)"; do \
  21940. + test -z "$$dir" || $(mkdir_p) "$$dir"; \
  21941. + done
  21942. +install: install-am
  21943. +install-exec: install-exec-am
  21944. +install-data: install-data-am
  21945. +uninstall: uninstall-am
  21946. +
  21947. +install-am: all-am
  21948. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  21949. +
  21950. +installcheck: installcheck-am
  21951. +install-strip:
  21952. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  21953. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  21954. + `test -z '$(STRIP)' || \
  21955. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  21956. +mostlyclean-generic:
  21957. +
  21958. +clean-generic:
  21959. +
  21960. +distclean-generic:
  21961. + -rm -f $(CONFIG_CLEAN_FILES)
  21962. + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  21963. +
  21964. +maintainer-clean-generic:
  21965. + @echo "This command is intended for maintainers to use"
  21966. + @echo "it deletes files that may require special tools to rebuild."
  21967. +clean: clean-am
  21968. +
  21969. +clean-am: clean-generic clean-libtool mostlyclean-am
  21970. +
  21971. +distclean: distclean-am
  21972. + -rm -f Makefile
  21973. +distclean-am: clean-am distclean-generic distclean-libtool \
  21974. + distclean-tags
  21975. +
  21976. +dvi: dvi-am
  21977. +
  21978. +dvi-am:
  21979. +
  21980. +html: html-am
  21981. +
  21982. +info: info-am
  21983. +
  21984. +info-am:
  21985. +
  21986. +install-data-am: install-pkgincludeHEADERS
  21987. +
  21988. +install-exec-am:
  21989. +
  21990. +install-info: install-info-am
  21991. +
  21992. +install-man:
  21993. +
  21994. +installcheck-am:
  21995. +
  21996. +maintainer-clean: maintainer-clean-am
  21997. + -rm -f Makefile
  21998. +maintainer-clean-am: distclean-am maintainer-clean-generic
  21999. +
  22000. +mostlyclean: mostlyclean-am
  22001. +
  22002. +mostlyclean-am: mostlyclean-generic mostlyclean-libtool
  22003. +
  22004. +pdf: pdf-am
  22005. +
  22006. +pdf-am:
  22007. +
  22008. +ps: ps-am
  22009. +
  22010. +ps-am:
  22011. +
  22012. +uninstall-am: uninstall-info-am uninstall-pkgincludeHEADERS
  22013. +
  22014. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  22015. + clean-libtool ctags distclean distclean-generic \
  22016. + distclean-libtool distclean-tags distdir dvi dvi-am html \
  22017. + html-am info info-am install install-am install-data \
  22018. + install-data-am install-exec install-exec-am install-info \
  22019. + install-info-am install-man install-pkgincludeHEADERS \
  22020. + install-strip installcheck installcheck-am installdirs \
  22021. + maintainer-clean maintainer-clean-generic mostlyclean \
  22022. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  22023. + tags uninstall uninstall-am uninstall-info-am \
  22024. + uninstall-pkgincludeHEADERS
  22025. +
  22026. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  22027. +# Otherwise a system limit (for SysV at least) may be exceeded.
  22028. +.NOEXPORT:
  22029. diff -ruN libnet-1.0.2a-orig/include/libnet.h libnet-1.0.2a-7/include/libnet.h
  22030. --- libnet-1.0.2a-orig/include/libnet.h 2001-02-07 00:19:25.000000000 +0100
  22031. +++ libnet-1.0.2a-7/include/libnet.h 2005-03-08 03:53:26.000000000 +0100
  22032. @@ -84,9 +84,9 @@
  22033. #define LIBNET_VERSION "1.0.2a"
  22034. #if (!LIBNET_LIL_ENDIAN && !LIBNET_BIG_ENDIAN)
  22035. -#error "byte order has not been specified, you'll
  22036. -need to #define either LIBNET_LIL_ENDIAN or LIBNET_BIG_ENDIAN. See the
  22037. -documentation regarding the libnet-config script."
  22038. +#error "byte order has not been specified, you'll"
  22039. +"need to #define either LIBNET_LIL_ENDIAN or LIBNET_BIG_ENDIAN. See the"
  22040. +"documentation regarding the libnet-config script."
  22041. #endif
  22042. #endif /* __LIBNET_H */
  22043. diff -ruN libnet-1.0.2a-orig/install-sh libnet-1.0.2a-7/install-sh
  22044. --- libnet-1.0.2a-orig/install-sh 2001-02-05 18:51:48.000000000 +0100
  22045. +++ libnet-1.0.2a-7/install-sh 2005-03-08 03:53:26.000000000 +0100
  22046. @@ -44,7 +44,7 @@
  22047. transformbasename=""
  22048. transform_arg=""
  22049. instcmd="$cpprog"
  22050. -chmodcmd="$chmodprog 0755"
  22051. +chmodcmd=""
  22052. chowncmd=""
  22053. chgrpcmd=""
  22054. stripcmd=""
  22055. diff -ruN libnet-1.0.2a-orig/ipkg/libnet/CONTROL/control libnet-1.0.2a-7/ipkg/libnet/CONTROL/control
  22056. diff -ruN libnet-1.0.2a-orig/ipkg/libnet-dev/CONTROL/control libnet-1.0.2a-7/ipkg/libnet-dev/CONTROL/control
  22057. diff -ruN libnet-1.0.2a-orig/ipkg/rules libnet-1.0.2a-7/ipkg/rules
  22058. diff -ruN libnet-1.0.2a-orig/ipkg/version libnet-1.0.2a-7/ipkg/version
  22059. diff -ruN libnet-1.0.2a-orig/ltmain.sh libnet-1.0.2a-7/ltmain.sh
  22060. --- libnet-1.0.2a-orig/ltmain.sh 1970-01-01 01:00:00.000000000 +0100
  22061. +++ libnet-1.0.2a-7/ltmain.sh 2005-03-08 03:53:26.000000000 +0100
  22062. @@ -0,0 +1,5124 @@
  22063. +# ltmain.sh - Provide generalized library-building support services.
  22064. +# NOTE: Changing this file will not affect anything until you rerun configure.
  22065. +#
  22066. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  22067. +# Free Software Foundation, Inc.
  22068. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  22069. +#
  22070. +# This program is free software; you can redistribute it and/or modify
  22071. +# it under the terms of the GNU General Public License as published by
  22072. +# the Free Software Foundation; either version 2 of the License, or
  22073. +# (at your option) any later version.
  22074. +#
  22075. +# This program is distributed in the hope that it will be useful, but
  22076. +# WITHOUT ANY WARRANTY; without even the implied warranty of
  22077. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  22078. +# General Public License for more details.
  22079. +#
  22080. +# You should have received a copy of the GNU General Public License
  22081. +# along with this program; if not, write to the Free Software
  22082. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  22083. +#
  22084. +# As a special exception to the GNU General Public License, if you
  22085. +# distribute this file as part of a program that contains a
  22086. +# configuration script generated by Autoconf, you may include it under
  22087. +# the same distribution terms that you use for the rest of that program.
  22088. +
  22089. +# Check that we have a working $echo.
  22090. +if test "X$1" = X--no-reexec; then
  22091. + # Discard the --no-reexec flag, and continue.
  22092. + shift
  22093. +elif test "X$1" = X--fallback-echo; then
  22094. + # Avoid inline document here, it may be left over
  22095. + :
  22096. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  22097. + # Yippee, $echo works!
  22098. + :
  22099. +else
  22100. + # Restart under the correct shell, and then maybe $echo will work.
  22101. + exec $SHELL "$0" --no-reexec ${1+"$@"}
  22102. +fi
  22103. +
  22104. +if test "X$1" = X--fallback-echo; then
  22105. + # used as fallback echo
  22106. + shift
  22107. + cat <<EOF
  22108. +$*
  22109. +EOF
  22110. + exit 0
  22111. +fi
  22112. +
  22113. +# The name of this program.
  22114. +progname=`$echo "$0" | ${SED} 's%^.*/%%'`
  22115. +modename="$progname"
  22116. +
  22117. +# Constants.
  22118. +PROGRAM=ltmain.sh
  22119. +PACKAGE=libtool
  22120. +VERSION=1.4.3
  22121. +TIMESTAMP=" (1.922.2.111 2002/10/23 02:54:36) Debian$Rev: 145 $"
  22122. +
  22123. +default_mode=
  22124. +help="Try \`$progname --help' for more information."
  22125. +magic="%%%MAGIC variable%%%"
  22126. +mkdir="mkdir"
  22127. +mv="mv -f"
  22128. +rm="rm -f"
  22129. +
  22130. +# Sed substitution that helps us do robust quoting. It backslashifies
  22131. +# metacharacters that are still active within double-quoted strings.
  22132. +Xsed="${SED}"' -e 1s/^X//'
  22133. +sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  22134. +# test EBCDIC or ASCII
  22135. +case `echo A|od -x` in
  22136. + *[Cc]1*) # EBCDIC based system
  22137. + SP2NL="tr '\100' '\n'"
  22138. + NL2SP="tr '\r\n' '\100\100'"
  22139. + ;;
  22140. + *) # Assume ASCII based system
  22141. + SP2NL="tr '\040' '\012'"
  22142. + NL2SP="tr '\015\012' '\040\040'"
  22143. + ;;
  22144. +esac
  22145. +
  22146. +# NLS nuisances.
  22147. +# Only set LANG and LC_ALL to C if already set.
  22148. +# These must not be set unconditionally because not all systems understand
  22149. +# e.g. LANG=C (notably SCO).
  22150. +# We save the old values to restore during execute mode.
  22151. +if test "${LC_ALL+set}" = set; then
  22152. + save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  22153. +fi
  22154. +if test "${LANG+set}" = set; then
  22155. + save_LANG="$LANG"; LANG=C; export LANG
  22156. +fi
  22157. +
  22158. +# Make sure IFS has a sensible default
  22159. +: ${IFS="
  22160. +"}
  22161. +
  22162. +if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  22163. + echo "$modename: not configured to build any kind of library" 1>&2
  22164. + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  22165. + exit 1
  22166. +fi
  22167. +
  22168. +# Global variables.
  22169. +mode=$default_mode
  22170. +nonopt=
  22171. +prev=
  22172. +prevopt=
  22173. +run=
  22174. +show="$echo"
  22175. +show_help=
  22176. +execute_dlfiles=
  22177. +lo2o="s/\\.lo\$/.${objext}/"
  22178. +o2lo="s/\\.${objext}\$/.lo/"
  22179. +
  22180. +# Parse our command line options once, thoroughly.
  22181. +while test $# -gt 0
  22182. +do
  22183. + arg="$1"
  22184. + shift
  22185. +
  22186. + case $arg in
  22187. + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  22188. + *) optarg= ;;
  22189. + esac
  22190. +
  22191. + # If the previous option needs an argument, assign it.
  22192. + if test -n "$prev"; then
  22193. + case $prev in
  22194. + execute_dlfiles)
  22195. + execute_dlfiles="$execute_dlfiles $arg"
  22196. + ;;
  22197. + *)
  22198. + eval "$prev=\$arg"
  22199. + ;;
  22200. + esac
  22201. +
  22202. + prev=
  22203. + prevopt=
  22204. + continue
  22205. + fi
  22206. +
  22207. + # Have we seen a non-optional argument yet?
  22208. + case $arg in
  22209. + --help)
  22210. + show_help=yes
  22211. + ;;
  22212. +
  22213. + --version)
  22214. + echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  22215. + exit 0
  22216. + ;;
  22217. +
  22218. + --config)
  22219. + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0
  22220. + exit 0
  22221. + ;;
  22222. +
  22223. + --debug)
  22224. + echo "$progname: enabling shell trace mode"
  22225. + set -x
  22226. + ;;
  22227. +
  22228. + --dry-run | -n)
  22229. + run=:
  22230. + ;;
  22231. +
  22232. + --features)
  22233. + echo "host: $host"
  22234. + if test "$build_libtool_libs" = yes; then
  22235. + echo "enable shared libraries"
  22236. + else
  22237. + echo "disable shared libraries"
  22238. + fi
  22239. + if test "$build_old_libs" = yes; then
  22240. + echo "enable static libraries"
  22241. + else
  22242. + echo "disable static libraries"
  22243. + fi
  22244. + exit 0
  22245. + ;;
  22246. +
  22247. + --finish) mode="finish" ;;
  22248. +
  22249. + --mode) prevopt="--mode" prev=mode ;;
  22250. + --mode=*) mode="$optarg" ;;
  22251. +
  22252. + --preserve-dup-deps) duplicate_deps="yes" ;;
  22253. +
  22254. + --quiet | --silent)
  22255. + show=:
  22256. + ;;
  22257. +
  22258. + -dlopen)
  22259. + prevopt="-dlopen"
  22260. + prev=execute_dlfiles
  22261. + ;;
  22262. +
  22263. + -*)
  22264. + $echo "$modename: unrecognized option \`$arg'" 1>&2
  22265. + $echo "$help" 1>&2
  22266. + exit 1
  22267. + ;;
  22268. +
  22269. + *)
  22270. + nonopt="$arg"
  22271. + break
  22272. + ;;
  22273. + esac
  22274. +done
  22275. +
  22276. +if test -n "$prevopt"; then
  22277. + $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  22278. + $echo "$help" 1>&2
  22279. + exit 1
  22280. +fi
  22281. +
  22282. +# If this variable is set in any of the actions, the command in it
  22283. +# will be execed at the end. This prevents here-documents from being
  22284. +# left over by shells.
  22285. +exec_cmd=
  22286. +
  22287. +if test -z "$show_help"; then
  22288. +
  22289. + # Infer the operation mode.
  22290. + if test -z "$mode"; then
  22291. + case $nonopt in
  22292. + *cc | *++ | gcc* | *-gcc* | g++* | xlc*)
  22293. + mode=link
  22294. + for arg
  22295. + do
  22296. + case $arg in
  22297. + -c)
  22298. + mode=compile
  22299. + break
  22300. + ;;
  22301. + esac
  22302. + done
  22303. + ;;
  22304. + *db | *dbx | *strace | *truss)
  22305. + mode=execute
  22306. + ;;
  22307. + *install*|cp|mv)
  22308. + mode=install
  22309. + ;;
  22310. + *rm)
  22311. + mode=uninstall
  22312. + ;;
  22313. + *)
  22314. + # If we have no mode, but dlfiles were specified, then do execute mode.
  22315. + test -n "$execute_dlfiles" && mode=execute
  22316. +
  22317. + # Just use the default operation mode.
  22318. + if test -z "$mode"; then
  22319. + if test -n "$nonopt"; then
  22320. + $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  22321. + else
  22322. + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  22323. + fi
  22324. + fi
  22325. + ;;
  22326. + esac
  22327. + fi
  22328. +
  22329. + # Only execute mode is allowed to have -dlopen flags.
  22330. + if test -n "$execute_dlfiles" && test "$mode" != execute; then
  22331. + $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  22332. + $echo "$help" 1>&2
  22333. + exit 1
  22334. + fi
  22335. +
  22336. + # Change the help message to a mode-specific one.
  22337. + generic_help="$help"
  22338. + help="Try \`$modename --help --mode=$mode' for more information."
  22339. +
  22340. + # These modes are in order of execution frequency so that they run quickly.
  22341. + case $mode in
  22342. + # libtool compile mode
  22343. + compile)
  22344. + modename="$modename: compile"
  22345. + # Get the compilation command and the source file.
  22346. + base_compile=
  22347. + prev=
  22348. + lastarg=
  22349. + srcfile="$nonopt"
  22350. + suppress_output=
  22351. +
  22352. + user_target=no
  22353. + for arg
  22354. + do
  22355. + case $prev in
  22356. + "") ;;
  22357. + xcompiler)
  22358. + # Aesthetically quote the previous argument.
  22359. + prev=
  22360. + lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  22361. +
  22362. + case $arg in
  22363. + # Double-quote args containing other shell metacharacters.
  22364. + # Many Bourne shells cannot handle close brackets correctly
  22365. + # in scan sets, so we specify it separately.
  22366. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  22367. + arg="\"$arg\""
  22368. + ;;
  22369. + esac
  22370. +
  22371. + # Add the previous argument to base_compile.
  22372. + if test -z "$base_compile"; then
  22373. + base_compile="$lastarg"
  22374. + else
  22375. + base_compile="$base_compile $lastarg"
  22376. + fi
  22377. + continue
  22378. + ;;
  22379. + esac
  22380. +
  22381. + # Accept any command-line options.
  22382. + case $arg in
  22383. + -o)
  22384. + if test "$user_target" != "no"; then
  22385. + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  22386. + exit 1
  22387. + fi
  22388. + user_target=next
  22389. + ;;
  22390. +
  22391. + -static)
  22392. + build_old_libs=yes
  22393. + continue
  22394. + ;;
  22395. +
  22396. + -prefer-pic)
  22397. + pic_mode=yes
  22398. + continue
  22399. + ;;
  22400. +
  22401. + -prefer-non-pic)
  22402. + pic_mode=no
  22403. + continue
  22404. + ;;
  22405. +
  22406. + -Xcompiler)
  22407. + prev=xcompiler
  22408. + continue
  22409. + ;;
  22410. +
  22411. + -Wc,*)
  22412. + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  22413. + lastarg=
  22414. + save_ifs="$IFS"; IFS=','
  22415. + for arg in $args; do
  22416. + IFS="$save_ifs"
  22417. +
  22418. + # Double-quote args containing other shell metacharacters.
  22419. + # Many Bourne shells cannot handle close brackets correctly
  22420. + # in scan sets, so we specify it separately.
  22421. + case $arg in
  22422. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  22423. + arg="\"$arg\""
  22424. + ;;
  22425. + esac
  22426. + lastarg="$lastarg $arg"
  22427. + done
  22428. + IFS="$save_ifs"
  22429. + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  22430. +
  22431. + # Add the arguments to base_compile.
  22432. + if test -z "$base_compile"; then
  22433. + base_compile="$lastarg"
  22434. + else
  22435. + base_compile="$base_compile $lastarg"
  22436. + fi
  22437. + continue
  22438. + ;;
  22439. + esac
  22440. +
  22441. + case $user_target in
  22442. + next)
  22443. + # The next one is the -o target name
  22444. + user_target=yes
  22445. + continue
  22446. + ;;
  22447. + yes)
  22448. + # We got the output file
  22449. + user_target=set
  22450. + libobj="$arg"
  22451. + continue
  22452. + ;;
  22453. + esac
  22454. +
  22455. + # Accept the current argument as the source file.
  22456. + lastarg="$srcfile"
  22457. + srcfile="$arg"
  22458. +
  22459. + # Aesthetically quote the previous argument.
  22460. +
  22461. + # Backslashify any backslashes, double quotes, and dollar signs.
  22462. + # These are the only characters that are still specially
  22463. + # interpreted inside of double-quoted scrings.
  22464. + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  22465. +
  22466. + # Double-quote args containing other shell metacharacters.
  22467. + # Many Bourne shells cannot handle close brackets correctly
  22468. + # in scan sets, so we specify it separately.
  22469. + case $lastarg in
  22470. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  22471. + lastarg="\"$lastarg\""
  22472. + ;;
  22473. + esac
  22474. +
  22475. + # Add the previous argument to base_compile.
  22476. + if test -z "$base_compile"; then
  22477. + base_compile="$lastarg"
  22478. + else
  22479. + base_compile="$base_compile $lastarg"
  22480. + fi
  22481. + done
  22482. +
  22483. + case $user_target in
  22484. + set)
  22485. + ;;
  22486. + no)
  22487. + # Get the name of the library object.
  22488. + libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  22489. + ;;
  22490. + *)
  22491. + $echo "$modename: you must specify a target with \`-o'" 1>&2
  22492. + exit 1
  22493. + ;;
  22494. + esac
  22495. +
  22496. + # Recognize several different file suffixes.
  22497. + # If the user specifies -o file.o, it is replaced with file.lo
  22498. + xform='[cCFSfmso]'
  22499. + case $libobj in
  22500. + *.ada) xform=ada ;;
  22501. + *.adb) xform=adb ;;
  22502. + *.ads) xform=ads ;;
  22503. + *.asm) xform=asm ;;
  22504. + *.c++) xform=c++ ;;
  22505. + *.cc) xform=cc ;;
  22506. + *.cpp) xform=cpp ;;
  22507. + *.cxx) xform=cxx ;;
  22508. + *.f90) xform=f90 ;;
  22509. + *.for) xform=for ;;
  22510. + esac
  22511. +
  22512. + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  22513. +
  22514. + case $libobj in
  22515. + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  22516. + *)
  22517. + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  22518. + exit 1
  22519. + ;;
  22520. + esac
  22521. +
  22522. + if test -z "$base_compile"; then
  22523. + $echo "$modename: you must specify a compilation command" 1>&2
  22524. + $echo "$help" 1>&2
  22525. + exit 1
  22526. + fi
  22527. +
  22528. + # Delete any leftover library objects.
  22529. + if test "$build_old_libs" = yes; then
  22530. + removelist="$obj $libobj"
  22531. + else
  22532. + removelist="$libobj"
  22533. + fi
  22534. +
  22535. + $run $rm $removelist
  22536. + trap "$run $rm $removelist; exit 1" 1 2 15
  22537. +
  22538. + # On Cygwin there's no "real" PIC flag so we must build both object types
  22539. + case $host_os in
  22540. + cygwin* | mingw* | pw32* | os2*)
  22541. + pic_mode=default
  22542. + ;;
  22543. + esac
  22544. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  22545. + # non-PIC code in shared libraries is not supported
  22546. + pic_mode=default
  22547. + fi
  22548. +
  22549. + # Calculate the filename of the output object if compiler does
  22550. + # not support -o with -c
  22551. + if test "$compiler_c_o" = no; then
  22552. + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  22553. + lockfile="$output_obj.lock"
  22554. + removelist="$removelist $output_obj $lockfile"
  22555. + trap "$run $rm $removelist; exit 1" 1 2 15
  22556. + else
  22557. + need_locks=no
  22558. + lockfile=
  22559. + fi
  22560. +
  22561. + # Lock this critical section if it is needed
  22562. + # We use this script file to make the link, it avoids creating a new file
  22563. + if test "$need_locks" = yes; then
  22564. + until $run ln "$0" "$lockfile" 2>/dev/null; do
  22565. + $show "Waiting for $lockfile to be removed"
  22566. + sleep 2
  22567. + done
  22568. + elif test "$need_locks" = warn; then
  22569. + if test -f "$lockfile"; then
  22570. + echo "\
  22571. +*** ERROR, $lockfile exists and contains:
  22572. +`cat $lockfile 2>/dev/null`
  22573. +
  22574. +This indicates that another process is trying to use the same
  22575. +temporary object file, and libtool could not work around it because
  22576. +your compiler does not support \`-c' and \`-o' together. If you
  22577. +repeat this compilation, it may succeed, by chance, but you had better
  22578. +avoid parallel builds (make -j) in this platform, or get a better
  22579. +compiler."
  22580. +
  22581. + $run $rm $removelist
  22582. + exit 1
  22583. + fi
  22584. + echo $srcfile > "$lockfile"
  22585. + fi
  22586. +
  22587. + if test -n "$fix_srcfile_path"; then
  22588. + eval srcfile=\"$fix_srcfile_path\"
  22589. + fi
  22590. +
  22591. + # Only build a PIC object if we are building libtool libraries.
  22592. + if test "$build_libtool_libs" = yes; then
  22593. + # Without this assignment, base_compile gets emptied.
  22594. + fbsd_hideous_sh_bug=$base_compile
  22595. +
  22596. + if test "$pic_mode" != no; then
  22597. + # All platforms use -DPIC, to notify preprocessed assembler code.
  22598. + command="$base_compile $srcfile $pic_flag -DPIC"
  22599. + else
  22600. + # Don't build PIC code
  22601. + command="$base_compile $srcfile"
  22602. + fi
  22603. + if test "$build_old_libs" = yes; then
  22604. + lo_libobj="$libobj"
  22605. + dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
  22606. + if test "X$dir" = "X$libobj"; then
  22607. + dir="$objdir"
  22608. + else
  22609. + dir="$dir/$objdir"
  22610. + fi
  22611. + libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
  22612. +
  22613. + if test -d "$dir"; then
  22614. + $show "$rm $libobj"
  22615. + $run $rm $libobj
  22616. + else
  22617. + $show "$mkdir $dir"
  22618. + $run $mkdir $dir
  22619. + status=$?
  22620. + if test $status -ne 0 && test ! -d $dir; then
  22621. + exit $status
  22622. + fi
  22623. + fi
  22624. + fi
  22625. + if test "$compiler_o_lo" = yes; then
  22626. + output_obj="$libobj"
  22627. + command="$command -o $output_obj"
  22628. + elif test "$compiler_c_o" = yes; then
  22629. + output_obj="$obj"
  22630. + command="$command -o $output_obj"
  22631. + fi
  22632. +
  22633. + $run $rm "$output_obj"
  22634. + $show "$command"
  22635. + if $run eval "$command"; then :
  22636. + else
  22637. + test -n "$output_obj" && $run $rm $removelist
  22638. + exit 1
  22639. + fi
  22640. +
  22641. + if test "$need_locks" = warn &&
  22642. + test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
  22643. + echo "\
  22644. +*** ERROR, $lockfile contains:
  22645. +`cat $lockfile 2>/dev/null`
  22646. +
  22647. +but it should contain:
  22648. +$srcfile
  22649. +
  22650. +This indicates that another process is trying to use the same
  22651. +temporary object file, and libtool could not work around it because
  22652. +your compiler does not support \`-c' and \`-o' together. If you
  22653. +repeat this compilation, it may succeed, by chance, but you had better
  22654. +avoid parallel builds (make -j) in this platform, or get a better
  22655. +compiler."
  22656. +
  22657. + $run $rm $removelist
  22658. + exit 1
  22659. + fi
  22660. +
  22661. + # Just move the object if needed, then go on to compile the next one
  22662. + if test x"$output_obj" != x"$libobj"; then
  22663. + $show "$mv $output_obj $libobj"
  22664. + if $run $mv $output_obj $libobj; then :
  22665. + else
  22666. + error=$?
  22667. + $run $rm $removelist
  22668. + exit $error
  22669. + fi
  22670. + fi
  22671. +
  22672. + # If we have no pic_flag, then copy the object into place and finish.
  22673. + if (test -z "$pic_flag" || test "$pic_mode" != default) &&
  22674. + test "$build_old_libs" = yes; then
  22675. + # Rename the .lo from within objdir to obj
  22676. + if test -f $obj; then
  22677. + $show $rm $obj
  22678. + $run $rm $obj
  22679. + fi
  22680. +
  22681. + $show "$mv $libobj $obj"
  22682. + if $run $mv $libobj $obj; then :
  22683. + else
  22684. + error=$?
  22685. + $run $rm $removelist
  22686. + exit $error
  22687. + fi
  22688. +
  22689. + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  22690. + if test "X$xdir" = "X$obj"; then
  22691. + xdir="."
  22692. + else
  22693. + xdir="$xdir"
  22694. + fi
  22695. + baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
  22696. + libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
  22697. + # Now arrange that obj and lo_libobj become the same file
  22698. + $show "(cd $xdir && $LN_S $baseobj $libobj)"
  22699. + if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
  22700. + # Unlock the critical section if it was locked
  22701. + if test "$need_locks" != no; then
  22702. + $run $rm "$lockfile"
  22703. + fi
  22704. + exit 0
  22705. + else
  22706. + error=$?
  22707. + $run $rm $removelist
  22708. + exit $error
  22709. + fi
  22710. + fi
  22711. +
  22712. + # Allow error messages only from the first compilation.
  22713. + suppress_output=' >/dev/null 2>&1'
  22714. + fi
  22715. +
  22716. + # Only build a position-dependent object if we build old libraries.
  22717. + if test "$build_old_libs" = yes; then
  22718. + if test "$pic_mode" != yes; then
  22719. + # Don't build PIC code
  22720. + command="$base_compile $srcfile"
  22721. + else
  22722. + # All platforms use -DPIC, to notify preprocessed assembler code.
  22723. + command="$base_compile $srcfile $pic_flag -DPIC"
  22724. + fi
  22725. + if test "$compiler_c_o" = yes; then
  22726. + command="$command -o $obj"
  22727. + output_obj="$obj"
  22728. + fi
  22729. +
  22730. + # Suppress compiler output if we already did a PIC compilation.
  22731. + command="$command$suppress_output"
  22732. + $run $rm "$output_obj"
  22733. + $show "$command"
  22734. + if $run eval "$command"; then :
  22735. + else
  22736. + $run $rm $removelist
  22737. + exit 1
  22738. + fi
  22739. +
  22740. + if test "$need_locks" = warn &&
  22741. + test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
  22742. + echo "\
  22743. +*** ERROR, $lockfile contains:
  22744. +`cat $lockfile 2>/dev/null`
  22745. +
  22746. +but it should contain:
  22747. +$srcfile
  22748. +
  22749. +This indicates that another process is trying to use the same
  22750. +temporary object file, and libtool could not work around it because
  22751. +your compiler does not support \`-c' and \`-o' together. If you
  22752. +repeat this compilation, it may succeed, by chance, but you had better
  22753. +avoid parallel builds (make -j) in this platform, or get a better
  22754. +compiler."
  22755. +
  22756. + $run $rm $removelist
  22757. + exit 1
  22758. + fi
  22759. +
  22760. + # Just move the object if needed
  22761. + if test x"$output_obj" != x"$obj"; then
  22762. + $show "$mv $output_obj $obj"
  22763. + if $run $mv $output_obj $obj; then :
  22764. + else
  22765. + error=$?
  22766. + $run $rm $removelist
  22767. + exit $error
  22768. + fi
  22769. + fi
  22770. +
  22771. + # Create an invalid libtool object if no PIC, so that we do not
  22772. + # accidentally link it into a program.
  22773. + if test "$build_libtool_libs" != yes; then
  22774. + $show "echo timestamp > $libobj"
  22775. + $run eval "echo timestamp > \$libobj" || exit $?
  22776. + else
  22777. + # Move the .lo from within objdir
  22778. + $show "$mv $libobj $lo_libobj"
  22779. + if $run $mv $libobj $lo_libobj; then :
  22780. + else
  22781. + error=$?
  22782. + $run $rm $removelist
  22783. + exit $error
  22784. + fi
  22785. + fi
  22786. + fi
  22787. +
  22788. + # Unlock the critical section if it was locked
  22789. + if test "$need_locks" != no; then
  22790. + $run $rm "$lockfile"
  22791. + fi
  22792. +
  22793. + exit 0
  22794. + ;;
  22795. +
  22796. + # libtool link mode
  22797. + link | relink)
  22798. + modename="$modename: link"
  22799. + case $host in
  22800. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  22801. + # It is impossible to link a dll without this setting, and
  22802. + # we shouldn't force the makefile maintainer to figure out
  22803. + # which system we are compiling for in order to pass an extra
  22804. + # flag for every libtool invokation.
  22805. + # allow_undefined=no
  22806. +
  22807. + # FIXME: Unfortunately, there are problems with the above when trying
  22808. + # to make a dll which has undefined symbols, in which case not
  22809. + # even a static library is built. For now, we need to specify
  22810. + # -no-undefined on the libtool link line when we can be certain
  22811. + # that all symbols are satisfied, otherwise we get a static library.
  22812. + allow_undefined=yes
  22813. + ;;
  22814. + *)
  22815. + allow_undefined=yes
  22816. + ;;
  22817. + esac
  22818. + libtool_args="$nonopt"
  22819. + compile_command="$nonopt"
  22820. + finalize_command="$nonopt"
  22821. +
  22822. + compile_rpath=
  22823. + finalize_rpath=
  22824. + compile_shlibpath=
  22825. + finalize_shlibpath=
  22826. + convenience=
  22827. + old_convenience=
  22828. + deplibs=
  22829. + old_deplibs=
  22830. + compiler_flags=
  22831. + linker_flags=
  22832. + dllsearchpath=
  22833. + lib_search_path=`pwd`
  22834. + inst_prefix_dir=
  22835. +
  22836. + avoid_version=no
  22837. + dlfiles=
  22838. + dlprefiles=
  22839. + dlself=no
  22840. + export_dynamic=no
  22841. + export_symbols=
  22842. + export_symbols_regex=
  22843. + generated=
  22844. + libobjs=
  22845. + ltlibs=
  22846. + module=no
  22847. + no_install=no
  22848. + objs=
  22849. + prefer_static_libs=no
  22850. + preload=no
  22851. + prev=
  22852. + prevarg=
  22853. + release=
  22854. + rpath=
  22855. + xrpath=
  22856. + perm_rpath=
  22857. + temp_rpath=
  22858. + thread_safe=no
  22859. + vinfo=
  22860. +
  22861. + # We need to know -static, to get the right output filenames.
  22862. + for arg
  22863. + do
  22864. + case $arg in
  22865. + -all-static | -static)
  22866. + if test "X$arg" = "X-all-static"; then
  22867. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  22868. + $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  22869. + fi
  22870. + if test -n "$link_static_flag"; then
  22871. + dlopen_self=$dlopen_self_static
  22872. + fi
  22873. + else
  22874. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  22875. + dlopen_self=$dlopen_self_static
  22876. + fi
  22877. + fi
  22878. + build_libtool_libs=no
  22879. + build_old_libs=yes
  22880. + prefer_static_libs=yes
  22881. + break
  22882. + ;;
  22883. + esac
  22884. + done
  22885. +
  22886. + # See if our shared archives depend on static archives.
  22887. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  22888. +
  22889. + # Go through the arguments, transforming them on the way.
  22890. + while test $# -gt 0; do
  22891. + arg="$1"
  22892. + shift
  22893. + case $arg in
  22894. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  22895. + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  22896. + ;;
  22897. + *) qarg=$arg ;;
  22898. + esac
  22899. + libtool_args="$libtool_args $qarg"
  22900. +
  22901. + # If the previous option needs an argument, assign it.
  22902. + if test -n "$prev"; then
  22903. + case $prev in
  22904. + output)
  22905. + compile_command="$compile_command @OUTPUT@"
  22906. + finalize_command="$finalize_command @OUTPUT@"
  22907. + ;;
  22908. + esac
  22909. +
  22910. + case $prev in
  22911. + dlfiles|dlprefiles)
  22912. + if test "$preload" = no; then
  22913. + # Add the symbol object into the linking commands.
  22914. + compile_command="$compile_command @SYMFILE@"
  22915. + finalize_command="$finalize_command @SYMFILE@"
  22916. + preload=yes
  22917. + fi
  22918. + case $arg in
  22919. + *.la | *.lo) ;; # We handle these cases below.
  22920. + force)
  22921. + if test "$dlself" = no; then
  22922. + dlself=needless
  22923. + export_dynamic=yes
  22924. + fi
  22925. + prev=
  22926. + continue
  22927. + ;;
  22928. + self)
  22929. + if test "$prev" = dlprefiles; then
  22930. + dlself=yes
  22931. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  22932. + dlself=yes
  22933. + else
  22934. + dlself=needless
  22935. + export_dynamic=yes
  22936. + fi
  22937. + prev=
  22938. + continue
  22939. + ;;
  22940. + *)
  22941. + if test "$prev" = dlfiles; then
  22942. + dlfiles="$dlfiles $arg"
  22943. + else
  22944. + dlprefiles="$dlprefiles $arg"
  22945. + fi
  22946. + prev=
  22947. + continue
  22948. + ;;
  22949. + esac
  22950. + ;;
  22951. + expsyms)
  22952. + export_symbols="$arg"
  22953. + if test ! -f "$arg"; then
  22954. + $echo "$modename: symbol file \`$arg' does not exist"
  22955. + exit 1
  22956. + fi
  22957. + prev=
  22958. + continue
  22959. + ;;
  22960. + expsyms_regex)
  22961. + export_symbols_regex="$arg"
  22962. + prev=
  22963. + continue
  22964. + ;;
  22965. + inst_prefix)
  22966. + inst_prefix_dir="$arg"
  22967. + prev=
  22968. + continue
  22969. + ;;
  22970. + release)
  22971. + release="-$arg"
  22972. + prev=
  22973. + continue
  22974. + ;;
  22975. + rpath | xrpath)
  22976. + # We need an absolute path.
  22977. + case $arg in
  22978. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  22979. + *)
  22980. + $echo "$modename: only absolute run-paths are allowed" 1>&2
  22981. + exit 1
  22982. + ;;
  22983. + esac
  22984. + if test "$prev" = rpath; then
  22985. + case "$rpath " in
  22986. + *" $arg "*) ;;
  22987. + *) rpath="$rpath $arg" ;;
  22988. + esac
  22989. + else
  22990. + case "$xrpath " in
  22991. + *" $arg "*) ;;
  22992. + *) xrpath="$xrpath $arg" ;;
  22993. + esac
  22994. + fi
  22995. + prev=
  22996. + continue
  22997. + ;;
  22998. + xcompiler)
  22999. + compiler_flags="$compiler_flags $qarg"
  23000. + prev=
  23001. + compile_command="$compile_command $qarg"
  23002. + finalize_command="$finalize_command $qarg"
  23003. + continue
  23004. + ;;
  23005. + xlinker)
  23006. + linker_flags="$linker_flags $qarg"
  23007. + compiler_flags="$compiler_flags $wl$qarg"
  23008. + prev=
  23009. + compile_command="$compile_command $wl$qarg"
  23010. + finalize_command="$finalize_command $wl$qarg"
  23011. + continue
  23012. + ;;
  23013. + *)
  23014. + eval "$prev=\"\$arg\""
  23015. + prev=
  23016. + continue
  23017. + ;;
  23018. + esac
  23019. + fi # test -n $prev
  23020. +
  23021. + prevarg="$arg"
  23022. +
  23023. + case $arg in
  23024. + -all-static)
  23025. + if test -n "$link_static_flag"; then
  23026. + compile_command="$compile_command $link_static_flag"
  23027. + finalize_command="$finalize_command $link_static_flag"
  23028. + fi
  23029. + continue
  23030. + ;;
  23031. +
  23032. + -allow-undefined)
  23033. + # FIXME: remove this flag sometime in the future.
  23034. + $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  23035. + continue
  23036. + ;;
  23037. +
  23038. + -avoid-version)
  23039. + avoid_version=yes
  23040. + continue
  23041. + ;;
  23042. +
  23043. + -dlopen)
  23044. + prev=dlfiles
  23045. + continue
  23046. + ;;
  23047. +
  23048. + -dlpreopen)
  23049. + prev=dlprefiles
  23050. + continue
  23051. + ;;
  23052. +
  23053. + -export-dynamic)
  23054. + export_dynamic=yes
  23055. + continue
  23056. + ;;
  23057. +
  23058. + -export-symbols | -export-symbols-regex)
  23059. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  23060. + $echo "$modename: more than one -exported-symbols argument is not allowed"
  23061. + exit 1
  23062. + fi
  23063. + if test "X$arg" = "X-export-symbols"; then
  23064. + prev=expsyms
  23065. + else
  23066. + prev=expsyms_regex
  23067. + fi
  23068. + continue
  23069. + ;;
  23070. +
  23071. + -inst-prefix-dir)
  23072. + prev=inst_prefix
  23073. + continue
  23074. + ;;
  23075. +
  23076. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  23077. + # so, if we see these flags be careful not to treat them like -L
  23078. + -L[A-Z][A-Z]*:*)
  23079. + if test -z "$with_gcc"; then
  23080. + case $host in
  23081. + *-*-irix* | *-*-nonstopux*)
  23082. + compile_command="$compile_command $arg"
  23083. + finalize_command="$finalize_command $arg"
  23084. + ;;
  23085. + esac
  23086. + fi
  23087. + continue
  23088. + ;;
  23089. +
  23090. + -L*)
  23091. + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  23092. + # We need an absolute path.
  23093. + case $dir in
  23094. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  23095. + *)
  23096. + absdir=`cd "$dir" && pwd`
  23097. + if test -z "$absdir"; then
  23098. + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  23099. + exit 1
  23100. + fi
  23101. + dir="$absdir"
  23102. + ;;
  23103. + esac
  23104. + case "$deplibs " in
  23105. + *" -L$dir "*) ;;
  23106. + *)
  23107. + deplibs="$deplibs -L$dir"
  23108. + lib_search_path="$lib_search_path $dir"
  23109. + ;;
  23110. + esac
  23111. + case $host in
  23112. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  23113. + case :$dllsearchpath: in
  23114. + *":$dir:"*) ;;
  23115. + *) dllsearchpath="$dllsearchpath:$dir";;
  23116. + esac
  23117. + ;;
  23118. + esac
  23119. + continue
  23120. + ;;
  23121. +
  23122. + -l*)
  23123. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  23124. + case $host in
  23125. + *-*-cygwin* | *-*-pw32* | *-*-beos*)
  23126. + # These systems don't actually have a C or math library (as such)
  23127. + continue
  23128. + ;;
  23129. + *-*-mingw* | *-*-os2*)
  23130. + # These systems don't actually have a C library (as such)
  23131. + test "X$arg" = "X-lc" && continue
  23132. + ;;
  23133. + *-*-openbsd* | *-*-freebsd*)
  23134. + # Do not include libc due to us having libc/libc_r.
  23135. + test "X$arg" = "X-lc" && continue
  23136. + ;;
  23137. + esac
  23138. + elif test "X$arg" = "X-lc_r"; then
  23139. + case $host in
  23140. + *-*-openbsd* | *-*-freebsd*)
  23141. + # Do not include libc_r directly, use -pthread flag.
  23142. + continue
  23143. + ;;
  23144. + esac
  23145. + fi
  23146. + deplibs="$deplibs $arg"
  23147. + continue
  23148. + ;;
  23149. +
  23150. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads)
  23151. + deplibs="$deplibs $arg"
  23152. + continue
  23153. + ;;
  23154. +
  23155. + -module)
  23156. + module=yes
  23157. + continue
  23158. + ;;
  23159. +
  23160. + -no-fast-install)
  23161. + fast_install=no
  23162. + continue
  23163. + ;;
  23164. +
  23165. + -no-install)
  23166. + case $host in
  23167. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  23168. + # The PATH hackery in wrapper scripts is required on Windows
  23169. + # in order for the loader to find any dlls it needs.
  23170. + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  23171. + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  23172. + fast_install=no
  23173. + ;;
  23174. + *) no_install=yes ;;
  23175. + esac
  23176. + continue
  23177. + ;;
  23178. +
  23179. + -no-undefined)
  23180. + allow_undefined=no
  23181. + continue
  23182. + ;;
  23183. +
  23184. + -o) prev=output ;;
  23185. +
  23186. + -release)
  23187. + prev=release
  23188. + continue
  23189. + ;;
  23190. +
  23191. + -rpath)
  23192. + prev=rpath
  23193. + continue
  23194. + ;;
  23195. +
  23196. + -R)
  23197. + prev=xrpath
  23198. + continue
  23199. + ;;
  23200. +
  23201. + -R*)
  23202. + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  23203. + # We need an absolute path.
  23204. + case $dir in
  23205. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  23206. + *)
  23207. + $echo "$modename: only absolute run-paths are allowed" 1>&2
  23208. + exit 1
  23209. + ;;
  23210. + esac
  23211. + case "$xrpath " in
  23212. + *" $dir "*) ;;
  23213. + *) xrpath="$xrpath $dir" ;;
  23214. + esac
  23215. + continue
  23216. + ;;
  23217. +
  23218. + -static)
  23219. + # The effects of -static are defined in a previous loop.
  23220. + # We used to do the same as -all-static on platforms that
  23221. + # didn't have a PIC flag, but the assumption that the effects
  23222. + # would be equivalent was wrong. It would break on at least
  23223. + # Digital Unix and AIX.
  23224. + continue
  23225. + ;;
  23226. +
  23227. + -thread-safe)
  23228. + thread_safe=yes
  23229. + continue
  23230. + ;;
  23231. +
  23232. + -version-info)
  23233. + prev=vinfo
  23234. + continue
  23235. + ;;
  23236. +
  23237. + -Wc,*)
  23238. + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  23239. + arg=
  23240. + save_ifs="$IFS"; IFS=','
  23241. + for flag in $args; do
  23242. + IFS="$save_ifs"
  23243. + case $flag in
  23244. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  23245. + flag="\"$flag\""
  23246. + ;;
  23247. + esac
  23248. + arg="$arg $wl$flag"
  23249. + compiler_flags="$compiler_flags $flag"
  23250. + done
  23251. + IFS="$save_ifs"
  23252. + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  23253. + ;;
  23254. +
  23255. + -Wl,*)
  23256. + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  23257. + arg=
  23258. + save_ifs="$IFS"; IFS=','
  23259. + for flag in $args; do
  23260. + IFS="$save_ifs"
  23261. + case $flag in
  23262. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  23263. + flag="\"$flag\""
  23264. + ;;
  23265. + esac
  23266. + arg="$arg $wl$flag"
  23267. + compiler_flags="$compiler_flags $wl$flag"
  23268. + linker_flags="$linker_flags $flag"
  23269. + done
  23270. + IFS="$save_ifs"
  23271. + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  23272. + ;;
  23273. +
  23274. + -Xcompiler)
  23275. + prev=xcompiler
  23276. + continue
  23277. + ;;
  23278. +
  23279. + -Xlinker)
  23280. + prev=xlinker
  23281. + continue
  23282. + ;;
  23283. +
  23284. + # Some other compiler flag.
  23285. + -* | +*)
  23286. + # Unknown arguments in both finalize_command and compile_command need
  23287. + # to be aesthetically quoted because they are evaled later.
  23288. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  23289. + case $arg in
  23290. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  23291. + arg="\"$arg\""
  23292. + ;;
  23293. + esac
  23294. + ;;
  23295. +
  23296. + *.lo | *.$objext)
  23297. + # A library or standard object.
  23298. + if test "$prev" = dlfiles; then
  23299. + # This file was specified with -dlopen.
  23300. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  23301. + dlfiles="$dlfiles $arg"
  23302. + prev=
  23303. + continue
  23304. + else
  23305. + # If libtool objects are unsupported, then we need to preload.
  23306. + prev=dlprefiles
  23307. + fi
  23308. + fi
  23309. +
  23310. + if test "$prev" = dlprefiles; then
  23311. + # Preload the old-style object.
  23312. + dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
  23313. + prev=
  23314. + else
  23315. + case $arg in
  23316. + *.lo) libobjs="$libobjs $arg" ;;
  23317. + *) objs="$objs $arg" ;;
  23318. + esac
  23319. + fi
  23320. + ;;
  23321. +
  23322. + *.$libext)
  23323. + # An archive.
  23324. + deplibs="$deplibs $arg"
  23325. + old_deplibs="$old_deplibs $arg"
  23326. + continue
  23327. + ;;
  23328. +
  23329. + *.la)
  23330. + # A libtool-controlled library.
  23331. +
  23332. + if test "$prev" = dlfiles; then
  23333. + # This library was specified with -dlopen.
  23334. + dlfiles="$dlfiles $arg"
  23335. + prev=
  23336. + elif test "$prev" = dlprefiles; then
  23337. + # The library was specified with -dlpreopen.
  23338. + dlprefiles="$dlprefiles $arg"
  23339. + prev=
  23340. + else
  23341. + deplibs="$deplibs $arg"
  23342. + fi
  23343. + continue
  23344. + ;;
  23345. +
  23346. + # Some other compiler argument.
  23347. + *)
  23348. + # Unknown arguments in both finalize_command and compile_command need
  23349. + # to be aesthetically quoted because they are evaled later.
  23350. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  23351. + case $arg in
  23352. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  23353. + arg="\"$arg\""
  23354. + ;;
  23355. + esac
  23356. + ;;
  23357. + esac # arg
  23358. +
  23359. + # Now actually substitute the argument into the commands.
  23360. + if test -n "$arg"; then
  23361. + compile_command="$compile_command $arg"
  23362. + finalize_command="$finalize_command $arg"
  23363. + fi
  23364. + done # argument parsing loop
  23365. +
  23366. + if test -n "$prev"; then
  23367. + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  23368. + $echo "$help" 1>&2
  23369. + exit 1
  23370. + fi
  23371. +
  23372. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  23373. + eval arg=\"$export_dynamic_flag_spec\"
  23374. + compile_command="$compile_command $arg"
  23375. + finalize_command="$finalize_command $arg"
  23376. + fi
  23377. +
  23378. + # calculate the name of the file, without its directory
  23379. + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  23380. + libobjs_save="$libobjs"
  23381. +
  23382. + if test -n "$shlibpath_var"; then
  23383. + # get the directories listed in $shlibpath_var
  23384. + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  23385. + else
  23386. + shlib_search_path=
  23387. + fi
  23388. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  23389. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  23390. +
  23391. + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  23392. + if test "X$output_objdir" = "X$output"; then
  23393. + output_objdir="$objdir"
  23394. + else
  23395. + output_objdir="$output_objdir/$objdir"
  23396. + fi
  23397. + # Create the object directory.
  23398. + if test ! -d $output_objdir; then
  23399. + $show "$mkdir $output_objdir"
  23400. + $run $mkdir $output_objdir
  23401. + status=$?
  23402. + if test $status -ne 0 && test ! -d $output_objdir; then
  23403. + exit $status
  23404. + fi
  23405. + fi
  23406. +
  23407. + # Determine the type of output
  23408. + case $output in
  23409. + "")
  23410. + $echo "$modename: you must specify an output file" 1>&2
  23411. + $echo "$help" 1>&2
  23412. + exit 1
  23413. + ;;
  23414. + *.$libext) linkmode=oldlib ;;
  23415. + *.lo | *.$objext) linkmode=obj ;;
  23416. + *.la) linkmode=lib ;;
  23417. + *) linkmode=prog ;; # Anything else should be a program.
  23418. + esac
  23419. +
  23420. + specialdeplibs=
  23421. + libs=
  23422. + # Find all interdependent deplibs by searching for libraries
  23423. + # that are linked more than once (e.g. -la -lb -la)
  23424. + for deplib in $deplibs; do
  23425. + if test "X$duplicate_deps" = "Xyes" ; then
  23426. + case "$libs " in
  23427. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  23428. + esac
  23429. + fi
  23430. + libs="$libs $deplib"
  23431. + done
  23432. + deplibs=
  23433. + newdependency_libs=
  23434. + newlib_search_path=
  23435. + need_relink=no # whether we're linking any uninstalled libtool libraries
  23436. + notinst_deplibs= # not-installed libtool libraries
  23437. + notinst_path= # paths that contain not-installed libtool libraries
  23438. + case $linkmode in
  23439. + lib)
  23440. + passes="conv link"
  23441. + for file in $dlfiles $dlprefiles; do
  23442. + case $file in
  23443. + *.la) ;;
  23444. + *)
  23445. + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  23446. + exit 1
  23447. + ;;
  23448. + esac
  23449. + done
  23450. + ;;
  23451. + prog)
  23452. + compile_deplibs=
  23453. + finalize_deplibs=
  23454. + alldeplibs=no
  23455. + newdlfiles=
  23456. + newdlprefiles=
  23457. + passes="conv scan dlopen dlpreopen link"
  23458. + ;;
  23459. + *) passes="conv"
  23460. + ;;
  23461. + esac
  23462. + for pass in $passes; do
  23463. + if test $linkmode = prog; then
  23464. + # Determine which files to process
  23465. + case $pass in
  23466. + dlopen)
  23467. + libs="$dlfiles"
  23468. + save_deplibs="$deplibs" # Collect dlpreopened libraries
  23469. + deplibs=
  23470. + ;;
  23471. + dlpreopen) libs="$dlprefiles" ;;
  23472. + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  23473. + esac
  23474. + fi
  23475. + for deplib in $libs; do
  23476. + lib=
  23477. + found=no
  23478. + case $deplib in
  23479. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads)
  23480. + if test "$linkmode,$pass" = "prog,link"; then
  23481. + compile_deplibs="$deplib $compile_deplibs"
  23482. + finalize_deplibs="$deplib $finalize_deplibs"
  23483. + else
  23484. + deplibs="$deplib $deplibs"
  23485. + fi
  23486. + continue
  23487. + ;;
  23488. + -l*)
  23489. + if test $linkmode = oldlib && test $linkmode = obj; then
  23490. + $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2
  23491. + continue
  23492. + fi
  23493. + if test $pass = conv; then
  23494. + deplibs="$deplib $deplibs"
  23495. + continue
  23496. + fi
  23497. + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  23498. + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  23499. + # Search the libtool library
  23500. + lib="$searchdir/lib${name}.la"
  23501. + if test -f "$lib"; then
  23502. + found=yes
  23503. + break
  23504. + fi
  23505. + done
  23506. + if test "$found" != yes; then
  23507. + # deplib doesn't seem to be a libtool library
  23508. + if test "$linkmode,$pass" = "prog,link"; then
  23509. + compile_deplibs="$deplib $compile_deplibs"
  23510. + finalize_deplibs="$deplib $finalize_deplibs"
  23511. + else
  23512. + deplibs="$deplib $deplibs"
  23513. + test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs"
  23514. + fi
  23515. + continue
  23516. + fi
  23517. + ;; # -l
  23518. + -L*)
  23519. + case $linkmode in
  23520. + lib)
  23521. + deplibs="$deplib $deplibs"
  23522. + test $pass = conv && continue
  23523. + newdependency_libs="$deplib $newdependency_libs"
  23524. + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  23525. + ;;
  23526. + prog)
  23527. + if test $pass = conv; then
  23528. + deplibs="$deplib $deplibs"
  23529. + continue
  23530. + fi
  23531. + if test $pass = scan; then
  23532. + deplibs="$deplib $deplibs"
  23533. + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  23534. + else
  23535. + compile_deplibs="$deplib $compile_deplibs"
  23536. + finalize_deplibs="$deplib $finalize_deplibs"
  23537. + fi
  23538. + ;;
  23539. + *)
  23540. + $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2
  23541. + ;;
  23542. + esac # linkmode
  23543. + continue
  23544. + ;; # -L
  23545. + -R*)
  23546. + if test $pass = link; then
  23547. + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  23548. + # Make sure the xrpath contains only unique directories.
  23549. + case "$xrpath " in
  23550. + *" $dir "*) ;;
  23551. + *) xrpath="$xrpath $dir" ;;
  23552. + esac
  23553. + fi
  23554. + deplibs="$deplib $deplibs"
  23555. + continue
  23556. + ;;
  23557. + *.la) lib="$deplib" ;;
  23558. + *.$libext)
  23559. + if test $pass = conv; then
  23560. + deplibs="$deplib $deplibs"
  23561. + continue
  23562. + fi
  23563. + case $linkmode in
  23564. + lib)
  23565. + if test "$deplibs_check_method" != pass_all; then
  23566. + echo
  23567. + echo "*** Warning: Trying to link with static lib archive $deplib."
  23568. + echo "*** I have the capability to make that library automatically link in when"
  23569. + echo "*** you link to this library. But I can only do this if you have a"
  23570. + echo "*** shared version of the library, which you do not appear to have"
  23571. + echo "*** because the file extensions .$libext of this argument makes me believe"
  23572. + echo "*** that it is just a static archive that I should not used here."
  23573. + else
  23574. + echo
  23575. + echo "*** Warning: Linking the shared library $output against the"
  23576. + echo "*** static library $deplib is not portable!"
  23577. + deplibs="$deplib $deplibs"
  23578. + fi
  23579. + continue
  23580. + ;;
  23581. + prog)
  23582. + if test $pass != link; then
  23583. + deplibs="$deplib $deplibs"
  23584. + else
  23585. + compile_deplibs="$deplib $compile_deplibs"
  23586. + finalize_deplibs="$deplib $finalize_deplibs"
  23587. + fi
  23588. + continue
  23589. + ;;
  23590. + esac # linkmode
  23591. + ;; # *.$libext
  23592. + *.lo | *.$objext)
  23593. + if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  23594. + # If there is no dlopen support or we're linking statically,
  23595. + # we need to preload.
  23596. + newdlprefiles="$newdlprefiles $deplib"
  23597. + compile_deplibs="$deplib $compile_deplibs"
  23598. + finalize_deplibs="$deplib $finalize_deplibs"
  23599. + else
  23600. + newdlfiles="$newdlfiles $deplib"
  23601. + fi
  23602. + continue
  23603. + ;;
  23604. + %DEPLIBS%)
  23605. + alldeplibs=yes
  23606. + continue
  23607. + ;;
  23608. + esac # case $deplib
  23609. + if test $found = yes || test -f "$lib"; then :
  23610. + else
  23611. + $echo "$modename: cannot find the library \`$lib'" 1>&2
  23612. + exit 1
  23613. + fi
  23614. +
  23615. + # Check to see that this really is a libtool archive.
  23616. + if (${SED} -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  23617. + else
  23618. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  23619. + exit 1
  23620. + fi
  23621. +
  23622. + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  23623. + test "X$ladir" = "X$lib" && ladir="."
  23624. +
  23625. + dlname=
  23626. + dlopen=
  23627. + dlpreopen=
  23628. + libdir=
  23629. + library_names=
  23630. + old_library=
  23631. + # If the library was installed with an old release of libtool,
  23632. + # it will not redefine variable installed.
  23633. + installed=yes
  23634. +
  23635. + # Read the .la file
  23636. + case $lib in
  23637. + */* | *\\*) . $lib ;;
  23638. + *) . ./$lib ;;
  23639. + esac
  23640. +
  23641. + if test "$linkmode,$pass" = "lib,link" ||
  23642. + test "$linkmode,$pass" = "prog,scan" ||
  23643. + { test $linkmode = oldlib && test $linkmode = obj; }; then
  23644. + # Add dl[pre]opened files of deplib
  23645. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  23646. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  23647. + fi
  23648. +
  23649. + if test $pass = conv; then
  23650. + # Only check for convenience libraries
  23651. + deplibs="$lib $deplibs"
  23652. + if test -z "$libdir"; then
  23653. + if test -z "$old_library"; then
  23654. + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  23655. + exit 1
  23656. + fi
  23657. + # It is a libtool convenience library, so add in its objects.
  23658. + convenience="$convenience $ladir/$objdir/$old_library"
  23659. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  23660. + tmp_libs=
  23661. + for deplib in $dependency_libs; do
  23662. + deplibs="$deplib $deplibs"
  23663. + if test "X$duplicate_deps" = "Xyes" ; then
  23664. + case "$tmp_libs " in
  23665. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  23666. + esac
  23667. + fi
  23668. + tmp_libs="$tmp_libs $deplib"
  23669. + done
  23670. + elif test $linkmode != prog && test $linkmode != lib; then
  23671. + $echo "$modename: \`$lib' is not a convenience library" 1>&2
  23672. + exit 1
  23673. + fi
  23674. + continue
  23675. + fi # $pass = conv
  23676. +
  23677. + # Get the name of the library we link against.
  23678. + linklib=
  23679. + for l in $old_library $library_names; do
  23680. + linklib="$l"
  23681. + done
  23682. + if test -z "$linklib"; then
  23683. + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  23684. + exit 1
  23685. + fi
  23686. +
  23687. + # This library was specified with -dlopen.
  23688. + if test $pass = dlopen; then
  23689. + if test -z "$libdir"; then
  23690. + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  23691. + exit 1
  23692. + fi
  23693. + if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  23694. + # If there is no dlname, no dlopen support or we're linking
  23695. + # statically, we need to preload.
  23696. + dlprefiles="$dlprefiles $lib"
  23697. + else
  23698. + newdlfiles="$newdlfiles $lib"
  23699. + fi
  23700. + continue
  23701. + fi # $pass = dlopen
  23702. +
  23703. + # We need an absolute path.
  23704. + case $ladir in
  23705. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  23706. + *)
  23707. + abs_ladir=`cd "$ladir" && pwd`
  23708. + if test -z "$abs_ladir"; then
  23709. + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  23710. + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  23711. + abs_ladir="$ladir"
  23712. + fi
  23713. + ;;
  23714. + esac
  23715. + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  23716. +
  23717. + # Find the relevant object directory and library name.
  23718. + if test "X$installed" = Xyes; then
  23719. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  23720. + $echo "$modename: warning: library \`$lib' was moved." 1>&2
  23721. + dir="$ladir"
  23722. + absdir="$abs_ladir"
  23723. + libdir="$abs_ladir"
  23724. + else
  23725. + dir="$libdir"
  23726. + absdir="$libdir"
  23727. + fi
  23728. + else
  23729. + dir="$ladir/$objdir"
  23730. + absdir="$abs_ladir/$objdir"
  23731. + # Remove this search path later
  23732. + notinst_path="$notinst_path $abs_ladir"
  23733. + fi # $installed = yes
  23734. + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  23735. +
  23736. + # This library was specified with -dlpreopen.
  23737. + if test $pass = dlpreopen; then
  23738. + if test -z "$libdir"; then
  23739. + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  23740. + exit 1
  23741. + fi
  23742. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  23743. + # are required to link).
  23744. + if test -n "$old_library"; then
  23745. + newdlprefiles="$newdlprefiles $dir/$old_library"
  23746. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  23747. + elif test -n "$dlname"; then
  23748. + newdlprefiles="$newdlprefiles $dir/$dlname"
  23749. + else
  23750. + newdlprefiles="$newdlprefiles $dir/$linklib"
  23751. + fi
  23752. + fi # $pass = dlpreopen
  23753. +
  23754. + if test -z "$libdir"; then
  23755. + # Link the convenience library
  23756. + if test $linkmode = lib; then
  23757. + deplibs="$dir/$old_library $deplibs"
  23758. + elif test "$linkmode,$pass" = "prog,link"; then
  23759. + compile_deplibs="$dir/$old_library $compile_deplibs"
  23760. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  23761. + else
  23762. + deplibs="$lib $deplibs"
  23763. + fi
  23764. + continue
  23765. + fi
  23766. +
  23767. + if test $linkmode = prog && test $pass != link; then
  23768. + newlib_search_path="$newlib_search_path $ladir"
  23769. + deplibs="$lib $deplibs"
  23770. +
  23771. + linkalldeplibs=no
  23772. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  23773. + test "$build_libtool_libs" = no; then
  23774. + linkalldeplibs=yes
  23775. + fi
  23776. +
  23777. + tmp_libs=
  23778. + for deplib in $dependency_libs; do
  23779. + case $deplib in
  23780. + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  23781. + esac
  23782. + # Need to link against all dependency_libs?
  23783. + if test $linkalldeplibs = yes; then
  23784. + deplibs="$deplib $deplibs"
  23785. + else
  23786. + # Need to hardcode shared library paths
  23787. + # or/and link against static libraries
  23788. + newdependency_libs="$deplib $newdependency_libs"
  23789. + fi
  23790. + if test "X$duplicate_deps" = "Xyes" ; then
  23791. + case "$tmp_libs " in
  23792. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  23793. + esac
  23794. + fi
  23795. + tmp_libs="$tmp_libs $deplib"
  23796. + done # for deplib
  23797. + continue
  23798. + fi # $linkmode = prog...
  23799. +
  23800. + link_static=no # Whether the deplib will be linked statically
  23801. + if test -n "$library_names" &&
  23802. + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  23803. + # Link against this shared library
  23804. +
  23805. + if test "$linkmode,$pass" = "prog,link" ||
  23806. + { test $linkmode = lib && test $hardcode_into_libs = yes; }; then
  23807. + # Hardcode the library path.
  23808. + # Skip directories that are in the system default run-time
  23809. + # search path.
  23810. + case " $sys_lib_dlsearch_path " in
  23811. + *" $absdir "*) ;;
  23812. + *)
  23813. + case "$compile_rpath " in
  23814. + *" $absdir "*) ;;
  23815. + *) compile_rpath="$compile_rpath $absdir"
  23816. + esac
  23817. + ;;
  23818. + esac
  23819. + case " $sys_lib_dlsearch_path " in
  23820. + *" $libdir "*) ;;
  23821. + *)
  23822. + case "$finalize_rpath " in
  23823. + *" $libdir "*) ;;
  23824. + *) finalize_rpath="$finalize_rpath $libdir"
  23825. + esac
  23826. + ;;
  23827. + esac
  23828. + if test $linkmode = prog; then
  23829. + # We need to hardcode the library path
  23830. + if test -n "$shlibpath_var"; then
  23831. + # Make sure the rpath contains only unique directories.
  23832. + case "$temp_rpath " in
  23833. + *" $dir "*) ;;
  23834. + *" $absdir "*) ;;
  23835. + *) temp_rpath="$temp_rpath $dir" ;;
  23836. + esac
  23837. + fi
  23838. + fi
  23839. + fi # $linkmode,$pass = prog,link...
  23840. +
  23841. + if test "$alldeplibs" = yes &&
  23842. + { test "$deplibs_check_method" = pass_all ||
  23843. + { test "$build_libtool_libs" = yes &&
  23844. + test -n "$library_names"; }; }; then
  23845. + # We only need to search for static libraries
  23846. + continue
  23847. + fi
  23848. +
  23849. + if test "$installed" = no; then
  23850. + notinst_deplibs="$notinst_deplibs $lib"
  23851. + need_relink=yes
  23852. + fi
  23853. +
  23854. + if test -n "$old_archive_from_expsyms_cmds"; then
  23855. + # figure out the soname
  23856. + set dummy $library_names
  23857. + realname="$2"
  23858. + shift; shift
  23859. + libname=`eval \\$echo \"$libname_spec\"`
  23860. + # use dlname if we got it. it's perfectly good, no?
  23861. + if test -n "$dlname"; then
  23862. + soname="$dlname"
  23863. + elif test -n "$soname_spec"; then
  23864. + # bleh windows
  23865. + case $host in
  23866. + *cygwin*)
  23867. + major=`expr $current - $age`
  23868. + versuffix="-$major"
  23869. + ;;
  23870. + esac
  23871. + eval soname=\"$soname_spec\"
  23872. + else
  23873. + soname="$realname"
  23874. + fi
  23875. +
  23876. + # Make a new name for the extract_expsyms_cmds to use
  23877. + soroot="$soname"
  23878. + soname=`echo $soroot | ${SED} -e 's/^.*\///'`
  23879. + newlib="libimp-`echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  23880. +
  23881. + # If the library has no export list, then create one now
  23882. + if test -f "$output_objdir/$soname-def"; then :
  23883. + else
  23884. + $show "extracting exported symbol list from \`$soname'"
  23885. + save_ifs="$IFS"; IFS='~'
  23886. + eval cmds=\"$extract_expsyms_cmds\"
  23887. + for cmd in $cmds; do
  23888. + IFS="$save_ifs"
  23889. + $show "$cmd"
  23890. + $run eval "$cmd" || exit $?
  23891. + done
  23892. + IFS="$save_ifs"
  23893. + fi
  23894. +
  23895. + # Create $newlib
  23896. + if test -f "$output_objdir/$newlib"; then :; else
  23897. + $show "generating import library for \`$soname'"
  23898. + save_ifs="$IFS"; IFS='~'
  23899. + eval cmds=\"$old_archive_from_expsyms_cmds\"
  23900. + for cmd in $cmds; do
  23901. + IFS="$save_ifs"
  23902. + $show "$cmd"
  23903. + $run eval "$cmd" || exit $?
  23904. + done
  23905. + IFS="$save_ifs"
  23906. + fi
  23907. + # make sure the library variables are pointing to the new library
  23908. + dir=$output_objdir
  23909. + linklib=$newlib
  23910. + fi # test -n $old_archive_from_expsyms_cmds
  23911. +
  23912. + if test $linkmode = prog || test "$mode" != relink; then
  23913. + add_shlibpath=
  23914. + add_dir=
  23915. + add=
  23916. + lib_linked=yes
  23917. + case $hardcode_action in
  23918. + immediate | unsupported)
  23919. + if test "$hardcode_direct" = no; then
  23920. + add="$dir/$linklib"
  23921. + elif test "$hardcode_minus_L" = no; then
  23922. + case $host in
  23923. + *-*-sunos*) add_shlibpath="$dir" ;;
  23924. + esac
  23925. + add_dir="-L$dir"
  23926. + add="-l$name"
  23927. + elif test "$hardcode_shlibpath_var" = no; then
  23928. + add_shlibpath="$dir"
  23929. + add="-l$name"
  23930. + else
  23931. + lib_linked=no
  23932. + fi
  23933. + ;;
  23934. + relink)
  23935. + if test "$hardcode_direct" = yes; then
  23936. + add="$dir/$linklib"
  23937. + elif test "$hardcode_minus_L" = yes; then
  23938. + add_dir="-L$dir"
  23939. + # Try looking first in the location we're being installed to.
  23940. + if test -n "$inst_prefix_dir"; then
  23941. + case "$libdir" in
  23942. + [\/]*)
  23943. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  23944. + ;;
  23945. + esac
  23946. + fi
  23947. + add="-l$name"
  23948. + elif test "$hardcode_shlibpath_var" = yes; then
  23949. + add_shlibpath="$dir"
  23950. + add="-l$name"
  23951. + else
  23952. + lib_linked=no
  23953. + fi
  23954. + ;;
  23955. + *) lib_linked=no ;;
  23956. + esac
  23957. +
  23958. + if test "$lib_linked" != yes; then
  23959. + $echo "$modename: configuration error: unsupported hardcode properties"
  23960. + exit 1
  23961. + fi
  23962. +
  23963. + if test -n "$add_shlibpath"; then
  23964. + case :$compile_shlibpath: in
  23965. + *":$add_shlibpath:"*) ;;
  23966. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  23967. + esac
  23968. + fi
  23969. + if test $linkmode = prog; then
  23970. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  23971. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  23972. + else
  23973. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  23974. + test -n "$add" && deplibs="$add $deplibs"
  23975. + if test "$hardcode_direct" != yes && \
  23976. + test "$hardcode_minus_L" != yes && \
  23977. + test "$hardcode_shlibpath_var" = yes; then
  23978. + case :$finalize_shlibpath: in
  23979. + *":$libdir:"*) ;;
  23980. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  23981. + esac
  23982. + fi
  23983. + fi
  23984. + fi
  23985. +
  23986. + if test $linkmode = prog || test "$mode" = relink; then
  23987. + add_shlibpath=
  23988. + add_dir=
  23989. + add=
  23990. + # Finalize command for both is simple: just hardcode it.
  23991. + if test "$hardcode_direct" = yes; then
  23992. + add="$libdir/$linklib"
  23993. + elif test "$hardcode_minus_L" = yes; then
  23994. + add_dir="-L$libdir"
  23995. + add="-l$name"
  23996. + elif test "$hardcode_shlibpath_var" = yes; then
  23997. + case :$finalize_shlibpath: in
  23998. + *":$libdir:"*) ;;
  23999. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  24000. + esac
  24001. + add="-l$name"
  24002. + else
  24003. + # We cannot seem to hardcode it, guess we'll fake it.
  24004. + add_dir="-L$libdir"
  24005. + # Try looking first in the location we're being installed to.
  24006. + if test -n "$inst_prefix_dir"; then
  24007. + case "$libdir" in
  24008. + [\/]*)
  24009. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  24010. + ;;
  24011. + esac
  24012. + fi
  24013. + add="-l$name"
  24014. + fi
  24015. +
  24016. + if test $linkmode = prog; then
  24017. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  24018. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  24019. + else
  24020. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  24021. + test -n "$add" && deplibs="$add $deplibs"
  24022. + fi
  24023. + fi
  24024. + elif test $linkmode = prog; then
  24025. + if test "$alldeplibs" = yes &&
  24026. + { test "$deplibs_check_method" = pass_all ||
  24027. + { test "$build_libtool_libs" = yes &&
  24028. + test -n "$library_names"; }; }; then
  24029. + # We only need to search for static libraries
  24030. + continue
  24031. + fi
  24032. +
  24033. + # Try to link the static library
  24034. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  24035. + # is not unsupported. This is valid on all known static and
  24036. + # shared platforms.
  24037. + if test "$hardcode_direct" != unsupported; then
  24038. + test -n "$old_library" && linklib="$old_library"
  24039. + compile_deplibs="$dir/$linklib $compile_deplibs"
  24040. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  24041. + else
  24042. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  24043. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  24044. + fi
  24045. + elif test "$build_libtool_libs" = yes; then
  24046. + # Not a shared library
  24047. + if test "$deplibs_check_method" != pass_all; then
  24048. + # We're trying link a shared library against a static one
  24049. + # but the system doesn't support it.
  24050. +
  24051. + # Just print a warning and add the library to dependency_libs so
  24052. + # that the program can be linked against the static library.
  24053. + echo
  24054. + echo "*** Warning: This system can not link to static lib archive $lib."
  24055. + echo "*** I have the capability to make that library automatically link in when"
  24056. + echo "*** you link to this library. But I can only do this if you have a"
  24057. + echo "*** shared version of the library, which you do not appear to have."
  24058. + if test "$module" = yes; then
  24059. + echo "*** But as you try to build a module library, libtool will still create "
  24060. + echo "*** a static module, that should work as long as the dlopening application"
  24061. + echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  24062. + if test -z "$global_symbol_pipe"; then
  24063. + echo
  24064. + echo "*** However, this would only work if libtool was able to extract symbol"
  24065. + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  24066. + echo "*** not find such a program. So, this module is probably useless."
  24067. + echo "*** \`nm' from GNU binutils and a full rebuild may help."
  24068. + fi
  24069. + if test "$build_old_libs" = no; then
  24070. + build_libtool_libs=module
  24071. + build_old_libs=yes
  24072. + else
  24073. + build_libtool_libs=no
  24074. + fi
  24075. + fi
  24076. + else
  24077. + convenience="$convenience $dir/$old_library"
  24078. + old_convenience="$old_convenience $dir/$old_library"
  24079. + deplibs="$dir/$old_library $deplibs"
  24080. + link_static=yes
  24081. + fi
  24082. + fi # link shared/static library?
  24083. +
  24084. + if test $linkmode = lib; then
  24085. + if test -n "$dependency_libs" &&
  24086. + { test $hardcode_into_libs != yes || test $build_old_libs = yes ||
  24087. + test $link_static = yes; }; then
  24088. + # Extract -R from dependency_libs
  24089. + temp_deplibs=
  24090. + for libdir in $dependency_libs; do
  24091. + case $libdir in
  24092. + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  24093. + case " $xrpath " in
  24094. + *" $temp_xrpath "*) ;;
  24095. + *) xrpath="$xrpath $temp_xrpath";;
  24096. + esac;;
  24097. + *) temp_deplibs="$temp_deplibs $libdir";;
  24098. + esac
  24099. + done
  24100. + dependency_libs="$temp_deplibs"
  24101. + fi
  24102. +
  24103. + newlib_search_path="$newlib_search_path $absdir"
  24104. + # Link against this library
  24105. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  24106. + # ... and its dependency_libs
  24107. + tmp_libs=
  24108. + for deplib in $dependency_libs; do
  24109. + newdependency_libs="$deplib $newdependency_libs"
  24110. + if test "X$duplicate_deps" = "Xyes" ; then
  24111. + case "$tmp_libs " in
  24112. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  24113. + esac
  24114. + fi
  24115. + tmp_libs="$tmp_libs $deplib"
  24116. + done
  24117. +
  24118. + if test $link_all_deplibs != no; then
  24119. + # Add the search paths of all dependency libraries
  24120. + for deplib in $dependency_libs; do
  24121. + case $deplib in
  24122. + -L*) path="$deplib" ;;
  24123. + *.la)
  24124. + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  24125. + test "X$dir" = "X$deplib" && dir="."
  24126. + # We need an absolute path.
  24127. + case $dir in
  24128. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  24129. + *)
  24130. + absdir=`cd "$dir" && pwd`
  24131. + if test -z "$absdir"; then
  24132. + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  24133. + absdir="$dir"
  24134. + fi
  24135. + ;;
  24136. + esac
  24137. + if grep "^installed=no" $deplib > /dev/null; then
  24138. + path="-L$absdir/$objdir"
  24139. + else
  24140. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  24141. + if test -z "$libdir"; then
  24142. + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  24143. + exit 1
  24144. + fi
  24145. + if test "$absdir" != "$libdir"; then
  24146. + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  24147. + fi
  24148. + path="-L$absdir"
  24149. + fi
  24150. + ;;
  24151. + *) continue ;;
  24152. + esac
  24153. + case " $deplibs " in
  24154. + *" $path "*) ;;
  24155. + *) deplibs="$deplibs $path" ;;
  24156. + esac
  24157. + done
  24158. + fi # link_all_deplibs != no
  24159. + fi # linkmode = lib
  24160. + done # for deplib in $libs
  24161. + if test $pass = dlpreopen; then
  24162. + # Link the dlpreopened libraries before other libraries
  24163. + for deplib in $save_deplibs; do
  24164. + deplibs="$deplib $deplibs"
  24165. + done
  24166. + fi
  24167. + if test $pass != dlopen; then
  24168. + test $pass != scan && dependency_libs="$newdependency_libs"
  24169. + if test $pass != conv; then
  24170. + # Make sure lib_search_path contains only unique directories.
  24171. + lib_search_path=
  24172. + for dir in $newlib_search_path; do
  24173. + case "$lib_search_path " in
  24174. + *" $dir "*) ;;
  24175. + *) lib_search_path="$lib_search_path $dir" ;;
  24176. + esac
  24177. + done
  24178. + newlib_search_path=
  24179. + fi
  24180. +
  24181. + if test "$linkmode,$pass" != "prog,link"; then
  24182. + vars="deplibs"
  24183. + else
  24184. + vars="compile_deplibs finalize_deplibs"
  24185. + fi
  24186. + for var in $vars dependency_libs; do
  24187. + # Add libraries to $var in reverse order
  24188. + eval tmp_libs=\"\$$var\"
  24189. + new_libs=
  24190. + for deplib in $tmp_libs; do
  24191. + case $deplib in
  24192. + -L*) new_libs="$deplib $new_libs" ;;
  24193. + *)
  24194. + case " $specialdeplibs " in
  24195. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  24196. + *)
  24197. + case " $new_libs " in
  24198. + *" $deplib "*) ;;
  24199. + *) new_libs="$deplib $new_libs" ;;
  24200. + esac
  24201. + ;;
  24202. + esac
  24203. + ;;
  24204. + esac
  24205. + done
  24206. + tmp_libs=
  24207. + for deplib in $new_libs; do
  24208. + case $deplib in
  24209. + -L*)
  24210. + case " $tmp_libs " in
  24211. + *" $deplib "*) ;;
  24212. + *) tmp_libs="$tmp_libs $deplib" ;;
  24213. + esac
  24214. + ;;
  24215. + *) tmp_libs="$tmp_libs $deplib" ;;
  24216. + esac
  24217. + done
  24218. + eval $var=\"$tmp_libs\"
  24219. + done # for var
  24220. + fi
  24221. + if test "$pass" = "conv" &&
  24222. + { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then
  24223. + libs="$deplibs" # reset libs
  24224. + deplibs=
  24225. + fi
  24226. + done # for pass
  24227. + if test $linkmode = prog; then
  24228. + dlfiles="$newdlfiles"
  24229. + dlprefiles="$newdlprefiles"
  24230. + fi
  24231. +
  24232. + case $linkmode in
  24233. + oldlib)
  24234. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  24235. + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  24236. + fi
  24237. +
  24238. + if test -n "$rpath"; then
  24239. + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  24240. + fi
  24241. +
  24242. + if test -n "$xrpath"; then
  24243. + $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  24244. + fi
  24245. +
  24246. + if test -n "$vinfo"; then
  24247. + $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
  24248. + fi
  24249. +
  24250. + if test -n "$release"; then
  24251. + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  24252. + fi
  24253. +
  24254. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  24255. + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  24256. + fi
  24257. +
  24258. + # Now set the variables for building old libraries.
  24259. + build_libtool_libs=no
  24260. + oldlibs="$output"
  24261. + objs="$objs$old_deplibs"
  24262. + ;;
  24263. +
  24264. + lib)
  24265. + # Make sure we only generate libraries of the form `libNAME.la'.
  24266. + case $outputname in
  24267. + lib*)
  24268. + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  24269. + eval libname=\"$libname_spec\"
  24270. + ;;
  24271. + *)
  24272. + if test "$module" = no; then
  24273. + $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  24274. + $echo "$help" 1>&2
  24275. + exit 1
  24276. + fi
  24277. + if test "$need_lib_prefix" != no; then
  24278. + # Add the "lib" prefix for modules if required
  24279. + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  24280. + eval libname=\"$libname_spec\"
  24281. + else
  24282. + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  24283. + fi
  24284. + ;;
  24285. + esac
  24286. +
  24287. + if test -n "$objs"; then
  24288. + if test "$deplibs_check_method" != pass_all; then
  24289. + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  24290. + exit 1
  24291. + else
  24292. + echo
  24293. + echo "*** Warning: Linking the shared library $output against the non-libtool"
  24294. + echo "*** objects $objs is not portable!"
  24295. + libobjs="$libobjs $objs"
  24296. + fi
  24297. + fi
  24298. +
  24299. + if test "$dlself" != no; then
  24300. + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  24301. + fi
  24302. +
  24303. + set dummy $rpath
  24304. + if test $# -gt 2; then
  24305. + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  24306. + fi
  24307. + install_libdir="$2"
  24308. +
  24309. + oldlibs=
  24310. + if test -z "$rpath"; then
  24311. + if test "$build_libtool_libs" = yes; then
  24312. + # Building a libtool convenience library.
  24313. + libext=al
  24314. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  24315. + build_libtool_libs=convenience
  24316. + build_old_libs=yes
  24317. + fi
  24318. +
  24319. + if test -n "$vinfo"; then
  24320. + $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2
  24321. + fi
  24322. +
  24323. + if test -n "$release"; then
  24324. + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  24325. + fi
  24326. + else
  24327. +
  24328. + # Parse the version information argument.
  24329. + save_ifs="$IFS"; IFS=':'
  24330. + set dummy $vinfo 0 0 0
  24331. + IFS="$save_ifs"
  24332. +
  24333. + if test -n "$8"; then
  24334. + $echo "$modename: too many parameters to \`-version-info'" 1>&2
  24335. + $echo "$help" 1>&2
  24336. + exit 1
  24337. + fi
  24338. +
  24339. + current="$2"
  24340. + revision="$3"
  24341. + age="$4"
  24342. +
  24343. + # Check that each of the things are valid numbers.
  24344. + case $current in
  24345. + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  24346. + *)
  24347. + $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
  24348. + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  24349. + exit 1
  24350. + ;;
  24351. + esac
  24352. +
  24353. + case $revision in
  24354. + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  24355. + *)
  24356. + $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
  24357. + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  24358. + exit 1
  24359. + ;;
  24360. + esac
  24361. +
  24362. + case $age in
  24363. + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;;
  24364. + *)
  24365. + $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
  24366. + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  24367. + exit 1
  24368. + ;;
  24369. + esac
  24370. +
  24371. + if test $age -gt $current; then
  24372. + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  24373. + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  24374. + exit 1
  24375. + fi
  24376. +
  24377. + # Calculate the version variables.
  24378. + major=
  24379. + versuffix=
  24380. + verstring=
  24381. + case $version_type in
  24382. + none) ;;
  24383. +
  24384. + darwin)
  24385. + # Like Linux, but with the current version available in
  24386. + # verstring for coding it into the library header
  24387. + major=.`expr $current - $age`
  24388. + versuffix="$major.$age.$revision"
  24389. + # Darwin ld doesn't like 0 for these options...
  24390. + minor_current=`expr $current + 1`
  24391. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  24392. + ;;
  24393. +
  24394. + freebsd-aout)
  24395. + major=".$current"
  24396. + versuffix=".$current.$revision";
  24397. + ;;
  24398. +
  24399. + freebsd-elf)
  24400. + major=".$current"
  24401. + versuffix=".$current";
  24402. + ;;
  24403. +
  24404. + irix | nonstopux)
  24405. + major=`expr $current - $age + 1`
  24406. +
  24407. + case $version_type in
  24408. + nonstopux) verstring_prefix=nonstopux ;;
  24409. + *) verstring_prefix=sgi ;;
  24410. + esac
  24411. + verstring="$verstring_prefix$major.$revision"
  24412. +
  24413. + # Add in all the interfaces that we are compatible with.
  24414. + loop=$revision
  24415. + while test $loop != 0; do
  24416. + iface=`expr $revision - $loop`
  24417. + loop=`expr $loop - 1`
  24418. + verstring="$verstring_prefix$major.$iface:$verstring"
  24419. + done
  24420. +
  24421. + # Before this point, $major must not contain `.'.
  24422. + major=.$major
  24423. + versuffix="$major.$revision"
  24424. + ;;
  24425. +
  24426. + linux)
  24427. + major=.`expr $current - $age`
  24428. + versuffix="$major.$age.$revision"
  24429. + ;;
  24430. +
  24431. + osf)
  24432. + major=.`expr $current - $age`
  24433. + versuffix=".$current.$age.$revision"
  24434. + verstring="$current.$age.$revision"
  24435. +
  24436. + # Add in all the interfaces that we are compatible with.
  24437. + loop=$age
  24438. + while test $loop != 0; do
  24439. + iface=`expr $current - $loop`
  24440. + loop=`expr $loop - 1`
  24441. + verstring="$verstring:${iface}.0"
  24442. + done
  24443. +
  24444. + # Make executables depend on our current version.
  24445. + verstring="$verstring:${current}.0"
  24446. + ;;
  24447. +
  24448. + sunos)
  24449. + major=".$current"
  24450. + versuffix=".$current.$revision"
  24451. + ;;
  24452. +
  24453. + windows)
  24454. + # Use '-' rather than '.', since we only want one
  24455. + # extension on DOS 8.3 filesystems.
  24456. + major=`expr $current - $age`
  24457. + versuffix="-$major"
  24458. + ;;
  24459. +
  24460. + *)
  24461. + $echo "$modename: unknown library version type \`$version_type'" 1>&2
  24462. + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  24463. + exit 1
  24464. + ;;
  24465. + esac
  24466. +
  24467. + # Clear the version info if we defaulted, and they specified a release.
  24468. + if test -z "$vinfo" && test -n "$release"; then
  24469. + major=
  24470. + verstring="0.0"
  24471. + case $version_type in
  24472. + darwin)
  24473. + # we can't check for "0.0" in archive_cmds due to quoting
  24474. + # problems, so we reset it completely
  24475. + verstring=""
  24476. + ;;
  24477. + *)
  24478. + verstring="0.0"
  24479. + ;;
  24480. + esac
  24481. + if test "$need_version" = no; then
  24482. + versuffix=
  24483. + else
  24484. + versuffix=".0.0"
  24485. + fi
  24486. + fi
  24487. +
  24488. + # Remove version info from name if versioning should be avoided
  24489. + if test "$avoid_version" = yes && test "$need_version" = no; then
  24490. + major=
  24491. + versuffix=
  24492. + verstring=""
  24493. + fi
  24494. +
  24495. + # Check to see if the archive will have undefined symbols.
  24496. + if test "$allow_undefined" = yes; then
  24497. + if test "$allow_undefined_flag" = unsupported; then
  24498. + $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  24499. + build_libtool_libs=no
  24500. + build_old_libs=yes
  24501. + fi
  24502. + else
  24503. + # Don't allow undefined symbols.
  24504. + allow_undefined_flag="$no_undefined_flag"
  24505. + fi
  24506. + fi
  24507. +
  24508. + if test "$mode" != relink; then
  24509. + # Remove our outputs.
  24510. + $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*"
  24511. + $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*
  24512. + fi
  24513. +
  24514. + # Now set the variables for building old libraries.
  24515. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  24516. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  24517. +
  24518. + # Transform .lo files to .o files.
  24519. + oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  24520. + fi
  24521. +
  24522. + # Eliminate all temporary directories.
  24523. + for path in $notinst_path; do
  24524. + lib_search_path=`echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
  24525. + deplibs=`echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
  24526. + dependency_libs=`echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
  24527. + done
  24528. +
  24529. + if test -n "$xrpath"; then
  24530. + # If the user specified any rpath flags, then add them.
  24531. + temp_xrpath=
  24532. + for libdir in $xrpath; do
  24533. + temp_xrpath="$temp_xrpath -R$libdir"
  24534. + case "$finalize_rpath " in
  24535. + *" $libdir "*) ;;
  24536. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  24537. + esac
  24538. + done
  24539. + if test $hardcode_into_libs != yes || test $build_old_libs = yes; then
  24540. + dependency_libs="$temp_xrpath $dependency_libs"
  24541. + fi
  24542. + fi
  24543. +
  24544. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  24545. + old_dlfiles="$dlfiles"
  24546. + dlfiles=
  24547. + for lib in $old_dlfiles; do
  24548. + case " $dlprefiles $dlfiles " in
  24549. + *" $lib "*) ;;
  24550. + *) dlfiles="$dlfiles $lib" ;;
  24551. + esac
  24552. + done
  24553. +
  24554. + # Make sure dlprefiles contains only unique files
  24555. + old_dlprefiles="$dlprefiles"
  24556. + dlprefiles=
  24557. + for lib in $old_dlprefiles; do
  24558. + case "$dlprefiles " in
  24559. + *" $lib "*) ;;
  24560. + *) dlprefiles="$dlprefiles $lib" ;;
  24561. + esac
  24562. + done
  24563. +
  24564. + if test "$build_libtool_libs" = yes; then
  24565. + if test -n "$rpath"; then
  24566. + case $host in
  24567. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  24568. + # these systems don't actually have a c library (as such)!
  24569. + ;;
  24570. + *-*-rhapsody* | *-*-darwin1.[012])
  24571. + # Rhapsody C library is in the System framework
  24572. + deplibs="$deplibs -framework System"
  24573. + ;;
  24574. + *-*-netbsd*)
  24575. + # Don't link with libc until the a.out ld.so is fixed.
  24576. + ;;
  24577. + *-*-openbsd* | *-*-freebsd*)
  24578. + # Do not include libc due to us having libc/libc_r.
  24579. + ;;
  24580. + *)
  24581. + # Add libc to deplibs on all other systems if necessary.
  24582. + if test $build_libtool_need_lc = "yes"; then
  24583. + deplibs="$deplibs -lc"
  24584. + fi
  24585. + ;;
  24586. + esac
  24587. + fi
  24588. +
  24589. + # Transform deplibs into only deplibs that can be linked in shared.
  24590. + name_save=$name
  24591. + libname_save=$libname
  24592. + release_save=$release
  24593. + versuffix_save=$versuffix
  24594. + major_save=$major
  24595. + # I'm not sure if I'm treating the release correctly. I think
  24596. + # release should show up in the -l (ie -lgmp5) so we don't want to
  24597. + # add it in twice. Is that correct?
  24598. + release=""
  24599. + versuffix=""
  24600. + major=""
  24601. + newdeplibs=
  24602. + droppeddeps=no
  24603. + case $deplibs_check_method in
  24604. + pass_all)
  24605. + # Don't check for shared/static. Everything works.
  24606. + # This might be a little naive. We might want to check
  24607. + # whether the library exists or not. But this is on
  24608. + # osf3 & osf4 and I'm not really sure... Just
  24609. + # implementing what was already the behaviour.
  24610. + newdeplibs=$deplibs
  24611. + ;;
  24612. + test_compile)
  24613. + # This code stresses the "libraries are programs" paradigm to its
  24614. + # limits. Maybe even breaks it. We compile a program, linking it
  24615. + # against the deplibs as a proxy for the library. Then we can check
  24616. + # whether they linked in statically or dynamically with ldd.
  24617. + $rm conftest.c
  24618. + cat > conftest.c <<EOF
  24619. + int main() { return 0; }
  24620. +EOF
  24621. + $rm conftest
  24622. + $CC -o conftest conftest.c $deplibs
  24623. + if test $? -eq 0 ; then
  24624. + ldd_output=`ldd conftest`
  24625. + for i in $deplibs; do
  24626. + name="`expr $i : '-l\(.*\)'`"
  24627. + # If $name is empty we are operating on a -L argument.
  24628. + if test -n "$name" && test "$name" != "0"; then
  24629. + libname=`eval \\$echo \"$libname_spec\"`
  24630. + deplib_matches=`eval \\$echo \"$library_names_spec\"`
  24631. + set dummy $deplib_matches
  24632. + deplib_match=$2
  24633. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  24634. + newdeplibs="$newdeplibs $i"
  24635. + else
  24636. + droppeddeps=yes
  24637. + echo
  24638. + echo "*** Warning: dynamic linker does not accept needed library $i."
  24639. + echo "*** I have the capability to make that library automatically link in when"
  24640. + echo "*** you link to this library. But I can only do this if you have a"
  24641. + echo "*** shared version of the library, which I believe you do not have"
  24642. + echo "*** because a test_compile did reveal that the linker did not use it for"
  24643. + echo "*** its dynamic dependency list that programs get resolved with at runtime."
  24644. + fi
  24645. + else
  24646. + newdeplibs="$newdeplibs $i"
  24647. + fi
  24648. + done
  24649. + else
  24650. + # Error occured in the first compile. Let's try to salvage
  24651. + # the situation: Compile a separate program for each library.
  24652. + for i in $deplibs; do
  24653. + name="`expr $i : '-l\(.*\)'`"
  24654. + # If $name is empty we are operating on a -L argument.
  24655. + if test -n "$name" && test "$name" != "0"; then
  24656. + $rm conftest
  24657. + $CC -o conftest conftest.c $i
  24658. + # Did it work?
  24659. + if test $? -eq 0 ; then
  24660. + ldd_output=`ldd conftest`
  24661. + libname=`eval \\$echo \"$libname_spec\"`
  24662. + deplib_matches=`eval \\$echo \"$library_names_spec\"`
  24663. + set dummy $deplib_matches
  24664. + deplib_match=$2
  24665. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  24666. + newdeplibs="$newdeplibs $i"
  24667. + else
  24668. + droppeddeps=yes
  24669. + echo
  24670. + echo "*** Warning: dynamic linker does not accept needed library $i."
  24671. + echo "*** I have the capability to make that library automatically link in when"
  24672. + echo "*** you link to this library. But I can only do this if you have a"
  24673. + echo "*** shared version of the library, which you do not appear to have"
  24674. + echo "*** because a test_compile did reveal that the linker did not use this one"
  24675. + echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  24676. + fi
  24677. + else
  24678. + droppeddeps=yes
  24679. + echo
  24680. + echo "*** Warning! Library $i is needed by this library but I was not able to"
  24681. + echo "*** make it link in! You will probably need to install it or some"
  24682. + echo "*** library that it depends on before this library will be fully"
  24683. + echo "*** functional. Installing it before continuing would be even better."
  24684. + fi
  24685. + else
  24686. + newdeplibs="$newdeplibs $i"
  24687. + fi
  24688. + done
  24689. + fi
  24690. + ;;
  24691. + file_magic*)
  24692. + set dummy $deplibs_check_method
  24693. + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  24694. + for a_deplib in $deplibs; do
  24695. + name="`expr $a_deplib : '-l\(.*\)'`"
  24696. + # If $name is empty we are operating on a -L argument.
  24697. + if test -n "$name" && test "$name" != "0"; then
  24698. + libname=`eval \\$echo \"$libname_spec\"`
  24699. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  24700. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  24701. + for potent_lib in $potential_libs; do
  24702. + # Follow soft links.
  24703. + if ls -lLd "$potent_lib" 2>/dev/null \
  24704. + | grep " -> " >/dev/null; then
  24705. + continue
  24706. + fi
  24707. + # The statement above tries to avoid entering an
  24708. + # endless loop below, in case of cyclic links.
  24709. + # We might still enter an endless loop, since a link
  24710. + # loop can be closed while we follow links,
  24711. + # but so what?
  24712. + potlib="$potent_lib"
  24713. + while test -h "$potlib" 2>/dev/null; do
  24714. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  24715. + case $potliblink in
  24716. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  24717. + *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  24718. + esac
  24719. + done
  24720. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  24721. + | ${SED} 10q \
  24722. + | egrep "$file_magic_regex" > /dev/null; then
  24723. + newdeplibs="$newdeplibs $a_deplib"
  24724. + a_deplib=""
  24725. + break 2
  24726. + fi
  24727. + done
  24728. + done
  24729. + if test -n "$a_deplib" ; then
  24730. + droppeddeps=yes
  24731. + echo
  24732. + echo "*** Warning: linker path does not have real file for library $a_deplib."
  24733. + echo "*** I have the capability to make that library automatically link in when"
  24734. + echo "*** you link to this library. But I can only do this if you have a"
  24735. + echo "*** shared version of the library, which you do not appear to have"
  24736. + echo "*** because I did check the linker path looking for a file starting"
  24737. + if test -z "$potlib" ; then
  24738. + echo "*** with $libname but no candidates were found. (...for file magic test)"
  24739. + else
  24740. + echo "*** with $libname and none of the candidates passed a file format test"
  24741. + echo "*** using a file magic. Last file checked: $potlib"
  24742. + fi
  24743. + fi
  24744. + else
  24745. + # Add a -L argument.
  24746. + newdeplibs="$newdeplibs $a_deplib"
  24747. + fi
  24748. + done # Gone through all deplibs.
  24749. + ;;
  24750. + match_pattern*)
  24751. + set dummy $deplibs_check_method
  24752. + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  24753. + for a_deplib in $deplibs; do
  24754. + name="`expr $a_deplib : '-l\(.*\)'`"
  24755. + # If $name is empty we are operating on a -L argument.
  24756. + if test -n "$name" && test "$name" != "0"; then
  24757. + libname=`eval \\$echo \"$libname_spec\"`
  24758. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  24759. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  24760. + for potent_lib in $potential_libs; do
  24761. + potlib="$potent_lib" # see symlink-check below in file_magic test
  24762. + if eval echo \"$potent_lib\" 2>/dev/null \
  24763. + | ${SED} 10q \
  24764. + | egrep "$match_pattern_regex" > /dev/null; then
  24765. + newdeplibs="$newdeplibs $a_deplib"
  24766. + a_deplib=""
  24767. + break 2
  24768. + fi
  24769. + done
  24770. + done
  24771. + if test -n "$a_deplib" ; then
  24772. + droppeddeps=yes
  24773. + echo
  24774. + echo "*** Warning: linker path does not have real file for library $a_deplib."
  24775. + echo "*** I have the capability to make that library automatically link in when"
  24776. + echo "*** you link to this library. But I can only do this if you have a"
  24777. + echo "*** shared version of the library, which you do not appear to have"
  24778. + echo "*** because I did check the linker path looking for a file starting"
  24779. + if test -z "$potlib" ; then
  24780. + echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  24781. + else
  24782. + echo "*** with $libname and none of the candidates passed a file format test"
  24783. + echo "*** using a regex pattern. Last file checked: $potlib"
  24784. + fi
  24785. + fi
  24786. + else
  24787. + # Add a -L argument.
  24788. + newdeplibs="$newdeplibs $a_deplib"
  24789. + fi
  24790. + done # Gone through all deplibs.
  24791. + ;;
  24792. + none | unknown | *)
  24793. + newdeplibs=""
  24794. + if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  24795. + -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' |
  24796. + grep . >/dev/null; then
  24797. + echo
  24798. + if test "X$deplibs_check_method" = "Xnone"; then
  24799. + echo "*** Warning: inter-library dependencies are not supported in this platform."
  24800. + else
  24801. + echo "*** Warning: inter-library dependencies are not known to be supported."
  24802. + fi
  24803. + echo "*** All declared inter-library dependencies are being dropped."
  24804. + droppeddeps=yes
  24805. + fi
  24806. + ;;
  24807. + esac
  24808. + versuffix=$versuffix_save
  24809. + major=$major_save
  24810. + release=$release_save
  24811. + libname=$libname_save
  24812. + name=$name_save
  24813. +
  24814. + case $host in
  24815. + *-*-rhapsody* | *-*-darwin1.[012])
  24816. + # On Rhapsody replace the C library is the System framework
  24817. + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  24818. + ;;
  24819. + esac
  24820. +
  24821. + if test "$droppeddeps" = yes; then
  24822. + if test "$module" = yes; then
  24823. + echo
  24824. + echo "*** Warning: libtool could not satisfy all declared inter-library"
  24825. + echo "*** dependencies of module $libname. Therefore, libtool will create"
  24826. + echo "*** a static module, that should work as long as the dlopening"
  24827. + echo "*** application is linked with the -dlopen flag."
  24828. + if test -z "$global_symbol_pipe"; then
  24829. + echo
  24830. + echo "*** However, this would only work if libtool was able to extract symbol"
  24831. + echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  24832. + echo "*** not find such a program. So, this module is probably useless."
  24833. + echo "*** \`nm' from GNU binutils and a full rebuild may help."
  24834. + fi
  24835. + if test "$build_old_libs" = no; then
  24836. + oldlibs="$output_objdir/$libname.$libext"
  24837. + build_libtool_libs=module
  24838. + build_old_libs=yes
  24839. + else
  24840. + build_libtool_libs=no
  24841. + fi
  24842. + else
  24843. + echo "*** The inter-library dependencies that have been dropped here will be"
  24844. + echo "*** automatically added whenever a program is linked with this library"
  24845. + echo "*** or is declared to -dlopen it."
  24846. +
  24847. + if test $allow_undefined = no; then
  24848. + echo
  24849. + echo "*** Since this library must not contain undefined symbols,"
  24850. + echo "*** because either the platform does not support them or"
  24851. + echo "*** it was explicitly requested with -no-undefined,"
  24852. + echo "*** libtool will only create a static version of it."
  24853. + if test "$build_old_libs" = no; then
  24854. + oldlibs="$output_objdir/$libname.$libext"
  24855. + build_libtool_libs=module
  24856. + build_old_libs=yes
  24857. + else
  24858. + build_libtool_libs=no
  24859. + fi
  24860. + fi
  24861. + fi
  24862. + fi
  24863. + # Done checking deplibs!
  24864. + deplibs=$newdeplibs
  24865. + fi
  24866. +
  24867. + # All the library-specific variables (install_libdir is set above).
  24868. + library_names=
  24869. + old_library=
  24870. + dlname=
  24871. +
  24872. + # Test again, we may have decided not to build it any more
  24873. + if test "$build_libtool_libs" = yes; then
  24874. + if test $hardcode_into_libs = yes; then
  24875. + # Hardcode the library paths
  24876. + hardcode_libdirs=
  24877. + dep_rpath=
  24878. + rpath="$finalize_rpath"
  24879. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  24880. + for libdir in $rpath; do
  24881. + if test -n "$hardcode_libdir_flag_spec"; then
  24882. + if test -n "$hardcode_libdir_separator"; then
  24883. + if test -z "$hardcode_libdirs"; then
  24884. + hardcode_libdirs="$libdir"
  24885. + else
  24886. + # Just accumulate the unique libdirs.
  24887. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  24888. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  24889. + ;;
  24890. + *)
  24891. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  24892. + ;;
  24893. + esac
  24894. + fi
  24895. + else
  24896. + eval flag=\"$hardcode_libdir_flag_spec\"
  24897. + dep_rpath="$dep_rpath $flag"
  24898. + fi
  24899. + elif test -n "$runpath_var"; then
  24900. + case "$perm_rpath " in
  24901. + *" $libdir "*) ;;
  24902. + *) perm_rpath="$perm_rpath $libdir" ;;
  24903. + esac
  24904. + fi
  24905. + done
  24906. + # Substitute the hardcoded libdirs into the rpath.
  24907. + if test -n "$hardcode_libdir_separator" &&
  24908. + test -n "$hardcode_libdirs"; then
  24909. + libdir="$hardcode_libdirs"
  24910. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  24911. + fi
  24912. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  24913. + # We should set the runpath_var.
  24914. + rpath=
  24915. + for dir in $perm_rpath; do
  24916. + rpath="$rpath$dir:"
  24917. + done
  24918. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  24919. + fi
  24920. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  24921. + fi
  24922. +
  24923. + shlibpath="$finalize_shlibpath"
  24924. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  24925. + if test -n "$shlibpath"; then
  24926. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  24927. + fi
  24928. +
  24929. + # Get the real and link names of the library.
  24930. + eval library_names=\"$library_names_spec\"
  24931. + set dummy $library_names
  24932. + realname="$2"
  24933. + shift; shift
  24934. +
  24935. + if test -n "$soname_spec"; then
  24936. + eval soname=\"$soname_spec\"
  24937. + else
  24938. + soname="$realname"
  24939. + fi
  24940. + test -z "$dlname" && dlname=$soname
  24941. +
  24942. + lib="$output_objdir/$realname"
  24943. + for link
  24944. + do
  24945. + linknames="$linknames $link"
  24946. + done
  24947. +
  24948. + # Ensure that we have .o objects for linkers which dislike .lo
  24949. + # (e.g. aix) in case we are running --disable-static
  24950. + for obj in $libobjs; do
  24951. + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  24952. + if test "X$xdir" = "X$obj"; then
  24953. + xdir="."
  24954. + else
  24955. + xdir="$xdir"
  24956. + fi
  24957. + baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  24958. + oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
  24959. + if test ! -f $xdir/$oldobj; then
  24960. + $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
  24961. + $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
  24962. + fi
  24963. + done
  24964. +
  24965. + # Use standard objects if they are pic
  24966. + test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  24967. +
  24968. + # Prepare the list of exported symbols
  24969. + if test -z "$export_symbols"; then
  24970. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  24971. + $show "generating symbol list for \`$libname.la'"
  24972. + export_symbols="$output_objdir/$libname.exp"
  24973. + $run $rm $export_symbols
  24974. + eval cmds=\"$export_symbols_cmds\"
  24975. + save_ifs="$IFS"; IFS='~'
  24976. + for cmd in $cmds; do
  24977. + IFS="$save_ifs"
  24978. + $show "$cmd"
  24979. + $run eval "$cmd" || exit $?
  24980. + done
  24981. + IFS="$save_ifs"
  24982. + if test -n "$export_symbols_regex"; then
  24983. + $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  24984. + $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  24985. + $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  24986. + $run eval '$mv "${export_symbols}T" "$export_symbols"'
  24987. + fi
  24988. + fi
  24989. + fi
  24990. +
  24991. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  24992. + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  24993. + fi
  24994. +
  24995. + if test -n "$convenience"; then
  24996. + if test -n "$whole_archive_flag_spec"; then
  24997. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  24998. + else
  24999. + gentop="$output_objdir/${outputname}x"
  25000. + $show "${rm}r $gentop"
  25001. + $run ${rm}r "$gentop"
  25002. + $show "mkdir $gentop"
  25003. + $run mkdir "$gentop"
  25004. + status=$?
  25005. + if test $status -ne 0 && test ! -d "$gentop"; then
  25006. + exit $status
  25007. + fi
  25008. + generated="$generated $gentop"
  25009. +
  25010. + for xlib in $convenience; do
  25011. + # Extract the objects.
  25012. + case $xlib in
  25013. + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  25014. + *) xabs=`pwd`"/$xlib" ;;
  25015. + esac
  25016. + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  25017. + xdir="$gentop/$xlib"
  25018. +
  25019. + $show "${rm}r $xdir"
  25020. + $run ${rm}r "$xdir"
  25021. + $show "mkdir $xdir"
  25022. + $run mkdir "$xdir"
  25023. + status=$?
  25024. + if test $status -ne 0 && test ! -d "$xdir"; then
  25025. + exit $status
  25026. + fi
  25027. + $show "(cd $xdir && $AR x $xabs)"
  25028. + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  25029. +
  25030. + libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
  25031. + done
  25032. + fi
  25033. + fi
  25034. +
  25035. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  25036. + eval flag=\"$thread_safe_flag_spec\"
  25037. + linker_flags="$linker_flags $flag"
  25038. + fi
  25039. +
  25040. + # Make a backup of the uninstalled library when relinking
  25041. + if test "$mode" = relink; then
  25042. + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  25043. + fi
  25044. +
  25045. + # Do each of the archive commands.
  25046. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  25047. + eval cmds=\"$archive_expsym_cmds\"
  25048. + else
  25049. + save_deplibs="$deplibs"
  25050. + for conv in $convenience; do
  25051. + tmp_deplibs=
  25052. + for test_deplib in $deplibs; do
  25053. + if test "$test_deplib" != "$conv"; then
  25054. + tmp_deplibs="$tmp_deplibs $test_deplib"
  25055. + fi
  25056. + done
  25057. + deplibs="$tmp_deplibs"
  25058. + done
  25059. + eval cmds=\"$archive_cmds\"
  25060. + deplibs="$save_deplibs"
  25061. + fi
  25062. + save_ifs="$IFS"; IFS='~'
  25063. + for cmd in $cmds; do
  25064. + IFS="$save_ifs"
  25065. + $show "$cmd"
  25066. + $run eval "$cmd" || exit $?
  25067. + done
  25068. + IFS="$save_ifs"
  25069. +
  25070. + # Restore the uninstalled library and exit
  25071. + if test "$mode" = relink; then
  25072. + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  25073. + exit 0
  25074. + fi
  25075. +
  25076. + # Create links to the real library.
  25077. + for linkname in $linknames; do
  25078. + if test "$realname" != "$linkname"; then
  25079. + $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  25080. + $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  25081. + fi
  25082. + done
  25083. +
  25084. + # If -module or -export-dynamic was specified, set the dlname.
  25085. + if test "$module" = yes || test "$export_dynamic" = yes; then
  25086. + # On all known operating systems, these are identical.
  25087. + dlname="$soname"
  25088. + fi
  25089. + fi
  25090. + ;;
  25091. +
  25092. + obj)
  25093. + if test -n "$deplibs"; then
  25094. + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  25095. + fi
  25096. +
  25097. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  25098. + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  25099. + fi
  25100. +
  25101. + if test -n "$rpath"; then
  25102. + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  25103. + fi
  25104. +
  25105. + if test -n "$xrpath"; then
  25106. + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  25107. + fi
  25108. +
  25109. + if test -n "$vinfo"; then
  25110. + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  25111. + fi
  25112. +
  25113. + if test -n "$release"; then
  25114. + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  25115. + fi
  25116. +
  25117. + case $output in
  25118. + *.lo)
  25119. + if test -n "$objs$old_deplibs"; then
  25120. + $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  25121. + exit 1
  25122. + fi
  25123. + libobj="$output"
  25124. + obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  25125. + ;;
  25126. + *)
  25127. + libobj=
  25128. + obj="$output"
  25129. + ;;
  25130. + esac
  25131. +
  25132. + # Delete the old objects.
  25133. + $run $rm $obj $libobj
  25134. +
  25135. + # Objects from convenience libraries. This assumes
  25136. + # single-version convenience libraries. Whenever we create
  25137. + # different ones for PIC/non-PIC, this we'll have to duplicate
  25138. + # the extraction.
  25139. + reload_conv_objs=
  25140. + gentop=
  25141. + # reload_cmds runs $LD directly, so let us get rid of
  25142. + # -Wl from whole_archive_flag_spec
  25143. + wl=
  25144. +
  25145. + if test -n "$convenience"; then
  25146. + if test -n "$whole_archive_flag_spec"; then
  25147. + eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  25148. + else
  25149. + gentop="$output_objdir/${obj}x"
  25150. + $show "${rm}r $gentop"
  25151. + $run ${rm}r "$gentop"
  25152. + $show "mkdir $gentop"
  25153. + $run mkdir "$gentop"
  25154. + status=$?
  25155. + if test $status -ne 0 && test ! -d "$gentop"; then
  25156. + exit $status
  25157. + fi
  25158. + generated="$generated $gentop"
  25159. +
  25160. + for xlib in $convenience; do
  25161. + # Extract the objects.
  25162. + case $xlib in
  25163. + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  25164. + *) xabs=`pwd`"/$xlib" ;;
  25165. + esac
  25166. + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  25167. + xdir="$gentop/$xlib"
  25168. +
  25169. + $show "${rm}r $xdir"
  25170. + $run ${rm}r "$xdir"
  25171. + $show "mkdir $xdir"
  25172. + $run mkdir "$xdir"
  25173. + status=$?
  25174. + if test $status -ne 0 && test ! -d "$xdir"; then
  25175. + exit $status
  25176. + fi
  25177. + $show "(cd $xdir && $AR x $xabs)"
  25178. + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  25179. +
  25180. + reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP`
  25181. + done
  25182. + fi
  25183. + fi
  25184. +
  25185. + # Create the old-style object.
  25186. + 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
  25187. +
  25188. + output="$obj"
  25189. + eval cmds=\"$reload_cmds\"
  25190. + save_ifs="$IFS"; IFS='~'
  25191. + for cmd in $cmds; do
  25192. + IFS="$save_ifs"
  25193. + $show "$cmd"
  25194. + $run eval "$cmd" || exit $?
  25195. + done
  25196. + IFS="$save_ifs"
  25197. +
  25198. + # Exit if we aren't doing a library object file.
  25199. + if test -z "$libobj"; then
  25200. + if test -n "$gentop"; then
  25201. + $show "${rm}r $gentop"
  25202. + $run ${rm}r $gentop
  25203. + fi
  25204. +
  25205. + exit 0
  25206. + fi
  25207. +
  25208. + if test "$build_libtool_libs" != yes; then
  25209. + if test -n "$gentop"; then
  25210. + $show "${rm}r $gentop"
  25211. + $run ${rm}r $gentop
  25212. + fi
  25213. +
  25214. + # Create an invalid libtool object if no PIC, so that we don't
  25215. + # accidentally link it into a program.
  25216. + $show "echo timestamp > $libobj"
  25217. + $run eval "echo timestamp > $libobj" || exit $?
  25218. + exit 0
  25219. + fi
  25220. +
  25221. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  25222. + # Only do commands if we really have different PIC objects.
  25223. + reload_objs="$libobjs $reload_conv_objs"
  25224. + output="$libobj"
  25225. + eval cmds=\"$reload_cmds\"
  25226. + save_ifs="$IFS"; IFS='~'
  25227. + for cmd in $cmds; do
  25228. + IFS="$save_ifs"
  25229. + $show "$cmd"
  25230. + $run eval "$cmd" || exit $?
  25231. + done
  25232. + IFS="$save_ifs"
  25233. + else
  25234. + # Just create a symlink.
  25235. + $show $rm $libobj
  25236. + $run $rm $libobj
  25237. + xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
  25238. + if test "X$xdir" = "X$libobj"; then
  25239. + xdir="."
  25240. + else
  25241. + xdir="$xdir"
  25242. + fi
  25243. + baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
  25244. + oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
  25245. + $show "(cd $xdir && $LN_S $oldobj $baseobj)"
  25246. + $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
  25247. + fi
  25248. +
  25249. + if test -n "$gentop"; then
  25250. + $show "${rm}r $gentop"
  25251. + $run ${rm}r $gentop
  25252. + fi
  25253. +
  25254. + exit 0
  25255. + ;;
  25256. +
  25257. + prog)
  25258. + case $host in
  25259. + *cygwin*) output=`echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  25260. + esac
  25261. + if test -n "$vinfo"; then
  25262. + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  25263. + fi
  25264. +
  25265. + if test -n "$release"; then
  25266. + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  25267. + fi
  25268. +
  25269. + if test "$preload" = yes; then
  25270. + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  25271. + test "$dlopen_self_static" = unknown; then
  25272. + $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  25273. + fi
  25274. + fi
  25275. +
  25276. + case $host in
  25277. + *-*-rhapsody* | *-*-darwin1.[012])
  25278. + # On Rhapsody replace the C library is the System framework
  25279. + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  25280. + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  25281. + case $host in
  25282. + *darwin*)
  25283. + # Don't allow lazy linking, it breaks C++ global constructors
  25284. + compile_command="$compile_command ${wl}-bind_at_load"
  25285. + finalize_command="$finalize_command ${wl}-bind_at_load"
  25286. + ;;
  25287. + esac
  25288. + ;;
  25289. + esac
  25290. +
  25291. + compile_command="$compile_command $compile_deplibs"
  25292. + finalize_command="$finalize_command $finalize_deplibs"
  25293. +
  25294. + if test -n "$rpath$xrpath"; then
  25295. + # If the user specified any rpath flags, then add them.
  25296. + for libdir in $rpath $xrpath; do
  25297. + # This is the magic to use -rpath.
  25298. + case "$finalize_rpath " in
  25299. + *" $libdir "*) ;;
  25300. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  25301. + esac
  25302. + done
  25303. + fi
  25304. +
  25305. + # Now hardcode the library paths
  25306. + rpath=
  25307. + hardcode_libdirs=
  25308. + for libdir in $compile_rpath $finalize_rpath; do
  25309. + if test -n "$hardcode_libdir_flag_spec"; then
  25310. + if test -n "$hardcode_libdir_separator"; then
  25311. + if test -z "$hardcode_libdirs"; then
  25312. + hardcode_libdirs="$libdir"
  25313. + else
  25314. + # Just accumulate the unique libdirs.
  25315. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  25316. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  25317. + ;;
  25318. + *)
  25319. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  25320. + ;;
  25321. + esac
  25322. + fi
  25323. + else
  25324. + eval flag=\"$hardcode_libdir_flag_spec\"
  25325. + rpath="$rpath $flag"
  25326. + fi
  25327. + elif test -n "$runpath_var"; then
  25328. + case "$perm_rpath " in
  25329. + *" $libdir "*) ;;
  25330. + *) perm_rpath="$perm_rpath $libdir" ;;
  25331. + esac
  25332. + fi
  25333. + case $host in
  25334. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  25335. + case :$dllsearchpath: in
  25336. + *":$libdir:"*) ;;
  25337. + *) dllsearchpath="$dllsearchpath:$libdir";;
  25338. + esac
  25339. + ;;
  25340. + esac
  25341. + done
  25342. + # Substitute the hardcoded libdirs into the rpath.
  25343. + if test -n "$hardcode_libdir_separator" &&
  25344. + test -n "$hardcode_libdirs"; then
  25345. + libdir="$hardcode_libdirs"
  25346. + eval rpath=\" $hardcode_libdir_flag_spec\"
  25347. + fi
  25348. + compile_rpath="$rpath"
  25349. +
  25350. + rpath=
  25351. + hardcode_libdirs=
  25352. + for libdir in $finalize_rpath; do
  25353. + if test -n "$hardcode_libdir_flag_spec"; then
  25354. + if test -n "$hardcode_libdir_separator"; then
  25355. + if test -z "$hardcode_libdirs"; then
  25356. + hardcode_libdirs="$libdir"
  25357. + else
  25358. + # Just accumulate the unique libdirs.
  25359. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  25360. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  25361. + ;;
  25362. + *)
  25363. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  25364. + ;;
  25365. + esac
  25366. + fi
  25367. + else
  25368. + eval flag=\"$hardcode_libdir_flag_spec\"
  25369. + rpath="$rpath $flag"
  25370. + fi
  25371. + elif test -n "$runpath_var"; then
  25372. + case "$finalize_perm_rpath " in
  25373. + *" $libdir "*) ;;
  25374. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  25375. + esac
  25376. + fi
  25377. + done
  25378. + # Substitute the hardcoded libdirs into the rpath.
  25379. + if test -n "$hardcode_libdir_separator" &&
  25380. + test -n "$hardcode_libdirs"; then
  25381. + libdir="$hardcode_libdirs"
  25382. + eval rpath=\" $hardcode_libdir_flag_spec\"
  25383. + fi
  25384. + finalize_rpath="$rpath"
  25385. +
  25386. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  25387. + # Transform all the library objects into standard objects.
  25388. + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  25389. + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  25390. + fi
  25391. +
  25392. + dlsyms=
  25393. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  25394. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  25395. + dlsyms="${outputname}S.c"
  25396. + else
  25397. + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  25398. + fi
  25399. + fi
  25400. +
  25401. + if test -n "$dlsyms"; then
  25402. + case $dlsyms in
  25403. + "") ;;
  25404. + *.c)
  25405. + # Discover the nlist of each of the dlfiles.
  25406. + nlist="$output_objdir/${outputname}.nm"
  25407. +
  25408. + $show "$rm $nlist ${nlist}S ${nlist}T"
  25409. + $run $rm "$nlist" "${nlist}S" "${nlist}T"
  25410. +
  25411. + # Parse the name list into a source file.
  25412. + $show "creating $output_objdir/$dlsyms"
  25413. +
  25414. + test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  25415. +/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  25416. +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  25417. +
  25418. +#ifdef __cplusplus
  25419. +extern \"C\" {
  25420. +#endif
  25421. +
  25422. +/* Prevent the only kind of declaration conflicts we can make. */
  25423. +#define lt_preloaded_symbols some_other_symbol
  25424. +
  25425. +/* External symbol declarations for the compiler. */\
  25426. +"
  25427. +
  25428. + if test "$dlself" = yes; then
  25429. + $show "generating symbol list for \`$output'"
  25430. +
  25431. + test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  25432. +
  25433. + # Add our own program objects to the symbol list.
  25434. + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  25435. + for arg in $progfiles; do
  25436. + $show "extracting global C symbols from \`$arg'"
  25437. + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  25438. + done
  25439. +
  25440. + if test -n "$exclude_expsyms"; then
  25441. + $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  25442. + $run eval '$mv "$nlist"T "$nlist"'
  25443. + fi
  25444. +
  25445. + if test -n "$export_symbols_regex"; then
  25446. + $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  25447. + $run eval '$mv "$nlist"T "$nlist"'
  25448. + fi
  25449. +
  25450. + # Prepare the list of exported symbols
  25451. + if test -z "$export_symbols"; then
  25452. + export_symbols="$output_objdir/$output.exp"
  25453. + $run $rm $export_symbols
  25454. + $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  25455. + else
  25456. + $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  25457. + $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  25458. + $run eval 'mv "$nlist"T "$nlist"'
  25459. + fi
  25460. + fi
  25461. +
  25462. + for arg in $dlprefiles; do
  25463. + $show "extracting global C symbols from \`$arg'"
  25464. + name=`echo "$arg" | ${SED} -e 's%^.*/%%'`
  25465. + $run eval 'echo ": $name " >> "$nlist"'
  25466. + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  25467. + done
  25468. +
  25469. + if test -z "$run"; then
  25470. + # Make sure we have at least an empty file.
  25471. + test -f "$nlist" || : > "$nlist"
  25472. +
  25473. + if test -n "$exclude_expsyms"; then
  25474. + egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  25475. + $mv "$nlist"T "$nlist"
  25476. + fi
  25477. +
  25478. + # Try sorting and uniquifying the output.
  25479. + if grep -v "^: " < "$nlist" |
  25480. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  25481. + sort -k 3
  25482. + else
  25483. + sort +2
  25484. + fi |
  25485. + uniq > "$nlist"S; then
  25486. + :
  25487. + else
  25488. + grep -v "^: " < "$nlist" > "$nlist"S
  25489. + fi
  25490. +
  25491. + if test -f "$nlist"S; then
  25492. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  25493. + else
  25494. + echo '/* NONE */' >> "$output_objdir/$dlsyms"
  25495. + fi
  25496. +
  25497. + $echo >> "$output_objdir/$dlsyms" "\
  25498. +
  25499. +#undef lt_preloaded_symbols
  25500. +
  25501. +#if defined (__STDC__) && __STDC__
  25502. +# define lt_ptr void *
  25503. +#else
  25504. +# define lt_ptr char *
  25505. +# define const
  25506. +#endif
  25507. +
  25508. +/* The mapping between symbol names and symbols. */
  25509. +const struct {
  25510. + const char *name;
  25511. + lt_ptr address;
  25512. +}
  25513. +lt_preloaded_symbols[] =
  25514. +{\
  25515. +"
  25516. +
  25517. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  25518. +
  25519. + $echo >> "$output_objdir/$dlsyms" "\
  25520. + {0, (lt_ptr) 0}
  25521. +};
  25522. +
  25523. +/* This works around a problem in FreeBSD linker */
  25524. +#ifdef FREEBSD_WORKAROUND
  25525. +static const void *lt_preloaded_setup() {
  25526. + return lt_preloaded_symbols;
  25527. +}
  25528. +#endif
  25529. +
  25530. +#ifdef __cplusplus
  25531. +}
  25532. +#endif\
  25533. +"
  25534. + fi
  25535. +
  25536. + pic_flag_for_symtable=
  25537. + case $host in
  25538. + # compiling the symbol table file with pic_flag works around
  25539. + # a FreeBSD bug that causes programs to crash when -lm is
  25540. + # linked before any other PIC object. But we must not use
  25541. + # pic_flag when linking with -static. The problem exists in
  25542. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  25543. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  25544. + case "$compile_command " in
  25545. + *" -static "*) ;;
  25546. + *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
  25547. + esac;;
  25548. + *-*-hpux*)
  25549. + case "$compile_command " in
  25550. + *" -static "*) ;;
  25551. + *) pic_flag_for_symtable=" $pic_flag -DPIC";;
  25552. + esac
  25553. + esac
  25554. +
  25555. + # Now compile the dynamic symbol file.
  25556. + $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  25557. + $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  25558. +
  25559. + # Clean up the generated files.
  25560. + $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  25561. + $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  25562. +
  25563. + # Transform the symbol file into the correct name.
  25564. + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  25565. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  25566. + ;;
  25567. + *)
  25568. + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  25569. + exit 1
  25570. + ;;
  25571. + esac
  25572. + else
  25573. + # We keep going just in case the user didn't refer to
  25574. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  25575. + # really was required.
  25576. +
  25577. + # Nullify the symbol file.
  25578. + compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  25579. + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  25580. + fi
  25581. +
  25582. + if test $need_relink = no || test "$build_libtool_libs" != yes; then
  25583. + # Replace the output file specification.
  25584. + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  25585. + link_command="$compile_command$compile_rpath"
  25586. +
  25587. + # We have no uninstalled library dependencies, so finalize right now.
  25588. + $show "$link_command"
  25589. + $run eval "$link_command"
  25590. + status=$?
  25591. +
  25592. + # Delete the generated files.
  25593. + if test -n "$dlsyms"; then
  25594. + $show "$rm $output_objdir/${outputname}S.${objext}"
  25595. + $run $rm "$output_objdir/${outputname}S.${objext}"
  25596. + fi
  25597. +
  25598. + exit $status
  25599. + fi
  25600. +
  25601. + if test -n "$shlibpath_var"; then
  25602. + # We should set the shlibpath_var
  25603. + rpath=
  25604. + for dir in $temp_rpath; do
  25605. + case $dir in
  25606. + [\\/]* | [A-Za-z]:[\\/]*)
  25607. + # Absolute path.
  25608. + rpath="$rpath$dir:"
  25609. + ;;
  25610. + *)
  25611. + # Relative path: add a thisdir entry.
  25612. + rpath="$rpath\$thisdir/$dir:"
  25613. + ;;
  25614. + esac
  25615. + done
  25616. + temp_rpath="$rpath"
  25617. + fi
  25618. +
  25619. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  25620. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  25621. + fi
  25622. + if test -n "$finalize_shlibpath"; then
  25623. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  25624. + fi
  25625. +
  25626. + compile_var=
  25627. + finalize_var=
  25628. + if test -n "$runpath_var"; then
  25629. + if test -n "$perm_rpath"; then
  25630. + # We should set the runpath_var.
  25631. + rpath=
  25632. + for dir in $perm_rpath; do
  25633. + rpath="$rpath$dir:"
  25634. + done
  25635. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  25636. + fi
  25637. + if test -n "$finalize_perm_rpath"; then
  25638. + # We should set the runpath_var.
  25639. + rpath=
  25640. + for dir in $finalize_perm_rpath; do
  25641. + rpath="$rpath$dir:"
  25642. + done
  25643. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  25644. + fi
  25645. + fi
  25646. +
  25647. + if test "$no_install" = yes; then
  25648. + # We don't need to create a wrapper script.
  25649. + link_command="$compile_var$compile_command$compile_rpath"
  25650. + # Replace the output file specification.
  25651. + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  25652. + # Delete the old output file.
  25653. + $run $rm $output
  25654. + # Link the executable and exit
  25655. + $show "$link_command"
  25656. + $run eval "$link_command" || exit $?
  25657. + exit 0
  25658. + fi
  25659. +
  25660. + if test "$hardcode_action" = relink; then
  25661. + # Fast installation is not supported
  25662. + link_command="$compile_var$compile_command$compile_rpath"
  25663. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  25664. +
  25665. + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  25666. + $echo "$modename: \`$output' will be relinked during installation" 1>&2
  25667. + else
  25668. + if test "$fast_install" != no; then
  25669. + link_command="$finalize_var$compile_command$finalize_rpath"
  25670. + if test "$fast_install" = yes; then
  25671. + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  25672. + else
  25673. + # fast_install is set to needless
  25674. + relink_command=
  25675. + fi
  25676. + else
  25677. + link_command="$compile_var$compile_command$compile_rpath"
  25678. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  25679. + fi
  25680. + fi
  25681. +
  25682. + # Replace the output file specification.
  25683. + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  25684. +
  25685. + # Delete the old output files.
  25686. + $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  25687. +
  25688. + $show "$link_command"
  25689. + $run eval "$link_command" || exit $?
  25690. +
  25691. + # Now create the wrapper script.
  25692. + $show "creating $output"
  25693. +
  25694. + # Quote the relink command for shipping.
  25695. + if test -n "$relink_command"; then
  25696. + # Preserve any variables that may affect compiler behavior
  25697. + for var in $variables_saved_for_relink; do
  25698. + if eval test -z \"\${$var+set}\"; then
  25699. + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  25700. + elif eval var_value=\$$var; test -z "$var_value"; then
  25701. + relink_command="$var=; export $var; $relink_command"
  25702. + else
  25703. + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  25704. + relink_command="$var=\"$var_value\"; export $var; $relink_command"
  25705. + fi
  25706. + done
  25707. + relink_command="(cd `pwd`; $relink_command)"
  25708. + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  25709. + fi
  25710. +
  25711. + # Quote $echo for shipping.
  25712. + if test "X$echo" = "X$SHELL $0 --fallback-echo"; then
  25713. + case $0 in
  25714. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";;
  25715. + *) qecho="$SHELL `pwd`/$0 --fallback-echo";;
  25716. + esac
  25717. + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  25718. + else
  25719. + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  25720. + fi
  25721. +
  25722. + # Only actually do things if our run command is non-null.
  25723. + if test -z "$run"; then
  25724. + # win32 will think the script is a binary if it has
  25725. + # a .exe suffix, so we strip it off here.
  25726. + case $output in
  25727. + *.exe) output=`echo $output|${SED} 's,.exe$,,'` ;;
  25728. + esac
  25729. + # test for cygwin because mv fails w/o .exe extensions
  25730. + case $host in
  25731. + *cygwin*) exeext=.exe ;;
  25732. + *) exeext= ;;
  25733. + esac
  25734. + $rm $output
  25735. + trap "$rm $output; exit 1" 1 2 15
  25736. +
  25737. + $echo > $output "\
  25738. +#! $SHELL
  25739. +
  25740. +# $output - temporary wrapper script for $objdir/$outputname
  25741. +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  25742. +#
  25743. +# The $output program cannot be directly executed until all the libtool
  25744. +# libraries that it depends on are installed.
  25745. +#
  25746. +# This wrapper script should never be moved out of the build directory.
  25747. +# If it is, it will not operate correctly.
  25748. +
  25749. +# Sed substitution that helps us do robust quoting. It backslashifies
  25750. +# metacharacters that are still active within double-quoted strings.
  25751. +Xsed="${SED}"' -e 1s/^X//'
  25752. +sed_quote_subst='$sed_quote_subst'
  25753. +
  25754. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  25755. +# if CDPATH is set.
  25756. +if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
  25757. +
  25758. +relink_command=\"$relink_command\"
  25759. +
  25760. +# This environment variable determines our operation mode.
  25761. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  25762. + # install mode needs the following variable:
  25763. + notinst_deplibs='$notinst_deplibs'
  25764. +else
  25765. + # When we are sourced in execute mode, \$file and \$echo are already set.
  25766. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  25767. + echo=\"$qecho\"
  25768. + file=\"\$0\"
  25769. + # Make sure echo works.
  25770. + if test \"X\$1\" = X--no-reexec; then
  25771. + # Discard the --no-reexec flag, and continue.
  25772. + shift
  25773. + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  25774. + # Yippee, \$echo works!
  25775. + :
  25776. + else
  25777. + # Restart under the correct shell, and then maybe \$echo will work.
  25778. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  25779. + fi
  25780. + fi\
  25781. +"
  25782. + $echo >> $output "\
  25783. +
  25784. + # Find the directory that this script lives in.
  25785. + thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  25786. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  25787. +
  25788. + # Follow symbolic links until we get to the real thisdir.
  25789. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  25790. + while test -n \"\$file\"; do
  25791. + destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  25792. +
  25793. + # If there was a directory component, then change thisdir.
  25794. + if test \"x\$destdir\" != \"x\$file\"; then
  25795. + case \"\$destdir\" in
  25796. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  25797. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  25798. + esac
  25799. + fi
  25800. +
  25801. + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  25802. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  25803. + done
  25804. +
  25805. + # Try to get the absolute directory name.
  25806. + absdir=\`cd \"\$thisdir\" && pwd\`
  25807. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  25808. +"
  25809. +
  25810. + if test "$fast_install" = yes; then
  25811. + echo >> $output "\
  25812. + program=lt-'$outputname'$exeext
  25813. + progdir=\"\$thisdir/$objdir\"
  25814. +
  25815. + if test ! -f \"\$progdir/\$program\" || \\
  25816. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  25817. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  25818. +
  25819. + file=\"\$\$-\$program\"
  25820. +
  25821. + if test ! -d \"\$progdir\"; then
  25822. + $mkdir \"\$progdir\"
  25823. + else
  25824. + $rm \"\$progdir/\$file\"
  25825. + fi"
  25826. +
  25827. + echo >> $output "\
  25828. +
  25829. + # relink executable if necessary
  25830. + if test -n \"\$relink_command\"; then
  25831. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  25832. + else
  25833. + $echo \"\$relink_command_output\" >&2
  25834. + $rm \"\$progdir/\$file\"
  25835. + exit 1
  25836. + fi
  25837. + fi
  25838. +
  25839. + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  25840. + { $rm \"\$progdir/\$program\";
  25841. + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  25842. + $rm \"\$progdir/\$file\"
  25843. + fi"
  25844. + else
  25845. + echo >> $output "\
  25846. + program='$outputname'
  25847. + progdir=\"\$thisdir/$objdir\"
  25848. +"
  25849. + fi
  25850. +
  25851. + echo >> $output "\
  25852. +
  25853. + if test -f \"\$progdir/\$program\"; then"
  25854. +
  25855. + # Export our shlibpath_var if we have one.
  25856. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  25857. + $echo >> $output "\
  25858. + # Add our own library path to $shlibpath_var
  25859. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  25860. +
  25861. + # Some systems cannot cope with colon-terminated $shlibpath_var
  25862. + # The second colon is a workaround for a bug in BeOS R4 ${SED}
  25863. + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  25864. +
  25865. + export $shlibpath_var
  25866. +"
  25867. + fi
  25868. +
  25869. + # fixup the dll searchpath if we need to.
  25870. + if test -n "$dllsearchpath"; then
  25871. + $echo >> $output "\
  25872. + # Add the dll search path components to the executable PATH
  25873. + PATH=$dllsearchpath:\$PATH
  25874. +"
  25875. + fi
  25876. +
  25877. + $echo >> $output "\
  25878. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  25879. + # Run the actual program with our arguments.
  25880. +"
  25881. + case $host in
  25882. + # win32 systems need to use the prog path for dll
  25883. + # lookup to work
  25884. + *-*-cygwin* | *-*-pw32*)
  25885. + $echo >> $output "\
  25886. + exec \$progdir/\$program \${1+\"\$@\"}
  25887. +"
  25888. + ;;
  25889. +
  25890. + # Backslashes separate directories on plain windows
  25891. + *-*-mingw | *-*-os2*)
  25892. + $echo >> $output "\
  25893. + exec \$progdir\\\\\$program \${1+\"\$@\"}
  25894. +"
  25895. + ;;
  25896. +
  25897. + *)
  25898. + $echo >> $output "\
  25899. + # Export the path to the program.
  25900. + PATH=\"\$progdir:\$PATH\"
  25901. + export PATH
  25902. +
  25903. + exec \$program \${1+\"\$@\"}
  25904. +"
  25905. + ;;
  25906. + esac
  25907. + $echo >> $output "\
  25908. + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  25909. + exit 1
  25910. + fi
  25911. + else
  25912. + # The program doesn't exist.
  25913. + \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
  25914. + \$echo \"This script is just a wrapper for \$program.\" 1>&2
  25915. + echo \"See the $PACKAGE documentation for more information.\" 1>&2
  25916. + exit 1
  25917. + fi
  25918. +fi\
  25919. +"
  25920. + chmod +x $output
  25921. + fi
  25922. + exit 0
  25923. + ;;
  25924. + esac
  25925. +
  25926. + # See if we need to build an old-fashioned archive.
  25927. + for oldlib in $oldlibs; do
  25928. +
  25929. + if test "$build_libtool_libs" = convenience; then
  25930. + oldobjs="$libobjs_save"
  25931. + addlibs="$convenience"
  25932. + build_libtool_libs=no
  25933. + else
  25934. + if test "$build_libtool_libs" = module; then
  25935. + oldobjs="$libobjs_save"
  25936. + build_libtool_libs=no
  25937. + else
  25938. + oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`
  25939. + fi
  25940. + addlibs="$old_convenience"
  25941. + fi
  25942. +
  25943. + if test -n "$addlibs"; then
  25944. + gentop="$output_objdir/${outputname}x"
  25945. + $show "${rm}r $gentop"
  25946. + $run ${rm}r "$gentop"
  25947. + $show "mkdir $gentop"
  25948. + $run mkdir "$gentop"
  25949. + status=$?
  25950. + if test $status -ne 0 && test ! -d "$gentop"; then
  25951. + exit $status
  25952. + fi
  25953. + generated="$generated $gentop"
  25954. +
  25955. + # Add in members from convenience archives.
  25956. + for xlib in $addlibs; do
  25957. + # Extract the objects.
  25958. + case $xlib in
  25959. + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  25960. + *) xabs=`pwd`"/$xlib" ;;
  25961. + esac
  25962. + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  25963. + xdir="$gentop/$xlib"
  25964. +
  25965. + $show "${rm}r $xdir"
  25966. + $run ${rm}r "$xdir"
  25967. + $show "mkdir $xdir"
  25968. + $run mkdir "$xdir"
  25969. + status=$?
  25970. + if test $status -ne 0 && test ! -d "$xdir"; then
  25971. + exit $status
  25972. + fi
  25973. + $show "(cd $xdir && $AR x $xabs)"
  25974. + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  25975. +
  25976. + oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
  25977. + done
  25978. + fi
  25979. +
  25980. + # Do each command in the archive commands.
  25981. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  25982. + eval cmds=\"$old_archive_from_new_cmds\"
  25983. + else
  25984. + # Ensure that we have .o objects in place in case we decided
  25985. + # not to build a shared library, and have fallen back to building
  25986. + # static libs even though --disable-static was passed!
  25987. + for oldobj in $oldobjs; do
  25988. + if test ! -f $oldobj; then
  25989. + xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
  25990. + if test "X$xdir" = "X$oldobj"; then
  25991. + xdir="."
  25992. + else
  25993. + xdir="$xdir"
  25994. + fi
  25995. + baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
  25996. + obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
  25997. + $show "(cd $xdir && ${LN_S} $obj $baseobj)"
  25998. + $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
  25999. + fi
  26000. + done
  26001. +
  26002. + eval cmds=\"$old_archive_cmds\"
  26003. + fi
  26004. + save_ifs="$IFS"; IFS='~'
  26005. + for cmd in $cmds; do
  26006. + IFS="$save_ifs"
  26007. + $show "$cmd"
  26008. + $run eval "$cmd" || exit $?
  26009. + done
  26010. + IFS="$save_ifs"
  26011. + done
  26012. +
  26013. + if test -n "$generated"; then
  26014. + $show "${rm}r$generated"
  26015. + $run ${rm}r$generated
  26016. + fi
  26017. +
  26018. + # Now create the libtool archive.
  26019. + case $output in
  26020. + *.la)
  26021. + old_library=
  26022. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  26023. + $show "creating $output"
  26024. +
  26025. + # Preserve any variables that may affect compiler behavior
  26026. + for var in $variables_saved_for_relink; do
  26027. + if eval test -z \"\${$var+set}\"; then
  26028. + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  26029. + elif eval var_value=\$$var; test -z "$var_value"; then
  26030. + relink_command="$var=; export $var; $relink_command"
  26031. + else
  26032. + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  26033. + relink_command="$var=\"$var_value\"; export $var; $relink_command"
  26034. + fi
  26035. + done
  26036. + # Quote the link command for shipping.
  26037. + relink_command="(cd `pwd`; $SHELL $0 --mode=relink $libtool_args @inst_prefix_dir@)"
  26038. + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  26039. +
  26040. + # Only create the output if not a dry run.
  26041. + if test -z "$run"; then
  26042. + for installed in no yes; do
  26043. + if test "$installed" = yes; then
  26044. + if test -z "$install_libdir"; then
  26045. + break
  26046. + fi
  26047. + output="$output_objdir/$outputname"i
  26048. + # Replace all uninstalled libtool libraries with the installed ones
  26049. + newdependency_libs=
  26050. + for deplib in $dependency_libs; do
  26051. + case $deplib in
  26052. + *.la)
  26053. + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  26054. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  26055. + if test -z "$libdir"; then
  26056. + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  26057. + exit 1
  26058. + fi
  26059. + newdependency_libs="$newdependency_libs $libdir/$name"
  26060. + ;;
  26061. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  26062. + esac
  26063. + done
  26064. + dependency_libs="$newdependency_libs"
  26065. + newdlfiles=
  26066. + for lib in $dlfiles; do
  26067. + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  26068. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  26069. + if test -z "$libdir"; then
  26070. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  26071. + exit 1
  26072. + fi
  26073. + newdlfiles="$newdlfiles $libdir/$name"
  26074. + done
  26075. + dlfiles="$newdlfiles"
  26076. + newdlprefiles=
  26077. + for lib in $dlprefiles; do
  26078. + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  26079. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  26080. + if test -z "$libdir"; then
  26081. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  26082. + exit 1
  26083. + fi
  26084. + newdlprefiles="$newdlprefiles $libdir/$name"
  26085. + done
  26086. + dlprefiles="$newdlprefiles"
  26087. + fi
  26088. + $rm $output
  26089. + # place dlname in correct position for cygwin
  26090. + tdlname=$dlname
  26091. + case $host,$output,$installed,$module,$dlname in
  26092. + *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  26093. + esac
  26094. + $echo > $output "\
  26095. +# $outputname - a libtool library file
  26096. +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  26097. +#
  26098. +# Please DO NOT delete this file!
  26099. +# It is necessary for linking the library.
  26100. +
  26101. +# The name that we can dlopen(3).
  26102. +dlname='$tdlname'
  26103. +
  26104. +# Names of this library.
  26105. +library_names='$library_names'
  26106. +
  26107. +# The name of the static archive.
  26108. +old_library='$old_library'
  26109. +
  26110. +# Libraries that this one depends upon.
  26111. +dependency_libs='$dependency_libs'
  26112. +
  26113. +# Version information for $libname.
  26114. +current=$current
  26115. +age=$age
  26116. +revision=$revision
  26117. +
  26118. +# Is this an already installed library?
  26119. +installed=$installed
  26120. +
  26121. +# Files to dlopen/dlpreopen
  26122. +dlopen='$dlfiles'
  26123. +dlpreopen='$dlprefiles'
  26124. +
  26125. +# Directory that this library needs to be installed in:
  26126. +libdir='$install_libdir'"
  26127. + if test "$installed" = no && test $need_relink = yes; then
  26128. + $echo >> $output "\
  26129. +relink_command=\"$relink_command\""
  26130. + fi
  26131. + done
  26132. + fi
  26133. +
  26134. + # Do a symbolic link so that the libtool archive can be found in
  26135. + # LD_LIBRARY_PATH before the program is installed.
  26136. + $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  26137. + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  26138. + ;;
  26139. + esac
  26140. + exit 0
  26141. + ;;
  26142. +
  26143. + # libtool install mode
  26144. + install)
  26145. + modename="$modename: install"
  26146. +
  26147. + # There may be an optional sh(1) argument at the beginning of
  26148. + # install_prog (especially on Windows NT).
  26149. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  26150. + # Allow the use of GNU shtool's install command.
  26151. + $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
  26152. + # Aesthetically quote it.
  26153. + arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  26154. + case $arg in
  26155. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  26156. + arg="\"$arg\""
  26157. + ;;
  26158. + esac
  26159. + install_prog="$arg "
  26160. + arg="$1"
  26161. + shift
  26162. + else
  26163. + install_prog=
  26164. + arg="$nonopt"
  26165. + fi
  26166. +
  26167. + # The real first argument should be the name of the installation program.
  26168. + # Aesthetically quote it.
  26169. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  26170. + case $arg in
  26171. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  26172. + arg="\"$arg\""
  26173. + ;;
  26174. + esac
  26175. + install_prog="$install_prog$arg"
  26176. +
  26177. + # We need to accept at least all the BSD install flags.
  26178. + dest=
  26179. + files=
  26180. + opts=
  26181. + prev=
  26182. + install_type=
  26183. + isdir=no
  26184. + stripme=
  26185. + for arg
  26186. + do
  26187. + if test -n "$dest"; then
  26188. + files="$files $dest"
  26189. + dest="$arg"
  26190. + continue
  26191. + fi
  26192. +
  26193. + case $arg in
  26194. + -d) isdir=yes ;;
  26195. + -f) prev="-f" ;;
  26196. + -g) prev="-g" ;;
  26197. + -m) prev="-m" ;;
  26198. + -o) prev="-o" ;;
  26199. + -s)
  26200. + stripme=" -s"
  26201. + continue
  26202. + ;;
  26203. + -*) ;;
  26204. +
  26205. + *)
  26206. + # If the previous option needed an argument, then skip it.
  26207. + if test -n "$prev"; then
  26208. + prev=
  26209. + else
  26210. + dest="$arg"
  26211. + continue
  26212. + fi
  26213. + ;;
  26214. + esac
  26215. +
  26216. + # Aesthetically quote the argument.
  26217. + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  26218. + case $arg in
  26219. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  26220. + arg="\"$arg\""
  26221. + ;;
  26222. + esac
  26223. + install_prog="$install_prog $arg"
  26224. + done
  26225. +
  26226. + if test -z "$install_prog"; then
  26227. + $echo "$modename: you must specify an install program" 1>&2
  26228. + $echo "$help" 1>&2
  26229. + exit 1
  26230. + fi
  26231. +
  26232. + if test -n "$prev"; then
  26233. + $echo "$modename: the \`$prev' option requires an argument" 1>&2
  26234. + $echo "$help" 1>&2
  26235. + exit 1
  26236. + fi
  26237. +
  26238. + if test -z "$files"; then
  26239. + if test -z "$dest"; then
  26240. + $echo "$modename: no file or destination specified" 1>&2
  26241. + else
  26242. + $echo "$modename: you must specify a destination" 1>&2
  26243. + fi
  26244. + $echo "$help" 1>&2
  26245. + exit 1
  26246. + fi
  26247. +
  26248. + # Strip any trailing slash from the destination.
  26249. + dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  26250. +
  26251. + # Check to see that the destination is a directory.
  26252. + test -d "$dest" && isdir=yes
  26253. + if test "$isdir" = yes; then
  26254. + destdir="$dest"
  26255. + destname=
  26256. + else
  26257. + destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  26258. + test "X$destdir" = "X$dest" && destdir=.
  26259. + destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  26260. +
  26261. + # Not a directory, so check to see that there is only one file specified.
  26262. + set dummy $files
  26263. + if test $# -gt 2; then
  26264. + $echo "$modename: \`$dest' is not a directory" 1>&2
  26265. + $echo "$help" 1>&2
  26266. + exit 1
  26267. + fi
  26268. + fi
  26269. + case $destdir in
  26270. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  26271. + *)
  26272. + for file in $files; do
  26273. + case $file in
  26274. + *.lo) ;;
  26275. + *)
  26276. + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  26277. + $echo "$help" 1>&2
  26278. + exit 1
  26279. + ;;
  26280. + esac
  26281. + done
  26282. + ;;
  26283. + esac
  26284. +
  26285. + # This variable tells wrapper scripts just to set variables rather
  26286. + # than running their programs.
  26287. + libtool_install_magic="$magic"
  26288. +
  26289. + staticlibs=
  26290. + future_libdirs=
  26291. + current_libdirs=
  26292. + for file in $files; do
  26293. +
  26294. + # Do each installation.
  26295. + case $file in
  26296. + *.$libext)
  26297. + # Do the static libraries later.
  26298. + staticlibs="$staticlibs $file"
  26299. + ;;
  26300. +
  26301. + *.la)
  26302. + # Check to see that this really is a libtool archive.
  26303. + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  26304. + else
  26305. + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  26306. + $echo "$help" 1>&2
  26307. + exit 1
  26308. + fi
  26309. +
  26310. + library_names=
  26311. + old_library=
  26312. + relink_command=
  26313. + # If there is no directory component, then add one.
  26314. + case $file in
  26315. + */* | *\\*) . $file ;;
  26316. + *) . ./$file ;;
  26317. + esac
  26318. +
  26319. + # Add the libdir to current_libdirs if it is the destination.
  26320. + if test "X$destdir" = "X$libdir"; then
  26321. + case "$current_libdirs " in
  26322. + *" $libdir "*) ;;
  26323. + *) current_libdirs="$current_libdirs $libdir" ;;
  26324. + esac
  26325. + else
  26326. + # Note the libdir as a future libdir.
  26327. + case "$future_libdirs " in
  26328. + *" $libdir "*) ;;
  26329. + *) future_libdirs="$future_libdirs $libdir" ;;
  26330. + esac
  26331. + fi
  26332. +
  26333. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  26334. + test "X$dir" = "X$file/" && dir=
  26335. + dir="$dir$objdir"
  26336. +
  26337. + if test -n "$relink_command"; then
  26338. + # Determine the prefix the user has applied to our future dir.
  26339. + inst_prefix_dir=`$echo "$destdir" | sed "s%$libdir\$%%"`
  26340. +
  26341. + # Don't allow the user to place us outside of our expected
  26342. + # location b/c this prevents finding dependent libraries that
  26343. + # are installed to the same prefix.
  26344. + if test "$inst_prefix_dir" = "$destdir"; then
  26345. + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  26346. + exit 1
  26347. + fi
  26348. +
  26349. + if test -n "$inst_prefix_dir"; then
  26350. + # Stick the inst_prefix_dir data into the link command.
  26351. + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  26352. + else
  26353. + relink_command=`$echo "$relink_command" | sed "s%@inst_prefix_dir@%%"`
  26354. + fi
  26355. +
  26356. + $echo "$modename: warning: relinking \`$file'" 1>&2
  26357. + $show "$relink_command"
  26358. + if $run eval "$relink_command"; then :
  26359. + else
  26360. + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  26361. + exit 1
  26362. + fi
  26363. + fi
  26364. +
  26365. + # See the names of the shared library.
  26366. + set dummy $library_names
  26367. + if test -n "$2"; then
  26368. + realname="$2"
  26369. + shift
  26370. + shift
  26371. +
  26372. + srcname="$realname"
  26373. + test -n "$relink_command" && srcname="$realname"T
  26374. +
  26375. + # Install the shared library and build the symlinks.
  26376. + $show "$install_prog $dir/$srcname $destdir/$realname"
  26377. + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  26378. + if test -n "$stripme" && test -n "$striplib"; then
  26379. + $show "$striplib $destdir/$realname"
  26380. + $run eval "$striplib $destdir/$realname" || exit $?
  26381. + fi
  26382. +
  26383. + if test $# -gt 0; then
  26384. + # Delete the old symlinks, and create new ones.
  26385. + for linkname
  26386. + do
  26387. + if test "$linkname" != "$realname"; then
  26388. + $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  26389. + $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  26390. + fi
  26391. + done
  26392. + fi
  26393. +
  26394. + # Do each command in the postinstall commands.
  26395. + lib="$destdir/$realname"
  26396. + eval cmds=\"$postinstall_cmds\"
  26397. + save_ifs="$IFS"; IFS='~'
  26398. + for cmd in $cmds; do
  26399. + IFS="$save_ifs"
  26400. + $show "$cmd"
  26401. + $run eval "$cmd" || exit $?
  26402. + done
  26403. + IFS="$save_ifs"
  26404. + fi
  26405. +
  26406. + # Install the pseudo-library for information purposes.
  26407. + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  26408. + instname="$dir/$name"i
  26409. + $show "$install_prog $instname $destdir/$name"
  26410. + $run eval "$install_prog $instname $destdir/$name" || exit $?
  26411. +
  26412. + # Maybe install the static library, too.
  26413. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  26414. + ;;
  26415. +
  26416. + *.lo)
  26417. + # Install (i.e. copy) a libtool object.
  26418. +
  26419. + # Figure out destination file name, if it wasn't already specified.
  26420. + if test -n "$destname"; then
  26421. + destfile="$destdir/$destname"
  26422. + else
  26423. + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  26424. + destfile="$destdir/$destfile"
  26425. + fi
  26426. +
  26427. + # Deduce the name of the destination old-style object file.
  26428. + case $destfile in
  26429. + *.lo)
  26430. + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  26431. + ;;
  26432. + *.$objext)
  26433. + staticdest="$destfile"
  26434. + destfile=
  26435. + ;;
  26436. + *)
  26437. + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  26438. + $echo "$help" 1>&2
  26439. + exit 1
  26440. + ;;
  26441. + esac
  26442. +
  26443. + # Install the libtool object if requested.
  26444. + if test -n "$destfile"; then
  26445. + $show "$install_prog $file $destfile"
  26446. + $run eval "$install_prog $file $destfile" || exit $?
  26447. + fi
  26448. +
  26449. + # Install the old object if enabled.
  26450. + if test "$build_old_libs" = yes; then
  26451. + # Deduce the name of the old-style object file.
  26452. + staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  26453. +
  26454. + $show "$install_prog $staticobj $staticdest"
  26455. + $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  26456. + fi
  26457. + exit 0
  26458. + ;;
  26459. +
  26460. + *)
  26461. + # Figure out destination file name, if it wasn't already specified.
  26462. + if test -n "$destname"; then
  26463. + destfile="$destdir/$destname"
  26464. + else
  26465. + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  26466. + destfile="$destdir/$destfile"
  26467. + fi
  26468. +
  26469. + # Do a test to see if this is really a libtool program.
  26470. + case $host in
  26471. + *cygwin*|*mingw*)
  26472. + wrapper=`echo $file | ${SED} -e 's,.exe$,,'`
  26473. + ;;
  26474. + *)
  26475. + wrapper=$file
  26476. + ;;
  26477. + esac
  26478. + if (${SED} -e '4q' $wrapper | egrep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  26479. + notinst_deplibs=
  26480. + relink_command=
  26481. +
  26482. + # If there is no directory component, then add one.
  26483. + case $file in
  26484. + */* | *\\*) . $wrapper ;;
  26485. + *) . ./$wrapper ;;
  26486. + esac
  26487. +
  26488. + # Check the variables that should have been set.
  26489. + if test -z "$notinst_deplibs"; then
  26490. + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  26491. + exit 1
  26492. + fi
  26493. +
  26494. + finalize=yes
  26495. + for lib in $notinst_deplibs; do
  26496. + # Check to see that each library is installed.
  26497. + libdir=
  26498. + if test -f "$lib"; then
  26499. + # If there is no directory component, then add one.
  26500. + case $lib in
  26501. + */* | *\\*) . $lib ;;
  26502. + *) . ./$lib ;;
  26503. + esac
  26504. + fi
  26505. + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  26506. + if test -n "$libdir" && test ! -f "$libfile"; then
  26507. + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  26508. + finalize=no
  26509. + fi
  26510. + done
  26511. +
  26512. + relink_command=
  26513. + # If there is no directory component, then add one.
  26514. + case $file in
  26515. + */* | *\\*) . $wrapper ;;
  26516. + *) . ./$wrapper ;;
  26517. + esac
  26518. +
  26519. + outputname=
  26520. + if test "$fast_install" = no && test -n "$relink_command"; then
  26521. + if test "$finalize" = yes && test -z "$run"; then
  26522. + tmpdir="/tmp"
  26523. + test -n "$TMPDIR" && tmpdir="$TMPDIR"
  26524. + tmpdir="$tmpdir/libtool-$$"
  26525. + if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then :
  26526. + else
  26527. + $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  26528. + continue
  26529. + fi
  26530. + file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  26531. + outputname="$tmpdir/$file"
  26532. + # Replace the output file specification.
  26533. + relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  26534. +
  26535. + $show "$relink_command"
  26536. + if $run eval "$relink_command"; then :
  26537. + else
  26538. + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  26539. + ${rm}r "$tmpdir"
  26540. + continue
  26541. + fi
  26542. + file="$outputname"
  26543. + else
  26544. + $echo "$modename: warning: cannot relink \`$file'" 1>&2
  26545. + fi
  26546. + else
  26547. + # Install the binary that we compiled earlier.
  26548. + file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  26549. + fi
  26550. + fi
  26551. +
  26552. + # remove .exe since cygwin /usr/bin/install will append another
  26553. + # one anyways
  26554. + case $install_prog,$host in
  26555. + /usr/bin/install*,*cygwin*)
  26556. + case $file:$destfile in
  26557. + *.exe:*.exe)
  26558. + # this is ok
  26559. + ;;
  26560. + *.exe:*)
  26561. + destfile=$destfile.exe
  26562. + ;;
  26563. + *:*.exe)
  26564. + destfile=`echo $destfile | ${SED} -e 's,.exe$,,'`
  26565. + ;;
  26566. + esac
  26567. + ;;
  26568. + esac
  26569. + $show "$install_prog$stripme $file $destfile"
  26570. + $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  26571. + test -n "$outputname" && ${rm}r "$tmpdir"
  26572. + ;;
  26573. + esac
  26574. + done
  26575. +
  26576. + for file in $staticlibs; do
  26577. + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  26578. +
  26579. + # Set up the ranlib parameters.
  26580. + oldlib="$destdir/$name"
  26581. +
  26582. + $show "$install_prog $file $oldlib"
  26583. + $run eval "$install_prog \$file \$oldlib" || exit $?
  26584. +
  26585. + if test -n "$stripme" && test -n "$striplib"; then
  26586. + $show "$old_striplib $oldlib"
  26587. + $run eval "$old_striplib $oldlib" || exit $?
  26588. + fi
  26589. +
  26590. + # Do each command in the postinstall commands.
  26591. + eval cmds=\"$old_postinstall_cmds\"
  26592. + save_ifs="$IFS"; IFS='~'
  26593. + for cmd in $cmds; do
  26594. + IFS="$save_ifs"
  26595. + $show "$cmd"
  26596. + $run eval "$cmd" || exit $?
  26597. + done
  26598. + IFS="$save_ifs"
  26599. + done
  26600. +
  26601. + if test -n "$future_libdirs"; then
  26602. + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  26603. + fi
  26604. +
  26605. + if test -n "$current_libdirs"; then
  26606. + # Maybe just do a dry run.
  26607. + test -n "$run" && current_libdirs=" -n$current_libdirs"
  26608. + exec_cmd='$SHELL $0 --finish$current_libdirs'
  26609. + else
  26610. + exit 0
  26611. + fi
  26612. + ;;
  26613. +
  26614. + # libtool finish mode
  26615. + finish)
  26616. + modename="$modename: finish"
  26617. + libdirs="$nonopt"
  26618. + admincmds=
  26619. +
  26620. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  26621. + for dir
  26622. + do
  26623. + libdirs="$libdirs $dir"
  26624. + done
  26625. +
  26626. + for libdir in $libdirs; do
  26627. + if test -n "$finish_cmds"; then
  26628. + # Do each command in the finish commands.
  26629. + eval cmds=\"$finish_cmds\"
  26630. + save_ifs="$IFS"; IFS='~'
  26631. + for cmd in $cmds; do
  26632. + IFS="$save_ifs"
  26633. + $show "$cmd"
  26634. + $run eval "$cmd" || admincmds="$admincmds
  26635. + $cmd"
  26636. + done
  26637. + IFS="$save_ifs"
  26638. + fi
  26639. + if test -n "$finish_eval"; then
  26640. + # Do the single finish_eval.
  26641. + eval cmds=\"$finish_eval\"
  26642. + $run eval "$cmds" || admincmds="$admincmds
  26643. + $cmds"
  26644. + fi
  26645. + done
  26646. + fi
  26647. +
  26648. + # Exit here if they wanted silent mode.
  26649. + test "$show" = ":" && exit 0
  26650. +
  26651. + echo "----------------------------------------------------------------------"
  26652. + echo "Libraries have been installed in:"
  26653. + for libdir in $libdirs; do
  26654. + echo " $libdir"
  26655. + done
  26656. + echo
  26657. + echo "If you ever happen to want to link against installed libraries"
  26658. + echo "in a given directory, LIBDIR, you must either use libtool, and"
  26659. + echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  26660. + echo "flag during linking and do at least one of the following:"
  26661. + if test -n "$shlibpath_var"; then
  26662. + echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  26663. + echo " during execution"
  26664. + fi
  26665. + if test -n "$runpath_var"; then
  26666. + echo " - add LIBDIR to the \`$runpath_var' environment variable"
  26667. + echo " during linking"
  26668. + fi
  26669. + if test -n "$hardcode_libdir_flag_spec"; then
  26670. + libdir=LIBDIR
  26671. + eval flag=\"$hardcode_libdir_flag_spec\"
  26672. +
  26673. + echo " - use the \`$flag' linker flag"
  26674. + fi
  26675. + if test -n "$admincmds"; then
  26676. + echo " - have your system administrator run these commands:$admincmds"
  26677. + fi
  26678. + if test -f /etc/ld.so.conf; then
  26679. + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  26680. + fi
  26681. + echo
  26682. + echo "See any operating system documentation about shared libraries for"
  26683. + echo "more information, such as the ld(1) and ld.so(8) manual pages."
  26684. + echo "----------------------------------------------------------------------"
  26685. + exit 0
  26686. + ;;
  26687. +
  26688. + # libtool execute mode
  26689. + execute)
  26690. + modename="$modename: execute"
  26691. +
  26692. + # The first argument is the command name.
  26693. + cmd="$nonopt"
  26694. + if test -z "$cmd"; then
  26695. + $echo "$modename: you must specify a COMMAND" 1>&2
  26696. + $echo "$help"
  26697. + exit 1
  26698. + fi
  26699. +
  26700. + # Handle -dlopen flags immediately.
  26701. + for file in $execute_dlfiles; do
  26702. + if test ! -f "$file"; then
  26703. + $echo "$modename: \`$file' is not a file" 1>&2
  26704. + $echo "$help" 1>&2
  26705. + exit 1
  26706. + fi
  26707. +
  26708. + dir=
  26709. + case $file in
  26710. + *.la)
  26711. + # Check to see that this really is a libtool archive.
  26712. + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  26713. + else
  26714. + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  26715. + $echo "$help" 1>&2
  26716. + exit 1
  26717. + fi
  26718. +
  26719. + # Read the libtool library.
  26720. + dlname=
  26721. + library_names=
  26722. +
  26723. + # If there is no directory component, then add one.
  26724. + case $file in
  26725. + */* | *\\*) . $file ;;
  26726. + *) . ./$file ;;
  26727. + esac
  26728. +
  26729. + # Skip this library if it cannot be dlopened.
  26730. + if test -z "$dlname"; then
  26731. + # Warn if it was a shared library.
  26732. + test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  26733. + continue
  26734. + fi
  26735. +
  26736. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  26737. + test "X$dir" = "X$file" && dir=.
  26738. +
  26739. + if test -f "$dir/$objdir/$dlname"; then
  26740. + dir="$dir/$objdir"
  26741. + else
  26742. + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  26743. + exit 1
  26744. + fi
  26745. + ;;
  26746. +
  26747. + *.lo)
  26748. + # Just add the directory containing the .lo file.
  26749. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  26750. + test "X$dir" = "X$file" && dir=.
  26751. + ;;
  26752. +
  26753. + *)
  26754. + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  26755. + continue
  26756. + ;;
  26757. + esac
  26758. +
  26759. + # Get the absolute pathname.
  26760. + absdir=`cd "$dir" && pwd`
  26761. + test -n "$absdir" && dir="$absdir"
  26762. +
  26763. + # Now add the directory to shlibpath_var.
  26764. + if eval "test -z \"\$$shlibpath_var\""; then
  26765. + eval "$shlibpath_var=\"\$dir\""
  26766. + else
  26767. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  26768. + fi
  26769. + done
  26770. +
  26771. + # This variable tells wrapper scripts just to set shlibpath_var
  26772. + # rather than running their programs.
  26773. + libtool_execute_magic="$magic"
  26774. +
  26775. + # Check if any of the arguments is a wrapper script.
  26776. + args=
  26777. + for file
  26778. + do
  26779. + case $file in
  26780. + -*) ;;
  26781. + *)
  26782. + # Do a test to see if this is really a libtool program.
  26783. + if (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  26784. + # If there is no directory component, then add one.
  26785. + case $file in
  26786. + */* | *\\*) . $file ;;
  26787. + *) . ./$file ;;
  26788. + esac
  26789. +
  26790. + # Transform arg to wrapped name.
  26791. + file="$progdir/$program"
  26792. + fi
  26793. + ;;
  26794. + esac
  26795. + # Quote arguments (to preserve shell metacharacters).
  26796. + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  26797. + args="$args \"$file\""
  26798. + done
  26799. +
  26800. + if test -z "$run"; then
  26801. + if test -n "$shlibpath_var"; then
  26802. + # Export the shlibpath_var.
  26803. + eval "export $shlibpath_var"
  26804. + fi
  26805. +
  26806. + # Restore saved enviroment variables
  26807. + if test "${save_LC_ALL+set}" = set; then
  26808. + LC_ALL="$save_LC_ALL"; export LC_ALL
  26809. + fi
  26810. + if test "${save_LANG+set}" = set; then
  26811. + LANG="$save_LANG"; export LANG
  26812. + fi
  26813. +
  26814. + # Now prepare to actually exec the command.
  26815. + exec_cmd="\$cmd$args"
  26816. + else
  26817. + # Display what would be done.
  26818. + if test -n "$shlibpath_var"; then
  26819. + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  26820. + $echo "export $shlibpath_var"
  26821. + fi
  26822. + $echo "$cmd$args"
  26823. + exit 0
  26824. + fi
  26825. + ;;
  26826. +
  26827. + # libtool clean and uninstall mode
  26828. + clean | uninstall)
  26829. + modename="$modename: $mode"
  26830. + rm="$nonopt"
  26831. + files=
  26832. + rmforce=
  26833. + exit_status=0
  26834. +
  26835. + # This variable tells wrapper scripts just to set variables rather
  26836. + # than running their programs.
  26837. + libtool_install_magic="$magic"
  26838. +
  26839. + for arg
  26840. + do
  26841. + case $arg in
  26842. + -f) rm="$rm $arg"; rmforce=yes ;;
  26843. + -*) rm="$rm $arg" ;;
  26844. + *) files="$files $arg" ;;
  26845. + esac
  26846. + done
  26847. +
  26848. + if test -z "$rm"; then
  26849. + $echo "$modename: you must specify an RM program" 1>&2
  26850. + $echo "$help" 1>&2
  26851. + exit 1
  26852. + fi
  26853. +
  26854. + rmdirs=
  26855. +
  26856. + for file in $files; do
  26857. + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  26858. + if test "X$dir" = "X$file"; then
  26859. + dir=.
  26860. + objdir="$objdir"
  26861. + else
  26862. + objdir="$dir/$objdir"
  26863. + fi
  26864. + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  26865. + test $mode = uninstall && objdir="$dir"
  26866. +
  26867. + # Remember objdir for removal later, being careful to avoid duplicates
  26868. + if test $mode = clean; then
  26869. + case " $rmdirs " in
  26870. + *" $objdir "*) ;;
  26871. + *) rmdirs="$rmdirs $objdir" ;;
  26872. + esac
  26873. + fi
  26874. +
  26875. + # Don't error if the file doesn't exist and rm -f was used.
  26876. + if (test -L "$file") >/dev/null 2>&1 \
  26877. + || (test -h "$file") >/dev/null 2>&1 \
  26878. + || test -f "$file"; then
  26879. + :
  26880. + elif test -d "$file"; then
  26881. + exit_status=1
  26882. + continue
  26883. + elif test "$rmforce" = yes; then
  26884. + continue
  26885. + fi
  26886. +
  26887. + rmfiles="$file"
  26888. +
  26889. + case $name in
  26890. + *.la)
  26891. + # Possibly a libtool archive, so verify it.
  26892. + if (${SED} -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  26893. + . $dir/$name
  26894. +
  26895. + # Delete the libtool libraries and symlinks.
  26896. + for n in $library_names; do
  26897. + rmfiles="$rmfiles $objdir/$n"
  26898. + done
  26899. + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  26900. + test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  26901. +
  26902. + if test $mode = uninstall; then
  26903. + if test -n "$library_names"; then
  26904. + # Do each command in the postuninstall commands.
  26905. + eval cmds=\"$postuninstall_cmds\"
  26906. + save_ifs="$IFS"; IFS='~'
  26907. + for cmd in $cmds; do
  26908. + IFS="$save_ifs"
  26909. + $show "$cmd"
  26910. + $run eval "$cmd"
  26911. + if test $? != 0 && test "$rmforce" != yes; then
  26912. + exit_status=1
  26913. + fi
  26914. + done
  26915. + IFS="$save_ifs"
  26916. + fi
  26917. +
  26918. + if test -n "$old_library"; then
  26919. + # Do each command in the old_postuninstall commands.
  26920. + eval cmds=\"$old_postuninstall_cmds\"
  26921. + save_ifs="$IFS"; IFS='~'
  26922. + for cmd in $cmds; do
  26923. + IFS="$save_ifs"
  26924. + $show "$cmd"
  26925. + $run eval "$cmd"
  26926. + if test $? != 0 && test "$rmforce" != yes; then
  26927. + exit_status=1
  26928. + fi
  26929. + done
  26930. + IFS="$save_ifs"
  26931. + fi
  26932. + # FIXME: should reinstall the best remaining shared library.
  26933. + fi
  26934. + fi
  26935. + ;;
  26936. +
  26937. + *.lo)
  26938. + if test "$build_old_libs" = yes; then
  26939. + oldobj=`$echo "X$name" | $Xsed -e "$lo2o"`
  26940. + rmfiles="$rmfiles $dir/$oldobj"
  26941. + fi
  26942. + ;;
  26943. +
  26944. + *)
  26945. + # Do a test to see if this is a libtool program.
  26946. + if test $mode = clean &&
  26947. + (${SED} -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  26948. + relink_command=
  26949. + . $file
  26950. +
  26951. + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
  26952. + if test "$fast_install" = yes && test -n "$relink_command"; then
  26953. + rmfiles="$rmfiles $objdir/lt-$name"
  26954. + fi
  26955. + fi
  26956. + ;;
  26957. + esac
  26958. + $show "$rm $rmfiles"
  26959. + $run $rm $rmfiles || exit_status=1
  26960. + done
  26961. +
  26962. + # Try to remove the ${objdir}s in the directories where we deleted files
  26963. + for dir in $rmdirs; do
  26964. + if test -d "$dir"; then
  26965. + $show "rmdir $dir"
  26966. + $run rmdir $dir >/dev/null 2>&1
  26967. + fi
  26968. + done
  26969. +
  26970. + exit $exit_status
  26971. + ;;
  26972. +
  26973. + "")
  26974. + $echo "$modename: you must specify a MODE" 1>&2
  26975. + $echo "$generic_help" 1>&2
  26976. + exit 1
  26977. + ;;
  26978. + esac
  26979. +
  26980. + if test -z "$exec_cmd"; then
  26981. + $echo "$modename: invalid operation mode \`$mode'" 1>&2
  26982. + $echo "$generic_help" 1>&2
  26983. + exit 1
  26984. + fi
  26985. +fi # test -z "$show_help"
  26986. +
  26987. +if test -n "$exec_cmd"; then
  26988. + eval exec $exec_cmd
  26989. + exit 1
  26990. +fi
  26991. +
  26992. +# We need to display help for each of the modes.
  26993. +case $mode in
  26994. +"") $echo \
  26995. +"Usage: $modename [OPTION]... [MODE-ARG]...
  26996. +
  26997. +Provide generalized library-building support services.
  26998. +
  26999. + --config show all configuration variables
  27000. + --debug enable verbose shell tracing
  27001. +-n, --dry-run display commands without modifying any files
  27002. + --features display basic configuration information and exit
  27003. + --finish same as \`--mode=finish'
  27004. + --help display this help message and exit
  27005. + --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  27006. + --quiet same as \`--silent'
  27007. + --silent don't print informational messages
  27008. + --version print version information
  27009. +
  27010. +MODE must be one of the following:
  27011. +
  27012. + clean remove files from the build directory
  27013. + compile compile a source file into a libtool object
  27014. + execute automatically set library path, then run a program
  27015. + finish complete the installation of libtool libraries
  27016. + install install libraries or executables
  27017. + link create a library or an executable
  27018. + uninstall remove libraries from an installed directory
  27019. +
  27020. +MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  27021. +a more detailed description of MODE."
  27022. + exit 0
  27023. + ;;
  27024. +
  27025. +clean)
  27026. + $echo \
  27027. +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  27028. +
  27029. +Remove files from the build directory.
  27030. +
  27031. +RM is the name of the program to use to delete files associated with each FILE
  27032. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  27033. +to RM.
  27034. +
  27035. +If FILE is a libtool library, object or program, all the files associated
  27036. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  27037. + ;;
  27038. +
  27039. +compile)
  27040. + $echo \
  27041. +"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  27042. +
  27043. +Compile a source file into a libtool library object.
  27044. +
  27045. +This mode accepts the following additional options:
  27046. +
  27047. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  27048. + -prefer-pic try to building PIC objects only
  27049. + -prefer-non-pic try to building non-PIC objects only
  27050. + -static always build a \`.o' file suitable for static linking
  27051. +
  27052. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  27053. +from the given SOURCEFILE.
  27054. +
  27055. +The output file name is determined by removing the directory component from
  27056. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  27057. +library object suffix, \`.lo'."
  27058. + ;;
  27059. +
  27060. +execute)
  27061. + $echo \
  27062. +"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  27063. +
  27064. +Automatically set library path, then run a program.
  27065. +
  27066. +This mode accepts the following additional options:
  27067. +
  27068. + -dlopen FILE add the directory containing FILE to the library path
  27069. +
  27070. +This mode sets the library path environment variable according to \`-dlopen'
  27071. +flags.
  27072. +
  27073. +If any of the ARGS are libtool executable wrappers, then they are translated
  27074. +into their corresponding uninstalled binary, and any of their required library
  27075. +directories are added to the library path.
  27076. +
  27077. +Then, COMMAND is executed, with ARGS as arguments."
  27078. + ;;
  27079. +
  27080. +finish)
  27081. + $echo \
  27082. +"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  27083. +
  27084. +Complete the installation of libtool libraries.
  27085. +
  27086. +Each LIBDIR is a directory that contains libtool libraries.
  27087. +
  27088. +The commands that this mode executes may require superuser privileges. Use
  27089. +the \`--dry-run' option if you just want to see what would be executed."
  27090. + ;;
  27091. +
  27092. +install)
  27093. + $echo \
  27094. +"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  27095. +
  27096. +Install executables or libraries.
  27097. +
  27098. +INSTALL-COMMAND is the installation command. The first component should be
  27099. +either the \`install' or \`cp' program.
  27100. +
  27101. +The rest of the components are interpreted as arguments to that command (only
  27102. +BSD-compatible install options are recognized)."
  27103. + ;;
  27104. +
  27105. +link)
  27106. + $echo \
  27107. +"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  27108. +
  27109. +Link object files or libraries together to form another library, or to
  27110. +create an executable program.
  27111. +
  27112. +LINK-COMMAND is a command using the C compiler that you would use to create
  27113. +a program from several object files.
  27114. +
  27115. +The following components of LINK-COMMAND are treated specially:
  27116. +
  27117. + -all-static do not do any dynamic linking at all
  27118. + -avoid-version do not add a version suffix if possible
  27119. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  27120. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  27121. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  27122. + -export-symbols SYMFILE
  27123. + try to export only the symbols listed in SYMFILE
  27124. + -export-symbols-regex REGEX
  27125. + try to export only the symbols matching REGEX
  27126. + -LLIBDIR search LIBDIR for required installed libraries
  27127. + -lNAME OUTPUT-FILE requires the installed library libNAME
  27128. + -module build a library that can dlopened
  27129. + -no-fast-install disable the fast-install mode
  27130. + -no-install link a not-installable executable
  27131. + -no-undefined declare that a library does not refer to external symbols
  27132. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  27133. + -release RELEASE specify package release information
  27134. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  27135. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  27136. + -static do not do any dynamic linking of libtool libraries
  27137. + -version-info CURRENT[:REVISION[:AGE]]
  27138. + specify library version info [each variable defaults to 0]
  27139. +
  27140. +All other options (arguments beginning with \`-') are ignored.
  27141. +
  27142. +Every other argument is treated as a filename. Files ending in \`.la' are
  27143. +treated as uninstalled libtool libraries, other files are standard or library
  27144. +object files.
  27145. +
  27146. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  27147. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  27148. +required, except when creating a convenience library.
  27149. +
  27150. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  27151. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  27152. +
  27153. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  27154. +is created, otherwise an executable program is created."
  27155. + ;;
  27156. +
  27157. +uninstall)
  27158. + $echo \
  27159. +"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  27160. +
  27161. +Remove libraries from an installation directory.
  27162. +
  27163. +RM is the name of the program to use to delete files associated with each FILE
  27164. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  27165. +to RM.
  27166. +
  27167. +If FILE is a libtool library, all the files associated with it are deleted.
  27168. +Otherwise, only FILE itself is deleted using RM."
  27169. + ;;
  27170. +
  27171. +*)
  27172. + $echo "$modename: invalid operation mode \`$mode'" 1>&2
  27173. + $echo "$help" 1>&2
  27174. + exit 1
  27175. + ;;
  27176. +esac
  27177. +
  27178. +echo
  27179. +$echo "Try \`$modename --help' for more information about other modes."
  27180. +
  27181. +exit 0
  27182. +
  27183. +# Local Variables:
  27184. +# mode:shell-script
  27185. +# sh-indentation:2
  27186. +# End:
  27187. diff -ruN libnet-1.0.2a-orig/missing libnet-1.0.2a-7/missing
  27188. --- libnet-1.0.2a-orig/missing 1970-01-01 01:00:00.000000000 +0100
  27189. +++ libnet-1.0.2a-7/missing 2005-03-08 03:53:26.000000000 +0100
  27190. @@ -0,0 +1,336 @@
  27191. +#! /bin/sh
  27192. +# Common stub for a few missing GNU programs while installing.
  27193. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
  27194. +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  27195. +
  27196. +# This program is free software; you can redistribute it and/or modify
  27197. +# it under the terms of the GNU General Public License as published by
  27198. +# the Free Software Foundation; either version 2, or (at your option)
  27199. +# any later version.
  27200. +
  27201. +# This program is distributed in the hope that it will be useful,
  27202. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  27203. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  27204. +# GNU General Public License for more details.
  27205. +
  27206. +# You should have received a copy of the GNU General Public License
  27207. +# along with this program; if not, write to the Free Software
  27208. +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  27209. +# 02111-1307, USA.
  27210. +
  27211. +# As a special exception to the GNU General Public License, if you
  27212. +# distribute this file as part of a program that contains a
  27213. +# configuration script generated by Autoconf, you may include it under
  27214. +# the same distribution terms that you use for the rest of that program.
  27215. +
  27216. +if test $# -eq 0; then
  27217. + echo 1>&2 "Try \`$0 --help' for more information"
  27218. + exit 1
  27219. +fi
  27220. +
  27221. +run=:
  27222. +
  27223. +# In the cases where this matters, `missing' is being run in the
  27224. +# srcdir already.
  27225. +if test -f configure.ac; then
  27226. + configure_ac=configure.ac
  27227. +else
  27228. + configure_ac=configure.in
  27229. +fi
  27230. +
  27231. +case "$1" in
  27232. +--run)
  27233. + # Try to run requested program, and just exit if it succeeds.
  27234. + run=
  27235. + shift
  27236. + "$@" && exit 0
  27237. + ;;
  27238. +esac
  27239. +
  27240. +# If it does not exist, or fails to run (possibly an outdated version),
  27241. +# try to emulate it.
  27242. +case "$1" in
  27243. +
  27244. + -h|--h|--he|--hel|--help)
  27245. + echo "\
  27246. +$0 [OPTION]... PROGRAM [ARGUMENT]...
  27247. +
  27248. +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
  27249. +error status if there is no known handling for PROGRAM.
  27250. +
  27251. +Options:
  27252. + -h, --help display this help and exit
  27253. + -v, --version output version information and exit
  27254. + --run try to run the given command, and emulate it if it fails
  27255. +
  27256. +Supported PROGRAM values:
  27257. + aclocal touch file \`aclocal.m4'
  27258. + autoconf touch file \`configure'
  27259. + autoheader touch file \`config.h.in'
  27260. + automake touch all \`Makefile.in' files
  27261. + bison create \`y.tab.[ch]', if possible, from existing .[ch]
  27262. + flex create \`lex.yy.c', if possible, from existing .c
  27263. + help2man touch the output file
  27264. + lex create \`lex.yy.c', if possible, from existing .c
  27265. + makeinfo touch the output file
  27266. + tar try tar, gnutar, gtar, then tar without non-portable flags
  27267. + yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
  27268. + ;;
  27269. +
  27270. + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
  27271. + echo "missing 0.4 - GNU automake"
  27272. + ;;
  27273. +
  27274. + -*)
  27275. + echo 1>&2 "$0: Unknown \`$1' option"
  27276. + echo 1>&2 "Try \`$0 --help' for more information"
  27277. + exit 1
  27278. + ;;
  27279. +
  27280. + aclocal*)
  27281. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  27282. + # We have it, but it failed.
  27283. + exit 1
  27284. + fi
  27285. +
  27286. + echo 1>&2 "\
  27287. +WARNING: \`$1' is missing on your system. You should only need it if
  27288. + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
  27289. + to install the \`Automake' and \`Perl' packages. Grab them from
  27290. + any GNU archive site."
  27291. + touch aclocal.m4
  27292. + ;;
  27293. +
  27294. + autoconf)
  27295. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  27296. + # We have it, but it failed.
  27297. + exit 1
  27298. + fi
  27299. +
  27300. + echo 1>&2 "\
  27301. +WARNING: \`$1' is missing on your system. You should only need it if
  27302. + you modified \`${configure_ac}'. You might want to install the
  27303. + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
  27304. + archive site."
  27305. + touch configure
  27306. + ;;
  27307. +
  27308. + autoheader)
  27309. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  27310. + # We have it, but it failed.
  27311. + exit 1
  27312. + fi
  27313. +
  27314. + echo 1>&2 "\
  27315. +WARNING: \`$1' is missing on your system. You should only need it if
  27316. + you modified \`acconfig.h' or \`${configure_ac}'. You might want
  27317. + to install the \`Autoconf' and \`GNU m4' packages. Grab them
  27318. + from any GNU archive site."
  27319. + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
  27320. + test -z "$files" && files="config.h"
  27321. + touch_files=
  27322. + for f in $files; do
  27323. + case "$f" in
  27324. + *:*) touch_files="$touch_files "`echo "$f" |
  27325. + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  27326. + *) touch_files="$touch_files $f.in";;
  27327. + esac
  27328. + done
  27329. + touch $touch_files
  27330. + ;;
  27331. +
  27332. + automake*)
  27333. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  27334. + # We have it, but it failed.
  27335. + exit 1
  27336. + fi
  27337. +
  27338. + echo 1>&2 "\
  27339. +WARNING: \`$1' is missing on your system. You should only need it if
  27340. + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
  27341. + You might want to install the \`Automake' and \`Perl' packages.
  27342. + Grab them from any GNU archive site."
  27343. + find . -type f -name Makefile.am -print |
  27344. + sed 's/\.am$/.in/' |
  27345. + while read f; do touch "$f"; done
  27346. + ;;
  27347. +
  27348. + autom4te)
  27349. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  27350. + # We have it, but it failed.
  27351. + exit 1
  27352. + fi
  27353. +
  27354. + echo 1>&2 "\
  27355. +WARNING: \`$1' is needed, and you do not seem to have it handy on your
  27356. + system. You might have modified some files without having the
  27357. + proper tools for further handling them.
  27358. + You can get \`$1' as part of \`Autoconf' from any GNU
  27359. + archive site."
  27360. +
  27361. + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  27362. + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  27363. + if test -f "$file"; then
  27364. + touch $file
  27365. + else
  27366. + test -z "$file" || exec >$file
  27367. + echo "#! /bin/sh"
  27368. + echo "# Created by GNU Automake missing as a replacement of"
  27369. + echo "# $ $@"
  27370. + echo "exit 0"
  27371. + chmod +x $file
  27372. + exit 1
  27373. + fi
  27374. + ;;
  27375. +
  27376. + bison|yacc)
  27377. + echo 1>&2 "\
  27378. +WARNING: \`$1' is missing on your system. You should only need it if
  27379. + you modified a \`.y' file. You may need the \`Bison' package
  27380. + in order for those modifications to take effect. You can get
  27381. + \`Bison' from any GNU archive site."
  27382. + rm -f y.tab.c y.tab.h
  27383. + if [ $# -ne 1 ]; then
  27384. + eval LASTARG="\${$#}"
  27385. + case "$LASTARG" in
  27386. + *.y)
  27387. + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  27388. + if [ -f "$SRCFILE" ]; then
  27389. + cp "$SRCFILE" y.tab.c
  27390. + fi
  27391. + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  27392. + if [ -f "$SRCFILE" ]; then
  27393. + cp "$SRCFILE" y.tab.h
  27394. + fi
  27395. + ;;
  27396. + esac
  27397. + fi
  27398. + if [ ! -f y.tab.h ]; then
  27399. + echo >y.tab.h
  27400. + fi
  27401. + if [ ! -f y.tab.c ]; then
  27402. + echo 'main() { return 0; }' >y.tab.c
  27403. + fi
  27404. + ;;
  27405. +
  27406. + lex|flex)
  27407. + echo 1>&2 "\
  27408. +WARNING: \`$1' is missing on your system. You should only need it if
  27409. + you modified a \`.l' file. You may need the \`Flex' package
  27410. + in order for those modifications to take effect. You can get
  27411. + \`Flex' from any GNU archive site."
  27412. + rm -f lex.yy.c
  27413. + if [ $# -ne 1 ]; then
  27414. + eval LASTARG="\${$#}"
  27415. + case "$LASTARG" in
  27416. + *.l)
  27417. + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  27418. + if [ -f "$SRCFILE" ]; then
  27419. + cp "$SRCFILE" lex.yy.c
  27420. + fi
  27421. + ;;
  27422. + esac
  27423. + fi
  27424. + if [ ! -f lex.yy.c ]; then
  27425. + echo 'main() { return 0; }' >lex.yy.c
  27426. + fi
  27427. + ;;
  27428. +
  27429. + help2man)
  27430. + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  27431. + # We have it, but it failed.
  27432. + exit 1
  27433. + fi
  27434. +
  27435. + echo 1>&2 "\
  27436. +WARNING: \`$1' is missing on your system. You should only need it if
  27437. + you modified a dependency of a manual page. You may need the
  27438. + \`Help2man' package in order for those modifications to take
  27439. + effect. You can get \`Help2man' from any GNU archive site."
  27440. +
  27441. + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  27442. + if test -z "$file"; then
  27443. + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  27444. + fi
  27445. + if [ -f "$file" ]; then
  27446. + touch $file
  27447. + else
  27448. + test -z "$file" || exec >$file
  27449. + echo ".ab help2man is required to generate this page"
  27450. + exit 1
  27451. + fi
  27452. + ;;
  27453. +
  27454. + makeinfo)
  27455. + if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
  27456. + # We have makeinfo, but it failed.
  27457. + exit 1
  27458. + fi
  27459. +
  27460. + echo 1>&2 "\
  27461. +WARNING: \`$1' is missing on your system. You should only need it if
  27462. + you modified a \`.texi' or \`.texinfo' file, or any other file
  27463. + indirectly affecting the aspect of the manual. The spurious
  27464. + call might also be the consequence of using a buggy \`make' (AIX,
  27465. + DU, IRIX). You might want to install the \`Texinfo' package or
  27466. + the \`GNU make' package. Grab either from any GNU archive site."
  27467. + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  27468. + if test -z "$file"; then
  27469. + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  27470. + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
  27471. + fi
  27472. + touch $file
  27473. + ;;
  27474. +
  27475. + tar)
  27476. + shift
  27477. + if test -n "$run"; then
  27478. + echo 1>&2 "ERROR: \`tar' requires --run"
  27479. + exit 1
  27480. + fi
  27481. +
  27482. + # We have already tried tar in the generic part.
  27483. + # Look for gnutar/gtar before invocation to avoid ugly error
  27484. + # messages.
  27485. + if (gnutar --version > /dev/null 2>&1); then
  27486. + gnutar "$@" && exit 0
  27487. + fi
  27488. + if (gtar --version > /dev/null 2>&1); then
  27489. + gtar "$@" && exit 0
  27490. + fi
  27491. + firstarg="$1"
  27492. + if shift; then
  27493. + case "$firstarg" in
  27494. + *o*)
  27495. + firstarg=`echo "$firstarg" | sed s/o//`
  27496. + tar "$firstarg" "$@" && exit 0
  27497. + ;;
  27498. + esac
  27499. + case "$firstarg" in
  27500. + *h*)
  27501. + firstarg=`echo "$firstarg" | sed s/h//`
  27502. + tar "$firstarg" "$@" && exit 0
  27503. + ;;
  27504. + esac
  27505. + fi
  27506. +
  27507. + echo 1>&2 "\
  27508. +WARNING: I can't seem to be able to run \`tar' with the given arguments.
  27509. + You may want to install GNU tar or Free paxutils, or check the
  27510. + command line arguments."
  27511. + exit 1
  27512. + ;;
  27513. +
  27514. + *)
  27515. + echo 1>&2 "\
  27516. +WARNING: \`$1' is needed, and you do not seem to have it handy on your
  27517. + system. You might have modified some files without having the
  27518. + proper tools for further handling them. Check the \`README' file,
  27519. + it often tells you about the needed prerequisites for installing
  27520. + this package. You may also peek at any GNU archive site, in case
  27521. + some other package would contain this missing \`$1' program."
  27522. + exit 1
  27523. + ;;
  27524. +esac
  27525. +
  27526. +exit 0
  27527. diff -ruN libnet-1.0.2a-orig/mkinstalldirs libnet-1.0.2a-7/mkinstalldirs
  27528. --- libnet-1.0.2a-orig/mkinstalldirs 1970-01-01 01:00:00.000000000 +0100
  27529. +++ libnet-1.0.2a-7/mkinstalldirs 2005-03-08 03:53:26.000000000 +0100
  27530. @@ -0,0 +1,111 @@
  27531. +#! /bin/sh
  27532. +# mkinstalldirs --- make directory hierarchy
  27533. +# Author: Noah Friedman <friedman@prep.ai.mit.edu>
  27534. +# Created: 1993-05-16
  27535. +# Public domain
  27536. +
  27537. +errstatus=0
  27538. +dirmode=""
  27539. +
  27540. +usage="\
  27541. +Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
  27542. +
  27543. +# process command line arguments
  27544. +while test $# -gt 0 ; do
  27545. + case $1 in
  27546. + -h | --help | --h*) # -h for help
  27547. + echo "$usage" 1>&2
  27548. + exit 0
  27549. + ;;
  27550. + -m) # -m PERM arg
  27551. + shift
  27552. + test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
  27553. + dirmode=$1
  27554. + shift
  27555. + ;;
  27556. + --) # stop option processing
  27557. + shift
  27558. + break
  27559. + ;;
  27560. + -*) # unknown option
  27561. + echo "$usage" 1>&2
  27562. + exit 1
  27563. + ;;
  27564. + *) # first non-opt arg
  27565. + break
  27566. + ;;
  27567. + esac
  27568. +done
  27569. +
  27570. +for file
  27571. +do
  27572. + if test -d "$file"; then
  27573. + shift
  27574. + else
  27575. + break
  27576. + fi
  27577. +done
  27578. +
  27579. +case $# in
  27580. + 0) exit 0 ;;
  27581. +esac
  27582. +
  27583. +case $dirmode in
  27584. + '')
  27585. + if mkdir -p -- . 2>/dev/null; then
  27586. + echo "mkdir -p -- $*"
  27587. + exec mkdir -p -- "$@"
  27588. + fi
  27589. + ;;
  27590. + *)
  27591. + if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
  27592. + echo "mkdir -m $dirmode -p -- $*"
  27593. + exec mkdir -m "$dirmode" -p -- "$@"
  27594. + fi
  27595. + ;;
  27596. +esac
  27597. +
  27598. +for file
  27599. +do
  27600. + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
  27601. + shift
  27602. +
  27603. + pathcomp=
  27604. + for d
  27605. + do
  27606. + pathcomp="$pathcomp$d"
  27607. + case $pathcomp in
  27608. + -*) pathcomp=./$pathcomp ;;
  27609. + esac
  27610. +
  27611. + if test ! -d "$pathcomp"; then
  27612. + echo "mkdir $pathcomp"
  27613. +
  27614. + mkdir "$pathcomp" || lasterr=$?
  27615. +
  27616. + if test ! -d "$pathcomp"; then
  27617. + errstatus=$lasterr
  27618. + else
  27619. + if test ! -z "$dirmode"; then
  27620. + echo "chmod $dirmode $pathcomp"
  27621. + lasterr=""
  27622. + chmod "$dirmode" "$pathcomp" || lasterr=$?
  27623. +
  27624. + if test ! -z "$lasterr"; then
  27625. + errstatus=$lasterr
  27626. + fi
  27627. + fi
  27628. + fi
  27629. + fi
  27630. +
  27631. + pathcomp="$pathcomp/"
  27632. + done
  27633. +done
  27634. +
  27635. +exit $errstatus
  27636. +
  27637. +# Local Variables:
  27638. +# mode: shell-script
  27639. +# sh-indentation: 2
  27640. +# End:
  27641. +# mkinstalldirs ends here
  27642. diff -ruN libnet-1.0.2a-orig/src/Makefile.am libnet-1.0.2a-7/src/Makefile.am
  27643. --- libnet-1.0.2a-orig/src/Makefile.am 1970-01-01 01:00:00.000000000 +0100
  27644. +++ libnet-1.0.2a-7/src/Makefile.am 2005-03-08 03:53:26.000000000 +0100
  27645. @@ -0,0 +1,56 @@
  27646. +include $(top_srcdir)/Makefile.am.common
  27647. +
  27648. +lib_LTLIBRARIES = libnet.la
  27649. +
  27650. +libnet_la_SOURCES = \
  27651. + libnet_resolve.c \
  27652. + libnet_socket.c \
  27653. + libnet_checksum.c \
  27654. + libnet_prand.c \
  27655. + libnet_version.c \
  27656. + libnet_write_ip.c \
  27657. + libnet_insert_ipo.c \
  27658. + libnet_insert_tcpo.c \
  27659. + libnet_error.c \
  27660. + libnet_link_@LL_INT_TYPE@.c \
  27661. + libnet_packet_mem.c \
  27662. + libnet_build_ip.c \
  27663. + libnet_build_tcp.c \
  27664. + libnet_build_udp.c \
  27665. + libnet_build_arp.c \
  27666. + libnet_build_ethernet.c \
  27667. + libnet_build_icmp.c \
  27668. + libnet_build_igmp.c \
  27669. + libnet_build_dns.c \
  27670. + libnet_build_snmp.c \
  27671. + libnet_build_rip.c \
  27672. + libnet_build_ospf.c \
  27673. + libnet_build_vrrp.c \
  27674. + libnet_asn1.c \
  27675. + libnet_hex_dump.c \
  27676. + libnet_if_addr.c \
  27677. + libnet_port_list.c
  27678. +
  27679. +libnet_la_LIBADD = @LTLIBOBJS@
  27680. +
  27681. +# Here are a set of rules to help you update your library version
  27682. +# information:
  27683. +#
  27684. +# 1. If the library source code has changed at all since the last
  27685. +# update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
  27686. +#
  27687. +# 2. If any interfaces have been added, removed, or changed since the
  27688. +# last update, increment CURRENT, and set REVISION to 0.
  27689. +#
  27690. +# 3. If any interfaces have been added since the last public release,
  27691. +# then increment AGE.
  27692. +#
  27693. +# 4. If any interfaces have been removed since the last public release,
  27694. +# then set AGE to 0.
  27695. +libnet_la_LDFLAGS = -version-info 0:0:0 # CURRENT[:REVISION[:AGE]]
  27696. +
  27697. +install-data-hook:
  27698. + ln -f -s libnet.a $(DESTDIR)$(libdir)/libwrite.a
  27699. +
  27700. +uninstall-hook:
  27701. + rm -f $(DESTDIR)$(libdir)/libwrite.a
  27702. diff -ruN libnet-1.0.2a-orig/src/Makefile.in libnet-1.0.2a-7/src/Makefile.in
  27703. --- libnet-1.0.2a-orig/src/Makefile.in 1970-01-01 01:00:00.000000000 +0100
  27704. +++ libnet-1.0.2a-7/src/Makefile.in 2005-03-08 03:53:26.000000000 +0100
  27705. @@ -0,0 +1,502 @@
  27706. +# Makefile.in generated by automake 1.8.5 from Makefile.am.
  27707. +# @configure_input@
  27708. +
  27709. +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  27710. +# 2003, 2004 Free Software Foundation, Inc.
  27711. +# This Makefile.in is free software; the Free Software Foundation
  27712. +# gives unlimited permission to copy and/or distribute it,
  27713. +# with or without modifications, as long as this notice is preserved.
  27714. +
  27715. +# This program is distributed in the hope that it will be useful,
  27716. +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
  27717. +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  27718. +# PARTICULAR PURPOSE.
  27719. +
  27720. +@SET_MAKE@
  27721. +
  27722. +SOURCES = $(libnet_la_SOURCES)
  27723. +
  27724. +srcdir = @srcdir@
  27725. +top_srcdir = @top_srcdir@
  27726. +VPATH = @srcdir@
  27727. +pkgdatadir = $(datadir)/@PACKAGE@
  27728. +pkglibdir = $(libdir)/@PACKAGE@
  27729. +pkgincludedir = $(includedir)/@PACKAGE@
  27730. +top_builddir = ..
  27731. +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  27732. +INSTALL = @INSTALL@
  27733. +install_sh_DATA = $(install_sh) -c -m 644
  27734. +install_sh_PROGRAM = $(install_sh) -c
  27735. +install_sh_SCRIPT = $(install_sh) -c
  27736. +INSTALL_HEADER = $(INSTALL_DATA)
  27737. +transform = $(program_transform_name)
  27738. +NORMAL_INSTALL = :
  27739. +PRE_INSTALL = :
  27740. +POST_INSTALL = :
  27741. +NORMAL_UNINSTALL = :
  27742. +PRE_UNINSTALL = :
  27743. +POST_UNINSTALL = :
  27744. +build_triplet = @build@
  27745. +host_triplet = @host@
  27746. +target_triplet = @target@
  27747. +DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
  27748. + $(top_srcdir)/Makefile.am.common
  27749. +subdir = src
  27750. +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  27751. +am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
  27752. + $(top_srcdir)/configure.in
  27753. +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  27754. + $(ACLOCAL_M4)
  27755. +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  27756. +CONFIG_HEADER = $(top_builddir)/include/config.h
  27757. +CONFIG_CLEAN_FILES =
  27758. +am__installdirs = "$(DESTDIR)$(libdir)"
  27759. +libLTLIBRARIES_INSTALL = $(INSTALL)
  27760. +LTLIBRARIES = $(lib_LTLIBRARIES)
  27761. +libnet_la_DEPENDENCIES = @LTLIBOBJS@
  27762. +am_libnet_la_OBJECTS = libnet_resolve.lo libnet_socket.lo \
  27763. + libnet_checksum.lo libnet_prand.lo libnet_version.lo \
  27764. + libnet_write_ip.lo libnet_insert_ipo.lo libnet_insert_tcpo.lo \
  27765. + libnet_error.lo libnet_link_@LL_INT_TYPE@.lo \
  27766. + libnet_packet_mem.lo libnet_build_ip.lo libnet_build_tcp.lo \
  27767. + libnet_build_udp.lo libnet_build_arp.lo \
  27768. + libnet_build_ethernet.lo libnet_build_icmp.lo \
  27769. + libnet_build_igmp.lo libnet_build_dns.lo libnet_build_snmp.lo \
  27770. + libnet_build_rip.lo libnet_build_ospf.lo libnet_build_vrrp.lo \
  27771. + libnet_asn1.lo libnet_hex_dump.lo libnet_if_addr.lo \
  27772. + libnet_port_list.lo
  27773. +libnet_la_OBJECTS = $(am_libnet_la_OBJECTS)
  27774. +DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include
  27775. +depcomp =
  27776. +am__depfiles_maybe =
  27777. +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  27778. + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  27779. +LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) \
  27780. + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  27781. + $(AM_CFLAGS) $(CFLAGS)
  27782. +CCLD = $(CC)
  27783. +LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  27784. + $(AM_LDFLAGS) $(LDFLAGS) -o $@
  27785. +SOURCES = $(libnet_la_SOURCES)
  27786. +DIST_SOURCES = $(libnet_la_SOURCES)
  27787. +ETAGS = etags
  27788. +CTAGS = ctags
  27789. +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  27790. +ACLOCAL = @ACLOCAL@
  27791. +ADDITIONAL_LIBS = @ADDITIONAL_LIBS@
  27792. +AMDEP_FALSE = @AMDEP_FALSE@
  27793. +AMDEP_TRUE = @AMDEP_TRUE@
  27794. +AMTAR = @AMTAR@
  27795. +AR = @AR@
  27796. +AUTOCONF = @AUTOCONF@
  27797. +AUTOHEADER = @AUTOHEADER@
  27798. +AUTOMAKE = @AUTOMAKE@
  27799. +AWK = @AWK@
  27800. +BIN_PREFIX = @BIN_PREFIX@
  27801. +CC = @CC@
  27802. +CCDEPMODE = @CCDEPMODE@
  27803. +CFLAGS = @CFLAGS@
  27804. +CPP = @CPP@
  27805. +CPPFLAGS = @CPPFLAGS@
  27806. +CYGPATH_W = @CYGPATH_W@
  27807. +DEFS = @DEFS@
  27808. +DEPDIR = @DEPDIR@
  27809. +ECHO = @ECHO@
  27810. +ECHO_C = @ECHO_C@
  27811. +ECHO_N = @ECHO_N@
  27812. +ECHO_T = @ECHO_T@
  27813. +EGREP = @EGREP@
  27814. +EXEEXT = @EXEEXT@
  27815. +INC_PREFIX = @INC_PREFIX@
  27816. +INSTALL_DATA = @INSTALL_DATA@
  27817. +INSTALL_PROGRAM = @INSTALL_PROGRAM@
  27818. +INSTALL_SCRIPT = @INSTALL_SCRIPT@
  27819. +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  27820. +LDFLAGS = @LDFLAGS@
  27821. +LIBNET_CONFIG_CFLAGS = @LIBNET_CONFIG_CFLAGS@
  27822. +LIBNET_CONFIG_DEFINES = @LIBNET_CONFIG_DEFINES@
  27823. +LIBNET_CONFIG_LIBS = @LIBNET_CONFIG_LIBS@
  27824. +LIBOBJS = @LIBOBJS@
  27825. +LIBS = @LIBS@
  27826. +LIBTOOL = @LIBTOOL@
  27827. +LIB_PREFIX = @LIB_PREFIX@
  27828. +LL_INT_TYPE = @LL_INT_TYPE@
  27829. +LL_INT_TYPE_UC = @LL_INT_TYPE_UC@
  27830. +LN = @LN@
  27831. +LN_S = @LN_S@
  27832. +LTLIBOBJS = @LTLIBOBJS@
  27833. +MAKEINFO = @MAKEINFO@
  27834. +MAN_PREFIX = @MAN_PREFIX@
  27835. +OBJEXT = @OBJEXT@
  27836. +PACKAGE = @PACKAGE@
  27837. +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  27838. +PACKAGE_NAME = @PACKAGE_NAME@
  27839. +PACKAGE_STRING = @PACKAGE_STRING@
  27840. +PACKAGE_TARNAME = @PACKAGE_TARNAME@
  27841. +PACKAGE_VERSION = @PACKAGE_VERSION@
  27842. +PATH_SEPARATOR = @PATH_SEPARATOR@
  27843. +RANLIB = @RANLIB@
  27844. +SET_MAKE = @SET_MAKE@
  27845. +SHELL = @SHELL@
  27846. +STRIP = @STRIP@
  27847. +VERSION = @VERSION@
  27848. +ac_ct_CC = @ac_ct_CC@
  27849. +ac_ct_RANLIB = @ac_ct_RANLIB@
  27850. +ac_ct_STRIP = @ac_ct_STRIP@
  27851. +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  27852. +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  27853. +am__include = @am__include@
  27854. +am__leading_dot = @am__leading_dot@
  27855. +am__quote = @am__quote@
  27856. +bindir = @bindir@
  27857. +build = @build@
  27858. +build_alias = @build_alias@
  27859. +build_cpu = @build_cpu@
  27860. +build_os = @build_os@
  27861. +build_vendor = @build_vendor@
  27862. +datadir = @datadir@
  27863. +exec_prefix = @exec_prefix@
  27864. +host = @host@
  27865. +host_alias = @host_alias@
  27866. +host_cpu = @host_cpu@
  27867. +host_os = @host_os@
  27868. +host_vendor = @host_vendor@
  27869. +includedir = @includedir@
  27870. +infodir = @infodir@
  27871. +install_sh = @install_sh@
  27872. +libdir = @libdir@
  27873. +libexecdir = @libexecdir@
  27874. +localstatedir = @localstatedir@
  27875. +mandir = @mandir@
  27876. +mkdir_p = @mkdir_p@
  27877. +oldincludedir = @oldincludedir@
  27878. +prefix = @prefix@
  27879. +program_transform_name = @program_transform_name@
  27880. +sbindir = @sbindir@
  27881. +sharedstatedir = @sharedstatedir@
  27882. +sysconfdir = @sysconfdir@
  27883. +target = @target@
  27884. +target_alias = @target_alias@
  27885. +target_cpu = @target_cpu@
  27886. +target_os = @target_os@
  27887. +target_vendor = @target_vendor@
  27888. +AUTOMAKE_OPTIONS = foreign no-dependencies
  27889. +DISTCLEANFILES = *~
  27890. +lib_LTLIBRARIES = libnet.la
  27891. +libnet_la_SOURCES = \
  27892. + libnet_resolve.c \
  27893. + libnet_socket.c \
  27894. + libnet_checksum.c \
  27895. + libnet_prand.c \
  27896. + libnet_version.c \
  27897. + libnet_write_ip.c \
  27898. + libnet_insert_ipo.c \
  27899. + libnet_insert_tcpo.c \
  27900. + libnet_error.c \
  27901. + libnet_link_@LL_INT_TYPE@.c \
  27902. + libnet_packet_mem.c \
  27903. + libnet_build_ip.c \
  27904. + libnet_build_tcp.c \
  27905. + libnet_build_udp.c \
  27906. + libnet_build_arp.c \
  27907. + libnet_build_ethernet.c \
  27908. + libnet_build_icmp.c \
  27909. + libnet_build_igmp.c \
  27910. + libnet_build_dns.c \
  27911. + libnet_build_snmp.c \
  27912. + libnet_build_rip.c \
  27913. + libnet_build_ospf.c \
  27914. + libnet_build_vrrp.c \
  27915. + libnet_asn1.c \
  27916. + libnet_hex_dump.c \
  27917. + libnet_if_addr.c \
  27918. + libnet_port_list.c
  27919. +
  27920. +libnet_la_LIBADD = @LTLIBOBJS@
  27921. +
  27922. +# Here are a set of rules to help you update your library version
  27923. +# information:
  27924. +#
  27925. +# 1. If the library source code has changed at all since the last
  27926. +# update, then increment REVISION (`C:R:A' becomes `C:r+1:A').
  27927. +#
  27928. +# 2. If any interfaces have been added, removed, or changed since the
  27929. +# last update, increment CURRENT, and set REVISION to 0.
  27930. +#
  27931. +# 3. If any interfaces have been added since the last public release,
  27932. +# then increment AGE.
  27933. +#
  27934. +# 4. If any interfaces have been removed since the last public release,
  27935. +# then set AGE to 0.
  27936. +libnet_la_LDFLAGS = -version-info 0:0:0 # CURRENT[:REVISION[:AGE]]
  27937. +all: all-am
  27938. +
  27939. +.SUFFIXES:
  27940. +.SUFFIXES: .c .lo .o .obj
  27941. +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(top_srcdir)/Makefile.am.common $(am__configure_deps)
  27942. + @for dep in $?; do \
  27943. + case '$(am__configure_deps)' in \
  27944. + *$$dep*) \
  27945. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  27946. + && exit 0; \
  27947. + exit 1;; \
  27948. + esac; \
  27949. + done; \
  27950. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \
  27951. + cd $(top_srcdir) && \
  27952. + $(AUTOMAKE) --foreign src/Makefile
  27953. +.PRECIOUS: Makefile
  27954. +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  27955. + @case '$?' in \
  27956. + *config.status*) \
  27957. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
  27958. + *) \
  27959. + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
  27960. + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
  27961. + esac;
  27962. +
  27963. +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  27964. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  27965. +
  27966. +$(top_srcdir)/configure: $(am__configure_deps)
  27967. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  27968. +$(ACLOCAL_M4): $(am__aclocal_m4_deps)
  27969. + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  27970. +install-libLTLIBRARIES: $(lib_LTLIBRARIES)
  27971. + @$(NORMAL_INSTALL)
  27972. + test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
  27973. + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  27974. + if test -f $$p; then \
  27975. + f="`echo $$p | sed -e 's|^.*/||'`"; \
  27976. + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
  27977. + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
  27978. + else :; fi; \
  27979. + done
  27980. +
  27981. +uninstall-libLTLIBRARIES:
  27982. + @$(NORMAL_UNINSTALL)
  27983. + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  27984. + p="`echo $$p | sed -e 's|^.*/||'`"; \
  27985. + echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
  27986. + $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
  27987. + done
  27988. +
  27989. +clean-libLTLIBRARIES:
  27990. + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
  27991. + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
  27992. + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
  27993. + test "$$dir" != "$$p" || dir=.; \
  27994. + echo "rm -f \"$${dir}/so_locations\""; \
  27995. + rm -f "$${dir}/so_locations"; \
  27996. + done
  27997. +libnet.la: $(libnet_la_OBJECTS) $(libnet_la_DEPENDENCIES)
  27998. + $(LINK) -rpath $(libdir) $(libnet_la_LDFLAGS) $(libnet_la_OBJECTS) $(libnet_la_LIBADD) $(LIBS)
  27999. +
  28000. +mostlyclean-compile:
  28001. + -rm -f *.$(OBJEXT)
  28002. +
  28003. +distclean-compile:
  28004. + -rm -f *.tab.c
  28005. +
  28006. +.c.o:
  28007. + $(COMPILE) -c $<
  28008. +
  28009. +.c.obj:
  28010. + $(COMPILE) -c `$(CYGPATH_W) '$<'`
  28011. +
  28012. +.c.lo:
  28013. + $(LTCOMPILE) -c -o $@ $<
  28014. +
  28015. +mostlyclean-libtool:
  28016. + -rm -f *.lo
  28017. +
  28018. +clean-libtool:
  28019. + -rm -rf .libs _libs
  28020. +
  28021. +distclean-libtool:
  28022. + -rm -f libtool
  28023. +uninstall-info-am:
  28024. +
  28025. +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  28026. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  28027. + unique=`for i in $$list; do \
  28028. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  28029. + done | \
  28030. + $(AWK) ' { files[$$0] = 1; } \
  28031. + END { for (i in files) print i; }'`; \
  28032. + mkid -fID $$unique
  28033. +tags: TAGS
  28034. +
  28035. +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  28036. + $(TAGS_FILES) $(LISP)
  28037. + tags=; \
  28038. + here=`pwd`; \
  28039. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  28040. + unique=`for i in $$list; do \
  28041. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  28042. + done | \
  28043. + $(AWK) ' { files[$$0] = 1; } \
  28044. + END { for (i in files) print i; }'`; \
  28045. + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  28046. + test -n "$$unique" || unique=$$empty_fix; \
  28047. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  28048. + $$tags $$unique; \
  28049. + fi
  28050. +ctags: CTAGS
  28051. +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  28052. + $(TAGS_FILES) $(LISP)
  28053. + tags=; \
  28054. + here=`pwd`; \
  28055. + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  28056. + unique=`for i in $$list; do \
  28057. + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  28058. + done | \
  28059. + $(AWK) ' { files[$$0] = 1; } \
  28060. + END { for (i in files) print i; }'`; \
  28061. + test -z "$(CTAGS_ARGS)$$tags$$unique" \
  28062. + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  28063. + $$tags $$unique
  28064. +
  28065. +GTAGS:
  28066. + here=`$(am__cd) $(top_builddir) && pwd` \
  28067. + && cd $(top_srcdir) \
  28068. + && gtags -i $(GTAGS_ARGS) $$here
  28069. +
  28070. +distclean-tags:
  28071. + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  28072. +
  28073. +distdir: $(DISTFILES)
  28074. + $(mkdir_p) $(distdir)/..
  28075. + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  28076. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  28077. + list='$(DISTFILES)'; for file in $$list; do \
  28078. + case $$file in \
  28079. + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  28080. + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  28081. + esac; \
  28082. + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  28083. + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  28084. + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  28085. + dir="/$$dir"; \
  28086. + $(mkdir_p) "$(distdir)$$dir"; \
  28087. + else \
  28088. + dir=''; \
  28089. + fi; \
  28090. + if test -d $$d/$$file; then \
  28091. + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  28092. + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  28093. + fi; \
  28094. + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  28095. + else \
  28096. + test -f $(distdir)/$$file \
  28097. + || cp -p $$d/$$file $(distdir)/$$file \
  28098. + || exit 1; \
  28099. + fi; \
  28100. + done
  28101. +check-am: all-am
  28102. +check: check-am
  28103. +all-am: Makefile $(LTLIBRARIES)
  28104. +installdirs:
  28105. + for dir in "$(DESTDIR)$(libdir)"; do \
  28106. + test -z "$$dir" || $(mkdir_p) "$$dir"; \
  28107. + done
  28108. +install: install-am
  28109. +install-exec: install-exec-am
  28110. +install-data: install-data-am
  28111. +uninstall: uninstall-am
  28112. +
  28113. +install-am: all-am
  28114. + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  28115. +
  28116. +installcheck: installcheck-am
  28117. +install-strip:
  28118. + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
  28119. + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
  28120. + `test -z '$(STRIP)' || \
  28121. + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
  28122. +mostlyclean-generic:
  28123. +
  28124. +clean-generic:
  28125. +
  28126. +distclean-generic:
  28127. + -rm -f $(CONFIG_CLEAN_FILES)
  28128. + -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
  28129. +
  28130. +maintainer-clean-generic:
  28131. + @echo "This command is intended for maintainers to use"
  28132. + @echo "it deletes files that may require special tools to rebuild."
  28133. +clean: clean-am
  28134. +
  28135. +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
  28136. + mostlyclean-am
  28137. +
  28138. +distclean: distclean-am
  28139. + -rm -f Makefile
  28140. +distclean-am: clean-am distclean-compile distclean-generic \
  28141. + distclean-libtool distclean-tags
  28142. +
  28143. +dvi: dvi-am
  28144. +
  28145. +dvi-am:
  28146. +
  28147. +html: html-am
  28148. +
  28149. +info: info-am
  28150. +
  28151. +info-am:
  28152. +
  28153. +install-data-am:
  28154. + @$(NORMAL_INSTALL)
  28155. + $(MAKE) $(AM_MAKEFLAGS) install-data-hook
  28156. +
  28157. +install-exec-am: install-libLTLIBRARIES
  28158. +
  28159. +install-info: install-info-am
  28160. +
  28161. +install-man:
  28162. +
  28163. +installcheck-am:
  28164. +
  28165. +maintainer-clean: maintainer-clean-am
  28166. + -rm -f Makefile
  28167. +maintainer-clean-am: distclean-am maintainer-clean-generic
  28168. +
  28169. +mostlyclean: mostlyclean-am
  28170. +
  28171. +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
  28172. + mostlyclean-libtool
  28173. +
  28174. +pdf: pdf-am
  28175. +
  28176. +pdf-am:
  28177. +
  28178. +ps: ps-am
  28179. +
  28180. +ps-am:
  28181. +
  28182. +uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
  28183. + @$(NORMAL_INSTALL)
  28184. + $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
  28185. +
  28186. +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  28187. + clean-libLTLIBRARIES clean-libtool ctags distclean \
  28188. + distclean-compile distclean-generic distclean-libtool \
  28189. + distclean-tags distdir dvi dvi-am html html-am info info-am \
  28190. + install install-am install-data install-data-am install-exec \
  28191. + install-exec-am install-info install-info-am \
  28192. + install-libLTLIBRARIES install-man install-strip installcheck \
  28193. + installcheck-am installdirs maintainer-clean \
  28194. + maintainer-clean-generic mostlyclean mostlyclean-compile \
  28195. + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  28196. + tags uninstall uninstall-am uninstall-info-am \
  28197. + uninstall-libLTLIBRARIES
  28198. +
  28199. +
  28200. +install-data-hook:
  28201. + ln -f -s libnet.a $(DESTDIR)$(libdir)/libwrite.a
  28202. +
  28203. +uninstall-hook:
  28204. + rm -f $(DESTDIR)$(libdir)/libwrite.a
  28205. +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  28206. +# Otherwise a system limit (for SysV at least) may be exceeded.
  28207. +.NOEXPORT:
  28208. diff -ruN libnet-1.0.2a-orig/src/libnet_prand.c libnet-1.0.2a-7/src/libnet_prand.c
  28209. --- libnet-1.0.2a-orig/src/libnet_prand.c 2001-02-05 20:22:26.000000000 +0100
  28210. +++ libnet-1.0.2a-7/src/libnet_prand.c 2005-03-08 03:53:26.000000000 +0100
  28211. @@ -30,6 +30,8 @@
  28212. *
  28213. */
  28214. +#include <stdlib.h>
  28215. +
  28216. #if (HAVE_CONFIG_H)
  28217. #include "../include/config.h"
  28218. #endif
  28219. diff -ruN libnet-1.0.2a-orig/test/Ethernet/Makefile.am libnet-1.0.2a-7/test/Ethernet/Makefile.am
  28220. --- libnet-1.0.2a-orig/test/Ethernet/Makefile.am 1970-01-01 01:00:00.000000000 +0100
  28221. +++ libnet-1.0.2a-7/test/Ethernet/Makefile.am 2005-03-08 03:53:26.000000000 +0100
  28222. @@ -0,0 +1,5 @@
  28223. +include $(top_srcdir)/Makefile.am.common
  28224. +
  28225. +noinst_PROGRAMS = arp tcp icmp_mask get_address poink
  28226. +
  28227. +LDFLAGS = ../../src/libnet.la
  28228. diff -ruN libnet-1.0.2a-orig/test/ICMP/Makefile.am libnet-1.0.2a-7/test/ICMP/Makefile.am
  28229. --- libnet-1.0.2a-orig/test/ICMP/Makefile.am 1970-01-01 01:00:00.000000000 +0100
  28230. +++ libnet-1.0.2a-7/test/ICMP/Makefile.am 2005-03-08 03:53:26.000000000 +0100
  28231. @@ -0,0 +1,5 @@
  28232. +include $(top_srcdir)/Makefile.am.common
  28233. +
  28234. +noinst_PROGRAMS = icmp_echo icmp_unreach icmp_timexceed icmp_timestamp silvertongue ping_of_death
  28235. +
  28236. +LDFLAGS = ../../src/libnet.la
  28237. diff -ruN libnet-1.0.2a-orig/test/IP/Makefile.am libnet-1.0.2a-7/test/IP/Makefile.am
  28238. --- libnet-1.0.2a-orig/test/IP/Makefile.am 1970-01-01 01:00:00.000000000 +0100
  28239. +++ libnet-1.0.2a-7/test/IP/Makefile.am 2005-03-08 03:53:26.000000000 +0100
  28240. @@ -0,0 +1 @@
  28241. +include $(top_srcdir)/Makefile.am.common
  28242. diff -ruN libnet-1.0.2a-orig/test/Makefile.am libnet-1.0.2a-7/test/Makefile.am
  28243. --- libnet-1.0.2a-orig/test/Makefile.am 1970-01-01 01:00:00.000000000 +0100
  28244. +++ libnet-1.0.2a-7/test/Makefile.am 2005-03-08 03:53:26.000000000 +0100
  28245. @@ -0,0 +1,3 @@
  28246. +include $(top_srcdir)/Makefile.am.common
  28247. +
  28248. +SUBDIRS = IP TCP UDP ICMP OSPF Ethernet Random
  28249. diff -ruN libnet-1.0.2a-orig/test/OSPF/Makefile.am libnet-1.0.2a-7/test/OSPF/Makefile.am
  28250. --- libnet-1.0.2a-orig/test/OSPF/Makefile.am 1970-01-01 01:00:00.000000000 +0100
  28251. +++ libnet-1.0.2a-7/test/OSPF/Makefile.am 2005-03-08 03:53:26.000000000 +0100
  28252. @@ -0,0 +1,5 @@
  28253. +include $(top_srcdir)/Makefile.am.common
  28254. +
  28255. +noinst_PROGRAMS = ospf_hello ospf_lsa ospf_request
  28256. +
  28257. +LDFLAGS = ../../src/libnet.la
  28258. diff -ruN libnet-1.0.2a-orig/test/Random/Makefile.am libnet-1.0.2a-7/test/Random/Makefile.am
  28259. --- libnet-1.0.2a-orig/test/Random/Makefile.am 1970-01-01 01:00:00.000000000 +0100
  28260. +++ libnet-1.0.2a-7/test/Random/Makefile.am 2005-03-08 03:53:26.000000000 +0100
  28261. @@ -0,0 +1,5 @@
  28262. +include $(top_srcdir)/Makefile.am.common
  28263. +
  28264. +noinst_PROGRAMS = prand_trials
  28265. +
  28266. +LDFLAGS = ../../src/libnet.la
  28267. diff -ruN libnet-1.0.2a-orig/test/TCP/Makefile.am libnet-1.0.2a-7/test/TCP/Makefile.am
  28268. --- libnet-1.0.2a-orig/test/TCP/Makefile.am 1970-01-01 01:00:00.000000000 +0100
  28269. +++ libnet-1.0.2a-7/test/TCP/Makefile.am 2005-03-08 03:53:26.000000000 +0100
  28270. @@ -0,0 +1,5 @@
  28271. +include $(top_srcdir)/Makefile.am.common
  28272. +
  28273. +noinst_PROGRAMS = syn-flood tcp tcp+data tcp+data+ipopt
  28274. +
  28275. +LDFLAGS += ../../src/libnet.la
  28276. diff -ruN libnet-1.0.2a-orig/test/UDP/Makefile.am libnet-1.0.2a-7/test/UDP/Makefile.am
  28277. --- libnet-1.0.2a-orig/test/UDP/Makefile.am 1970-01-01 01:00:00.000000000 +0100
  28278. +++ libnet-1.0.2a-7/test/UDP/Makefile.am 2005-03-08 03:53:26.000000000 +0100
  28279. @@ -0,0 +1,5 @@
  28280. +include $(top_srcdir)/Makefile.am.common
  28281. +
  28282. +noinst_PROGRAMS = udp udp+data
  28283. +
  28284. +LDFLAGS = ../../src/libnet.la
  28285. diff -ruN libnet-1.0.2a-orig/version.h libnet-1.0.2a-7/version.h
  28286. --- libnet-1.0.2a-orig/version.h 1970-01-01 01:00:00.000000000 +0100
  28287. +++ libnet-1.0.2a-7/version.h 2005-03-08 03:53:26.000000000 +0100
  28288. @@ -0,0 +1 @@
  28289. +#define VERSION "1.0.2a"