configure 347 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.59.
  4. #
  5. # Copyright (C) 2003 Free Software Foundation, Inc.
  6. # This configure script is free software; the Free Software Foundation
  7. # gives unlimited permission to copy, distribute and modify it.
  8. ## --------------------- ##
  9. ## M4sh Initialization. ##
  10. ## --------------------- ##
  11. # Be Bourne compatible
  12. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  13. emulate sh
  14. NULLCMD=:
  15. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  16. # is contrary to our usage. Disable this feature.
  17. alias -g '${1+"$@"}'='"$@"'
  18. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  19. set -o posix
  20. fi
  21. DUALCASE=1; export DUALCASE # for MKS sh
  22. # Support unset when possible.
  23. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  24. as_unset=unset
  25. else
  26. as_unset=false
  27. fi
  28. # Work around bugs in pre-3.0 UWIN ksh.
  29. $as_unset ENV MAIL MAILPATH
  30. PS1='$ '
  31. PS2='> '
  32. PS4='+ '
  33. # NLS nuisances.
  34. for as_var in \
  35. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  36. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  37. LC_TELEPHONE LC_TIME
  38. do
  39. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  40. eval $as_var=C; export $as_var
  41. else
  42. $as_unset $as_var
  43. fi
  44. done
  45. # Required to use basename.
  46. if expr a : '\(a\)' >/dev/null 2>&1; then
  47. as_expr=expr
  48. else
  49. as_expr=false
  50. fi
  51. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  52. as_basename=basename
  53. else
  54. as_basename=false
  55. fi
  56. # Name of the executable.
  57. as_me=`$as_basename "$0" ||
  58. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  59. X"$0" : 'X\(//\)$' \| \
  60. X"$0" : 'X\(/\)$' \| \
  61. . : '\(.\)' 2>/dev/null ||
  62. echo X/"$0" |
  63. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  64. /^X\/\(\/\/\)$/{ s//\1/; q; }
  65. /^X\/\(\/\).*/{ s//\1/; q; }
  66. s/.*/./; q'`
  67. # PATH needs CR, and LINENO needs CR and PATH.
  68. # Avoid depending upon Character Ranges.
  69. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  70. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  71. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  72. as_cr_digits='0123456789'
  73. as_cr_alnum=$as_cr_Letters$as_cr_digits
  74. # The user is always right.
  75. if test "${PATH_SEPARATOR+set}" != set; then
  76. echo "#! /bin/sh" >conf$$.sh
  77. echo "exit 0" >>conf$$.sh
  78. chmod +x conf$$.sh
  79. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  80. PATH_SEPARATOR=';'
  81. else
  82. PATH_SEPARATOR=:
  83. fi
  84. rm -f conf$$.sh
  85. fi
  86. as_lineno_1=$LINENO
  87. as_lineno_2=$LINENO
  88. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  89. test "x$as_lineno_1" != "x$as_lineno_2" &&
  90. test "x$as_lineno_3" = "x$as_lineno_2" || {
  91. # Find who we are. Look in the path if we contain no path at all
  92. # relative or not.
  93. case $0 in
  94. *[\\/]* ) as_myself=$0 ;;
  95. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  96. for as_dir in $PATH
  97. do
  98. IFS=$as_save_IFS
  99. test -z "$as_dir" && as_dir=.
  100. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101. done
  102. ;;
  103. esac
  104. # We did not find ourselves, most probably we were run as `sh COMMAND'
  105. # in which case we are not to be found in the path.
  106. if test "x$as_myself" = x; then
  107. as_myself=$0
  108. fi
  109. if test ! -f "$as_myself"; then
  110. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  111. { (exit 1); exit 1; }; }
  112. fi
  113. case $CONFIG_SHELL in
  114. '')
  115. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  116. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  117. do
  118. IFS=$as_save_IFS
  119. test -z "$as_dir" && as_dir=.
  120. for as_base in sh bash ksh sh5; do
  121. case $as_dir in
  122. /*)
  123. if ("$as_dir/$as_base" -c '
  124. as_lineno_1=$LINENO
  125. as_lineno_2=$LINENO
  126. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  127. test "x$as_lineno_1" != "x$as_lineno_2" &&
  128. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  129. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  130. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  131. CONFIG_SHELL=$as_dir/$as_base
  132. export CONFIG_SHELL
  133. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  134. fi;;
  135. esac
  136. done
  137. done
  138. ;;
  139. esac
  140. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  141. # uniformly replaced by the line number. The first 'sed' inserts a
  142. # line-number line before each line; the second 'sed' does the real
  143. # work. The second script uses 'N' to pair each line-number line
  144. # with the numbered line, and appends trailing '-' during
  145. # substitution so that $LINENO is not a special case at line end.
  146. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  147. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  148. sed '=' <$as_myself |
  149. sed '
  150. N
  151. s,$,-,
  152. : loop
  153. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  154. t loop
  155. s,-$,,
  156. s,^['$as_cr_digits']*\n,,
  157. ' >$as_me.lineno &&
  158. chmod +x $as_me.lineno ||
  159. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  160. { (exit 1); exit 1; }; }
  161. # Don't try to exec as it changes $[0], causing all sort of problems
  162. # (the dirname of $[0] is not the place where we might find the
  163. # original and so on. Autoconf is especially sensible to this).
  164. . ./$as_me.lineno
  165. # Exit status is that of the last command.
  166. exit
  167. }
  168. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  169. *c*,-n*) ECHO_N= ECHO_C='
  170. ' ECHO_T=' ' ;;
  171. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  172. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  173. esac
  174. if expr a : '\(a\)' >/dev/null 2>&1; then
  175. as_expr=expr
  176. else
  177. as_expr=false
  178. fi
  179. rm -f conf$$ conf$$.exe conf$$.file
  180. echo >conf$$.file
  181. if ln -s conf$$.file conf$$ 2>/dev/null; then
  182. # We could just check for DJGPP; but this test a) works b) is more generic
  183. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  184. if test -f conf$$.exe; then
  185. # Don't use ln at all; we don't have any links
  186. as_ln_s='cp -p'
  187. else
  188. as_ln_s='ln -s'
  189. fi
  190. elif ln conf$$.file conf$$ 2>/dev/null; then
  191. as_ln_s=ln
  192. else
  193. as_ln_s='cp -p'
  194. fi
  195. rm -f conf$$ conf$$.exe conf$$.file
  196. if mkdir -p . 2>/dev/null; then
  197. as_mkdir_p=:
  198. else
  199. test -d ./-p && rmdir ./-p
  200. as_mkdir_p=false
  201. fi
  202. as_executable_p="test -f"
  203. # Sed expression to map a string onto a valid CPP name.
  204. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  205. # Sed expression to map a string onto a valid variable name.
  206. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  207. # IFS
  208. # We need space, tab and new line, in precisely that order.
  209. as_nl='
  210. '
  211. IFS=" $as_nl"
  212. # CDPATH.
  213. $as_unset CDPATH
  214. # Name of the host.
  215. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  216. # so uname gets run too.
  217. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  218. exec 6>&1
  219. #
  220. # Initializations.
  221. #
  222. ac_default_prefix=/usr/local
  223. ac_config_libobj_dir=.
  224. cross_compiling=no
  225. subdirs=
  226. MFLAGS=
  227. MAKEFLAGS=
  228. SHELL=${CONFIG_SHELL-/bin/sh}
  229. # Maximum number of lines to put in a shell here document.
  230. # This variable seems obsolete. It should probably be removed, and
  231. # only ac_max_sed_lines should be used.
  232. : ${ac_max_here_lines=38}
  233. # Identity of this package.
  234. PACKAGE_NAME=
  235. PACKAGE_TARNAME=
  236. PACKAGE_VERSION=
  237. PACKAGE_STRING=
  238. PACKAGE_BUGREPORT=
  239. ac_unique_file="tcpreplay.c"
  240. # Factoring default headers for most tests.
  241. ac_includes_default="\
  242. #include <stdio.h>
  243. #if HAVE_SYS_TYPES_H
  244. # include <sys/types.h>
  245. #endif
  246. #if HAVE_SYS_STAT_H
  247. # include <sys/stat.h>
  248. #endif
  249. #if STDC_HEADERS
  250. # include <stdlib.h>
  251. # include <stddef.h>
  252. #else
  253. # if HAVE_STDLIB_H
  254. # include <stdlib.h>
  255. # endif
  256. #endif
  257. #if HAVE_STRING_H
  258. # if !STDC_HEADERS && HAVE_MEMORY_H
  259. # include <memory.h>
  260. # endif
  261. # include <string.h>
  262. #endif
  263. #if HAVE_STRINGS_H
  264. # include <strings.h>
  265. #endif
  266. #if HAVE_INTTYPES_H
  267. # include <inttypes.h>
  268. #else
  269. # if HAVE_STDINT_H
  270. # include <stdint.h>
  271. # endif
  272. #endif
  273. #if HAVE_UNISTD_H
  274. # include <unistd.h>
  275. #endif"
  276. 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 TCPREPLAY_VERSION TCPREPLAY_RELEASE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP LN_S RANLIB ac_ct_RANLIB AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA SET_MAKE PRINTF EGREP debug_flag LIBOBJS LNETINC LNETLIB LPCAPINC LPCAPLIB pcncfg LNAVLIB LNAV_CFLAGS td nic1 nic2 LTLIBOBJS'
  277. ac_subst_files=''
  278. # Initialize some variables set by options.
  279. ac_init_help=
  280. ac_init_version=false
  281. # The variables have the same names as the options, with
  282. # dashes changed to underlines.
  283. cache_file=/dev/null
  284. exec_prefix=NONE
  285. no_create=
  286. no_recursion=
  287. prefix=NONE
  288. program_prefix=NONE
  289. program_suffix=NONE
  290. program_transform_name=s,x,x,
  291. silent=
  292. site=
  293. srcdir=
  294. verbose=
  295. x_includes=NONE
  296. x_libraries=NONE
  297. # Installation directory options.
  298. # These are left unexpanded so users can "make install exec_prefix=/foo"
  299. # and all the variables that are supposed to be based on exec_prefix
  300. # by default will actually change.
  301. # Use braces instead of parens because sh, perl, etc. also accept them.
  302. bindir='${exec_prefix}/bin'
  303. sbindir='${exec_prefix}/sbin'
  304. libexecdir='${exec_prefix}/libexec'
  305. datadir='${prefix}/share'
  306. sysconfdir='${prefix}/etc'
  307. sharedstatedir='${prefix}/com'
  308. localstatedir='${prefix}/var'
  309. libdir='${exec_prefix}/lib'
  310. includedir='${prefix}/include'
  311. oldincludedir='/usr/include'
  312. infodir='${prefix}/info'
  313. mandir='${prefix}/man'
  314. ac_prev=
  315. for ac_option
  316. do
  317. # If the previous option needs an argument, assign it.
  318. if test -n "$ac_prev"; then
  319. eval "$ac_prev=\$ac_option"
  320. ac_prev=
  321. continue
  322. fi
  323. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  324. # Accept the important Cygnus configure options, so we can diagnose typos.
  325. case $ac_option in
  326. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  327. ac_prev=bindir ;;
  328. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  329. bindir=$ac_optarg ;;
  330. -build | --build | --buil | --bui | --bu)
  331. ac_prev=build_alias ;;
  332. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  333. build_alias=$ac_optarg ;;
  334. -cache-file | --cache-file | --cache-fil | --cache-fi \
  335. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  336. ac_prev=cache_file ;;
  337. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  338. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  339. cache_file=$ac_optarg ;;
  340. --config-cache | -C)
  341. cache_file=config.cache ;;
  342. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  343. ac_prev=datadir ;;
  344. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  345. | --da=*)
  346. datadir=$ac_optarg ;;
  347. -disable-* | --disable-*)
  348. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  349. # Reject names that are not valid shell variable names.
  350. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  351. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  352. { (exit 1); exit 1; }; }
  353. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  354. eval "enable_$ac_feature=no" ;;
  355. -enable-* | --enable-*)
  356. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  357. # Reject names that are not valid shell variable names.
  358. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  359. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  360. { (exit 1); exit 1; }; }
  361. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  362. case $ac_option in
  363. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  364. *) ac_optarg=yes ;;
  365. esac
  366. eval "enable_$ac_feature='$ac_optarg'" ;;
  367. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  368. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  369. | --exec | --exe | --ex)
  370. ac_prev=exec_prefix ;;
  371. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  372. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  373. | --exec=* | --exe=* | --ex=*)
  374. exec_prefix=$ac_optarg ;;
  375. -gas | --gas | --ga | --g)
  376. # Obsolete; use --with-gas.
  377. with_gas=yes ;;
  378. -help | --help | --hel | --he | -h)
  379. ac_init_help=long ;;
  380. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  381. ac_init_help=recursive ;;
  382. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  383. ac_init_help=short ;;
  384. -host | --host | --hos | --ho)
  385. ac_prev=host_alias ;;
  386. -host=* | --host=* | --hos=* | --ho=*)
  387. host_alias=$ac_optarg ;;
  388. -includedir | --includedir | --includedi | --included | --include \
  389. | --includ | --inclu | --incl | --inc)
  390. ac_prev=includedir ;;
  391. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  392. | --includ=* | --inclu=* | --incl=* | --inc=*)
  393. includedir=$ac_optarg ;;
  394. -infodir | --infodir | --infodi | --infod | --info | --inf)
  395. ac_prev=infodir ;;
  396. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  397. infodir=$ac_optarg ;;
  398. -libdir | --libdir | --libdi | --libd)
  399. ac_prev=libdir ;;
  400. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  401. libdir=$ac_optarg ;;
  402. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  403. | --libexe | --libex | --libe)
  404. ac_prev=libexecdir ;;
  405. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  406. | --libexe=* | --libex=* | --libe=*)
  407. libexecdir=$ac_optarg ;;
  408. -localstatedir | --localstatedir | --localstatedi | --localstated \
  409. | --localstate | --localstat | --localsta | --localst \
  410. | --locals | --local | --loca | --loc | --lo)
  411. ac_prev=localstatedir ;;
  412. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  413. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  414. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  415. localstatedir=$ac_optarg ;;
  416. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  417. ac_prev=mandir ;;
  418. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  419. mandir=$ac_optarg ;;
  420. -nfp | --nfp | --nf)
  421. # Obsolete; use --without-fp.
  422. with_fp=no ;;
  423. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  424. | --no-cr | --no-c | -n)
  425. no_create=yes ;;
  426. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  427. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  428. no_recursion=yes ;;
  429. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  430. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  431. | --oldin | --oldi | --old | --ol | --o)
  432. ac_prev=oldincludedir ;;
  433. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  434. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  435. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  436. oldincludedir=$ac_optarg ;;
  437. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  438. ac_prev=prefix ;;
  439. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  440. prefix=$ac_optarg ;;
  441. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  442. | --program-pre | --program-pr | --program-p)
  443. ac_prev=program_prefix ;;
  444. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  445. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  446. program_prefix=$ac_optarg ;;
  447. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  448. | --program-suf | --program-su | --program-s)
  449. ac_prev=program_suffix ;;
  450. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  451. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  452. program_suffix=$ac_optarg ;;
  453. -program-transform-name | --program-transform-name \
  454. | --program-transform-nam | --program-transform-na \
  455. | --program-transform-n | --program-transform- \
  456. | --program-transform | --program-transfor \
  457. | --program-transfo | --program-transf \
  458. | --program-trans | --program-tran \
  459. | --progr-tra | --program-tr | --program-t)
  460. ac_prev=program_transform_name ;;
  461. -program-transform-name=* | --program-transform-name=* \
  462. | --program-transform-nam=* | --program-transform-na=* \
  463. | --program-transform-n=* | --program-transform-=* \
  464. | --program-transform=* | --program-transfor=* \
  465. | --program-transfo=* | --program-transf=* \
  466. | --program-trans=* | --program-tran=* \
  467. | --progr-tra=* | --program-tr=* | --program-t=*)
  468. program_transform_name=$ac_optarg ;;
  469. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  470. | -silent | --silent | --silen | --sile | --sil)
  471. silent=yes ;;
  472. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  473. ac_prev=sbindir ;;
  474. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  475. | --sbi=* | --sb=*)
  476. sbindir=$ac_optarg ;;
  477. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  478. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  479. | --sharedst | --shareds | --shared | --share | --shar \
  480. | --sha | --sh)
  481. ac_prev=sharedstatedir ;;
  482. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  483. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  484. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  485. | --sha=* | --sh=*)
  486. sharedstatedir=$ac_optarg ;;
  487. -site | --site | --sit)
  488. ac_prev=site ;;
  489. -site=* | --site=* | --sit=*)
  490. site=$ac_optarg ;;
  491. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  492. ac_prev=srcdir ;;
  493. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  494. srcdir=$ac_optarg ;;
  495. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  496. | --syscon | --sysco | --sysc | --sys | --sy)
  497. ac_prev=sysconfdir ;;
  498. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  499. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  500. sysconfdir=$ac_optarg ;;
  501. -target | --target | --targe | --targ | --tar | --ta | --t)
  502. ac_prev=target_alias ;;
  503. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  504. target_alias=$ac_optarg ;;
  505. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  506. verbose=yes ;;
  507. -version | --version | --versio | --versi | --vers | -V)
  508. ac_init_version=: ;;
  509. -with-* | --with-*)
  510. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  511. # Reject names that are not valid shell variable names.
  512. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  513. { echo "$as_me: error: invalid package name: $ac_package" >&2
  514. { (exit 1); exit 1; }; }
  515. ac_package=`echo $ac_package| sed 's/-/_/g'`
  516. case $ac_option in
  517. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  518. *) ac_optarg=yes ;;
  519. esac
  520. eval "with_$ac_package='$ac_optarg'" ;;
  521. -without-* | --without-*)
  522. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  523. # Reject names that are not valid shell variable names.
  524. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  525. { echo "$as_me: error: invalid package name: $ac_package" >&2
  526. { (exit 1); exit 1; }; }
  527. ac_package=`echo $ac_package | sed 's/-/_/g'`
  528. eval "with_$ac_package=no" ;;
  529. --x)
  530. # Obsolete; use --with-x.
  531. with_x=yes ;;
  532. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  533. | --x-incl | --x-inc | --x-in | --x-i)
  534. ac_prev=x_includes ;;
  535. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  536. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  537. x_includes=$ac_optarg ;;
  538. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  539. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  540. ac_prev=x_libraries ;;
  541. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  542. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  543. x_libraries=$ac_optarg ;;
  544. -*) { echo "$as_me: error: unrecognized option: $ac_option
  545. Try \`$0 --help' for more information." >&2
  546. { (exit 1); exit 1; }; }
  547. ;;
  548. *=*)
  549. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  550. # Reject names that are not valid shell variable names.
  551. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  552. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  553. { (exit 1); exit 1; }; }
  554. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  555. eval "$ac_envvar='$ac_optarg'"
  556. export $ac_envvar ;;
  557. *)
  558. # FIXME: should be removed in autoconf 3.0.
  559. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  560. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  561. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  562. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  563. ;;
  564. esac
  565. done
  566. if test -n "$ac_prev"; then
  567. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  568. { echo "$as_me: error: missing argument to $ac_option" >&2
  569. { (exit 1); exit 1; }; }
  570. fi
  571. # Be sure to have absolute paths.
  572. for ac_var in exec_prefix prefix
  573. do
  574. eval ac_val=$`echo $ac_var`
  575. case $ac_val in
  576. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  577. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  578. { (exit 1); exit 1; }; };;
  579. esac
  580. done
  581. # Be sure to have absolute paths.
  582. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  583. localstatedir libdir includedir oldincludedir infodir mandir
  584. do
  585. eval ac_val=$`echo $ac_var`
  586. case $ac_val in
  587. [\\/$]* | ?:[\\/]* ) ;;
  588. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  589. { (exit 1); exit 1; }; };;
  590. esac
  591. done
  592. # There might be people who depend on the old broken behavior: `$host'
  593. # used to hold the argument of --host etc.
  594. # FIXME: To remove some day.
  595. build=$build_alias
  596. host=$host_alias
  597. target=$target_alias
  598. # FIXME: To remove some day.
  599. if test "x$host_alias" != x; then
  600. if test "x$build_alias" = x; then
  601. cross_compiling=maybe
  602. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  603. If a cross compiler is detected then cross compile mode will be used." >&2
  604. elif test "x$build_alias" != "x$host_alias"; then
  605. cross_compiling=yes
  606. fi
  607. fi
  608. ac_tool_prefix=
  609. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  610. test "$silent" = yes && exec 6>/dev/null
  611. # Find the source files, if location was not specified.
  612. if test -z "$srcdir"; then
  613. ac_srcdir_defaulted=yes
  614. # Try the directory containing this script, then its parent.
  615. ac_confdir=`(dirname "$0") 2>/dev/null ||
  616. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  617. X"$0" : 'X\(//\)[^/]' \| \
  618. X"$0" : 'X\(//\)$' \| \
  619. X"$0" : 'X\(/\)' \| \
  620. . : '\(.\)' 2>/dev/null ||
  621. echo X"$0" |
  622. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  623. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  624. /^X\(\/\/\)$/{ s//\1/; q; }
  625. /^X\(\/\).*/{ s//\1/; q; }
  626. s/.*/./; q'`
  627. srcdir=$ac_confdir
  628. if test ! -r $srcdir/$ac_unique_file; then
  629. srcdir=..
  630. fi
  631. else
  632. ac_srcdir_defaulted=no
  633. fi
  634. if test ! -r $srcdir/$ac_unique_file; then
  635. if test "$ac_srcdir_defaulted" = yes; then
  636. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  637. { (exit 1); exit 1; }; }
  638. else
  639. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  640. { (exit 1); exit 1; }; }
  641. fi
  642. fi
  643. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  644. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  645. { (exit 1); exit 1; }; }
  646. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  647. ac_env_build_alias_set=${build_alias+set}
  648. ac_env_build_alias_value=$build_alias
  649. ac_cv_env_build_alias_set=${build_alias+set}
  650. ac_cv_env_build_alias_value=$build_alias
  651. ac_env_host_alias_set=${host_alias+set}
  652. ac_env_host_alias_value=$host_alias
  653. ac_cv_env_host_alias_set=${host_alias+set}
  654. ac_cv_env_host_alias_value=$host_alias
  655. ac_env_target_alias_set=${target_alias+set}
  656. ac_env_target_alias_value=$target_alias
  657. ac_cv_env_target_alias_set=${target_alias+set}
  658. ac_cv_env_target_alias_value=$target_alias
  659. ac_env_CC_set=${CC+set}
  660. ac_env_CC_value=$CC
  661. ac_cv_env_CC_set=${CC+set}
  662. ac_cv_env_CC_value=$CC
  663. ac_env_CFLAGS_set=${CFLAGS+set}
  664. ac_env_CFLAGS_value=$CFLAGS
  665. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  666. ac_cv_env_CFLAGS_value=$CFLAGS
  667. ac_env_LDFLAGS_set=${LDFLAGS+set}
  668. ac_env_LDFLAGS_value=$LDFLAGS
  669. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_cv_env_LDFLAGS_value=$LDFLAGS
  671. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  672. ac_env_CPPFLAGS_value=$CPPFLAGS
  673. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_env_CXX_set=${CXX+set}
  676. ac_env_CXX_value=$CXX
  677. ac_cv_env_CXX_set=${CXX+set}
  678. ac_cv_env_CXX_value=$CXX
  679. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  680. ac_env_CXXFLAGS_value=$CXXFLAGS
  681. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  682. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  683. ac_env_CPP_set=${CPP+set}
  684. ac_env_CPP_value=$CPP
  685. ac_cv_env_CPP_set=${CPP+set}
  686. ac_cv_env_CPP_value=$CPP
  687. #
  688. # Report the --help message.
  689. #
  690. if test "$ac_init_help" = "long"; then
  691. # Omit some internal or obsolete options to make the list less imposing.
  692. # This message is too long to be a string in the A/UX 3.1 sh.
  693. cat <<_ACEOF
  694. \`configure' configures this package to adapt to many kinds of systems.
  695. Usage: $0 [OPTION]... [VAR=VALUE]...
  696. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  697. VAR=VALUE. See below for descriptions of some of the useful variables.
  698. Defaults for the options are specified in brackets.
  699. Configuration:
  700. -h, --help display this help and exit
  701. --help=short display options specific to this package
  702. --help=recursive display the short help of all the included packages
  703. -V, --version display version information and exit
  704. -q, --quiet, --silent do not print \`checking...' messages
  705. --cache-file=FILE cache test results in FILE [disabled]
  706. -C, --config-cache alias for \`--cache-file=config.cache'
  707. -n, --no-create do not create output files
  708. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  709. _ACEOF
  710. cat <<_ACEOF
  711. Installation directories:
  712. --prefix=PREFIX install architecture-independent files in PREFIX
  713. [$ac_default_prefix]
  714. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  715. [PREFIX]
  716. By default, \`make install' will install all the files in
  717. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  718. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  719. for instance \`--prefix=\$HOME'.
  720. For better control, use the options below.
  721. Fine tuning of the installation directories:
  722. --bindir=DIR user executables [EPREFIX/bin]
  723. --sbindir=DIR system admin executables [EPREFIX/sbin]
  724. --libexecdir=DIR program executables [EPREFIX/libexec]
  725. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  726. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  727. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  728. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  729. --libdir=DIR object code libraries [EPREFIX/lib]
  730. --includedir=DIR C header files [PREFIX/include]
  731. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  732. --infodir=DIR info documentation [PREFIX/info]
  733. --mandir=DIR man documentation [PREFIX/man]
  734. _ACEOF
  735. cat <<\_ACEOF
  736. System types:
  737. --build=BUILD configure for building on BUILD [guessed]
  738. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  739. --target=TARGET configure for building compilers for TARGET [HOST]
  740. _ACEOF
  741. fi
  742. if test -n "$ac_init_help"; then
  743. cat <<\_ACEOF
  744. Optional Features:
  745. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  746. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  747. --disable-largefile omit support for large files
  748. Optional Packages:
  749. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  750. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  751. --with-debug Enable debugging code and support for the -d option
  752. --with-efence Enable Electric Fence memory debugger
  753. --with-gprof Enable GNU Profiler
  754. --with-libnet=DIR Use libnet in DIR
  755. --with-libpcap=DIR Use libpcap in DIR
  756. --with-pcapnav-config=FILE
  757. Use given pcapnav-config
  758. --with-tcpdump=FILE Path to tcpdump binary
  759. --with-testnic=NIC Select which network card to use for testing
  760. --with-testnic2=NIC2 Select an optional 2nd network card to use for
  761. testing
  762. Some influential environment variables:
  763. CC C compiler command
  764. CFLAGS C compiler flags
  765. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  766. nonstandard directory <lib dir>
  767. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  768. headers in a nonstandard directory <include dir>
  769. CXX C++ compiler command
  770. CXXFLAGS C++ compiler flags
  771. CPP C preprocessor
  772. Use these variables to override the choices made by `configure' or to help
  773. it to find libraries and programs with nonstandard names/locations.
  774. _ACEOF
  775. fi
  776. if test "$ac_init_help" = "recursive"; then
  777. # If there are subdirs, report their specific --help.
  778. ac_popdir=`pwd`
  779. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  780. test -d $ac_dir || continue
  781. ac_builddir=.
  782. if test "$ac_dir" != .; then
  783. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  784. # A "../" for each directory in $ac_dir_suffix.
  785. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  786. else
  787. ac_dir_suffix= ac_top_builddir=
  788. fi
  789. case $srcdir in
  790. .) # No --srcdir option. We are building in place.
  791. ac_srcdir=.
  792. if test -z "$ac_top_builddir"; then
  793. ac_top_srcdir=.
  794. else
  795. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  796. fi ;;
  797. [\\/]* | ?:[\\/]* ) # Absolute path.
  798. ac_srcdir=$srcdir$ac_dir_suffix;
  799. ac_top_srcdir=$srcdir ;;
  800. *) # Relative path.
  801. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  802. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  803. esac
  804. # Do not use `cd foo && pwd` to compute absolute paths, because
  805. # the directories may not exist.
  806. case `pwd` in
  807. .) ac_abs_builddir="$ac_dir";;
  808. *)
  809. case "$ac_dir" in
  810. .) ac_abs_builddir=`pwd`;;
  811. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  812. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  813. esac;;
  814. esac
  815. case $ac_abs_builddir in
  816. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  817. *)
  818. case ${ac_top_builddir}. in
  819. .) ac_abs_top_builddir=$ac_abs_builddir;;
  820. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  821. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  822. esac;;
  823. esac
  824. case $ac_abs_builddir in
  825. .) ac_abs_srcdir=$ac_srcdir;;
  826. *)
  827. case $ac_srcdir in
  828. .) ac_abs_srcdir=$ac_abs_builddir;;
  829. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  830. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  831. esac;;
  832. esac
  833. case $ac_abs_builddir in
  834. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  835. *)
  836. case $ac_top_srcdir in
  837. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  838. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  839. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  840. esac;;
  841. esac
  842. cd $ac_dir
  843. # Check for guested configure; otherwise get Cygnus style configure.
  844. if test -f $ac_srcdir/configure.gnu; then
  845. echo
  846. $SHELL $ac_srcdir/configure.gnu --help=recursive
  847. elif test -f $ac_srcdir/configure; then
  848. echo
  849. $SHELL $ac_srcdir/configure --help=recursive
  850. elif test -f $ac_srcdir/configure.ac ||
  851. test -f $ac_srcdir/configure.in; then
  852. echo
  853. $ac_configure --help
  854. else
  855. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  856. fi
  857. cd "$ac_popdir"
  858. done
  859. fi
  860. test -n "$ac_init_help" && exit 0
  861. if $ac_init_version; then
  862. cat <<\_ACEOF
  863. Copyright (C) 2003 Free Software Foundation, Inc.
  864. This configure script is free software; the Free Software Foundation
  865. gives unlimited permission to copy, distribute and modify it.
  866. _ACEOF
  867. exit 0
  868. fi
  869. exec 5>config.log
  870. cat >&5 <<_ACEOF
  871. This file contains any messages produced by compilers while
  872. running configure, to aid debugging if configure makes a mistake.
  873. It was created by $as_me, which was
  874. generated by GNU Autoconf 2.59. Invocation command line was
  875. $ $0 $@
  876. _ACEOF
  877. {
  878. cat <<_ASUNAME
  879. ## --------- ##
  880. ## Platform. ##
  881. ## --------- ##
  882. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  883. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  884. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  885. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  886. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  887. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  888. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  889. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  890. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  891. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  892. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  893. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  894. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  895. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  896. _ASUNAME
  897. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  898. for as_dir in $PATH
  899. do
  900. IFS=$as_save_IFS
  901. test -z "$as_dir" && as_dir=.
  902. echo "PATH: $as_dir"
  903. done
  904. } >&5
  905. cat >&5 <<_ACEOF
  906. ## ----------- ##
  907. ## Core tests. ##
  908. ## ----------- ##
  909. _ACEOF
  910. # Keep a trace of the command line.
  911. # Strip out --no-create and --no-recursion so they do not pile up.
  912. # Strip out --silent because we don't want to record it for future runs.
  913. # Also quote any args containing shell meta-characters.
  914. # Make two passes to allow for proper duplicate-argument suppression.
  915. ac_configure_args=
  916. ac_configure_args0=
  917. ac_configure_args1=
  918. ac_sep=
  919. ac_must_keep_next=false
  920. for ac_pass in 1 2
  921. do
  922. for ac_arg
  923. do
  924. case $ac_arg in
  925. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  926. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  927. | -silent | --silent | --silen | --sile | --sil)
  928. continue ;;
  929. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  930. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  931. esac
  932. case $ac_pass in
  933. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  934. 2)
  935. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  936. if test $ac_must_keep_next = true; then
  937. ac_must_keep_next=false # Got value, back to normal.
  938. else
  939. case $ac_arg in
  940. *=* | --config-cache | -C | -disable-* | --disable-* \
  941. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  942. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  943. | -with-* | --with-* | -without-* | --without-* | --x)
  944. case "$ac_configure_args0 " in
  945. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  946. esac
  947. ;;
  948. -* ) ac_must_keep_next=true ;;
  949. esac
  950. fi
  951. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  952. # Get rid of the leading space.
  953. ac_sep=" "
  954. ;;
  955. esac
  956. done
  957. done
  958. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  959. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  960. # When interrupted or exit'd, cleanup temporary files, and complete
  961. # config.log. We remove comments because anyway the quotes in there
  962. # would cause problems or look ugly.
  963. # WARNING: Be sure not to use single quotes in there, as some shells,
  964. # such as our DU 5.0 friend, will then `close' the trap.
  965. trap 'exit_status=$?
  966. # Save into config.log some information that might help in debugging.
  967. {
  968. echo
  969. cat <<\_ASBOX
  970. ## ---------------- ##
  971. ## Cache variables. ##
  972. ## ---------------- ##
  973. _ASBOX
  974. echo
  975. # The following way of writing the cache mishandles newlines in values,
  976. {
  977. (set) 2>&1 |
  978. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  979. *ac_space=\ *)
  980. sed -n \
  981. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  982. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  983. ;;
  984. *)
  985. sed -n \
  986. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  987. ;;
  988. esac;
  989. }
  990. echo
  991. cat <<\_ASBOX
  992. ## ----------------- ##
  993. ## Output variables. ##
  994. ## ----------------- ##
  995. _ASBOX
  996. echo
  997. for ac_var in $ac_subst_vars
  998. do
  999. eval ac_val=$`echo $ac_var`
  1000. echo "$ac_var='"'"'$ac_val'"'"'"
  1001. done | sort
  1002. echo
  1003. if test -n "$ac_subst_files"; then
  1004. cat <<\_ASBOX
  1005. ## ------------- ##
  1006. ## Output files. ##
  1007. ## ------------- ##
  1008. _ASBOX
  1009. echo
  1010. for ac_var in $ac_subst_files
  1011. do
  1012. eval ac_val=$`echo $ac_var`
  1013. echo "$ac_var='"'"'$ac_val'"'"'"
  1014. done | sort
  1015. echo
  1016. fi
  1017. if test -s confdefs.h; then
  1018. cat <<\_ASBOX
  1019. ## ----------- ##
  1020. ## confdefs.h. ##
  1021. ## ----------- ##
  1022. _ASBOX
  1023. echo
  1024. sed "/^$/d" confdefs.h | sort
  1025. echo
  1026. fi
  1027. test "$ac_signal" != 0 &&
  1028. echo "$as_me: caught signal $ac_signal"
  1029. echo "$as_me: exit $exit_status"
  1030. } >&5
  1031. rm -f core *.core &&
  1032. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1033. exit $exit_status
  1034. ' 0
  1035. for ac_signal in 1 2 13 15; do
  1036. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1037. done
  1038. ac_signal=0
  1039. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1040. rm -rf conftest* confdefs.h
  1041. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1042. echo >confdefs.h
  1043. # Predefined preprocessor variables.
  1044. cat >>confdefs.h <<_ACEOF
  1045. #define PACKAGE_NAME "$PACKAGE_NAME"
  1046. _ACEOF
  1047. cat >>confdefs.h <<_ACEOF
  1048. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1049. _ACEOF
  1050. cat >>confdefs.h <<_ACEOF
  1051. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1052. _ACEOF
  1053. cat >>confdefs.h <<_ACEOF
  1054. #define PACKAGE_STRING "$PACKAGE_STRING"
  1055. _ACEOF
  1056. cat >>confdefs.h <<_ACEOF
  1057. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1058. _ACEOF
  1059. # Let the site file select an alternate cache file if it wants to.
  1060. # Prefer explicitly selected file to automatically selected ones.
  1061. if test -z "$CONFIG_SITE"; then
  1062. if test "x$prefix" != xNONE; then
  1063. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1064. else
  1065. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1066. fi
  1067. fi
  1068. for ac_site_file in $CONFIG_SITE; do
  1069. if test -r "$ac_site_file"; then
  1070. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1071. echo "$as_me: loading site script $ac_site_file" >&6;}
  1072. sed 's/^/| /' "$ac_site_file" >&5
  1073. . "$ac_site_file"
  1074. fi
  1075. done
  1076. if test -r "$cache_file"; then
  1077. # Some versions of bash will fail to source /dev/null (special
  1078. # files actually), so we avoid doing that.
  1079. if test -f "$cache_file"; then
  1080. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1081. echo "$as_me: loading cache $cache_file" >&6;}
  1082. case $cache_file in
  1083. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1084. *) . ./$cache_file;;
  1085. esac
  1086. fi
  1087. else
  1088. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1089. echo "$as_me: creating cache $cache_file" >&6;}
  1090. >$cache_file
  1091. fi
  1092. # Check that the precious variables saved in the cache have kept the same
  1093. # value.
  1094. ac_cache_corrupted=false
  1095. for ac_var in `(set) 2>&1 |
  1096. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1097. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1098. eval ac_new_set=\$ac_env_${ac_var}_set
  1099. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1100. eval ac_new_val="\$ac_env_${ac_var}_value"
  1101. case $ac_old_set,$ac_new_set in
  1102. set,)
  1103. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1104. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1105. ac_cache_corrupted=: ;;
  1106. ,set)
  1107. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1108. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1109. ac_cache_corrupted=: ;;
  1110. ,);;
  1111. *)
  1112. if test "x$ac_old_val" != "x$ac_new_val"; then
  1113. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1114. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1115. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1116. echo "$as_me: former value: $ac_old_val" >&2;}
  1117. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1118. echo "$as_me: current value: $ac_new_val" >&2;}
  1119. ac_cache_corrupted=:
  1120. fi;;
  1121. esac
  1122. # Pass precious variables to config.status.
  1123. if test "$ac_new_set" = set; then
  1124. case $ac_new_val in
  1125. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1126. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1127. *) ac_arg=$ac_var=$ac_new_val ;;
  1128. esac
  1129. case " $ac_configure_args " in
  1130. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1131. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1132. esac
  1133. fi
  1134. done
  1135. if $ac_cache_corrupted; then
  1136. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1137. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1138. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1139. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1140. { (exit 1); exit 1; }; }
  1141. fi
  1142. ac_ext=c
  1143. ac_cpp='$CPP $CPPFLAGS'
  1144. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1145. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1146. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1147. ac_config_headers="$ac_config_headers config.h"
  1148. MAJOR_VERSION=2
  1149. MINOR_VERSION=3
  1150. MICRO_VERSION=3
  1151. TCPREPLAY_VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  1152. TCPREPLAY_RELEASE=1
  1153. cat >>confdefs.h <<_ACEOF
  1154. #define VERSION "$TCPREPLAY_VERSION"
  1155. _ACEOF
  1156. if test "$prefix" = "NONE"; then
  1157. prefix="/usr/local"
  1158. fi
  1159. ac_aux_dir=
  1160. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1161. if test -f $ac_dir/install-sh; then
  1162. ac_aux_dir=$ac_dir
  1163. ac_install_sh="$ac_aux_dir/install-sh -c"
  1164. break
  1165. elif test -f $ac_dir/install.sh; then
  1166. ac_aux_dir=$ac_dir
  1167. ac_install_sh="$ac_aux_dir/install.sh -c"
  1168. break
  1169. elif test -f $ac_dir/shtool; then
  1170. ac_aux_dir=$ac_dir
  1171. ac_install_sh="$ac_aux_dir/shtool install -c"
  1172. break
  1173. fi
  1174. done
  1175. if test -z "$ac_aux_dir"; then
  1176. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1177. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1178. { (exit 1); exit 1; }; }
  1179. fi
  1180. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1181. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1182. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1183. # Make sure we can run config.sub.
  1184. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1185. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1186. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1187. { (exit 1); exit 1; }; }
  1188. echo "$as_me:$LINENO: checking build system type" >&5
  1189. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1190. if test "${ac_cv_build+set}" = set; then
  1191. echo $ECHO_N "(cached) $ECHO_C" >&6
  1192. else
  1193. ac_cv_build_alias=$build_alias
  1194. test -z "$ac_cv_build_alias" &&
  1195. ac_cv_build_alias=`$ac_config_guess`
  1196. test -z "$ac_cv_build_alias" &&
  1197. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1198. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1199. { (exit 1); exit 1; }; }
  1200. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1201. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1202. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1203. { (exit 1); exit 1; }; }
  1204. fi
  1205. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1206. echo "${ECHO_T}$ac_cv_build" >&6
  1207. build=$ac_cv_build
  1208. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1209. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1210. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1211. echo "$as_me:$LINENO: checking host system type" >&5
  1212. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1213. if test "${ac_cv_host+set}" = set; then
  1214. echo $ECHO_N "(cached) $ECHO_C" >&6
  1215. else
  1216. ac_cv_host_alias=$host_alias
  1217. test -z "$ac_cv_host_alias" &&
  1218. ac_cv_host_alias=$ac_cv_build_alias
  1219. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1220. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1221. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1222. { (exit 1); exit 1; }; }
  1223. fi
  1224. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1225. echo "${ECHO_T}$ac_cv_host" >&6
  1226. host=$ac_cv_host
  1227. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1228. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1229. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1230. echo "$as_me:$LINENO: checking target system type" >&5
  1231. echo $ECHO_N "checking target system type... $ECHO_C" >&6
  1232. if test "${ac_cv_target+set}" = set; then
  1233. echo $ECHO_N "(cached) $ECHO_C" >&6
  1234. else
  1235. ac_cv_target_alias=$target_alias
  1236. test "x$ac_cv_target_alias" = "x" &&
  1237. ac_cv_target_alias=$ac_cv_host_alias
  1238. ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
  1239. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
  1240. echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
  1241. { (exit 1); exit 1; }; }
  1242. fi
  1243. echo "$as_me:$LINENO: result: $ac_cv_target" >&5
  1244. echo "${ECHO_T}$ac_cv_target" >&6
  1245. target=$ac_cv_target
  1246. target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1247. target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1248. target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1249. # The aliases save the names the user supplied, while $host etc.
  1250. # will get canonicalized.
  1251. test -n "$target_alias" &&
  1252. test "$program_prefix$program_suffix$program_transform_name" = \
  1253. NONENONEs,x,x, &&
  1254. program_prefix=${target_alias}-
  1255. ac_ext=c
  1256. ac_cpp='$CPP $CPPFLAGS'
  1257. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1258. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1259. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1260. if test -n "$ac_tool_prefix"; then
  1261. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1262. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1263. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1264. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1265. if test "${ac_cv_prog_CC+set}" = set; then
  1266. echo $ECHO_N "(cached) $ECHO_C" >&6
  1267. else
  1268. if test -n "$CC"; then
  1269. ac_cv_prog_CC="$CC" # Let the user override the test.
  1270. else
  1271. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1272. for as_dir in $PATH
  1273. do
  1274. IFS=$as_save_IFS
  1275. test -z "$as_dir" && as_dir=.
  1276. for ac_exec_ext in '' $ac_executable_extensions; do
  1277. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1278. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1279. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1280. break 2
  1281. fi
  1282. done
  1283. done
  1284. fi
  1285. fi
  1286. CC=$ac_cv_prog_CC
  1287. if test -n "$CC"; then
  1288. echo "$as_me:$LINENO: result: $CC" >&5
  1289. echo "${ECHO_T}$CC" >&6
  1290. else
  1291. echo "$as_me:$LINENO: result: no" >&5
  1292. echo "${ECHO_T}no" >&6
  1293. fi
  1294. fi
  1295. if test -z "$ac_cv_prog_CC"; then
  1296. ac_ct_CC=$CC
  1297. # Extract the first word of "gcc", so it can be a program name with args.
  1298. set dummy gcc; ac_word=$2
  1299. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1300. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1301. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1302. echo $ECHO_N "(cached) $ECHO_C" >&6
  1303. else
  1304. if test -n "$ac_ct_CC"; then
  1305. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1306. else
  1307. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1308. for as_dir in $PATH
  1309. do
  1310. IFS=$as_save_IFS
  1311. test -z "$as_dir" && as_dir=.
  1312. for ac_exec_ext in '' $ac_executable_extensions; do
  1313. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1314. ac_cv_prog_ac_ct_CC="gcc"
  1315. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1316. break 2
  1317. fi
  1318. done
  1319. done
  1320. fi
  1321. fi
  1322. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1323. if test -n "$ac_ct_CC"; then
  1324. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1325. echo "${ECHO_T}$ac_ct_CC" >&6
  1326. else
  1327. echo "$as_me:$LINENO: result: no" >&5
  1328. echo "${ECHO_T}no" >&6
  1329. fi
  1330. CC=$ac_ct_CC
  1331. else
  1332. CC="$ac_cv_prog_CC"
  1333. fi
  1334. if test -z "$CC"; then
  1335. if test -n "$ac_tool_prefix"; then
  1336. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1337. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1338. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1339. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1340. if test "${ac_cv_prog_CC+set}" = set; then
  1341. echo $ECHO_N "(cached) $ECHO_C" >&6
  1342. else
  1343. if test -n "$CC"; then
  1344. ac_cv_prog_CC="$CC" # Let the user override the test.
  1345. else
  1346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1347. for as_dir in $PATH
  1348. do
  1349. IFS=$as_save_IFS
  1350. test -z "$as_dir" && as_dir=.
  1351. for ac_exec_ext in '' $ac_executable_extensions; do
  1352. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1353. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1354. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1355. break 2
  1356. fi
  1357. done
  1358. done
  1359. fi
  1360. fi
  1361. CC=$ac_cv_prog_CC
  1362. if test -n "$CC"; then
  1363. echo "$as_me:$LINENO: result: $CC" >&5
  1364. echo "${ECHO_T}$CC" >&6
  1365. else
  1366. echo "$as_me:$LINENO: result: no" >&5
  1367. echo "${ECHO_T}no" >&6
  1368. fi
  1369. fi
  1370. if test -z "$ac_cv_prog_CC"; then
  1371. ac_ct_CC=$CC
  1372. # Extract the first word of "cc", so it can be a program name with args.
  1373. set dummy cc; ac_word=$2
  1374. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1375. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1376. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1377. echo $ECHO_N "(cached) $ECHO_C" >&6
  1378. else
  1379. if test -n "$ac_ct_CC"; then
  1380. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1381. else
  1382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1383. for as_dir in $PATH
  1384. do
  1385. IFS=$as_save_IFS
  1386. test -z "$as_dir" && as_dir=.
  1387. for ac_exec_ext in '' $ac_executable_extensions; do
  1388. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1389. ac_cv_prog_ac_ct_CC="cc"
  1390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1391. break 2
  1392. fi
  1393. done
  1394. done
  1395. fi
  1396. fi
  1397. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1398. if test -n "$ac_ct_CC"; then
  1399. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1400. echo "${ECHO_T}$ac_ct_CC" >&6
  1401. else
  1402. echo "$as_me:$LINENO: result: no" >&5
  1403. echo "${ECHO_T}no" >&6
  1404. fi
  1405. CC=$ac_ct_CC
  1406. else
  1407. CC="$ac_cv_prog_CC"
  1408. fi
  1409. fi
  1410. if test -z "$CC"; then
  1411. # Extract the first word of "cc", so it can be a program name with args.
  1412. set dummy cc; ac_word=$2
  1413. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1414. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1415. if test "${ac_cv_prog_CC+set}" = set; then
  1416. echo $ECHO_N "(cached) $ECHO_C" >&6
  1417. else
  1418. if test -n "$CC"; then
  1419. ac_cv_prog_CC="$CC" # Let the user override the test.
  1420. else
  1421. ac_prog_rejected=no
  1422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1423. for as_dir in $PATH
  1424. do
  1425. IFS=$as_save_IFS
  1426. test -z "$as_dir" && as_dir=.
  1427. for ac_exec_ext in '' $ac_executable_extensions; do
  1428. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1429. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1430. ac_prog_rejected=yes
  1431. continue
  1432. fi
  1433. ac_cv_prog_CC="cc"
  1434. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1435. break 2
  1436. fi
  1437. done
  1438. done
  1439. if test $ac_prog_rejected = yes; then
  1440. # We found a bogon in the path, so make sure we never use it.
  1441. set dummy $ac_cv_prog_CC
  1442. shift
  1443. if test $# != 0; then
  1444. # We chose a different compiler from the bogus one.
  1445. # However, it has the same basename, so the bogon will be chosen
  1446. # first if we set CC to just the basename; use the full file name.
  1447. shift
  1448. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1449. fi
  1450. fi
  1451. fi
  1452. fi
  1453. CC=$ac_cv_prog_CC
  1454. if test -n "$CC"; then
  1455. echo "$as_me:$LINENO: result: $CC" >&5
  1456. echo "${ECHO_T}$CC" >&6
  1457. else
  1458. echo "$as_me:$LINENO: result: no" >&5
  1459. echo "${ECHO_T}no" >&6
  1460. fi
  1461. fi
  1462. if test -z "$CC"; then
  1463. if test -n "$ac_tool_prefix"; then
  1464. for ac_prog in cl
  1465. do
  1466. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1467. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1468. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1469. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1470. if test "${ac_cv_prog_CC+set}" = set; then
  1471. echo $ECHO_N "(cached) $ECHO_C" >&6
  1472. else
  1473. if test -n "$CC"; then
  1474. ac_cv_prog_CC="$CC" # Let the user override the test.
  1475. else
  1476. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1477. for as_dir in $PATH
  1478. do
  1479. IFS=$as_save_IFS
  1480. test -z "$as_dir" && as_dir=.
  1481. for ac_exec_ext in '' $ac_executable_extensions; do
  1482. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1483. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1484. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1485. break 2
  1486. fi
  1487. done
  1488. done
  1489. fi
  1490. fi
  1491. CC=$ac_cv_prog_CC
  1492. if test -n "$CC"; then
  1493. echo "$as_me:$LINENO: result: $CC" >&5
  1494. echo "${ECHO_T}$CC" >&6
  1495. else
  1496. echo "$as_me:$LINENO: result: no" >&5
  1497. echo "${ECHO_T}no" >&6
  1498. fi
  1499. test -n "$CC" && break
  1500. done
  1501. fi
  1502. if test -z "$CC"; then
  1503. ac_ct_CC=$CC
  1504. for ac_prog in cl
  1505. do
  1506. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1507. set dummy $ac_prog; ac_word=$2
  1508. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1509. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1510. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1511. echo $ECHO_N "(cached) $ECHO_C" >&6
  1512. else
  1513. if test -n "$ac_ct_CC"; then
  1514. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1515. else
  1516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1517. for as_dir in $PATH
  1518. do
  1519. IFS=$as_save_IFS
  1520. test -z "$as_dir" && as_dir=.
  1521. for ac_exec_ext in '' $ac_executable_extensions; do
  1522. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1523. ac_cv_prog_ac_ct_CC="$ac_prog"
  1524. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1525. break 2
  1526. fi
  1527. done
  1528. done
  1529. fi
  1530. fi
  1531. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1532. if test -n "$ac_ct_CC"; then
  1533. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1534. echo "${ECHO_T}$ac_ct_CC" >&6
  1535. else
  1536. echo "$as_me:$LINENO: result: no" >&5
  1537. echo "${ECHO_T}no" >&6
  1538. fi
  1539. test -n "$ac_ct_CC" && break
  1540. done
  1541. CC=$ac_ct_CC
  1542. fi
  1543. fi
  1544. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1545. See \`config.log' for more details." >&5
  1546. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1547. See \`config.log' for more details." >&2;}
  1548. { (exit 1); exit 1; }; }
  1549. # Provide some information about the compiler.
  1550. echo "$as_me:$LINENO:" \
  1551. "checking for C compiler version" >&5
  1552. ac_compiler=`set X $ac_compile; echo $2`
  1553. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1554. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1555. ac_status=$?
  1556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1557. (exit $ac_status); }
  1558. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1559. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1560. ac_status=$?
  1561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1562. (exit $ac_status); }
  1563. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1564. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1565. ac_status=$?
  1566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1567. (exit $ac_status); }
  1568. cat >conftest.$ac_ext <<_ACEOF
  1569. /* confdefs.h. */
  1570. _ACEOF
  1571. cat confdefs.h >>conftest.$ac_ext
  1572. cat >>conftest.$ac_ext <<_ACEOF
  1573. /* end confdefs.h. */
  1574. int
  1575. main ()
  1576. {
  1577. ;
  1578. return 0;
  1579. }
  1580. _ACEOF
  1581. ac_clean_files_save=$ac_clean_files
  1582. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1583. # Try to create an executable without -o first, disregard a.out.
  1584. # It will help us diagnose broken compilers, and finding out an intuition
  1585. # of exeext.
  1586. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1587. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1588. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1589. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1590. (eval $ac_link_default) 2>&5
  1591. ac_status=$?
  1592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1593. (exit $ac_status); }; then
  1594. # Find the output, starting from the most likely. This scheme is
  1595. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1596. # resort.
  1597. # Be careful to initialize this variable, since it used to be cached.
  1598. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1599. ac_cv_exeext=
  1600. # b.out is created by i960 compilers.
  1601. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1602. do
  1603. test -f "$ac_file" || continue
  1604. case $ac_file in
  1605. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1606. ;;
  1607. conftest.$ac_ext )
  1608. # This is the source file.
  1609. ;;
  1610. [ab].out )
  1611. # We found the default executable, but exeext='' is most
  1612. # certainly right.
  1613. break;;
  1614. *.* )
  1615. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1616. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1617. # but it would be cool to find out if it's true. Does anybody
  1618. # maintain Libtool? --akim.
  1619. export ac_cv_exeext
  1620. break;;
  1621. * )
  1622. break;;
  1623. esac
  1624. done
  1625. else
  1626. echo "$as_me: failed program was:" >&5
  1627. sed 's/^/| /' conftest.$ac_ext >&5
  1628. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1629. See \`config.log' for more details." >&5
  1630. echo "$as_me: error: C compiler cannot create executables
  1631. See \`config.log' for more details." >&2;}
  1632. { (exit 77); exit 77; }; }
  1633. fi
  1634. ac_exeext=$ac_cv_exeext
  1635. echo "$as_me:$LINENO: result: $ac_file" >&5
  1636. echo "${ECHO_T}$ac_file" >&6
  1637. # Check the compiler produces executables we can run. If not, either
  1638. # the compiler is broken, or we cross compile.
  1639. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1640. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1641. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1642. # If not cross compiling, check that we can run a simple program.
  1643. if test "$cross_compiling" != yes; then
  1644. if { ac_try='./$ac_file'
  1645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1646. (eval $ac_try) 2>&5
  1647. ac_status=$?
  1648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1649. (exit $ac_status); }; }; then
  1650. cross_compiling=no
  1651. else
  1652. if test "$cross_compiling" = maybe; then
  1653. cross_compiling=yes
  1654. else
  1655. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1656. If you meant to cross compile, use \`--host'.
  1657. See \`config.log' for more details." >&5
  1658. echo "$as_me: error: cannot run C compiled programs.
  1659. If you meant to cross compile, use \`--host'.
  1660. See \`config.log' for more details." >&2;}
  1661. { (exit 1); exit 1; }; }
  1662. fi
  1663. fi
  1664. fi
  1665. echo "$as_me:$LINENO: result: yes" >&5
  1666. echo "${ECHO_T}yes" >&6
  1667. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1668. ac_clean_files=$ac_clean_files_save
  1669. # Check the compiler produces executables we can run. If not, either
  1670. # the compiler is broken, or we cross compile.
  1671. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1672. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1673. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1674. echo "${ECHO_T}$cross_compiling" >&6
  1675. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1676. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1677. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1678. (eval $ac_link) 2>&5
  1679. ac_status=$?
  1680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1681. (exit $ac_status); }; then
  1682. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1683. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1684. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1685. # `rm'.
  1686. for ac_file in conftest.exe conftest conftest.*; do
  1687. test -f "$ac_file" || continue
  1688. case $ac_file in
  1689. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1690. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1691. export ac_cv_exeext
  1692. break;;
  1693. * ) break;;
  1694. esac
  1695. done
  1696. else
  1697. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1698. See \`config.log' for more details." >&5
  1699. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1700. See \`config.log' for more details." >&2;}
  1701. { (exit 1); exit 1; }; }
  1702. fi
  1703. rm -f conftest$ac_cv_exeext
  1704. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1705. echo "${ECHO_T}$ac_cv_exeext" >&6
  1706. rm -f conftest.$ac_ext
  1707. EXEEXT=$ac_cv_exeext
  1708. ac_exeext=$EXEEXT
  1709. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1710. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1711. if test "${ac_cv_objext+set}" = set; then
  1712. echo $ECHO_N "(cached) $ECHO_C" >&6
  1713. else
  1714. cat >conftest.$ac_ext <<_ACEOF
  1715. /* confdefs.h. */
  1716. _ACEOF
  1717. cat confdefs.h >>conftest.$ac_ext
  1718. cat >>conftest.$ac_ext <<_ACEOF
  1719. /* end confdefs.h. */
  1720. int
  1721. main ()
  1722. {
  1723. ;
  1724. return 0;
  1725. }
  1726. _ACEOF
  1727. rm -f conftest.o conftest.obj
  1728. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1729. (eval $ac_compile) 2>&5
  1730. ac_status=$?
  1731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1732. (exit $ac_status); }; then
  1733. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1734. case $ac_file in
  1735. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1736. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1737. break;;
  1738. esac
  1739. done
  1740. else
  1741. echo "$as_me: failed program was:" >&5
  1742. sed 's/^/| /' conftest.$ac_ext >&5
  1743. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1744. See \`config.log' for more details." >&5
  1745. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1746. See \`config.log' for more details." >&2;}
  1747. { (exit 1); exit 1; }; }
  1748. fi
  1749. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1750. fi
  1751. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1752. echo "${ECHO_T}$ac_cv_objext" >&6
  1753. OBJEXT=$ac_cv_objext
  1754. ac_objext=$OBJEXT
  1755. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1756. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1757. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1758. echo $ECHO_N "(cached) $ECHO_C" >&6
  1759. else
  1760. cat >conftest.$ac_ext <<_ACEOF
  1761. /* confdefs.h. */
  1762. _ACEOF
  1763. cat confdefs.h >>conftest.$ac_ext
  1764. cat >>conftest.$ac_ext <<_ACEOF
  1765. /* end confdefs.h. */
  1766. int
  1767. main ()
  1768. {
  1769. #ifndef __GNUC__
  1770. choke me
  1771. #endif
  1772. ;
  1773. return 0;
  1774. }
  1775. _ACEOF
  1776. rm -f conftest.$ac_objext
  1777. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1778. (eval $ac_compile) 2>conftest.er1
  1779. ac_status=$?
  1780. grep -v '^ *+' conftest.er1 >conftest.err
  1781. rm -f conftest.er1
  1782. cat conftest.err >&5
  1783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1784. (exit $ac_status); } &&
  1785. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1787. (eval $ac_try) 2>&5
  1788. ac_status=$?
  1789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1790. (exit $ac_status); }; } &&
  1791. { ac_try='test -s conftest.$ac_objext'
  1792. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1793. (eval $ac_try) 2>&5
  1794. ac_status=$?
  1795. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1796. (exit $ac_status); }; }; then
  1797. ac_compiler_gnu=yes
  1798. else
  1799. echo "$as_me: failed program was:" >&5
  1800. sed 's/^/| /' conftest.$ac_ext >&5
  1801. ac_compiler_gnu=no
  1802. fi
  1803. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1804. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1805. fi
  1806. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1807. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1808. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1809. ac_test_CFLAGS=${CFLAGS+set}
  1810. ac_save_CFLAGS=$CFLAGS
  1811. CFLAGS="-g"
  1812. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1813. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1814. if test "${ac_cv_prog_cc_g+set}" = set; then
  1815. echo $ECHO_N "(cached) $ECHO_C" >&6
  1816. else
  1817. cat >conftest.$ac_ext <<_ACEOF
  1818. /* confdefs.h. */
  1819. _ACEOF
  1820. cat confdefs.h >>conftest.$ac_ext
  1821. cat >>conftest.$ac_ext <<_ACEOF
  1822. /* end confdefs.h. */
  1823. int
  1824. main ()
  1825. {
  1826. ;
  1827. return 0;
  1828. }
  1829. _ACEOF
  1830. rm -f conftest.$ac_objext
  1831. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1832. (eval $ac_compile) 2>conftest.er1
  1833. ac_status=$?
  1834. grep -v '^ *+' conftest.er1 >conftest.err
  1835. rm -f conftest.er1
  1836. cat conftest.err >&5
  1837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1838. (exit $ac_status); } &&
  1839. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1841. (eval $ac_try) 2>&5
  1842. ac_status=$?
  1843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1844. (exit $ac_status); }; } &&
  1845. { ac_try='test -s conftest.$ac_objext'
  1846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1847. (eval $ac_try) 2>&5
  1848. ac_status=$?
  1849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1850. (exit $ac_status); }; }; then
  1851. ac_cv_prog_cc_g=yes
  1852. else
  1853. echo "$as_me: failed program was:" >&5
  1854. sed 's/^/| /' conftest.$ac_ext >&5
  1855. ac_cv_prog_cc_g=no
  1856. fi
  1857. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1858. fi
  1859. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1860. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1861. if test "$ac_test_CFLAGS" = set; then
  1862. CFLAGS=$ac_save_CFLAGS
  1863. elif test $ac_cv_prog_cc_g = yes; then
  1864. if test "$GCC" = yes; then
  1865. CFLAGS="-g -O2"
  1866. else
  1867. CFLAGS="-g"
  1868. fi
  1869. else
  1870. if test "$GCC" = yes; then
  1871. CFLAGS="-O2"
  1872. else
  1873. CFLAGS=
  1874. fi
  1875. fi
  1876. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1877. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1878. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1879. echo $ECHO_N "(cached) $ECHO_C" >&6
  1880. else
  1881. ac_cv_prog_cc_stdc=no
  1882. ac_save_CC=$CC
  1883. cat >conftest.$ac_ext <<_ACEOF
  1884. /* confdefs.h. */
  1885. _ACEOF
  1886. cat confdefs.h >>conftest.$ac_ext
  1887. cat >>conftest.$ac_ext <<_ACEOF
  1888. /* end confdefs.h. */
  1889. #include <stdarg.h>
  1890. #include <stdio.h>
  1891. #include <sys/types.h>
  1892. #include <sys/stat.h>
  1893. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1894. struct buf { int x; };
  1895. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1896. static char *e (p, i)
  1897. char **p;
  1898. int i;
  1899. {
  1900. return p[i];
  1901. }
  1902. static char *f (char * (*g) (char **, int), char **p, ...)
  1903. {
  1904. char *s;
  1905. va_list v;
  1906. va_start (v,p);
  1907. s = g (p, va_arg (v,int));
  1908. va_end (v);
  1909. return s;
  1910. }
  1911. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1912. function prototypes and stuff, but not '\xHH' hex character constants.
  1913. These don't provoke an error unfortunately, instead are silently treated
  1914. as 'x'. The following induces an error, until -std1 is added to get
  1915. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1916. array size at least. It's necessary to write '\x00'==0 to get something
  1917. that's true only with -std1. */
  1918. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1919. int test (int i, double x);
  1920. struct s1 {int (*f) (int a);};
  1921. struct s2 {int (*f) (double a);};
  1922. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1923. int argc;
  1924. char **argv;
  1925. int
  1926. main ()
  1927. {
  1928. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1929. ;
  1930. return 0;
  1931. }
  1932. _ACEOF
  1933. # Don't try gcc -ansi; that turns off useful extensions and
  1934. # breaks some systems' header files.
  1935. # AIX -qlanglvl=ansi
  1936. # Ultrix and OSF/1 -std1
  1937. # HP-UX 10.20 and later -Ae
  1938. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1939. # SVR4 -Xc -D__EXTENSIONS__
  1940. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1941. do
  1942. CC="$ac_save_CC $ac_arg"
  1943. rm -f conftest.$ac_objext
  1944. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1945. (eval $ac_compile) 2>conftest.er1
  1946. ac_status=$?
  1947. grep -v '^ *+' conftest.er1 >conftest.err
  1948. rm -f conftest.er1
  1949. cat conftest.err >&5
  1950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1951. (exit $ac_status); } &&
  1952. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1954. (eval $ac_try) 2>&5
  1955. ac_status=$?
  1956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1957. (exit $ac_status); }; } &&
  1958. { ac_try='test -s conftest.$ac_objext'
  1959. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1960. (eval $ac_try) 2>&5
  1961. ac_status=$?
  1962. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1963. (exit $ac_status); }; }; then
  1964. ac_cv_prog_cc_stdc=$ac_arg
  1965. break
  1966. else
  1967. echo "$as_me: failed program was:" >&5
  1968. sed 's/^/| /' conftest.$ac_ext >&5
  1969. fi
  1970. rm -f conftest.err conftest.$ac_objext
  1971. done
  1972. rm -f conftest.$ac_ext conftest.$ac_objext
  1973. CC=$ac_save_CC
  1974. fi
  1975. case "x$ac_cv_prog_cc_stdc" in
  1976. x|xno)
  1977. echo "$as_me:$LINENO: result: none needed" >&5
  1978. echo "${ECHO_T}none needed" >&6 ;;
  1979. *)
  1980. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1981. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1982. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1983. esac
  1984. # Some people use a C++ compiler to compile C. Since we use `exit',
  1985. # in C++ we need to declare it. In case someone uses the same compiler
  1986. # for both compiling C and C++ we need to have the C++ compiler decide
  1987. # the declaration of exit, since it's the most demanding environment.
  1988. cat >conftest.$ac_ext <<_ACEOF
  1989. #ifndef __cplusplus
  1990. choke me
  1991. #endif
  1992. _ACEOF
  1993. rm -f conftest.$ac_objext
  1994. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1995. (eval $ac_compile) 2>conftest.er1
  1996. ac_status=$?
  1997. grep -v '^ *+' conftest.er1 >conftest.err
  1998. rm -f conftest.er1
  1999. cat conftest.err >&5
  2000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2001. (exit $ac_status); } &&
  2002. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2004. (eval $ac_try) 2>&5
  2005. ac_status=$?
  2006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2007. (exit $ac_status); }; } &&
  2008. { ac_try='test -s conftest.$ac_objext'
  2009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2010. (eval $ac_try) 2>&5
  2011. ac_status=$?
  2012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2013. (exit $ac_status); }; }; then
  2014. for ac_declaration in \
  2015. '' \
  2016. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2017. 'extern "C" void std::exit (int); using std::exit;' \
  2018. 'extern "C" void exit (int) throw ();' \
  2019. 'extern "C" void exit (int);' \
  2020. 'void exit (int);'
  2021. do
  2022. cat >conftest.$ac_ext <<_ACEOF
  2023. /* confdefs.h. */
  2024. _ACEOF
  2025. cat confdefs.h >>conftest.$ac_ext
  2026. cat >>conftest.$ac_ext <<_ACEOF
  2027. /* end confdefs.h. */
  2028. $ac_declaration
  2029. #include <stdlib.h>
  2030. int
  2031. main ()
  2032. {
  2033. exit (42);
  2034. ;
  2035. return 0;
  2036. }
  2037. _ACEOF
  2038. rm -f conftest.$ac_objext
  2039. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2040. (eval $ac_compile) 2>conftest.er1
  2041. ac_status=$?
  2042. grep -v '^ *+' conftest.er1 >conftest.err
  2043. rm -f conftest.er1
  2044. cat conftest.err >&5
  2045. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2046. (exit $ac_status); } &&
  2047. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2048. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2049. (eval $ac_try) 2>&5
  2050. ac_status=$?
  2051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2052. (exit $ac_status); }; } &&
  2053. { ac_try='test -s conftest.$ac_objext'
  2054. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2055. (eval $ac_try) 2>&5
  2056. ac_status=$?
  2057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2058. (exit $ac_status); }; }; then
  2059. :
  2060. else
  2061. echo "$as_me: failed program was:" >&5
  2062. sed 's/^/| /' conftest.$ac_ext >&5
  2063. continue
  2064. fi
  2065. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2066. cat >conftest.$ac_ext <<_ACEOF
  2067. /* confdefs.h. */
  2068. _ACEOF
  2069. cat confdefs.h >>conftest.$ac_ext
  2070. cat >>conftest.$ac_ext <<_ACEOF
  2071. /* end confdefs.h. */
  2072. $ac_declaration
  2073. int
  2074. main ()
  2075. {
  2076. exit (42);
  2077. ;
  2078. return 0;
  2079. }
  2080. _ACEOF
  2081. rm -f conftest.$ac_objext
  2082. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2083. (eval $ac_compile) 2>conftest.er1
  2084. ac_status=$?
  2085. grep -v '^ *+' conftest.er1 >conftest.err
  2086. rm -f conftest.er1
  2087. cat conftest.err >&5
  2088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2089. (exit $ac_status); } &&
  2090. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2092. (eval $ac_try) 2>&5
  2093. ac_status=$?
  2094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2095. (exit $ac_status); }; } &&
  2096. { ac_try='test -s conftest.$ac_objext'
  2097. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2098. (eval $ac_try) 2>&5
  2099. ac_status=$?
  2100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2101. (exit $ac_status); }; }; then
  2102. break
  2103. else
  2104. echo "$as_me: failed program was:" >&5
  2105. sed 's/^/| /' conftest.$ac_ext >&5
  2106. fi
  2107. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2108. done
  2109. rm -f conftest*
  2110. if test -n "$ac_declaration"; then
  2111. echo '#ifdef __cplusplus' >>confdefs.h
  2112. echo $ac_declaration >>confdefs.h
  2113. echo '#endif' >>confdefs.h
  2114. fi
  2115. else
  2116. echo "$as_me: failed program was:" >&5
  2117. sed 's/^/| /' conftest.$ac_ext >&5
  2118. fi
  2119. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2120. ac_ext=c
  2121. ac_cpp='$CPP $CPPFLAGS'
  2122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2123. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2124. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2125. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  2126. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  2127. if test "${ac_cv_c_bigendian+set}" = set; then
  2128. echo $ECHO_N "(cached) $ECHO_C" >&6
  2129. else
  2130. # See if sys/param.h defines the BYTE_ORDER macro.
  2131. cat >conftest.$ac_ext <<_ACEOF
  2132. /* confdefs.h. */
  2133. _ACEOF
  2134. cat confdefs.h >>conftest.$ac_ext
  2135. cat >>conftest.$ac_ext <<_ACEOF
  2136. /* end confdefs.h. */
  2137. #include <sys/types.h>
  2138. #include <sys/param.h>
  2139. int
  2140. main ()
  2141. {
  2142. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2143. bogus endian macros
  2144. #endif
  2145. ;
  2146. return 0;
  2147. }
  2148. _ACEOF
  2149. rm -f conftest.$ac_objext
  2150. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2151. (eval $ac_compile) 2>conftest.er1
  2152. ac_status=$?
  2153. grep -v '^ *+' conftest.er1 >conftest.err
  2154. rm -f conftest.er1
  2155. cat conftest.err >&5
  2156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2157. (exit $ac_status); } &&
  2158. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2159. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2160. (eval $ac_try) 2>&5
  2161. ac_status=$?
  2162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2163. (exit $ac_status); }; } &&
  2164. { ac_try='test -s conftest.$ac_objext'
  2165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2166. (eval $ac_try) 2>&5
  2167. ac_status=$?
  2168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2169. (exit $ac_status); }; }; then
  2170. # It does; now see whether it defined to BIG_ENDIAN or not.
  2171. cat >conftest.$ac_ext <<_ACEOF
  2172. /* confdefs.h. */
  2173. _ACEOF
  2174. cat confdefs.h >>conftest.$ac_ext
  2175. cat >>conftest.$ac_ext <<_ACEOF
  2176. /* end confdefs.h. */
  2177. #include <sys/types.h>
  2178. #include <sys/param.h>
  2179. int
  2180. main ()
  2181. {
  2182. #if BYTE_ORDER != BIG_ENDIAN
  2183. not big endian
  2184. #endif
  2185. ;
  2186. return 0;
  2187. }
  2188. _ACEOF
  2189. rm -f conftest.$ac_objext
  2190. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2191. (eval $ac_compile) 2>conftest.er1
  2192. ac_status=$?
  2193. grep -v '^ *+' conftest.er1 >conftest.err
  2194. rm -f conftest.er1
  2195. cat conftest.err >&5
  2196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2197. (exit $ac_status); } &&
  2198. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2199. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2200. (eval $ac_try) 2>&5
  2201. ac_status=$?
  2202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2203. (exit $ac_status); }; } &&
  2204. { ac_try='test -s conftest.$ac_objext'
  2205. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2206. (eval $ac_try) 2>&5
  2207. ac_status=$?
  2208. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2209. (exit $ac_status); }; }; then
  2210. ac_cv_c_bigendian=yes
  2211. else
  2212. echo "$as_me: failed program was:" >&5
  2213. sed 's/^/| /' conftest.$ac_ext >&5
  2214. ac_cv_c_bigendian=no
  2215. fi
  2216. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2217. else
  2218. echo "$as_me: failed program was:" >&5
  2219. sed 's/^/| /' conftest.$ac_ext >&5
  2220. # It does not; compile a test program.
  2221. if test "$cross_compiling" = yes; then
  2222. # try to guess the endianness by grepping values into an object file
  2223. ac_cv_c_bigendian=unknown
  2224. cat >conftest.$ac_ext <<_ACEOF
  2225. /* confdefs.h. */
  2226. _ACEOF
  2227. cat confdefs.h >>conftest.$ac_ext
  2228. cat >>conftest.$ac_ext <<_ACEOF
  2229. /* end confdefs.h. */
  2230. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  2231. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  2232. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  2233. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  2234. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  2235. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  2236. int
  2237. main ()
  2238. {
  2239. _ascii (); _ebcdic ();
  2240. ;
  2241. return 0;
  2242. }
  2243. _ACEOF
  2244. rm -f conftest.$ac_objext
  2245. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2246. (eval $ac_compile) 2>conftest.er1
  2247. ac_status=$?
  2248. grep -v '^ *+' conftest.er1 >conftest.err
  2249. rm -f conftest.er1
  2250. cat conftest.err >&5
  2251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2252. (exit $ac_status); } &&
  2253. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2254. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2255. (eval $ac_try) 2>&5
  2256. ac_status=$?
  2257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2258. (exit $ac_status); }; } &&
  2259. { ac_try='test -s conftest.$ac_objext'
  2260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2261. (eval $ac_try) 2>&5
  2262. ac_status=$?
  2263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2264. (exit $ac_status); }; }; then
  2265. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  2266. ac_cv_c_bigendian=yes
  2267. fi
  2268. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  2269. if test "$ac_cv_c_bigendian" = unknown; then
  2270. ac_cv_c_bigendian=no
  2271. else
  2272. # finding both strings is unlikely to happen, but who knows?
  2273. ac_cv_c_bigendian=unknown
  2274. fi
  2275. fi
  2276. else
  2277. echo "$as_me: failed program was:" >&5
  2278. sed 's/^/| /' conftest.$ac_ext >&5
  2279. fi
  2280. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2281. else
  2282. cat >conftest.$ac_ext <<_ACEOF
  2283. /* confdefs.h. */
  2284. _ACEOF
  2285. cat confdefs.h >>conftest.$ac_ext
  2286. cat >>conftest.$ac_ext <<_ACEOF
  2287. /* end confdefs.h. */
  2288. int
  2289. main ()
  2290. {
  2291. /* Are we little or big endian? From Harbison&Steele. */
  2292. union
  2293. {
  2294. long l;
  2295. char c[sizeof (long)];
  2296. } u;
  2297. u.l = 1;
  2298. exit (u.c[sizeof (long) - 1] == 1);
  2299. }
  2300. _ACEOF
  2301. rm -f conftest$ac_exeext
  2302. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2303. (eval $ac_link) 2>&5
  2304. ac_status=$?
  2305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2306. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2308. (eval $ac_try) 2>&5
  2309. ac_status=$?
  2310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2311. (exit $ac_status); }; }; then
  2312. ac_cv_c_bigendian=no
  2313. else
  2314. echo "$as_me: program exited with status $ac_status" >&5
  2315. echo "$as_me: failed program was:" >&5
  2316. sed 's/^/| /' conftest.$ac_ext >&5
  2317. ( exit $ac_status )
  2318. ac_cv_c_bigendian=yes
  2319. fi
  2320. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2321. fi
  2322. fi
  2323. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2324. fi
  2325. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  2326. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  2327. case $ac_cv_c_bigendian in
  2328. yes)
  2329. cat >>confdefs.h <<\_ACEOF
  2330. #define WORDS_BIGENDIAN 1
  2331. _ACEOF
  2332. ;;
  2333. no)
  2334. ;;
  2335. *)
  2336. { { echo "$as_me:$LINENO: error: unknown endianness
  2337. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  2338. echo "$as_me: error: unknown endianness
  2339. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  2340. { (exit 1); exit 1; }; } ;;
  2341. esac
  2342. ac_ext=c
  2343. ac_cpp='$CPP $CPPFLAGS'
  2344. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2345. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2346. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2347. if test -n "$ac_tool_prefix"; then
  2348. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2349. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2350. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2351. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2352. if test "${ac_cv_prog_CC+set}" = set; then
  2353. echo $ECHO_N "(cached) $ECHO_C" >&6
  2354. else
  2355. if test -n "$CC"; then
  2356. ac_cv_prog_CC="$CC" # Let the user override the test.
  2357. else
  2358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2359. for as_dir in $PATH
  2360. do
  2361. IFS=$as_save_IFS
  2362. test -z "$as_dir" && as_dir=.
  2363. for ac_exec_ext in '' $ac_executable_extensions; do
  2364. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2365. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2366. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2367. break 2
  2368. fi
  2369. done
  2370. done
  2371. fi
  2372. fi
  2373. CC=$ac_cv_prog_CC
  2374. if test -n "$CC"; then
  2375. echo "$as_me:$LINENO: result: $CC" >&5
  2376. echo "${ECHO_T}$CC" >&6
  2377. else
  2378. echo "$as_me:$LINENO: result: no" >&5
  2379. echo "${ECHO_T}no" >&6
  2380. fi
  2381. fi
  2382. if test -z "$ac_cv_prog_CC"; then
  2383. ac_ct_CC=$CC
  2384. # Extract the first word of "gcc", so it can be a program name with args.
  2385. set dummy gcc; ac_word=$2
  2386. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2387. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2388. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2389. echo $ECHO_N "(cached) $ECHO_C" >&6
  2390. else
  2391. if test -n "$ac_ct_CC"; then
  2392. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2393. else
  2394. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2395. for as_dir in $PATH
  2396. do
  2397. IFS=$as_save_IFS
  2398. test -z "$as_dir" && as_dir=.
  2399. for ac_exec_ext in '' $ac_executable_extensions; do
  2400. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2401. ac_cv_prog_ac_ct_CC="gcc"
  2402. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2403. break 2
  2404. fi
  2405. done
  2406. done
  2407. fi
  2408. fi
  2409. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2410. if test -n "$ac_ct_CC"; then
  2411. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2412. echo "${ECHO_T}$ac_ct_CC" >&6
  2413. else
  2414. echo "$as_me:$LINENO: result: no" >&5
  2415. echo "${ECHO_T}no" >&6
  2416. fi
  2417. CC=$ac_ct_CC
  2418. else
  2419. CC="$ac_cv_prog_CC"
  2420. fi
  2421. if test -z "$CC"; then
  2422. if test -n "$ac_tool_prefix"; then
  2423. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2424. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2425. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2426. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2427. if test "${ac_cv_prog_CC+set}" = set; then
  2428. echo $ECHO_N "(cached) $ECHO_C" >&6
  2429. else
  2430. if test -n "$CC"; then
  2431. ac_cv_prog_CC="$CC" # Let the user override the test.
  2432. else
  2433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2434. for as_dir in $PATH
  2435. do
  2436. IFS=$as_save_IFS
  2437. test -z "$as_dir" && as_dir=.
  2438. for ac_exec_ext in '' $ac_executable_extensions; do
  2439. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2440. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2441. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2442. break 2
  2443. fi
  2444. done
  2445. done
  2446. fi
  2447. fi
  2448. CC=$ac_cv_prog_CC
  2449. if test -n "$CC"; then
  2450. echo "$as_me:$LINENO: result: $CC" >&5
  2451. echo "${ECHO_T}$CC" >&6
  2452. else
  2453. echo "$as_me:$LINENO: result: no" >&5
  2454. echo "${ECHO_T}no" >&6
  2455. fi
  2456. fi
  2457. if test -z "$ac_cv_prog_CC"; then
  2458. ac_ct_CC=$CC
  2459. # Extract the first word of "cc", so it can be a program name with args.
  2460. set dummy cc; ac_word=$2
  2461. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2462. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2463. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2464. echo $ECHO_N "(cached) $ECHO_C" >&6
  2465. else
  2466. if test -n "$ac_ct_CC"; then
  2467. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2468. else
  2469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2470. for as_dir in $PATH
  2471. do
  2472. IFS=$as_save_IFS
  2473. test -z "$as_dir" && as_dir=.
  2474. for ac_exec_ext in '' $ac_executable_extensions; do
  2475. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2476. ac_cv_prog_ac_ct_CC="cc"
  2477. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2478. break 2
  2479. fi
  2480. done
  2481. done
  2482. fi
  2483. fi
  2484. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2485. if test -n "$ac_ct_CC"; then
  2486. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2487. echo "${ECHO_T}$ac_ct_CC" >&6
  2488. else
  2489. echo "$as_me:$LINENO: result: no" >&5
  2490. echo "${ECHO_T}no" >&6
  2491. fi
  2492. CC=$ac_ct_CC
  2493. else
  2494. CC="$ac_cv_prog_CC"
  2495. fi
  2496. fi
  2497. if test -z "$CC"; then
  2498. # Extract the first word of "cc", so it can be a program name with args.
  2499. set dummy cc; ac_word=$2
  2500. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2501. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2502. if test "${ac_cv_prog_CC+set}" = set; then
  2503. echo $ECHO_N "(cached) $ECHO_C" >&6
  2504. else
  2505. if test -n "$CC"; then
  2506. ac_cv_prog_CC="$CC" # Let the user override the test.
  2507. else
  2508. ac_prog_rejected=no
  2509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2510. for as_dir in $PATH
  2511. do
  2512. IFS=$as_save_IFS
  2513. test -z "$as_dir" && as_dir=.
  2514. for ac_exec_ext in '' $ac_executable_extensions; do
  2515. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2516. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2517. ac_prog_rejected=yes
  2518. continue
  2519. fi
  2520. ac_cv_prog_CC="cc"
  2521. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2522. break 2
  2523. fi
  2524. done
  2525. done
  2526. if test $ac_prog_rejected = yes; then
  2527. # We found a bogon in the path, so make sure we never use it.
  2528. set dummy $ac_cv_prog_CC
  2529. shift
  2530. if test $# != 0; then
  2531. # We chose a different compiler from the bogus one.
  2532. # However, it has the same basename, so the bogon will be chosen
  2533. # first if we set CC to just the basename; use the full file name.
  2534. shift
  2535. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2536. fi
  2537. fi
  2538. fi
  2539. fi
  2540. CC=$ac_cv_prog_CC
  2541. if test -n "$CC"; then
  2542. echo "$as_me:$LINENO: result: $CC" >&5
  2543. echo "${ECHO_T}$CC" >&6
  2544. else
  2545. echo "$as_me:$LINENO: result: no" >&5
  2546. echo "${ECHO_T}no" >&6
  2547. fi
  2548. fi
  2549. if test -z "$CC"; then
  2550. if test -n "$ac_tool_prefix"; then
  2551. for ac_prog in cl
  2552. do
  2553. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2554. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2555. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2556. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2557. if test "${ac_cv_prog_CC+set}" = set; then
  2558. echo $ECHO_N "(cached) $ECHO_C" >&6
  2559. else
  2560. if test -n "$CC"; then
  2561. ac_cv_prog_CC="$CC" # Let the user override the test.
  2562. else
  2563. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2564. for as_dir in $PATH
  2565. do
  2566. IFS=$as_save_IFS
  2567. test -z "$as_dir" && as_dir=.
  2568. for ac_exec_ext in '' $ac_executable_extensions; do
  2569. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2570. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2571. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2572. break 2
  2573. fi
  2574. done
  2575. done
  2576. fi
  2577. fi
  2578. CC=$ac_cv_prog_CC
  2579. if test -n "$CC"; then
  2580. echo "$as_me:$LINENO: result: $CC" >&5
  2581. echo "${ECHO_T}$CC" >&6
  2582. else
  2583. echo "$as_me:$LINENO: result: no" >&5
  2584. echo "${ECHO_T}no" >&6
  2585. fi
  2586. test -n "$CC" && break
  2587. done
  2588. fi
  2589. if test -z "$CC"; then
  2590. ac_ct_CC=$CC
  2591. for ac_prog in cl
  2592. do
  2593. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2594. set dummy $ac_prog; ac_word=$2
  2595. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2596. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2597. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  2598. echo $ECHO_N "(cached) $ECHO_C" >&6
  2599. else
  2600. if test -n "$ac_ct_CC"; then
  2601. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2602. else
  2603. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2604. for as_dir in $PATH
  2605. do
  2606. IFS=$as_save_IFS
  2607. test -z "$as_dir" && as_dir=.
  2608. for ac_exec_ext in '' $ac_executable_extensions; do
  2609. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2610. ac_cv_prog_ac_ct_CC="$ac_prog"
  2611. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2612. break 2
  2613. fi
  2614. done
  2615. done
  2616. fi
  2617. fi
  2618. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2619. if test -n "$ac_ct_CC"; then
  2620. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  2621. echo "${ECHO_T}$ac_ct_CC" >&6
  2622. else
  2623. echo "$as_me:$LINENO: result: no" >&5
  2624. echo "${ECHO_T}no" >&6
  2625. fi
  2626. test -n "$ac_ct_CC" && break
  2627. done
  2628. CC=$ac_ct_CC
  2629. fi
  2630. fi
  2631. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  2632. See \`config.log' for more details." >&5
  2633. echo "$as_me: error: no acceptable C compiler found in \$PATH
  2634. See \`config.log' for more details." >&2;}
  2635. { (exit 1); exit 1; }; }
  2636. # Provide some information about the compiler.
  2637. echo "$as_me:$LINENO:" \
  2638. "checking for C compiler version" >&5
  2639. ac_compiler=`set X $ac_compile; echo $2`
  2640. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  2641. (eval $ac_compiler --version </dev/null >&5) 2>&5
  2642. ac_status=$?
  2643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2644. (exit $ac_status); }
  2645. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  2646. (eval $ac_compiler -v </dev/null >&5) 2>&5
  2647. ac_status=$?
  2648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2649. (exit $ac_status); }
  2650. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  2651. (eval $ac_compiler -V </dev/null >&5) 2>&5
  2652. ac_status=$?
  2653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2654. (exit $ac_status); }
  2655. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  2656. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  2657. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  2658. echo $ECHO_N "(cached) $ECHO_C" >&6
  2659. else
  2660. cat >conftest.$ac_ext <<_ACEOF
  2661. /* confdefs.h. */
  2662. _ACEOF
  2663. cat confdefs.h >>conftest.$ac_ext
  2664. cat >>conftest.$ac_ext <<_ACEOF
  2665. /* end confdefs.h. */
  2666. int
  2667. main ()
  2668. {
  2669. #ifndef __GNUC__
  2670. choke me
  2671. #endif
  2672. ;
  2673. return 0;
  2674. }
  2675. _ACEOF
  2676. rm -f conftest.$ac_objext
  2677. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2678. (eval $ac_compile) 2>conftest.er1
  2679. ac_status=$?
  2680. grep -v '^ *+' conftest.er1 >conftest.err
  2681. rm -f conftest.er1
  2682. cat conftest.err >&5
  2683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2684. (exit $ac_status); } &&
  2685. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2686. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2687. (eval $ac_try) 2>&5
  2688. ac_status=$?
  2689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2690. (exit $ac_status); }; } &&
  2691. { ac_try='test -s conftest.$ac_objext'
  2692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2693. (eval $ac_try) 2>&5
  2694. ac_status=$?
  2695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2696. (exit $ac_status); }; }; then
  2697. ac_compiler_gnu=yes
  2698. else
  2699. echo "$as_me: failed program was:" >&5
  2700. sed 's/^/| /' conftest.$ac_ext >&5
  2701. ac_compiler_gnu=no
  2702. fi
  2703. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2704. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2705. fi
  2706. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  2707. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  2708. GCC=`test $ac_compiler_gnu = yes && echo yes`
  2709. ac_test_CFLAGS=${CFLAGS+set}
  2710. ac_save_CFLAGS=$CFLAGS
  2711. CFLAGS="-g"
  2712. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  2713. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  2714. if test "${ac_cv_prog_cc_g+set}" = set; then
  2715. echo $ECHO_N "(cached) $ECHO_C" >&6
  2716. else
  2717. cat >conftest.$ac_ext <<_ACEOF
  2718. /* confdefs.h. */
  2719. _ACEOF
  2720. cat confdefs.h >>conftest.$ac_ext
  2721. cat >>conftest.$ac_ext <<_ACEOF
  2722. /* end confdefs.h. */
  2723. int
  2724. main ()
  2725. {
  2726. ;
  2727. return 0;
  2728. }
  2729. _ACEOF
  2730. rm -f conftest.$ac_objext
  2731. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2732. (eval $ac_compile) 2>conftest.er1
  2733. ac_status=$?
  2734. grep -v '^ *+' conftest.er1 >conftest.err
  2735. rm -f conftest.er1
  2736. cat conftest.err >&5
  2737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2738. (exit $ac_status); } &&
  2739. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2741. (eval $ac_try) 2>&5
  2742. ac_status=$?
  2743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2744. (exit $ac_status); }; } &&
  2745. { ac_try='test -s conftest.$ac_objext'
  2746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2747. (eval $ac_try) 2>&5
  2748. ac_status=$?
  2749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2750. (exit $ac_status); }; }; then
  2751. ac_cv_prog_cc_g=yes
  2752. else
  2753. echo "$as_me: failed program was:" >&5
  2754. sed 's/^/| /' conftest.$ac_ext >&5
  2755. ac_cv_prog_cc_g=no
  2756. fi
  2757. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2758. fi
  2759. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  2760. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  2761. if test "$ac_test_CFLAGS" = set; then
  2762. CFLAGS=$ac_save_CFLAGS
  2763. elif test $ac_cv_prog_cc_g = yes; then
  2764. if test "$GCC" = yes; then
  2765. CFLAGS="-g -O2"
  2766. else
  2767. CFLAGS="-g"
  2768. fi
  2769. else
  2770. if test "$GCC" = yes; then
  2771. CFLAGS="-O2"
  2772. else
  2773. CFLAGS=
  2774. fi
  2775. fi
  2776. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  2777. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  2778. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2779. echo $ECHO_N "(cached) $ECHO_C" >&6
  2780. else
  2781. ac_cv_prog_cc_stdc=no
  2782. ac_save_CC=$CC
  2783. cat >conftest.$ac_ext <<_ACEOF
  2784. /* confdefs.h. */
  2785. _ACEOF
  2786. cat confdefs.h >>conftest.$ac_ext
  2787. cat >>conftest.$ac_ext <<_ACEOF
  2788. /* end confdefs.h. */
  2789. #include <stdarg.h>
  2790. #include <stdio.h>
  2791. #include <sys/types.h>
  2792. #include <sys/stat.h>
  2793. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2794. struct buf { int x; };
  2795. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2796. static char *e (p, i)
  2797. char **p;
  2798. int i;
  2799. {
  2800. return p[i];
  2801. }
  2802. static char *f (char * (*g) (char **, int), char **p, ...)
  2803. {
  2804. char *s;
  2805. va_list v;
  2806. va_start (v,p);
  2807. s = g (p, va_arg (v,int));
  2808. va_end (v);
  2809. return s;
  2810. }
  2811. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2812. function prototypes and stuff, but not '\xHH' hex character constants.
  2813. These don't provoke an error unfortunately, instead are silently treated
  2814. as 'x'. The following induces an error, until -std1 is added to get
  2815. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2816. array size at least. It's necessary to write '\x00'==0 to get something
  2817. that's true only with -std1. */
  2818. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2819. int test (int i, double x);
  2820. struct s1 {int (*f) (int a);};
  2821. struct s2 {int (*f) (double a);};
  2822. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2823. int argc;
  2824. char **argv;
  2825. int
  2826. main ()
  2827. {
  2828. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2829. ;
  2830. return 0;
  2831. }
  2832. _ACEOF
  2833. # Don't try gcc -ansi; that turns off useful extensions and
  2834. # breaks some systems' header files.
  2835. # AIX -qlanglvl=ansi
  2836. # Ultrix and OSF/1 -std1
  2837. # HP-UX 10.20 and later -Ae
  2838. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2839. # SVR4 -Xc -D__EXTENSIONS__
  2840. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2841. do
  2842. CC="$ac_save_CC $ac_arg"
  2843. rm -f conftest.$ac_objext
  2844. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2845. (eval $ac_compile) 2>conftest.er1
  2846. ac_status=$?
  2847. grep -v '^ *+' conftest.er1 >conftest.err
  2848. rm -f conftest.er1
  2849. cat conftest.err >&5
  2850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2851. (exit $ac_status); } &&
  2852. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2854. (eval $ac_try) 2>&5
  2855. ac_status=$?
  2856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2857. (exit $ac_status); }; } &&
  2858. { ac_try='test -s conftest.$ac_objext'
  2859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2860. (eval $ac_try) 2>&5
  2861. ac_status=$?
  2862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2863. (exit $ac_status); }; }; then
  2864. ac_cv_prog_cc_stdc=$ac_arg
  2865. break
  2866. else
  2867. echo "$as_me: failed program was:" >&5
  2868. sed 's/^/| /' conftest.$ac_ext >&5
  2869. fi
  2870. rm -f conftest.err conftest.$ac_objext
  2871. done
  2872. rm -f conftest.$ac_ext conftest.$ac_objext
  2873. CC=$ac_save_CC
  2874. fi
  2875. case "x$ac_cv_prog_cc_stdc" in
  2876. x|xno)
  2877. echo "$as_me:$LINENO: result: none needed" >&5
  2878. echo "${ECHO_T}none needed" >&6 ;;
  2879. *)
  2880. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2881. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2882. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2883. esac
  2884. # Some people use a C++ compiler to compile C. Since we use `exit',
  2885. # in C++ we need to declare it. In case someone uses the same compiler
  2886. # for both compiling C and C++ we need to have the C++ compiler decide
  2887. # the declaration of exit, since it's the most demanding environment.
  2888. cat >conftest.$ac_ext <<_ACEOF
  2889. #ifndef __cplusplus
  2890. choke me
  2891. #endif
  2892. _ACEOF
  2893. rm -f conftest.$ac_objext
  2894. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2895. (eval $ac_compile) 2>conftest.er1
  2896. ac_status=$?
  2897. grep -v '^ *+' conftest.er1 >conftest.err
  2898. rm -f conftest.er1
  2899. cat conftest.err >&5
  2900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2901. (exit $ac_status); } &&
  2902. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2904. (eval $ac_try) 2>&5
  2905. ac_status=$?
  2906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2907. (exit $ac_status); }; } &&
  2908. { ac_try='test -s conftest.$ac_objext'
  2909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2910. (eval $ac_try) 2>&5
  2911. ac_status=$?
  2912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2913. (exit $ac_status); }; }; then
  2914. for ac_declaration in \
  2915. '' \
  2916. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2917. 'extern "C" void std::exit (int); using std::exit;' \
  2918. 'extern "C" void exit (int) throw ();' \
  2919. 'extern "C" void exit (int);' \
  2920. 'void exit (int);'
  2921. do
  2922. cat >conftest.$ac_ext <<_ACEOF
  2923. /* confdefs.h. */
  2924. _ACEOF
  2925. cat confdefs.h >>conftest.$ac_ext
  2926. cat >>conftest.$ac_ext <<_ACEOF
  2927. /* end confdefs.h. */
  2928. $ac_declaration
  2929. #include <stdlib.h>
  2930. int
  2931. main ()
  2932. {
  2933. exit (42);
  2934. ;
  2935. return 0;
  2936. }
  2937. _ACEOF
  2938. rm -f conftest.$ac_objext
  2939. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2940. (eval $ac_compile) 2>conftest.er1
  2941. ac_status=$?
  2942. grep -v '^ *+' conftest.er1 >conftest.err
  2943. rm -f conftest.er1
  2944. cat conftest.err >&5
  2945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2946. (exit $ac_status); } &&
  2947. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2949. (eval $ac_try) 2>&5
  2950. ac_status=$?
  2951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2952. (exit $ac_status); }; } &&
  2953. { ac_try='test -s conftest.$ac_objext'
  2954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2955. (eval $ac_try) 2>&5
  2956. ac_status=$?
  2957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2958. (exit $ac_status); }; }; then
  2959. :
  2960. else
  2961. echo "$as_me: failed program was:" >&5
  2962. sed 's/^/| /' conftest.$ac_ext >&5
  2963. continue
  2964. fi
  2965. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2966. cat >conftest.$ac_ext <<_ACEOF
  2967. /* confdefs.h. */
  2968. _ACEOF
  2969. cat confdefs.h >>conftest.$ac_ext
  2970. cat >>conftest.$ac_ext <<_ACEOF
  2971. /* end confdefs.h. */
  2972. $ac_declaration
  2973. int
  2974. main ()
  2975. {
  2976. exit (42);
  2977. ;
  2978. return 0;
  2979. }
  2980. _ACEOF
  2981. rm -f conftest.$ac_objext
  2982. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2983. (eval $ac_compile) 2>conftest.er1
  2984. ac_status=$?
  2985. grep -v '^ *+' conftest.er1 >conftest.err
  2986. rm -f conftest.er1
  2987. cat conftest.err >&5
  2988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2989. (exit $ac_status); } &&
  2990. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2992. (eval $ac_try) 2>&5
  2993. ac_status=$?
  2994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2995. (exit $ac_status); }; } &&
  2996. { ac_try='test -s conftest.$ac_objext'
  2997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2998. (eval $ac_try) 2>&5
  2999. ac_status=$?
  3000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3001. (exit $ac_status); }; }; then
  3002. break
  3003. else
  3004. echo "$as_me: failed program was:" >&5
  3005. sed 's/^/| /' conftest.$ac_ext >&5
  3006. fi
  3007. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3008. done
  3009. rm -f conftest*
  3010. if test -n "$ac_declaration"; then
  3011. echo '#ifdef __cplusplus' >>confdefs.h
  3012. echo $ac_declaration >>confdefs.h
  3013. echo '#endif' >>confdefs.h
  3014. fi
  3015. else
  3016. echo "$as_me: failed program was:" >&5
  3017. sed 's/^/| /' conftest.$ac_ext >&5
  3018. fi
  3019. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3020. ac_ext=c
  3021. ac_cpp='$CPP $CPPFLAGS'
  3022. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3023. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3024. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3025. ac_ext=cc
  3026. ac_cpp='$CXXCPP $CPPFLAGS'
  3027. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3028. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3029. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3030. if test -n "$ac_tool_prefix"; then
  3031. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3032. do
  3033. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3034. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3035. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3036. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3037. if test "${ac_cv_prog_CXX+set}" = set; then
  3038. echo $ECHO_N "(cached) $ECHO_C" >&6
  3039. else
  3040. if test -n "$CXX"; then
  3041. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3042. else
  3043. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3044. for as_dir in $PATH
  3045. do
  3046. IFS=$as_save_IFS
  3047. test -z "$as_dir" && as_dir=.
  3048. for ac_exec_ext in '' $ac_executable_extensions; do
  3049. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3050. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3051. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3052. break 2
  3053. fi
  3054. done
  3055. done
  3056. fi
  3057. fi
  3058. CXX=$ac_cv_prog_CXX
  3059. if test -n "$CXX"; then
  3060. echo "$as_me:$LINENO: result: $CXX" >&5
  3061. echo "${ECHO_T}$CXX" >&6
  3062. else
  3063. echo "$as_me:$LINENO: result: no" >&5
  3064. echo "${ECHO_T}no" >&6
  3065. fi
  3066. test -n "$CXX" && break
  3067. done
  3068. fi
  3069. if test -z "$CXX"; then
  3070. ac_ct_CXX=$CXX
  3071. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  3072. do
  3073. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3074. set dummy $ac_prog; ac_word=$2
  3075. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3076. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3077. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  3078. echo $ECHO_N "(cached) $ECHO_C" >&6
  3079. else
  3080. if test -n "$ac_ct_CXX"; then
  3081. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  3082. else
  3083. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3084. for as_dir in $PATH
  3085. do
  3086. IFS=$as_save_IFS
  3087. test -z "$as_dir" && as_dir=.
  3088. for ac_exec_ext in '' $ac_executable_extensions; do
  3089. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3090. ac_cv_prog_ac_ct_CXX="$ac_prog"
  3091. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3092. break 2
  3093. fi
  3094. done
  3095. done
  3096. fi
  3097. fi
  3098. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  3099. if test -n "$ac_ct_CXX"; then
  3100. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  3101. echo "${ECHO_T}$ac_ct_CXX" >&6
  3102. else
  3103. echo "$as_me:$LINENO: result: no" >&5
  3104. echo "${ECHO_T}no" >&6
  3105. fi
  3106. test -n "$ac_ct_CXX" && break
  3107. done
  3108. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  3109. CXX=$ac_ct_CXX
  3110. fi
  3111. # Provide some information about the compiler.
  3112. echo "$as_me:$LINENO:" \
  3113. "checking for C++ compiler version" >&5
  3114. ac_compiler=`set X $ac_compile; echo $2`
  3115. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  3116. (eval $ac_compiler --version </dev/null >&5) 2>&5
  3117. ac_status=$?
  3118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3119. (exit $ac_status); }
  3120. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  3121. (eval $ac_compiler -v </dev/null >&5) 2>&5
  3122. ac_status=$?
  3123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3124. (exit $ac_status); }
  3125. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  3126. (eval $ac_compiler -V </dev/null >&5) 2>&5
  3127. ac_status=$?
  3128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3129. (exit $ac_status); }
  3130. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  3131. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  3132. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  3133. echo $ECHO_N "(cached) $ECHO_C" >&6
  3134. else
  3135. cat >conftest.$ac_ext <<_ACEOF
  3136. /* confdefs.h. */
  3137. _ACEOF
  3138. cat confdefs.h >>conftest.$ac_ext
  3139. cat >>conftest.$ac_ext <<_ACEOF
  3140. /* end confdefs.h. */
  3141. int
  3142. main ()
  3143. {
  3144. #ifndef __GNUC__
  3145. choke me
  3146. #endif
  3147. ;
  3148. return 0;
  3149. }
  3150. _ACEOF
  3151. rm -f conftest.$ac_objext
  3152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3153. (eval $ac_compile) 2>conftest.er1
  3154. ac_status=$?
  3155. grep -v '^ *+' conftest.er1 >conftest.err
  3156. rm -f conftest.er1
  3157. cat conftest.err >&5
  3158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3159. (exit $ac_status); } &&
  3160. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3162. (eval $ac_try) 2>&5
  3163. ac_status=$?
  3164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3165. (exit $ac_status); }; } &&
  3166. { ac_try='test -s conftest.$ac_objext'
  3167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3168. (eval $ac_try) 2>&5
  3169. ac_status=$?
  3170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3171. (exit $ac_status); }; }; then
  3172. ac_compiler_gnu=yes
  3173. else
  3174. echo "$as_me: failed program was:" >&5
  3175. sed 's/^/| /' conftest.$ac_ext >&5
  3176. ac_compiler_gnu=no
  3177. fi
  3178. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3179. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  3180. fi
  3181. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  3182. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  3183. GXX=`test $ac_compiler_gnu = yes && echo yes`
  3184. ac_test_CXXFLAGS=${CXXFLAGS+set}
  3185. ac_save_CXXFLAGS=$CXXFLAGS
  3186. CXXFLAGS="-g"
  3187. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  3188. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  3189. if test "${ac_cv_prog_cxx_g+set}" = set; then
  3190. echo $ECHO_N "(cached) $ECHO_C" >&6
  3191. else
  3192. cat >conftest.$ac_ext <<_ACEOF
  3193. /* confdefs.h. */
  3194. _ACEOF
  3195. cat confdefs.h >>conftest.$ac_ext
  3196. cat >>conftest.$ac_ext <<_ACEOF
  3197. /* end confdefs.h. */
  3198. int
  3199. main ()
  3200. {
  3201. ;
  3202. return 0;
  3203. }
  3204. _ACEOF
  3205. rm -f conftest.$ac_objext
  3206. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3207. (eval $ac_compile) 2>conftest.er1
  3208. ac_status=$?
  3209. grep -v '^ *+' conftest.er1 >conftest.err
  3210. rm -f conftest.er1
  3211. cat conftest.err >&5
  3212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3213. (exit $ac_status); } &&
  3214. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3215. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3216. (eval $ac_try) 2>&5
  3217. ac_status=$?
  3218. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3219. (exit $ac_status); }; } &&
  3220. { ac_try='test -s conftest.$ac_objext'
  3221. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3222. (eval $ac_try) 2>&5
  3223. ac_status=$?
  3224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3225. (exit $ac_status); }; }; then
  3226. ac_cv_prog_cxx_g=yes
  3227. else
  3228. echo "$as_me: failed program was:" >&5
  3229. sed 's/^/| /' conftest.$ac_ext >&5
  3230. ac_cv_prog_cxx_g=no
  3231. fi
  3232. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3233. fi
  3234. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  3235. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  3236. if test "$ac_test_CXXFLAGS" = set; then
  3237. CXXFLAGS=$ac_save_CXXFLAGS
  3238. elif test $ac_cv_prog_cxx_g = yes; then
  3239. if test "$GXX" = yes; then
  3240. CXXFLAGS="-g -O2"
  3241. else
  3242. CXXFLAGS="-g"
  3243. fi
  3244. else
  3245. if test "$GXX" = yes; then
  3246. CXXFLAGS="-O2"
  3247. else
  3248. CXXFLAGS=
  3249. fi
  3250. fi
  3251. for ac_declaration in \
  3252. '' \
  3253. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  3254. 'extern "C" void std::exit (int); using std::exit;' \
  3255. 'extern "C" void exit (int) throw ();' \
  3256. 'extern "C" void exit (int);' \
  3257. 'void exit (int);'
  3258. do
  3259. cat >conftest.$ac_ext <<_ACEOF
  3260. /* confdefs.h. */
  3261. _ACEOF
  3262. cat confdefs.h >>conftest.$ac_ext
  3263. cat >>conftest.$ac_ext <<_ACEOF
  3264. /* end confdefs.h. */
  3265. $ac_declaration
  3266. #include <stdlib.h>
  3267. int
  3268. main ()
  3269. {
  3270. exit (42);
  3271. ;
  3272. return 0;
  3273. }
  3274. _ACEOF
  3275. rm -f conftest.$ac_objext
  3276. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3277. (eval $ac_compile) 2>conftest.er1
  3278. ac_status=$?
  3279. grep -v '^ *+' conftest.er1 >conftest.err
  3280. rm -f conftest.er1
  3281. cat conftest.err >&5
  3282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3283. (exit $ac_status); } &&
  3284. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3286. (eval $ac_try) 2>&5
  3287. ac_status=$?
  3288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3289. (exit $ac_status); }; } &&
  3290. { ac_try='test -s conftest.$ac_objext'
  3291. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3292. (eval $ac_try) 2>&5
  3293. ac_status=$?
  3294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3295. (exit $ac_status); }; }; then
  3296. :
  3297. else
  3298. echo "$as_me: failed program was:" >&5
  3299. sed 's/^/| /' conftest.$ac_ext >&5
  3300. continue
  3301. fi
  3302. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3303. cat >conftest.$ac_ext <<_ACEOF
  3304. /* confdefs.h. */
  3305. _ACEOF
  3306. cat confdefs.h >>conftest.$ac_ext
  3307. cat >>conftest.$ac_ext <<_ACEOF
  3308. /* end confdefs.h. */
  3309. $ac_declaration
  3310. int
  3311. main ()
  3312. {
  3313. exit (42);
  3314. ;
  3315. return 0;
  3316. }
  3317. _ACEOF
  3318. rm -f conftest.$ac_objext
  3319. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3320. (eval $ac_compile) 2>conftest.er1
  3321. ac_status=$?
  3322. grep -v '^ *+' conftest.er1 >conftest.err
  3323. rm -f conftest.er1
  3324. cat conftest.err >&5
  3325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3326. (exit $ac_status); } &&
  3327. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3329. (eval $ac_try) 2>&5
  3330. ac_status=$?
  3331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3332. (exit $ac_status); }; } &&
  3333. { ac_try='test -s conftest.$ac_objext'
  3334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3335. (eval $ac_try) 2>&5
  3336. ac_status=$?
  3337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3338. (exit $ac_status); }; }; then
  3339. break
  3340. else
  3341. echo "$as_me: failed program was:" >&5
  3342. sed 's/^/| /' conftest.$ac_ext >&5
  3343. fi
  3344. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3345. done
  3346. rm -f conftest*
  3347. if test -n "$ac_declaration"; then
  3348. echo '#ifdef __cplusplus' >>confdefs.h
  3349. echo $ac_declaration >>confdefs.h
  3350. echo '#endif' >>confdefs.h
  3351. fi
  3352. ac_ext=c
  3353. ac_cpp='$CPP $CPPFLAGS'
  3354. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3355. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3356. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3357. ac_ext=c
  3358. ac_cpp='$CPP $CPPFLAGS'
  3359. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3360. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3361. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3362. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  3363. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  3364. # On Suns, sometimes $CPP names a directory.
  3365. if test -n "$CPP" && test -d "$CPP"; then
  3366. CPP=
  3367. fi
  3368. if test -z "$CPP"; then
  3369. if test "${ac_cv_prog_CPP+set}" = set; then
  3370. echo $ECHO_N "(cached) $ECHO_C" >&6
  3371. else
  3372. # Double quotes because CPP needs to be expanded
  3373. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3374. do
  3375. ac_preproc_ok=false
  3376. for ac_c_preproc_warn_flag in '' yes
  3377. do
  3378. # Use a header file that comes with gcc, so configuring glibc
  3379. # with a fresh cross-compiler works.
  3380. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3381. # <limits.h> exists even on freestanding compilers.
  3382. # On the NeXT, cc -E runs the code through the compiler's parser,
  3383. # not just through cpp. "Syntax error" is here to catch this case.
  3384. cat >conftest.$ac_ext <<_ACEOF
  3385. /* confdefs.h. */
  3386. _ACEOF
  3387. cat confdefs.h >>conftest.$ac_ext
  3388. cat >>conftest.$ac_ext <<_ACEOF
  3389. /* end confdefs.h. */
  3390. #ifdef __STDC__
  3391. # include <limits.h>
  3392. #else
  3393. # include <assert.h>
  3394. #endif
  3395. Syntax error
  3396. _ACEOF
  3397. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3398. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3399. ac_status=$?
  3400. grep -v '^ *+' conftest.er1 >conftest.err
  3401. rm -f conftest.er1
  3402. cat conftest.err >&5
  3403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3404. (exit $ac_status); } >/dev/null; then
  3405. if test -s conftest.err; then
  3406. ac_cpp_err=$ac_c_preproc_warn_flag
  3407. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3408. else
  3409. ac_cpp_err=
  3410. fi
  3411. else
  3412. ac_cpp_err=yes
  3413. fi
  3414. if test -z "$ac_cpp_err"; then
  3415. :
  3416. else
  3417. echo "$as_me: failed program was:" >&5
  3418. sed 's/^/| /' conftest.$ac_ext >&5
  3419. # Broken: fails on valid input.
  3420. continue
  3421. fi
  3422. rm -f conftest.err conftest.$ac_ext
  3423. # OK, works on sane cases. Now check whether non-existent headers
  3424. # can be detected and how.
  3425. cat >conftest.$ac_ext <<_ACEOF
  3426. /* confdefs.h. */
  3427. _ACEOF
  3428. cat confdefs.h >>conftest.$ac_ext
  3429. cat >>conftest.$ac_ext <<_ACEOF
  3430. /* end confdefs.h. */
  3431. #include <ac_nonexistent.h>
  3432. _ACEOF
  3433. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3434. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3435. ac_status=$?
  3436. grep -v '^ *+' conftest.er1 >conftest.err
  3437. rm -f conftest.er1
  3438. cat conftest.err >&5
  3439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3440. (exit $ac_status); } >/dev/null; then
  3441. if test -s conftest.err; then
  3442. ac_cpp_err=$ac_c_preproc_warn_flag
  3443. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3444. else
  3445. ac_cpp_err=
  3446. fi
  3447. else
  3448. ac_cpp_err=yes
  3449. fi
  3450. if test -z "$ac_cpp_err"; then
  3451. # Broken: success on invalid input.
  3452. continue
  3453. else
  3454. echo "$as_me: failed program was:" >&5
  3455. sed 's/^/| /' conftest.$ac_ext >&5
  3456. # Passes both tests.
  3457. ac_preproc_ok=:
  3458. break
  3459. fi
  3460. rm -f conftest.err conftest.$ac_ext
  3461. done
  3462. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3463. rm -f conftest.err conftest.$ac_ext
  3464. if $ac_preproc_ok; then
  3465. break
  3466. fi
  3467. done
  3468. ac_cv_prog_CPP=$CPP
  3469. fi
  3470. CPP=$ac_cv_prog_CPP
  3471. else
  3472. ac_cv_prog_CPP=$CPP
  3473. fi
  3474. echo "$as_me:$LINENO: result: $CPP" >&5
  3475. echo "${ECHO_T}$CPP" >&6
  3476. ac_preproc_ok=false
  3477. for ac_c_preproc_warn_flag in '' yes
  3478. do
  3479. # Use a header file that comes with gcc, so configuring glibc
  3480. # with a fresh cross-compiler works.
  3481. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3482. # <limits.h> exists even on freestanding compilers.
  3483. # On the NeXT, cc -E runs the code through the compiler's parser,
  3484. # not just through cpp. "Syntax error" is here to catch this case.
  3485. cat >conftest.$ac_ext <<_ACEOF
  3486. /* confdefs.h. */
  3487. _ACEOF
  3488. cat confdefs.h >>conftest.$ac_ext
  3489. cat >>conftest.$ac_ext <<_ACEOF
  3490. /* end confdefs.h. */
  3491. #ifdef __STDC__
  3492. # include <limits.h>
  3493. #else
  3494. # include <assert.h>
  3495. #endif
  3496. Syntax error
  3497. _ACEOF
  3498. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3499. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3500. ac_status=$?
  3501. grep -v '^ *+' conftest.er1 >conftest.err
  3502. rm -f conftest.er1
  3503. cat conftest.err >&5
  3504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3505. (exit $ac_status); } >/dev/null; then
  3506. if test -s conftest.err; then
  3507. ac_cpp_err=$ac_c_preproc_warn_flag
  3508. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3509. else
  3510. ac_cpp_err=
  3511. fi
  3512. else
  3513. ac_cpp_err=yes
  3514. fi
  3515. if test -z "$ac_cpp_err"; then
  3516. :
  3517. else
  3518. echo "$as_me: failed program was:" >&5
  3519. sed 's/^/| /' conftest.$ac_ext >&5
  3520. # Broken: fails on valid input.
  3521. continue
  3522. fi
  3523. rm -f conftest.err conftest.$ac_ext
  3524. # OK, works on sane cases. Now check whether non-existent headers
  3525. # can be detected and how.
  3526. cat >conftest.$ac_ext <<_ACEOF
  3527. /* confdefs.h. */
  3528. _ACEOF
  3529. cat confdefs.h >>conftest.$ac_ext
  3530. cat >>conftest.$ac_ext <<_ACEOF
  3531. /* end confdefs.h. */
  3532. #include <ac_nonexistent.h>
  3533. _ACEOF
  3534. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3535. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3536. ac_status=$?
  3537. grep -v '^ *+' conftest.er1 >conftest.err
  3538. rm -f conftest.er1
  3539. cat conftest.err >&5
  3540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3541. (exit $ac_status); } >/dev/null; then
  3542. if test -s conftest.err; then
  3543. ac_cpp_err=$ac_c_preproc_warn_flag
  3544. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3545. else
  3546. ac_cpp_err=
  3547. fi
  3548. else
  3549. ac_cpp_err=yes
  3550. fi
  3551. if test -z "$ac_cpp_err"; then
  3552. # Broken: success on invalid input.
  3553. continue
  3554. else
  3555. echo "$as_me: failed program was:" >&5
  3556. sed 's/^/| /' conftest.$ac_ext >&5
  3557. # Passes both tests.
  3558. ac_preproc_ok=:
  3559. break
  3560. fi
  3561. rm -f conftest.err conftest.$ac_ext
  3562. done
  3563. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3564. rm -f conftest.err conftest.$ac_ext
  3565. if $ac_preproc_ok; then
  3566. :
  3567. else
  3568. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  3569. See \`config.log' for more details." >&5
  3570. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  3571. See \`config.log' for more details." >&2;}
  3572. { (exit 1); exit 1; }; }
  3573. fi
  3574. ac_ext=c
  3575. ac_cpp='$CPP $CPPFLAGS'
  3576. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3577. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3578. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3579. echo "$as_me:$LINENO: checking whether ln -s works" >&5
  3580. echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  3581. LN_S=$as_ln_s
  3582. if test "$LN_S" = "ln -s"; then
  3583. echo "$as_me:$LINENO: result: yes" >&5
  3584. echo "${ECHO_T}yes" >&6
  3585. else
  3586. echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  3587. echo "${ECHO_T}no, using $LN_S" >&6
  3588. fi
  3589. if test -n "$ac_tool_prefix"; then
  3590. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  3591. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  3592. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3593. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3594. if test "${ac_cv_prog_RANLIB+set}" = set; then
  3595. echo $ECHO_N "(cached) $ECHO_C" >&6
  3596. else
  3597. if test -n "$RANLIB"; then
  3598. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  3599. else
  3600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3601. for as_dir in $PATH
  3602. do
  3603. IFS=$as_save_IFS
  3604. test -z "$as_dir" && as_dir=.
  3605. for ac_exec_ext in '' $ac_executable_extensions; do
  3606. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3607. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  3608. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3609. break 2
  3610. fi
  3611. done
  3612. done
  3613. fi
  3614. fi
  3615. RANLIB=$ac_cv_prog_RANLIB
  3616. if test -n "$RANLIB"; then
  3617. echo "$as_me:$LINENO: result: $RANLIB" >&5
  3618. echo "${ECHO_T}$RANLIB" >&6
  3619. else
  3620. echo "$as_me:$LINENO: result: no" >&5
  3621. echo "${ECHO_T}no" >&6
  3622. fi
  3623. fi
  3624. if test -z "$ac_cv_prog_RANLIB"; then
  3625. ac_ct_RANLIB=$RANLIB
  3626. # Extract the first word of "ranlib", so it can be a program name with args.
  3627. set dummy ranlib; ac_word=$2
  3628. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3629. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3630. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  3631. echo $ECHO_N "(cached) $ECHO_C" >&6
  3632. else
  3633. if test -n "$ac_ct_RANLIB"; then
  3634. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  3635. else
  3636. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3637. for as_dir in $PATH
  3638. do
  3639. IFS=$as_save_IFS
  3640. test -z "$as_dir" && as_dir=.
  3641. for ac_exec_ext in '' $ac_executable_extensions; do
  3642. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3643. ac_cv_prog_ac_ct_RANLIB="ranlib"
  3644. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3645. break 2
  3646. fi
  3647. done
  3648. done
  3649. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  3650. fi
  3651. fi
  3652. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  3653. if test -n "$ac_ct_RANLIB"; then
  3654. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  3655. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  3656. else
  3657. echo "$as_me:$LINENO: result: no" >&5
  3658. echo "${ECHO_T}no" >&6
  3659. fi
  3660. RANLIB=$ac_ct_RANLIB
  3661. else
  3662. RANLIB="$ac_cv_prog_RANLIB"
  3663. fi
  3664. for ac_prog in gawk mawk nawk awk
  3665. do
  3666. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3667. set dummy $ac_prog; ac_word=$2
  3668. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3669. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3670. if test "${ac_cv_prog_AWK+set}" = set; then
  3671. echo $ECHO_N "(cached) $ECHO_C" >&6
  3672. else
  3673. if test -n "$AWK"; then
  3674. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3675. else
  3676. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3677. for as_dir in $PATH
  3678. do
  3679. IFS=$as_save_IFS
  3680. test -z "$as_dir" && as_dir=.
  3681. for ac_exec_ext in '' $ac_executable_extensions; do
  3682. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3683. ac_cv_prog_AWK="$ac_prog"
  3684. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3685. break 2
  3686. fi
  3687. done
  3688. done
  3689. fi
  3690. fi
  3691. AWK=$ac_cv_prog_AWK
  3692. if test -n "$AWK"; then
  3693. echo "$as_me:$LINENO: result: $AWK" >&5
  3694. echo "${ECHO_T}$AWK" >&6
  3695. else
  3696. echo "$as_me:$LINENO: result: no" >&5
  3697. echo "${ECHO_T}no" >&6
  3698. fi
  3699. test -n "$AWK" && break
  3700. done
  3701. # Find a good install program. We prefer a C program (faster),
  3702. # so one script is as good as another. But avoid the broken or
  3703. # incompatible versions:
  3704. # SysV /etc/install, /usr/sbin/install
  3705. # SunOS /usr/etc/install
  3706. # IRIX /sbin/install
  3707. # AIX /bin/install
  3708. # AmigaOS /C/install, which installs bootblocks on floppy discs
  3709. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  3710. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  3711. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  3712. # OS/2's system install, which has a completely different semantic
  3713. # ./install, which can be erroneously created by make from ./install.sh.
  3714. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  3715. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  3716. if test -z "$INSTALL"; then
  3717. if test "${ac_cv_path_install+set}" = set; then
  3718. echo $ECHO_N "(cached) $ECHO_C" >&6
  3719. else
  3720. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3721. for as_dir in $PATH
  3722. do
  3723. IFS=$as_save_IFS
  3724. test -z "$as_dir" && as_dir=.
  3725. # Account for people who put trailing slashes in PATH elements.
  3726. case $as_dir/ in
  3727. ./ | .// | /cC/* | \
  3728. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  3729. ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  3730. /usr/ucb/* ) ;;
  3731. *)
  3732. # OSF1 and SCO ODT 3.0 have their own names for install.
  3733. # Don't use installbsd from OSF since it installs stuff as root
  3734. # by default.
  3735. for ac_prog in ginstall scoinst install; do
  3736. for ac_exec_ext in '' $ac_executable_extensions; do
  3737. if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  3738. if test $ac_prog = install &&
  3739. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3740. # AIX install. It has an incompatible calling convention.
  3741. :
  3742. elif test $ac_prog = install &&
  3743. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  3744. # program-specific install script used by HP pwplus--don't use.
  3745. :
  3746. else
  3747. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  3748. break 3
  3749. fi
  3750. fi
  3751. done
  3752. done
  3753. ;;
  3754. esac
  3755. done
  3756. fi
  3757. if test "${ac_cv_path_install+set}" = set; then
  3758. INSTALL=$ac_cv_path_install
  3759. else
  3760. # As a last resort, use the slow shell script. We don't cache a
  3761. # path for INSTALL within a source directory, because that will
  3762. # break other packages using the cache if that directory is
  3763. # removed, or if the path is relative.
  3764. INSTALL=$ac_install_sh
  3765. fi
  3766. fi
  3767. echo "$as_me:$LINENO: result: $INSTALL" >&5
  3768. echo "${ECHO_T}$INSTALL" >&6
  3769. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  3770. # It thinks the first close brace ends the variable substitution.
  3771. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  3772. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  3773. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  3774. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3775. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  3776. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  3777. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  3778. echo $ECHO_N "(cached) $ECHO_C" >&6
  3779. else
  3780. cat >conftest.make <<\_ACEOF
  3781. all:
  3782. @echo 'ac_maketemp="$(MAKE)"'
  3783. _ACEOF
  3784. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3785. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  3786. if test -n "$ac_maketemp"; then
  3787. eval ac_cv_prog_make_${ac_make}_set=yes
  3788. else
  3789. eval ac_cv_prog_make_${ac_make}_set=no
  3790. fi
  3791. rm -f conftest.make
  3792. fi
  3793. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  3794. echo "$as_me:$LINENO: result: yes" >&5
  3795. echo "${ECHO_T}yes" >&6
  3796. SET_MAKE=
  3797. else
  3798. echo "$as_me:$LINENO: result: no" >&5
  3799. echo "${ECHO_T}no" >&6
  3800. SET_MAKE="MAKE=${MAKE-make}"
  3801. fi
  3802. # Extract the first word of "printf", so it can be a program name with args.
  3803. set dummy printf; ac_word=$2
  3804. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3805. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3806. if test "${ac_cv_path_PRINTF+set}" = set; then
  3807. echo $ECHO_N "(cached) $ECHO_C" >&6
  3808. else
  3809. case $PRINTF in
  3810. [\\/]* | ?:[\\/]*)
  3811. ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
  3812. ;;
  3813. *)
  3814. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3815. for as_dir in $PATH
  3816. do
  3817. IFS=$as_save_IFS
  3818. test -z "$as_dir" && as_dir=.
  3819. for ac_exec_ext in '' $ac_executable_extensions; do
  3820. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3821. ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
  3822. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3823. break 2
  3824. fi
  3825. done
  3826. done
  3827. ;;
  3828. esac
  3829. fi
  3830. PRINTF=$ac_cv_path_PRINTF
  3831. if test -n "$PRINTF"; then
  3832. echo "$as_me:$LINENO: result: $PRINTF" >&5
  3833. echo "${ECHO_T}$PRINTF" >&6
  3834. else
  3835. echo "$as_me:$LINENO: result: no" >&5
  3836. echo "${ECHO_T}no" >&6
  3837. fi
  3838. echo "$as_me:$LINENO: checking for egrep" >&5
  3839. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3840. if test "${ac_cv_prog_egrep+set}" = set; then
  3841. echo $ECHO_N "(cached) $ECHO_C" >&6
  3842. else
  3843. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3844. then ac_cv_prog_egrep='grep -E'
  3845. else ac_cv_prog_egrep='egrep'
  3846. fi
  3847. fi
  3848. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3849. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3850. EGREP=$ac_cv_prog_egrep
  3851. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3852. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3853. if test "${ac_cv_header_stdc+set}" = set; then
  3854. echo $ECHO_N "(cached) $ECHO_C" >&6
  3855. else
  3856. cat >conftest.$ac_ext <<_ACEOF
  3857. /* confdefs.h. */
  3858. _ACEOF
  3859. cat confdefs.h >>conftest.$ac_ext
  3860. cat >>conftest.$ac_ext <<_ACEOF
  3861. /* end confdefs.h. */
  3862. #include <stdlib.h>
  3863. #include <stdarg.h>
  3864. #include <string.h>
  3865. #include <float.h>
  3866. int
  3867. main ()
  3868. {
  3869. ;
  3870. return 0;
  3871. }
  3872. _ACEOF
  3873. rm -f conftest.$ac_objext
  3874. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3875. (eval $ac_compile) 2>conftest.er1
  3876. ac_status=$?
  3877. grep -v '^ *+' conftest.er1 >conftest.err
  3878. rm -f conftest.er1
  3879. cat conftest.err >&5
  3880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3881. (exit $ac_status); } &&
  3882. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3884. (eval $ac_try) 2>&5
  3885. ac_status=$?
  3886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3887. (exit $ac_status); }; } &&
  3888. { ac_try='test -s conftest.$ac_objext'
  3889. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3890. (eval $ac_try) 2>&5
  3891. ac_status=$?
  3892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3893. (exit $ac_status); }; }; then
  3894. ac_cv_header_stdc=yes
  3895. else
  3896. echo "$as_me: failed program was:" >&5
  3897. sed 's/^/| /' conftest.$ac_ext >&5
  3898. ac_cv_header_stdc=no
  3899. fi
  3900. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3901. if test $ac_cv_header_stdc = yes; then
  3902. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3903. cat >conftest.$ac_ext <<_ACEOF
  3904. /* confdefs.h. */
  3905. _ACEOF
  3906. cat confdefs.h >>conftest.$ac_ext
  3907. cat >>conftest.$ac_ext <<_ACEOF
  3908. /* end confdefs.h. */
  3909. #include <string.h>
  3910. _ACEOF
  3911. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3912. $EGREP "memchr" >/dev/null 2>&1; then
  3913. :
  3914. else
  3915. ac_cv_header_stdc=no
  3916. fi
  3917. rm -f conftest*
  3918. fi
  3919. if test $ac_cv_header_stdc = yes; then
  3920. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3921. cat >conftest.$ac_ext <<_ACEOF
  3922. /* confdefs.h. */
  3923. _ACEOF
  3924. cat confdefs.h >>conftest.$ac_ext
  3925. cat >>conftest.$ac_ext <<_ACEOF
  3926. /* end confdefs.h. */
  3927. #include <stdlib.h>
  3928. _ACEOF
  3929. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3930. $EGREP "free" >/dev/null 2>&1; then
  3931. :
  3932. else
  3933. ac_cv_header_stdc=no
  3934. fi
  3935. rm -f conftest*
  3936. fi
  3937. if test $ac_cv_header_stdc = yes; then
  3938. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3939. if test "$cross_compiling" = yes; then
  3940. :
  3941. else
  3942. cat >conftest.$ac_ext <<_ACEOF
  3943. /* confdefs.h. */
  3944. _ACEOF
  3945. cat confdefs.h >>conftest.$ac_ext
  3946. cat >>conftest.$ac_ext <<_ACEOF
  3947. /* end confdefs.h. */
  3948. #include <ctype.h>
  3949. #if ((' ' & 0x0FF) == 0x020)
  3950. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3951. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3952. #else
  3953. # define ISLOWER(c) \
  3954. (('a' <= (c) && (c) <= 'i') \
  3955. || ('j' <= (c) && (c) <= 'r') \
  3956. || ('s' <= (c) && (c) <= 'z'))
  3957. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3958. #endif
  3959. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3960. int
  3961. main ()
  3962. {
  3963. int i;
  3964. for (i = 0; i < 256; i++)
  3965. if (XOR (islower (i), ISLOWER (i))
  3966. || toupper (i) != TOUPPER (i))
  3967. exit(2);
  3968. exit (0);
  3969. }
  3970. _ACEOF
  3971. rm -f conftest$ac_exeext
  3972. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3973. (eval $ac_link) 2>&5
  3974. ac_status=$?
  3975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3976. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3978. (eval $ac_try) 2>&5
  3979. ac_status=$?
  3980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3981. (exit $ac_status); }; }; then
  3982. :
  3983. else
  3984. echo "$as_me: program exited with status $ac_status" >&5
  3985. echo "$as_me: failed program was:" >&5
  3986. sed 's/^/| /' conftest.$ac_ext >&5
  3987. ( exit $ac_status )
  3988. ac_cv_header_stdc=no
  3989. fi
  3990. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3991. fi
  3992. fi
  3993. fi
  3994. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3995. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3996. if test $ac_cv_header_stdc = yes; then
  3997. cat >>confdefs.h <<\_ACEOF
  3998. #define STDC_HEADERS 1
  3999. _ACEOF
  4000. fi
  4001. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4002. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4003. inttypes.h stdint.h unistd.h
  4004. do
  4005. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4006. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4007. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4008. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4009. echo $ECHO_N "(cached) $ECHO_C" >&6
  4010. else
  4011. cat >conftest.$ac_ext <<_ACEOF
  4012. /* confdefs.h. */
  4013. _ACEOF
  4014. cat confdefs.h >>conftest.$ac_ext
  4015. cat >>conftest.$ac_ext <<_ACEOF
  4016. /* end confdefs.h. */
  4017. $ac_includes_default
  4018. #include <$ac_header>
  4019. _ACEOF
  4020. rm -f conftest.$ac_objext
  4021. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4022. (eval $ac_compile) 2>conftest.er1
  4023. ac_status=$?
  4024. grep -v '^ *+' conftest.er1 >conftest.err
  4025. rm -f conftest.er1
  4026. cat conftest.err >&5
  4027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4028. (exit $ac_status); } &&
  4029. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4030. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4031. (eval $ac_try) 2>&5
  4032. ac_status=$?
  4033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4034. (exit $ac_status); }; } &&
  4035. { ac_try='test -s conftest.$ac_objext'
  4036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4037. (eval $ac_try) 2>&5
  4038. ac_status=$?
  4039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4040. (exit $ac_status); }; }; then
  4041. eval "$as_ac_Header=yes"
  4042. else
  4043. echo "$as_me: failed program was:" >&5
  4044. sed 's/^/| /' conftest.$ac_ext >&5
  4045. eval "$as_ac_Header=no"
  4046. fi
  4047. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4048. fi
  4049. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4050. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4051. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4052. cat >>confdefs.h <<_ACEOF
  4053. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4054. _ACEOF
  4055. fi
  4056. done
  4057. echo "$as_me:$LINENO: checking for size_t" >&5
  4058. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4059. if test "${ac_cv_type_size_t+set}" = set; then
  4060. echo $ECHO_N "(cached) $ECHO_C" >&6
  4061. else
  4062. cat >conftest.$ac_ext <<_ACEOF
  4063. /* confdefs.h. */
  4064. _ACEOF
  4065. cat confdefs.h >>conftest.$ac_ext
  4066. cat >>conftest.$ac_ext <<_ACEOF
  4067. /* end confdefs.h. */
  4068. $ac_includes_default
  4069. int
  4070. main ()
  4071. {
  4072. if ((size_t *) 0)
  4073. return 0;
  4074. if (sizeof (size_t))
  4075. return 0;
  4076. ;
  4077. return 0;
  4078. }
  4079. _ACEOF
  4080. rm -f conftest.$ac_objext
  4081. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4082. (eval $ac_compile) 2>conftest.er1
  4083. ac_status=$?
  4084. grep -v '^ *+' conftest.er1 >conftest.err
  4085. rm -f conftest.er1
  4086. cat conftest.err >&5
  4087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4088. (exit $ac_status); } &&
  4089. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4090. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4091. (eval $ac_try) 2>&5
  4092. ac_status=$?
  4093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4094. (exit $ac_status); }; } &&
  4095. { ac_try='test -s conftest.$ac_objext'
  4096. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4097. (eval $ac_try) 2>&5
  4098. ac_status=$?
  4099. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4100. (exit $ac_status); }; }; then
  4101. ac_cv_type_size_t=yes
  4102. else
  4103. echo "$as_me: failed program was:" >&5
  4104. sed 's/^/| /' conftest.$ac_ext >&5
  4105. ac_cv_type_size_t=no
  4106. fi
  4107. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4108. fi
  4109. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4110. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4111. if test $ac_cv_type_size_t = yes; then
  4112. :
  4113. else
  4114. cat >>confdefs.h <<_ACEOF
  4115. #define size_t unsigned
  4116. _ACEOF
  4117. fi
  4118. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4119. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4120. if test "${ac_cv_header_time+set}" = set; then
  4121. echo $ECHO_N "(cached) $ECHO_C" >&6
  4122. else
  4123. cat >conftest.$ac_ext <<_ACEOF
  4124. /* confdefs.h. */
  4125. _ACEOF
  4126. cat confdefs.h >>conftest.$ac_ext
  4127. cat >>conftest.$ac_ext <<_ACEOF
  4128. /* end confdefs.h. */
  4129. #include <sys/types.h>
  4130. #include <sys/time.h>
  4131. #include <time.h>
  4132. int
  4133. main ()
  4134. {
  4135. if ((struct tm *) 0)
  4136. return 0;
  4137. ;
  4138. return 0;
  4139. }
  4140. _ACEOF
  4141. rm -f conftest.$ac_objext
  4142. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4143. (eval $ac_compile) 2>conftest.er1
  4144. ac_status=$?
  4145. grep -v '^ *+' conftest.er1 >conftest.err
  4146. rm -f conftest.er1
  4147. cat conftest.err >&5
  4148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4149. (exit $ac_status); } &&
  4150. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4152. (eval $ac_try) 2>&5
  4153. ac_status=$?
  4154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4155. (exit $ac_status); }; } &&
  4156. { ac_try='test -s conftest.$ac_objext'
  4157. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4158. (eval $ac_try) 2>&5
  4159. ac_status=$?
  4160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4161. (exit $ac_status); }; }; then
  4162. ac_cv_header_time=yes
  4163. else
  4164. echo "$as_me: failed program was:" >&5
  4165. sed 's/^/| /' conftest.$ac_ext >&5
  4166. ac_cv_header_time=no
  4167. fi
  4168. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4169. fi
  4170. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4171. echo "${ECHO_T}$ac_cv_header_time" >&6
  4172. if test $ac_cv_header_time = yes; then
  4173. cat >>confdefs.h <<\_ACEOF
  4174. #define TIME_WITH_SYS_TIME 1
  4175. _ACEOF
  4176. fi
  4177. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  4178. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  4179. if test "${ac_cv_c_const+set}" = set; then
  4180. echo $ECHO_N "(cached) $ECHO_C" >&6
  4181. else
  4182. cat >conftest.$ac_ext <<_ACEOF
  4183. /* confdefs.h. */
  4184. _ACEOF
  4185. cat confdefs.h >>conftest.$ac_ext
  4186. cat >>conftest.$ac_ext <<_ACEOF
  4187. /* end confdefs.h. */
  4188. int
  4189. main ()
  4190. {
  4191. /* FIXME: Include the comments suggested by Paul. */
  4192. #ifndef __cplusplus
  4193. /* Ultrix mips cc rejects this. */
  4194. typedef int charset[2];
  4195. const charset x;
  4196. /* SunOS 4.1.1 cc rejects this. */
  4197. char const *const *ccp;
  4198. char **p;
  4199. /* NEC SVR4.0.2 mips cc rejects this. */
  4200. struct point {int x, y;};
  4201. static struct point const zero = {0,0};
  4202. /* AIX XL C 1.02.0.0 rejects this.
  4203. It does not let you subtract one const X* pointer from another in
  4204. an arm of an if-expression whose if-part is not a constant
  4205. expression */
  4206. const char *g = "string";
  4207. ccp = &g + (g ? g-g : 0);
  4208. /* HPUX 7.0 cc rejects these. */
  4209. ++ccp;
  4210. p = (char**) ccp;
  4211. ccp = (char const *const *) p;
  4212. { /* SCO 3.2v4 cc rejects this. */
  4213. char *t;
  4214. char const *s = 0 ? (char *) 0 : (char const *) 0;
  4215. *t++ = 0;
  4216. }
  4217. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  4218. int x[] = {25, 17};
  4219. const int *foo = &x[0];
  4220. ++foo;
  4221. }
  4222. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  4223. typedef const int *iptr;
  4224. iptr p = 0;
  4225. ++p;
  4226. }
  4227. { /* AIX XL C 1.02.0.0 rejects this saying
  4228. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  4229. struct s { int j; const int *ap[3]; };
  4230. struct s *b; b->j = 5;
  4231. }
  4232. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  4233. const int foo = 10;
  4234. }
  4235. #endif
  4236. ;
  4237. return 0;
  4238. }
  4239. _ACEOF
  4240. rm -f conftest.$ac_objext
  4241. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4242. (eval $ac_compile) 2>conftest.er1
  4243. ac_status=$?
  4244. grep -v '^ *+' conftest.er1 >conftest.err
  4245. rm -f conftest.er1
  4246. cat conftest.err >&5
  4247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4248. (exit $ac_status); } &&
  4249. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4251. (eval $ac_try) 2>&5
  4252. ac_status=$?
  4253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4254. (exit $ac_status); }; } &&
  4255. { ac_try='test -s conftest.$ac_objext'
  4256. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4257. (eval $ac_try) 2>&5
  4258. ac_status=$?
  4259. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4260. (exit $ac_status); }; }; then
  4261. ac_cv_c_const=yes
  4262. else
  4263. echo "$as_me: failed program was:" >&5
  4264. sed 's/^/| /' conftest.$ac_ext >&5
  4265. ac_cv_c_const=no
  4266. fi
  4267. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4268. fi
  4269. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  4270. echo "${ECHO_T}$ac_cv_c_const" >&6
  4271. if test $ac_cv_c_const = no; then
  4272. cat >>confdefs.h <<\_ACEOF
  4273. #define const
  4274. _ACEOF
  4275. fi
  4276. echo "$as_me:$LINENO: checking for inline" >&5
  4277. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  4278. if test "${ac_cv_c_inline+set}" = set; then
  4279. echo $ECHO_N "(cached) $ECHO_C" >&6
  4280. else
  4281. ac_cv_c_inline=no
  4282. for ac_kw in inline __inline__ __inline; do
  4283. cat >conftest.$ac_ext <<_ACEOF
  4284. /* confdefs.h. */
  4285. _ACEOF
  4286. cat confdefs.h >>conftest.$ac_ext
  4287. cat >>conftest.$ac_ext <<_ACEOF
  4288. /* end confdefs.h. */
  4289. #ifndef __cplusplus
  4290. typedef int foo_t;
  4291. static $ac_kw foo_t static_foo () {return 0; }
  4292. $ac_kw foo_t foo () {return 0; }
  4293. #endif
  4294. _ACEOF
  4295. rm -f conftest.$ac_objext
  4296. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4297. (eval $ac_compile) 2>conftest.er1
  4298. ac_status=$?
  4299. grep -v '^ *+' conftest.er1 >conftest.err
  4300. rm -f conftest.er1
  4301. cat conftest.err >&5
  4302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4303. (exit $ac_status); } &&
  4304. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4306. (eval $ac_try) 2>&5
  4307. ac_status=$?
  4308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4309. (exit $ac_status); }; } &&
  4310. { ac_try='test -s conftest.$ac_objext'
  4311. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4312. (eval $ac_try) 2>&5
  4313. ac_status=$?
  4314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4315. (exit $ac_status); }; }; then
  4316. ac_cv_c_inline=$ac_kw; break
  4317. else
  4318. echo "$as_me: failed program was:" >&5
  4319. sed 's/^/| /' conftest.$ac_ext >&5
  4320. fi
  4321. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4322. done
  4323. fi
  4324. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  4325. echo "${ECHO_T}$ac_cv_c_inline" >&6
  4326. case $ac_cv_c_inline in
  4327. inline | yes) ;;
  4328. *)
  4329. case $ac_cv_c_inline in
  4330. no) ac_val=;;
  4331. *) ac_val=$ac_cv_c_inline;;
  4332. esac
  4333. cat >>confdefs.h <<_ACEOF
  4334. #ifndef __cplusplus
  4335. #define inline $ac_val
  4336. #endif
  4337. _ACEOF
  4338. ;;
  4339. esac
  4340. # Check whether --enable-largefile or --disable-largefile was given.
  4341. if test "${enable_largefile+set}" = set; then
  4342. enableval="$enable_largefile"
  4343. fi;
  4344. if test "$enable_largefile" != no; then
  4345. echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
  4346. echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
  4347. if test "${ac_cv_sys_largefile_CC+set}" = set; then
  4348. echo $ECHO_N "(cached) $ECHO_C" >&6
  4349. else
  4350. ac_cv_sys_largefile_CC=no
  4351. if test "$GCC" != yes; then
  4352. ac_save_CC=$CC
  4353. while :; do
  4354. # IRIX 6.2 and later do not support large files by default,
  4355. # so use the C compiler's -n32 option if that helps.
  4356. cat >conftest.$ac_ext <<_ACEOF
  4357. /* confdefs.h. */
  4358. _ACEOF
  4359. cat confdefs.h >>conftest.$ac_ext
  4360. cat >>conftest.$ac_ext <<_ACEOF
  4361. /* end confdefs.h. */
  4362. #include <sys/types.h>
  4363. /* Check that off_t can represent 2**63 - 1 correctly.
  4364. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4365. since some C++ compilers masquerading as C compilers
  4366. incorrectly reject 9223372036854775807. */
  4367. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4368. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4369. && LARGE_OFF_T % 2147483647 == 1)
  4370. ? 1 : -1];
  4371. int
  4372. main ()
  4373. {
  4374. ;
  4375. return 0;
  4376. }
  4377. _ACEOF
  4378. rm -f conftest.$ac_objext
  4379. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4380. (eval $ac_compile) 2>conftest.er1
  4381. ac_status=$?
  4382. grep -v '^ *+' conftest.er1 >conftest.err
  4383. rm -f conftest.er1
  4384. cat conftest.err >&5
  4385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4386. (exit $ac_status); } &&
  4387. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4389. (eval $ac_try) 2>&5
  4390. ac_status=$?
  4391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4392. (exit $ac_status); }; } &&
  4393. { ac_try='test -s conftest.$ac_objext'
  4394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4395. (eval $ac_try) 2>&5
  4396. ac_status=$?
  4397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4398. (exit $ac_status); }; }; then
  4399. break
  4400. else
  4401. echo "$as_me: failed program was:" >&5
  4402. sed 's/^/| /' conftest.$ac_ext >&5
  4403. fi
  4404. rm -f conftest.err conftest.$ac_objext
  4405. CC="$CC -n32"
  4406. rm -f conftest.$ac_objext
  4407. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4408. (eval $ac_compile) 2>conftest.er1
  4409. ac_status=$?
  4410. grep -v '^ *+' conftest.er1 >conftest.err
  4411. rm -f conftest.er1
  4412. cat conftest.err >&5
  4413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4414. (exit $ac_status); } &&
  4415. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4416. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4417. (eval $ac_try) 2>&5
  4418. ac_status=$?
  4419. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4420. (exit $ac_status); }; } &&
  4421. { ac_try='test -s conftest.$ac_objext'
  4422. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4423. (eval $ac_try) 2>&5
  4424. ac_status=$?
  4425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4426. (exit $ac_status); }; }; then
  4427. ac_cv_sys_largefile_CC=' -n32'; break
  4428. else
  4429. echo "$as_me: failed program was:" >&5
  4430. sed 's/^/| /' conftest.$ac_ext >&5
  4431. fi
  4432. rm -f conftest.err conftest.$ac_objext
  4433. break
  4434. done
  4435. CC=$ac_save_CC
  4436. rm -f conftest.$ac_ext
  4437. fi
  4438. fi
  4439. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
  4440. echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
  4441. if test "$ac_cv_sys_largefile_CC" != no; then
  4442. CC=$CC$ac_cv_sys_largefile_CC
  4443. fi
  4444. echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  4445. echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
  4446. if test "${ac_cv_sys_file_offset_bits+set}" = set; then
  4447. echo $ECHO_N "(cached) $ECHO_C" >&6
  4448. else
  4449. while :; do
  4450. ac_cv_sys_file_offset_bits=no
  4451. cat >conftest.$ac_ext <<_ACEOF
  4452. /* confdefs.h. */
  4453. _ACEOF
  4454. cat confdefs.h >>conftest.$ac_ext
  4455. cat >>conftest.$ac_ext <<_ACEOF
  4456. /* end confdefs.h. */
  4457. #include <sys/types.h>
  4458. /* Check that off_t can represent 2**63 - 1 correctly.
  4459. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4460. since some C++ compilers masquerading as C compilers
  4461. incorrectly reject 9223372036854775807. */
  4462. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4463. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4464. && LARGE_OFF_T % 2147483647 == 1)
  4465. ? 1 : -1];
  4466. int
  4467. main ()
  4468. {
  4469. ;
  4470. return 0;
  4471. }
  4472. _ACEOF
  4473. rm -f conftest.$ac_objext
  4474. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4475. (eval $ac_compile) 2>conftest.er1
  4476. ac_status=$?
  4477. grep -v '^ *+' conftest.er1 >conftest.err
  4478. rm -f conftest.er1
  4479. cat conftest.err >&5
  4480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4481. (exit $ac_status); } &&
  4482. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4484. (eval $ac_try) 2>&5
  4485. ac_status=$?
  4486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4487. (exit $ac_status); }; } &&
  4488. { ac_try='test -s conftest.$ac_objext'
  4489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4490. (eval $ac_try) 2>&5
  4491. ac_status=$?
  4492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4493. (exit $ac_status); }; }; then
  4494. break
  4495. else
  4496. echo "$as_me: failed program was:" >&5
  4497. sed 's/^/| /' conftest.$ac_ext >&5
  4498. fi
  4499. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4500. cat >conftest.$ac_ext <<_ACEOF
  4501. /* confdefs.h. */
  4502. _ACEOF
  4503. cat confdefs.h >>conftest.$ac_ext
  4504. cat >>conftest.$ac_ext <<_ACEOF
  4505. /* end confdefs.h. */
  4506. #define _FILE_OFFSET_BITS 64
  4507. #include <sys/types.h>
  4508. /* Check that off_t can represent 2**63 - 1 correctly.
  4509. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4510. since some C++ compilers masquerading as C compilers
  4511. incorrectly reject 9223372036854775807. */
  4512. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4513. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4514. && LARGE_OFF_T % 2147483647 == 1)
  4515. ? 1 : -1];
  4516. int
  4517. main ()
  4518. {
  4519. ;
  4520. return 0;
  4521. }
  4522. _ACEOF
  4523. rm -f conftest.$ac_objext
  4524. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4525. (eval $ac_compile) 2>conftest.er1
  4526. ac_status=$?
  4527. grep -v '^ *+' conftest.er1 >conftest.err
  4528. rm -f conftest.er1
  4529. cat conftest.err >&5
  4530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4531. (exit $ac_status); } &&
  4532. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4534. (eval $ac_try) 2>&5
  4535. ac_status=$?
  4536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4537. (exit $ac_status); }; } &&
  4538. { ac_try='test -s conftest.$ac_objext'
  4539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4540. (eval $ac_try) 2>&5
  4541. ac_status=$?
  4542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4543. (exit $ac_status); }; }; then
  4544. ac_cv_sys_file_offset_bits=64; break
  4545. else
  4546. echo "$as_me: failed program was:" >&5
  4547. sed 's/^/| /' conftest.$ac_ext >&5
  4548. fi
  4549. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4550. break
  4551. done
  4552. fi
  4553. echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
  4554. echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
  4555. if test "$ac_cv_sys_file_offset_bits" != no; then
  4556. cat >>confdefs.h <<_ACEOF
  4557. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  4558. _ACEOF
  4559. fi
  4560. rm -f conftest*
  4561. echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
  4562. echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
  4563. if test "${ac_cv_sys_large_files+set}" = set; then
  4564. echo $ECHO_N "(cached) $ECHO_C" >&6
  4565. else
  4566. while :; do
  4567. ac_cv_sys_large_files=no
  4568. cat >conftest.$ac_ext <<_ACEOF
  4569. /* confdefs.h. */
  4570. _ACEOF
  4571. cat confdefs.h >>conftest.$ac_ext
  4572. cat >>conftest.$ac_ext <<_ACEOF
  4573. /* end confdefs.h. */
  4574. #include <sys/types.h>
  4575. /* Check that off_t can represent 2**63 - 1 correctly.
  4576. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4577. since some C++ compilers masquerading as C compilers
  4578. incorrectly reject 9223372036854775807. */
  4579. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4580. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4581. && LARGE_OFF_T % 2147483647 == 1)
  4582. ? 1 : -1];
  4583. int
  4584. main ()
  4585. {
  4586. ;
  4587. return 0;
  4588. }
  4589. _ACEOF
  4590. rm -f conftest.$ac_objext
  4591. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4592. (eval $ac_compile) 2>conftest.er1
  4593. ac_status=$?
  4594. grep -v '^ *+' conftest.er1 >conftest.err
  4595. rm -f conftest.er1
  4596. cat conftest.err >&5
  4597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4598. (exit $ac_status); } &&
  4599. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4601. (eval $ac_try) 2>&5
  4602. ac_status=$?
  4603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4604. (exit $ac_status); }; } &&
  4605. { ac_try='test -s conftest.$ac_objext'
  4606. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4607. (eval $ac_try) 2>&5
  4608. ac_status=$?
  4609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4610. (exit $ac_status); }; }; then
  4611. break
  4612. else
  4613. echo "$as_me: failed program was:" >&5
  4614. sed 's/^/| /' conftest.$ac_ext >&5
  4615. fi
  4616. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4617. cat >conftest.$ac_ext <<_ACEOF
  4618. /* confdefs.h. */
  4619. _ACEOF
  4620. cat confdefs.h >>conftest.$ac_ext
  4621. cat >>conftest.$ac_ext <<_ACEOF
  4622. /* end confdefs.h. */
  4623. #define _LARGE_FILES 1
  4624. #include <sys/types.h>
  4625. /* Check that off_t can represent 2**63 - 1 correctly.
  4626. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4627. since some C++ compilers masquerading as C compilers
  4628. incorrectly reject 9223372036854775807. */
  4629. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4630. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4631. && LARGE_OFF_T % 2147483647 == 1)
  4632. ? 1 : -1];
  4633. int
  4634. main ()
  4635. {
  4636. ;
  4637. return 0;
  4638. }
  4639. _ACEOF
  4640. rm -f conftest.$ac_objext
  4641. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4642. (eval $ac_compile) 2>conftest.er1
  4643. ac_status=$?
  4644. grep -v '^ *+' conftest.er1 >conftest.err
  4645. rm -f conftest.er1
  4646. cat conftest.err >&5
  4647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4648. (exit $ac_status); } &&
  4649. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4651. (eval $ac_try) 2>&5
  4652. ac_status=$?
  4653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4654. (exit $ac_status); }; } &&
  4655. { ac_try='test -s conftest.$ac_objext'
  4656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4657. (eval $ac_try) 2>&5
  4658. ac_status=$?
  4659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4660. (exit $ac_status); }; }; then
  4661. ac_cv_sys_large_files=1; break
  4662. else
  4663. echo "$as_me: failed program was:" >&5
  4664. sed 's/^/| /' conftest.$ac_ext >&5
  4665. fi
  4666. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4667. break
  4668. done
  4669. fi
  4670. echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
  4671. echo "${ECHO_T}$ac_cv_sys_large_files" >&6
  4672. if test "$ac_cv_sys_large_files" != no; then
  4673. cat >>confdefs.h <<_ACEOF
  4674. #define _LARGE_FILES $ac_cv_sys_large_files
  4675. _ACEOF
  4676. fi
  4677. rm -f conftest*
  4678. fi
  4679. echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
  4680. echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6
  4681. if test "${ac_cv_sys_largefile_source+set}" = set; then
  4682. echo $ECHO_N "(cached) $ECHO_C" >&6
  4683. else
  4684. while :; do
  4685. ac_cv_sys_largefile_source=no
  4686. cat >conftest.$ac_ext <<_ACEOF
  4687. /* confdefs.h. */
  4688. _ACEOF
  4689. cat confdefs.h >>conftest.$ac_ext
  4690. cat >>conftest.$ac_ext <<_ACEOF
  4691. /* end confdefs.h. */
  4692. #include <stdio.h>
  4693. int
  4694. main ()
  4695. {
  4696. return !fseeko;
  4697. ;
  4698. return 0;
  4699. }
  4700. _ACEOF
  4701. rm -f conftest.$ac_objext
  4702. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4703. (eval $ac_compile) 2>conftest.er1
  4704. ac_status=$?
  4705. grep -v '^ *+' conftest.er1 >conftest.err
  4706. rm -f conftest.er1
  4707. cat conftest.err >&5
  4708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4709. (exit $ac_status); } &&
  4710. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4711. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4712. (eval $ac_try) 2>&5
  4713. ac_status=$?
  4714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4715. (exit $ac_status); }; } &&
  4716. { ac_try='test -s conftest.$ac_objext'
  4717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4718. (eval $ac_try) 2>&5
  4719. ac_status=$?
  4720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4721. (exit $ac_status); }; }; then
  4722. break
  4723. else
  4724. echo "$as_me: failed program was:" >&5
  4725. sed 's/^/| /' conftest.$ac_ext >&5
  4726. fi
  4727. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4728. cat >conftest.$ac_ext <<_ACEOF
  4729. /* confdefs.h. */
  4730. _ACEOF
  4731. cat confdefs.h >>conftest.$ac_ext
  4732. cat >>conftest.$ac_ext <<_ACEOF
  4733. /* end confdefs.h. */
  4734. #define _LARGEFILE_SOURCE 1
  4735. #include <stdio.h>
  4736. int
  4737. main ()
  4738. {
  4739. return !fseeko;
  4740. ;
  4741. return 0;
  4742. }
  4743. _ACEOF
  4744. rm -f conftest.$ac_objext
  4745. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4746. (eval $ac_compile) 2>conftest.er1
  4747. ac_status=$?
  4748. grep -v '^ *+' conftest.er1 >conftest.err
  4749. rm -f conftest.er1
  4750. cat conftest.err >&5
  4751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4752. (exit $ac_status); } &&
  4753. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4755. (eval $ac_try) 2>&5
  4756. ac_status=$?
  4757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4758. (exit $ac_status); }; } &&
  4759. { ac_try='test -s conftest.$ac_objext'
  4760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4761. (eval $ac_try) 2>&5
  4762. ac_status=$?
  4763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4764. (exit $ac_status); }; }; then
  4765. ac_cv_sys_largefile_source=1; break
  4766. else
  4767. echo "$as_me: failed program was:" >&5
  4768. sed 's/^/| /' conftest.$ac_ext >&5
  4769. fi
  4770. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4771. break
  4772. done
  4773. fi
  4774. echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
  4775. echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6
  4776. if test "$ac_cv_sys_largefile_source" != no; then
  4777. cat >>confdefs.h <<_ACEOF
  4778. #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
  4779. _ACEOF
  4780. fi
  4781. rm -f conftest*
  4782. # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
  4783. # in glibc 2.1.3, but that breaks too many other things.
  4784. # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
  4785. echo "$as_me:$LINENO: checking for fseeko" >&5
  4786. echo $ECHO_N "checking for fseeko... $ECHO_C" >&6
  4787. if test "${ac_cv_func_fseeko+set}" = set; then
  4788. echo $ECHO_N "(cached) $ECHO_C" >&6
  4789. else
  4790. cat >conftest.$ac_ext <<_ACEOF
  4791. /* confdefs.h. */
  4792. _ACEOF
  4793. cat confdefs.h >>conftest.$ac_ext
  4794. cat >>conftest.$ac_ext <<_ACEOF
  4795. /* end confdefs.h. */
  4796. #include <stdio.h>
  4797. int
  4798. main ()
  4799. {
  4800. return fseeko && fseeko (stdin, 0, 0);
  4801. ;
  4802. return 0;
  4803. }
  4804. _ACEOF
  4805. rm -f conftest.$ac_objext conftest$ac_exeext
  4806. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4807. (eval $ac_link) 2>conftest.er1
  4808. ac_status=$?
  4809. grep -v '^ *+' conftest.er1 >conftest.err
  4810. rm -f conftest.er1
  4811. cat conftest.err >&5
  4812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4813. (exit $ac_status); } &&
  4814. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4816. (eval $ac_try) 2>&5
  4817. ac_status=$?
  4818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4819. (exit $ac_status); }; } &&
  4820. { ac_try='test -s conftest$ac_exeext'
  4821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4822. (eval $ac_try) 2>&5
  4823. ac_status=$?
  4824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4825. (exit $ac_status); }; }; then
  4826. ac_cv_func_fseeko=yes
  4827. else
  4828. echo "$as_me: failed program was:" >&5
  4829. sed 's/^/| /' conftest.$ac_ext >&5
  4830. ac_cv_func_fseeko=no
  4831. fi
  4832. rm -f conftest.err conftest.$ac_objext \
  4833. conftest$ac_exeext conftest.$ac_ext
  4834. fi
  4835. echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
  4836. echo "${ECHO_T}$ac_cv_func_fseeko" >&6
  4837. if test $ac_cv_func_fseeko = yes; then
  4838. cat >>confdefs.h <<\_ACEOF
  4839. #define HAVE_FSEEKO 1
  4840. _ACEOF
  4841. fi
  4842. debug=no
  4843. echo "$as_me:$LINENO: checking for debug enabled" >&5
  4844. echo $ECHO_N "checking for debug enabled... $ECHO_C" >&6
  4845. # Check whether --with-debug or --without-debug was given.
  4846. if test "${with_debug+set}" = set; then
  4847. withval="$with_debug"
  4848. debug=yes
  4849. cat >>confdefs.h <<\_ACEOF
  4850. #define DEBUG 1
  4851. _ACEOF
  4852. echo "$as_me:$LINENO: result: yes" >&5
  4853. echo "${ECHO_T}yes" >&6
  4854. else
  4855. echo "$as_me:$LINENO: result: no" >&5
  4856. echo "${ECHO_T}no" >&6
  4857. fi;
  4858. if test $debug = yes ; then
  4859. debug_flag="-d 3"
  4860. fi
  4861. efence=no
  4862. echo "$as_me:$LINENO: checking for efence enabled" >&5
  4863. echo $ECHO_N "checking for efence enabled... $ECHO_C" >&6
  4864. # Check whether --with-efence or --without-efence was given.
  4865. if test "${with_efence+set}" = set; then
  4866. withval="$with_efence"
  4867. efence=yes
  4868. cat >>confdefs.h <<\_ACEOF
  4869. #define EFENCE 1
  4870. _ACEOF
  4871. echo "$as_me:$LINENO: result: yes" >&5
  4872. echo "${ECHO_T}yes" >&6
  4873. else
  4874. echo "$as_me:$LINENO: result: no" >&5
  4875. echo "${ECHO_T}no" >&6
  4876. fi;
  4877. gprof=no
  4878. echo "$as_me:$LINENO: checking for gprof enabled" >&5
  4879. echo $ECHO_N "checking for gprof enabled... $ECHO_C" >&6
  4880. # Check whether --with-gprof or --without-gprof was given.
  4881. if test "${with_gprof+set}" = set; then
  4882. withval="$with_gprof"
  4883. gprof=yes
  4884. cat >>confdefs.h <<\_ACEOF
  4885. #define GPROF 1
  4886. _ACEOF
  4887. echo "$as_me:$LINENO: result: yes" >&5
  4888. echo "${ECHO_T}yes" >&6
  4889. else
  4890. echo "$as_me:$LINENO: result: no" >&5
  4891. echo "${ECHO_T}no" >&6
  4892. fi;
  4893. if test $ac_cv_c_compiler_gnu = yes -a $debug = no ; then
  4894. CCOPTS="-pipe -Wall -O3 -funroll-loops"
  4895. CFLAGS="$CCOPTS"
  4896. else
  4897. CCOPTS="-pipe -Wall -ggdb -pedantic"
  4898. CFLAGS="$CCOPTS"
  4899. fi
  4900. if test $gprof = yes -a $debug = yes ; then
  4901. CCOPTS="$CCOPTS -pg"
  4902. CFLAGS="$CCOPTS"
  4903. elif test $gprof = yes -a $debug = no ; then
  4904. CCOPTS="-pipe -Wall -pg -ggdb"
  4905. CFLAGS="$CCOPTS"
  4906. fi
  4907. if test $efence = yes ; then
  4908. CCOPTS="$CCOPTS -lefence"
  4909. CFLAGS="$CCOPTS"
  4910. fi
  4911. if test $gprof = yes ; then
  4912. CCOPTS="$CCOPTS -fprofile-arcs"
  4913. CFLAGS="$CCOPTS"
  4914. fi
  4915. echo "$as_me:$LINENO: checking for u_int8_t" >&5
  4916. echo $ECHO_N "checking for u_int8_t... $ECHO_C" >&6
  4917. if test "${ac_cv_type_u_int8_t+set}" = set; then
  4918. echo $ECHO_N "(cached) $ECHO_C" >&6
  4919. else
  4920. cat >conftest.$ac_ext <<_ACEOF
  4921. /* confdefs.h. */
  4922. _ACEOF
  4923. cat confdefs.h >>conftest.$ac_ext
  4924. cat >>conftest.$ac_ext <<_ACEOF
  4925. /* end confdefs.h. */
  4926. $ac_includes_default
  4927. int
  4928. main ()
  4929. {
  4930. if ((u_int8_t *) 0)
  4931. return 0;
  4932. if (sizeof (u_int8_t))
  4933. return 0;
  4934. ;
  4935. return 0;
  4936. }
  4937. _ACEOF
  4938. rm -f conftest.$ac_objext
  4939. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4940. (eval $ac_compile) 2>conftest.er1
  4941. ac_status=$?
  4942. grep -v '^ *+' conftest.er1 >conftest.err
  4943. rm -f conftest.er1
  4944. cat conftest.err >&5
  4945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4946. (exit $ac_status); } &&
  4947. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4949. (eval $ac_try) 2>&5
  4950. ac_status=$?
  4951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4952. (exit $ac_status); }; } &&
  4953. { ac_try='test -s conftest.$ac_objext'
  4954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4955. (eval $ac_try) 2>&5
  4956. ac_status=$?
  4957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4958. (exit $ac_status); }; }; then
  4959. ac_cv_type_u_int8_t=yes
  4960. else
  4961. echo "$as_me: failed program was:" >&5
  4962. sed 's/^/| /' conftest.$ac_ext >&5
  4963. ac_cv_type_u_int8_t=no
  4964. fi
  4965. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4966. fi
  4967. echo "$as_me:$LINENO: result: $ac_cv_type_u_int8_t" >&5
  4968. echo "${ECHO_T}$ac_cv_type_u_int8_t" >&6
  4969. if test $ac_cv_type_u_int8_t = yes; then
  4970. :
  4971. else
  4972. cat >>confdefs.h <<_ACEOF
  4973. #define u_int8_t uint8_t
  4974. _ACEOF
  4975. fi
  4976. echo "$as_me:$LINENO: checking for u_int16_t" >&5
  4977. echo $ECHO_N "checking for u_int16_t... $ECHO_C" >&6
  4978. if test "${ac_cv_type_u_int16_t+set}" = set; then
  4979. echo $ECHO_N "(cached) $ECHO_C" >&6
  4980. else
  4981. cat >conftest.$ac_ext <<_ACEOF
  4982. /* confdefs.h. */
  4983. _ACEOF
  4984. cat confdefs.h >>conftest.$ac_ext
  4985. cat >>conftest.$ac_ext <<_ACEOF
  4986. /* end confdefs.h. */
  4987. $ac_includes_default
  4988. int
  4989. main ()
  4990. {
  4991. if ((u_int16_t *) 0)
  4992. return 0;
  4993. if (sizeof (u_int16_t))
  4994. return 0;
  4995. ;
  4996. return 0;
  4997. }
  4998. _ACEOF
  4999. rm -f conftest.$ac_objext
  5000. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5001. (eval $ac_compile) 2>conftest.er1
  5002. ac_status=$?
  5003. grep -v '^ *+' conftest.er1 >conftest.err
  5004. rm -f conftest.er1
  5005. cat conftest.err >&5
  5006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5007. (exit $ac_status); } &&
  5008. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5010. (eval $ac_try) 2>&5
  5011. ac_status=$?
  5012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5013. (exit $ac_status); }; } &&
  5014. { ac_try='test -s conftest.$ac_objext'
  5015. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5016. (eval $ac_try) 2>&5
  5017. ac_status=$?
  5018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5019. (exit $ac_status); }; }; then
  5020. ac_cv_type_u_int16_t=yes
  5021. else
  5022. echo "$as_me: failed program was:" >&5
  5023. sed 's/^/| /' conftest.$ac_ext >&5
  5024. ac_cv_type_u_int16_t=no
  5025. fi
  5026. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5027. fi
  5028. echo "$as_me:$LINENO: result: $ac_cv_type_u_int16_t" >&5
  5029. echo "${ECHO_T}$ac_cv_type_u_int16_t" >&6
  5030. if test $ac_cv_type_u_int16_t = yes; then
  5031. :
  5032. else
  5033. cat >>confdefs.h <<_ACEOF
  5034. #define u_int16_t uint16_t
  5035. _ACEOF
  5036. fi
  5037. echo "$as_me:$LINENO: checking for u_int32_t" >&5
  5038. echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6
  5039. if test "${ac_cv_type_u_int32_t+set}" = set; then
  5040. echo $ECHO_N "(cached) $ECHO_C" >&6
  5041. else
  5042. cat >conftest.$ac_ext <<_ACEOF
  5043. /* confdefs.h. */
  5044. _ACEOF
  5045. cat confdefs.h >>conftest.$ac_ext
  5046. cat >>conftest.$ac_ext <<_ACEOF
  5047. /* end confdefs.h. */
  5048. $ac_includes_default
  5049. int
  5050. main ()
  5051. {
  5052. if ((u_int32_t *) 0)
  5053. return 0;
  5054. if (sizeof (u_int32_t))
  5055. return 0;
  5056. ;
  5057. return 0;
  5058. }
  5059. _ACEOF
  5060. rm -f conftest.$ac_objext
  5061. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5062. (eval $ac_compile) 2>conftest.er1
  5063. ac_status=$?
  5064. grep -v '^ *+' conftest.er1 >conftest.err
  5065. rm -f conftest.er1
  5066. cat conftest.err >&5
  5067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5068. (exit $ac_status); } &&
  5069. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5070. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5071. (eval $ac_try) 2>&5
  5072. ac_status=$?
  5073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5074. (exit $ac_status); }; } &&
  5075. { ac_try='test -s conftest.$ac_objext'
  5076. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5077. (eval $ac_try) 2>&5
  5078. ac_status=$?
  5079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5080. (exit $ac_status); }; }; then
  5081. ac_cv_type_u_int32_t=yes
  5082. else
  5083. echo "$as_me: failed program was:" >&5
  5084. sed 's/^/| /' conftest.$ac_ext >&5
  5085. ac_cv_type_u_int32_t=no
  5086. fi
  5087. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5088. fi
  5089. echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5
  5090. echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6
  5091. if test $ac_cv_type_u_int32_t = yes; then
  5092. :
  5093. else
  5094. cat >>confdefs.h <<_ACEOF
  5095. #define u_int32_t uint32_t
  5096. _ACEOF
  5097. fi
  5098. echo "$as_me:$LINENO: checking for u_int64_t" >&5
  5099. echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
  5100. if test "${ac_cv_type_u_int64_t+set}" = set; then
  5101. echo $ECHO_N "(cached) $ECHO_C" >&6
  5102. else
  5103. cat >conftest.$ac_ext <<_ACEOF
  5104. /* confdefs.h. */
  5105. _ACEOF
  5106. cat confdefs.h >>conftest.$ac_ext
  5107. cat >>conftest.$ac_ext <<_ACEOF
  5108. /* end confdefs.h. */
  5109. $ac_includes_default
  5110. int
  5111. main ()
  5112. {
  5113. if ((u_int64_t *) 0)
  5114. return 0;
  5115. if (sizeof (u_int64_t))
  5116. return 0;
  5117. ;
  5118. return 0;
  5119. }
  5120. _ACEOF
  5121. rm -f conftest.$ac_objext
  5122. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5123. (eval $ac_compile) 2>conftest.er1
  5124. ac_status=$?
  5125. grep -v '^ *+' conftest.er1 >conftest.err
  5126. rm -f conftest.er1
  5127. cat conftest.err >&5
  5128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5129. (exit $ac_status); } &&
  5130. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5132. (eval $ac_try) 2>&5
  5133. ac_status=$?
  5134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5135. (exit $ac_status); }; } &&
  5136. { ac_try='test -s conftest.$ac_objext'
  5137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5138. (eval $ac_try) 2>&5
  5139. ac_status=$?
  5140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5141. (exit $ac_status); }; }; then
  5142. ac_cv_type_u_int64_t=yes
  5143. else
  5144. echo "$as_me: failed program was:" >&5
  5145. sed 's/^/| /' conftest.$ac_ext >&5
  5146. ac_cv_type_u_int64_t=no
  5147. fi
  5148. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5149. fi
  5150. echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
  5151. echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
  5152. if test $ac_cv_type_u_int64_t = yes; then
  5153. :
  5154. else
  5155. cat >>confdefs.h <<_ACEOF
  5156. #define u_int64_t uint64_t
  5157. _ACEOF
  5158. fi
  5159. for ac_header in fcntl.h stddef.h sys/socket.h arpa/inet.h sys/time.h signal.h string.h strings.h sys/types.h sys/select.h netinet/in.h poll.h sys/poll.h unistd.h
  5160. do
  5161. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5162. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5163. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5164. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5165. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5166. echo $ECHO_N "(cached) $ECHO_C" >&6
  5167. fi
  5168. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5169. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5170. else
  5171. # Is the header compilable?
  5172. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5173. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5174. cat >conftest.$ac_ext <<_ACEOF
  5175. /* confdefs.h. */
  5176. _ACEOF
  5177. cat confdefs.h >>conftest.$ac_ext
  5178. cat >>conftest.$ac_ext <<_ACEOF
  5179. /* end confdefs.h. */
  5180. $ac_includes_default
  5181. #include <$ac_header>
  5182. _ACEOF
  5183. rm -f conftest.$ac_objext
  5184. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5185. (eval $ac_compile) 2>conftest.er1
  5186. ac_status=$?
  5187. grep -v '^ *+' conftest.er1 >conftest.err
  5188. rm -f conftest.er1
  5189. cat conftest.err >&5
  5190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5191. (exit $ac_status); } &&
  5192. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5193. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5194. (eval $ac_try) 2>&5
  5195. ac_status=$?
  5196. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5197. (exit $ac_status); }; } &&
  5198. { ac_try='test -s conftest.$ac_objext'
  5199. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5200. (eval $ac_try) 2>&5
  5201. ac_status=$?
  5202. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5203. (exit $ac_status); }; }; then
  5204. ac_header_compiler=yes
  5205. else
  5206. echo "$as_me: failed program was:" >&5
  5207. sed 's/^/| /' conftest.$ac_ext >&5
  5208. ac_header_compiler=no
  5209. fi
  5210. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5211. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5212. echo "${ECHO_T}$ac_header_compiler" >&6
  5213. # Is the header present?
  5214. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5215. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5216. cat >conftest.$ac_ext <<_ACEOF
  5217. /* confdefs.h. */
  5218. _ACEOF
  5219. cat confdefs.h >>conftest.$ac_ext
  5220. cat >>conftest.$ac_ext <<_ACEOF
  5221. /* end confdefs.h. */
  5222. #include <$ac_header>
  5223. _ACEOF
  5224. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5225. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5226. ac_status=$?
  5227. grep -v '^ *+' conftest.er1 >conftest.err
  5228. rm -f conftest.er1
  5229. cat conftest.err >&5
  5230. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5231. (exit $ac_status); } >/dev/null; then
  5232. if test -s conftest.err; then
  5233. ac_cpp_err=$ac_c_preproc_warn_flag
  5234. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5235. else
  5236. ac_cpp_err=
  5237. fi
  5238. else
  5239. ac_cpp_err=yes
  5240. fi
  5241. if test -z "$ac_cpp_err"; then
  5242. ac_header_preproc=yes
  5243. else
  5244. echo "$as_me: failed program was:" >&5
  5245. sed 's/^/| /' conftest.$ac_ext >&5
  5246. ac_header_preproc=no
  5247. fi
  5248. rm -f conftest.err conftest.$ac_ext
  5249. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5250. echo "${ECHO_T}$ac_header_preproc" >&6
  5251. # So? What about this header?
  5252. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5253. yes:no: )
  5254. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5255. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5256. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5257. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5258. ac_header_preproc=yes
  5259. ;;
  5260. no:yes:* )
  5261. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5262. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5263. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5264. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5265. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5266. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5267. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5268. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5269. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5270. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5271. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5272. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5273. (
  5274. cat <<\_ASBOX
  5275. ## ------------------------------------------ ##
  5276. ## Report this to the AC_PACKAGE_NAME lists. ##
  5277. ## ------------------------------------------ ##
  5278. _ASBOX
  5279. ) |
  5280. sed "s/^/$as_me: WARNING: /" >&2
  5281. ;;
  5282. esac
  5283. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5284. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5285. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5286. echo $ECHO_N "(cached) $ECHO_C" >&6
  5287. else
  5288. eval "$as_ac_Header=\$ac_header_preproc"
  5289. fi
  5290. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5291. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5292. fi
  5293. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5294. cat >>confdefs.h <<_ACEOF
  5295. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5296. _ACEOF
  5297. fi
  5298. done
  5299. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  5300. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  5301. if test "${ac_cv_lib_socket_socket+set}" = set; then
  5302. echo $ECHO_N "(cached) $ECHO_C" >&6
  5303. else
  5304. ac_check_lib_save_LIBS=$LIBS
  5305. LIBS="-lsocket $LIBS"
  5306. cat >conftest.$ac_ext <<_ACEOF
  5307. /* confdefs.h. */
  5308. _ACEOF
  5309. cat confdefs.h >>conftest.$ac_ext
  5310. cat >>conftest.$ac_ext <<_ACEOF
  5311. /* end confdefs.h. */
  5312. /* Override any gcc2 internal prototype to avoid an error. */
  5313. #ifdef __cplusplus
  5314. extern "C"
  5315. #endif
  5316. /* We use char because int might match the return type of a gcc2
  5317. builtin and then its argument prototype would still apply. */
  5318. char socket ();
  5319. int
  5320. main ()
  5321. {
  5322. socket ();
  5323. ;
  5324. return 0;
  5325. }
  5326. _ACEOF
  5327. rm -f conftest.$ac_objext conftest$ac_exeext
  5328. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5329. (eval $ac_link) 2>conftest.er1
  5330. ac_status=$?
  5331. grep -v '^ *+' conftest.er1 >conftest.err
  5332. rm -f conftest.er1
  5333. cat conftest.err >&5
  5334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5335. (exit $ac_status); } &&
  5336. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5337. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5338. (eval $ac_try) 2>&5
  5339. ac_status=$?
  5340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5341. (exit $ac_status); }; } &&
  5342. { ac_try='test -s conftest$ac_exeext'
  5343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5344. (eval $ac_try) 2>&5
  5345. ac_status=$?
  5346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5347. (exit $ac_status); }; }; then
  5348. ac_cv_lib_socket_socket=yes
  5349. else
  5350. echo "$as_me: failed program was:" >&5
  5351. sed 's/^/| /' conftest.$ac_ext >&5
  5352. ac_cv_lib_socket_socket=no
  5353. fi
  5354. rm -f conftest.err conftest.$ac_objext \
  5355. conftest$ac_exeext conftest.$ac_ext
  5356. LIBS=$ac_check_lib_save_LIBS
  5357. fi
  5358. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  5359. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  5360. if test $ac_cv_lib_socket_socket = yes; then
  5361. cat >>confdefs.h <<_ACEOF
  5362. #define HAVE_LIBSOCKET 1
  5363. _ACEOF
  5364. LIBS="-lsocket $LIBS"
  5365. fi
  5366. echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
  5367. echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
  5368. if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
  5369. echo $ECHO_N "(cached) $ECHO_C" >&6
  5370. else
  5371. ac_check_lib_save_LIBS=$LIBS
  5372. LIBS="-lnsl $LIBS"
  5373. cat >conftest.$ac_ext <<_ACEOF
  5374. /* confdefs.h. */
  5375. _ACEOF
  5376. cat confdefs.h >>conftest.$ac_ext
  5377. cat >>conftest.$ac_ext <<_ACEOF
  5378. /* end confdefs.h. */
  5379. /* Override any gcc2 internal prototype to avoid an error. */
  5380. #ifdef __cplusplus
  5381. extern "C"
  5382. #endif
  5383. /* We use char because int might match the return type of a gcc2
  5384. builtin and then its argument prototype would still apply. */
  5385. char gethostbyname ();
  5386. int
  5387. main ()
  5388. {
  5389. gethostbyname ();
  5390. ;
  5391. return 0;
  5392. }
  5393. _ACEOF
  5394. rm -f conftest.$ac_objext conftest$ac_exeext
  5395. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5396. (eval $ac_link) 2>conftest.er1
  5397. ac_status=$?
  5398. grep -v '^ *+' conftest.er1 >conftest.err
  5399. rm -f conftest.er1
  5400. cat conftest.err >&5
  5401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5402. (exit $ac_status); } &&
  5403. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5404. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5405. (eval $ac_try) 2>&5
  5406. ac_status=$?
  5407. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5408. (exit $ac_status); }; } &&
  5409. { ac_try='test -s conftest$ac_exeext'
  5410. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5411. (eval $ac_try) 2>&5
  5412. ac_status=$?
  5413. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5414. (exit $ac_status); }; }; then
  5415. ac_cv_lib_nsl_gethostbyname=yes
  5416. else
  5417. echo "$as_me: failed program was:" >&5
  5418. sed 's/^/| /' conftest.$ac_ext >&5
  5419. ac_cv_lib_nsl_gethostbyname=no
  5420. fi
  5421. rm -f conftest.err conftest.$ac_objext \
  5422. conftest$ac_exeext conftest.$ac_ext
  5423. LIBS=$ac_check_lib_save_LIBS
  5424. fi
  5425. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
  5426. echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
  5427. if test $ac_cv_lib_nsl_gethostbyname = yes; then
  5428. cat >>confdefs.h <<_ACEOF
  5429. #define HAVE_LIBNSL 1
  5430. _ACEOF
  5431. LIBS="-lnsl $LIBS"
  5432. fi
  5433. echo "$as_me:$LINENO: checking for nanosleep in -lrt" >&5
  5434. echo $ECHO_N "checking for nanosleep in -lrt... $ECHO_C" >&6
  5435. if test "${ac_cv_lib_rt_nanosleep+set}" = set; then
  5436. echo $ECHO_N "(cached) $ECHO_C" >&6
  5437. else
  5438. ac_check_lib_save_LIBS=$LIBS
  5439. LIBS="-lrt $LIBS"
  5440. cat >conftest.$ac_ext <<_ACEOF
  5441. /* confdefs.h. */
  5442. _ACEOF
  5443. cat confdefs.h >>conftest.$ac_ext
  5444. cat >>conftest.$ac_ext <<_ACEOF
  5445. /* end confdefs.h. */
  5446. /* Override any gcc2 internal prototype to avoid an error. */
  5447. #ifdef __cplusplus
  5448. extern "C"
  5449. #endif
  5450. /* We use char because int might match the return type of a gcc2
  5451. builtin and then its argument prototype would still apply. */
  5452. char nanosleep ();
  5453. int
  5454. main ()
  5455. {
  5456. nanosleep ();
  5457. ;
  5458. return 0;
  5459. }
  5460. _ACEOF
  5461. rm -f conftest.$ac_objext conftest$ac_exeext
  5462. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5463. (eval $ac_link) 2>conftest.er1
  5464. ac_status=$?
  5465. grep -v '^ *+' conftest.er1 >conftest.err
  5466. rm -f conftest.er1
  5467. cat conftest.err >&5
  5468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5469. (exit $ac_status); } &&
  5470. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5471. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5472. (eval $ac_try) 2>&5
  5473. ac_status=$?
  5474. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5475. (exit $ac_status); }; } &&
  5476. { ac_try='test -s conftest$ac_exeext'
  5477. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5478. (eval $ac_try) 2>&5
  5479. ac_status=$?
  5480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5481. (exit $ac_status); }; }; then
  5482. ac_cv_lib_rt_nanosleep=yes
  5483. else
  5484. echo "$as_me: failed program was:" >&5
  5485. sed 's/^/| /' conftest.$ac_ext >&5
  5486. ac_cv_lib_rt_nanosleep=no
  5487. fi
  5488. rm -f conftest.err conftest.$ac_objext \
  5489. conftest$ac_exeext conftest.$ac_ext
  5490. LIBS=$ac_check_lib_save_LIBS
  5491. fi
  5492. echo "$as_me:$LINENO: result: $ac_cv_lib_rt_nanosleep" >&5
  5493. echo "${ECHO_T}$ac_cv_lib_rt_nanosleep" >&6
  5494. if test $ac_cv_lib_rt_nanosleep = yes; then
  5495. cat >>confdefs.h <<_ACEOF
  5496. #define HAVE_LIBRT 1
  5497. _ACEOF
  5498. LIBS="-lrt $LIBS"
  5499. fi
  5500. for ac_header in stdlib.h
  5501. do
  5502. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5503. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5504. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5505. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5506. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5507. echo $ECHO_N "(cached) $ECHO_C" >&6
  5508. fi
  5509. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5510. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5511. else
  5512. # Is the header compilable?
  5513. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5514. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5515. cat >conftest.$ac_ext <<_ACEOF
  5516. /* confdefs.h. */
  5517. _ACEOF
  5518. cat confdefs.h >>conftest.$ac_ext
  5519. cat >>conftest.$ac_ext <<_ACEOF
  5520. /* end confdefs.h. */
  5521. $ac_includes_default
  5522. #include <$ac_header>
  5523. _ACEOF
  5524. rm -f conftest.$ac_objext
  5525. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5526. (eval $ac_compile) 2>conftest.er1
  5527. ac_status=$?
  5528. grep -v '^ *+' conftest.er1 >conftest.err
  5529. rm -f conftest.er1
  5530. cat conftest.err >&5
  5531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5532. (exit $ac_status); } &&
  5533. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5535. (eval $ac_try) 2>&5
  5536. ac_status=$?
  5537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5538. (exit $ac_status); }; } &&
  5539. { ac_try='test -s conftest.$ac_objext'
  5540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5541. (eval $ac_try) 2>&5
  5542. ac_status=$?
  5543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5544. (exit $ac_status); }; }; then
  5545. ac_header_compiler=yes
  5546. else
  5547. echo "$as_me: failed program was:" >&5
  5548. sed 's/^/| /' conftest.$ac_ext >&5
  5549. ac_header_compiler=no
  5550. fi
  5551. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5552. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5553. echo "${ECHO_T}$ac_header_compiler" >&6
  5554. # Is the header present?
  5555. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5556. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5557. cat >conftest.$ac_ext <<_ACEOF
  5558. /* confdefs.h. */
  5559. _ACEOF
  5560. cat confdefs.h >>conftest.$ac_ext
  5561. cat >>conftest.$ac_ext <<_ACEOF
  5562. /* end confdefs.h. */
  5563. #include <$ac_header>
  5564. _ACEOF
  5565. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5566. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5567. ac_status=$?
  5568. grep -v '^ *+' conftest.er1 >conftest.err
  5569. rm -f conftest.er1
  5570. cat conftest.err >&5
  5571. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5572. (exit $ac_status); } >/dev/null; then
  5573. if test -s conftest.err; then
  5574. ac_cpp_err=$ac_c_preproc_warn_flag
  5575. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5576. else
  5577. ac_cpp_err=
  5578. fi
  5579. else
  5580. ac_cpp_err=yes
  5581. fi
  5582. if test -z "$ac_cpp_err"; then
  5583. ac_header_preproc=yes
  5584. else
  5585. echo "$as_me: failed program was:" >&5
  5586. sed 's/^/| /' conftest.$ac_ext >&5
  5587. ac_header_preproc=no
  5588. fi
  5589. rm -f conftest.err conftest.$ac_ext
  5590. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5591. echo "${ECHO_T}$ac_header_preproc" >&6
  5592. # So? What about this header?
  5593. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5594. yes:no: )
  5595. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5596. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5597. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5598. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5599. ac_header_preproc=yes
  5600. ;;
  5601. no:yes:* )
  5602. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5603. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5604. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5605. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5606. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5607. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5608. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5609. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5610. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5611. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5612. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5613. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5614. (
  5615. cat <<\_ASBOX
  5616. ## ------------------------------------------ ##
  5617. ## Report this to the AC_PACKAGE_NAME lists. ##
  5618. ## ------------------------------------------ ##
  5619. _ASBOX
  5620. ) |
  5621. sed "s/^/$as_me: WARNING: /" >&2
  5622. ;;
  5623. esac
  5624. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5625. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5626. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5627. echo $ECHO_N "(cached) $ECHO_C" >&6
  5628. else
  5629. eval "$as_ac_Header=\$ac_header_preproc"
  5630. fi
  5631. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5632. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5633. fi
  5634. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5635. cat >>confdefs.h <<_ACEOF
  5636. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5637. _ACEOF
  5638. fi
  5639. done
  5640. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  5641. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  5642. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  5643. echo $ECHO_N "(cached) $ECHO_C" >&6
  5644. else
  5645. if test "$cross_compiling" = yes; then
  5646. ac_cv_func_malloc_0_nonnull=no
  5647. else
  5648. cat >conftest.$ac_ext <<_ACEOF
  5649. /* confdefs.h. */
  5650. _ACEOF
  5651. cat confdefs.h >>conftest.$ac_ext
  5652. cat >>conftest.$ac_ext <<_ACEOF
  5653. /* end confdefs.h. */
  5654. #if STDC_HEADERS || HAVE_STDLIB_H
  5655. # include <stdlib.h>
  5656. #else
  5657. char *malloc ();
  5658. #endif
  5659. int
  5660. main ()
  5661. {
  5662. exit (malloc (0) ? 0 : 1);
  5663. ;
  5664. return 0;
  5665. }
  5666. _ACEOF
  5667. rm -f conftest$ac_exeext
  5668. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5669. (eval $ac_link) 2>&5
  5670. ac_status=$?
  5671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5672. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5673. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5674. (eval $ac_try) 2>&5
  5675. ac_status=$?
  5676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5677. (exit $ac_status); }; }; then
  5678. ac_cv_func_malloc_0_nonnull=yes
  5679. else
  5680. echo "$as_me: program exited with status $ac_status" >&5
  5681. echo "$as_me: failed program was:" >&5
  5682. sed 's/^/| /' conftest.$ac_ext >&5
  5683. ( exit $ac_status )
  5684. ac_cv_func_malloc_0_nonnull=no
  5685. fi
  5686. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5687. fi
  5688. fi
  5689. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  5690. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  5691. if test $ac_cv_func_malloc_0_nonnull = yes; then
  5692. cat >>confdefs.h <<\_ACEOF
  5693. #define HAVE_MALLOC 1
  5694. _ACEOF
  5695. else
  5696. cat >>confdefs.h <<\_ACEOF
  5697. #define HAVE_MALLOC 0
  5698. _ACEOF
  5699. case $LIBOBJS in
  5700. "malloc.$ac_objext" | \
  5701. *" malloc.$ac_objext" | \
  5702. "malloc.$ac_objext "* | \
  5703. *" malloc.$ac_objext "* ) ;;
  5704. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  5705. esac
  5706. cat >>confdefs.h <<\_ACEOF
  5707. #define malloc rpl_malloc
  5708. _ACEOF
  5709. fi
  5710. echo "$as_me:$LINENO: checking for working memcmp" >&5
  5711. echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  5712. if test "${ac_cv_func_memcmp_working+set}" = set; then
  5713. echo $ECHO_N "(cached) $ECHO_C" >&6
  5714. else
  5715. if test "$cross_compiling" = yes; then
  5716. ac_cv_func_memcmp_working=no
  5717. else
  5718. cat >conftest.$ac_ext <<_ACEOF
  5719. /* confdefs.h. */
  5720. _ACEOF
  5721. cat confdefs.h >>conftest.$ac_ext
  5722. cat >>conftest.$ac_ext <<_ACEOF
  5723. /* end confdefs.h. */
  5724. $ac_includes_default
  5725. int
  5726. main ()
  5727. {
  5728. /* Some versions of memcmp are not 8-bit clean. */
  5729. char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  5730. if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  5731. exit (1);
  5732. /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  5733. or more and with at least one buffer not starting on a 4-byte boundary.
  5734. William Lewis provided this test program. */
  5735. {
  5736. char foo[21];
  5737. char bar[21];
  5738. int i;
  5739. for (i = 0; i < 4; i++)
  5740. {
  5741. char *a = foo + i;
  5742. char *b = bar + i;
  5743. strcpy (a, "--------01111111");
  5744. strcpy (b, "--------10000000");
  5745. if (memcmp (a, b, 16) >= 0)
  5746. exit (1);
  5747. }
  5748. exit (0);
  5749. }
  5750. ;
  5751. return 0;
  5752. }
  5753. _ACEOF
  5754. rm -f conftest$ac_exeext
  5755. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5756. (eval $ac_link) 2>&5
  5757. ac_status=$?
  5758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5759. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5761. (eval $ac_try) 2>&5
  5762. ac_status=$?
  5763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5764. (exit $ac_status); }; }; then
  5765. ac_cv_func_memcmp_working=yes
  5766. else
  5767. echo "$as_me: program exited with status $ac_status" >&5
  5768. echo "$as_me: failed program was:" >&5
  5769. sed 's/^/| /' conftest.$ac_ext >&5
  5770. ( exit $ac_status )
  5771. ac_cv_func_memcmp_working=no
  5772. fi
  5773. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5774. fi
  5775. fi
  5776. echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  5777. echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  5778. test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  5779. "memcmp.$ac_objext" | \
  5780. *" memcmp.$ac_objext" | \
  5781. "memcmp.$ac_objext "* | \
  5782. *" memcmp.$ac_objext "* ) ;;
  5783. *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  5784. esac
  5785. echo "$as_me:$LINENO: checking return type of signal handlers" >&5
  5786. echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
  5787. if test "${ac_cv_type_signal+set}" = set; then
  5788. echo $ECHO_N "(cached) $ECHO_C" >&6
  5789. else
  5790. cat >conftest.$ac_ext <<_ACEOF
  5791. /* confdefs.h. */
  5792. _ACEOF
  5793. cat confdefs.h >>conftest.$ac_ext
  5794. cat >>conftest.$ac_ext <<_ACEOF
  5795. /* end confdefs.h. */
  5796. #include <sys/types.h>
  5797. #include <signal.h>
  5798. #ifdef signal
  5799. # undef signal
  5800. #endif
  5801. #ifdef __cplusplus
  5802. extern "C" void (*signal (int, void (*)(int)))(int);
  5803. #else
  5804. void (*signal ()) ();
  5805. #endif
  5806. int
  5807. main ()
  5808. {
  5809. int i;
  5810. ;
  5811. return 0;
  5812. }
  5813. _ACEOF
  5814. rm -f conftest.$ac_objext
  5815. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5816. (eval $ac_compile) 2>conftest.er1
  5817. ac_status=$?
  5818. grep -v '^ *+' conftest.er1 >conftest.err
  5819. rm -f conftest.er1
  5820. cat conftest.err >&5
  5821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5822. (exit $ac_status); } &&
  5823. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5824. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5825. (eval $ac_try) 2>&5
  5826. ac_status=$?
  5827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5828. (exit $ac_status); }; } &&
  5829. { ac_try='test -s conftest.$ac_objext'
  5830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5831. (eval $ac_try) 2>&5
  5832. ac_status=$?
  5833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5834. (exit $ac_status); }; }; then
  5835. ac_cv_type_signal=void
  5836. else
  5837. echo "$as_me: failed program was:" >&5
  5838. sed 's/^/| /' conftest.$ac_ext >&5
  5839. ac_cv_type_signal=int
  5840. fi
  5841. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5842. fi
  5843. echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
  5844. echo "${ECHO_T}$ac_cv_type_signal" >&6
  5845. cat >>confdefs.h <<_ACEOF
  5846. #define RETSIGTYPE $ac_cv_type_signal
  5847. _ACEOF
  5848. for ac_func in vprintf
  5849. do
  5850. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5851. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5852. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5853. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5854. echo $ECHO_N "(cached) $ECHO_C" >&6
  5855. else
  5856. cat >conftest.$ac_ext <<_ACEOF
  5857. /* confdefs.h. */
  5858. _ACEOF
  5859. cat confdefs.h >>conftest.$ac_ext
  5860. cat >>conftest.$ac_ext <<_ACEOF
  5861. /* end confdefs.h. */
  5862. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  5863. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5864. #define $ac_func innocuous_$ac_func
  5865. /* System header to define __stub macros and hopefully few prototypes,
  5866. which can conflict with char $ac_func (); below.
  5867. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5868. <limits.h> exists even on freestanding compilers. */
  5869. #ifdef __STDC__
  5870. # include <limits.h>
  5871. #else
  5872. # include <assert.h>
  5873. #endif
  5874. #undef $ac_func
  5875. /* Override any gcc2 internal prototype to avoid an error. */
  5876. #ifdef __cplusplus
  5877. extern "C"
  5878. {
  5879. #endif
  5880. /* We use char because int might match the return type of a gcc2
  5881. builtin and then its argument prototype would still apply. */
  5882. char $ac_func ();
  5883. /* The GNU C library defines this for functions which it implements
  5884. to always fail with ENOSYS. Some functions are actually named
  5885. something starting with __ and the normal name is an alias. */
  5886. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5887. choke me
  5888. #else
  5889. char (*f) () = $ac_func;
  5890. #endif
  5891. #ifdef __cplusplus
  5892. }
  5893. #endif
  5894. int
  5895. main ()
  5896. {
  5897. return f != $ac_func;
  5898. ;
  5899. return 0;
  5900. }
  5901. _ACEOF
  5902. rm -f conftest.$ac_objext conftest$ac_exeext
  5903. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5904. (eval $ac_link) 2>conftest.er1
  5905. ac_status=$?
  5906. grep -v '^ *+' conftest.er1 >conftest.err
  5907. rm -f conftest.er1
  5908. cat conftest.err >&5
  5909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5910. (exit $ac_status); } &&
  5911. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5913. (eval $ac_try) 2>&5
  5914. ac_status=$?
  5915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5916. (exit $ac_status); }; } &&
  5917. { ac_try='test -s conftest$ac_exeext'
  5918. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5919. (eval $ac_try) 2>&5
  5920. ac_status=$?
  5921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5922. (exit $ac_status); }; }; then
  5923. eval "$as_ac_var=yes"
  5924. else
  5925. echo "$as_me: failed program was:" >&5
  5926. sed 's/^/| /' conftest.$ac_ext >&5
  5927. eval "$as_ac_var=no"
  5928. fi
  5929. rm -f conftest.err conftest.$ac_objext \
  5930. conftest$ac_exeext conftest.$ac_ext
  5931. fi
  5932. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5933. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5934. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5935. cat >>confdefs.h <<_ACEOF
  5936. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5937. _ACEOF
  5938. echo "$as_me:$LINENO: checking for _doprnt" >&5
  5939. echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
  5940. if test "${ac_cv_func__doprnt+set}" = set; then
  5941. echo $ECHO_N "(cached) $ECHO_C" >&6
  5942. else
  5943. cat >conftest.$ac_ext <<_ACEOF
  5944. /* confdefs.h. */
  5945. _ACEOF
  5946. cat confdefs.h >>conftest.$ac_ext
  5947. cat >>conftest.$ac_ext <<_ACEOF
  5948. /* end confdefs.h. */
  5949. /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
  5950. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  5951. #define _doprnt innocuous__doprnt
  5952. /* System header to define __stub macros and hopefully few prototypes,
  5953. which can conflict with char _doprnt (); below.
  5954. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5955. <limits.h> exists even on freestanding compilers. */
  5956. #ifdef __STDC__
  5957. # include <limits.h>
  5958. #else
  5959. # include <assert.h>
  5960. #endif
  5961. #undef _doprnt
  5962. /* Override any gcc2 internal prototype to avoid an error. */
  5963. #ifdef __cplusplus
  5964. extern "C"
  5965. {
  5966. #endif
  5967. /* We use char because int might match the return type of a gcc2
  5968. builtin and then its argument prototype would still apply. */
  5969. char _doprnt ();
  5970. /* The GNU C library defines this for functions which it implements
  5971. to always fail with ENOSYS. Some functions are actually named
  5972. something starting with __ and the normal name is an alias. */
  5973. #if defined (__stub__doprnt) || defined (__stub____doprnt)
  5974. choke me
  5975. #else
  5976. char (*f) () = _doprnt;
  5977. #endif
  5978. #ifdef __cplusplus
  5979. }
  5980. #endif
  5981. int
  5982. main ()
  5983. {
  5984. return f != _doprnt;
  5985. ;
  5986. return 0;
  5987. }
  5988. _ACEOF
  5989. rm -f conftest.$ac_objext conftest$ac_exeext
  5990. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5991. (eval $ac_link) 2>conftest.er1
  5992. ac_status=$?
  5993. grep -v '^ *+' conftest.er1 >conftest.err
  5994. rm -f conftest.er1
  5995. cat conftest.err >&5
  5996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5997. (exit $ac_status); } &&
  5998. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6000. (eval $ac_try) 2>&5
  6001. ac_status=$?
  6002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6003. (exit $ac_status); }; } &&
  6004. { ac_try='test -s conftest$ac_exeext'
  6005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6006. (eval $ac_try) 2>&5
  6007. ac_status=$?
  6008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6009. (exit $ac_status); }; }; then
  6010. ac_cv_func__doprnt=yes
  6011. else
  6012. echo "$as_me: failed program was:" >&5
  6013. sed 's/^/| /' conftest.$ac_ext >&5
  6014. ac_cv_func__doprnt=no
  6015. fi
  6016. rm -f conftest.err conftest.$ac_objext \
  6017. conftest$ac_exeext conftest.$ac_ext
  6018. fi
  6019. echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
  6020. echo "${ECHO_T}$ac_cv_func__doprnt" >&6
  6021. if test $ac_cv_func__doprnt = yes; then
  6022. cat >>confdefs.h <<\_ACEOF
  6023. #define HAVE_DOPRNT 1
  6024. _ACEOF
  6025. fi
  6026. fi
  6027. done
  6028. for ac_func in gettimeofday ctime memset regcomp strdup strerror strtol strncpy strtoull poll
  6029. do
  6030. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6031. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6032. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6033. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6034. echo $ECHO_N "(cached) $ECHO_C" >&6
  6035. else
  6036. cat >conftest.$ac_ext <<_ACEOF
  6037. /* confdefs.h. */
  6038. _ACEOF
  6039. cat confdefs.h >>conftest.$ac_ext
  6040. cat >>conftest.$ac_ext <<_ACEOF
  6041. /* end confdefs.h. */
  6042. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  6043. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6044. #define $ac_func innocuous_$ac_func
  6045. /* System header to define __stub macros and hopefully few prototypes,
  6046. which can conflict with char $ac_func (); below.
  6047. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6048. <limits.h> exists even on freestanding compilers. */
  6049. #ifdef __STDC__
  6050. # include <limits.h>
  6051. #else
  6052. # include <assert.h>
  6053. #endif
  6054. #undef $ac_func
  6055. /* Override any gcc2 internal prototype to avoid an error. */
  6056. #ifdef __cplusplus
  6057. extern "C"
  6058. {
  6059. #endif
  6060. /* We use char because int might match the return type of a gcc2
  6061. builtin and then its argument prototype would still apply. */
  6062. char $ac_func ();
  6063. /* The GNU C library defines this for functions which it implements
  6064. to always fail with ENOSYS. Some functions are actually named
  6065. something starting with __ and the normal name is an alias. */
  6066. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6067. choke me
  6068. #else
  6069. char (*f) () = $ac_func;
  6070. #endif
  6071. #ifdef __cplusplus
  6072. }
  6073. #endif
  6074. int
  6075. main ()
  6076. {
  6077. return f != $ac_func;
  6078. ;
  6079. return 0;
  6080. }
  6081. _ACEOF
  6082. rm -f conftest.$ac_objext conftest$ac_exeext
  6083. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6084. (eval $ac_link) 2>conftest.er1
  6085. ac_status=$?
  6086. grep -v '^ *+' conftest.er1 >conftest.err
  6087. rm -f conftest.er1
  6088. cat conftest.err >&5
  6089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6090. (exit $ac_status); } &&
  6091. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6093. (eval $ac_try) 2>&5
  6094. ac_status=$?
  6095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6096. (exit $ac_status); }; } &&
  6097. { ac_try='test -s conftest$ac_exeext'
  6098. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6099. (eval $ac_try) 2>&5
  6100. ac_status=$?
  6101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6102. (exit $ac_status); }; }; then
  6103. eval "$as_ac_var=yes"
  6104. else
  6105. echo "$as_me: failed program was:" >&5
  6106. sed 's/^/| /' conftest.$ac_ext >&5
  6107. eval "$as_ac_var=no"
  6108. fi
  6109. rm -f conftest.err conftest.$ac_objext \
  6110. conftest$ac_exeext conftest.$ac_ext
  6111. fi
  6112. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6113. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6114. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6115. cat >>confdefs.h <<_ACEOF
  6116. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6117. _ACEOF
  6118. fi
  6119. done
  6120. echo "$as_me:$LINENO: checking for inet_aton" >&5
  6121. echo $ECHO_N "checking for inet_aton... $ECHO_C" >&6
  6122. if test "${ac_cv_func_inet_aton+set}" = set; then
  6123. echo $ECHO_N "(cached) $ECHO_C" >&6
  6124. else
  6125. cat >conftest.$ac_ext <<_ACEOF
  6126. /* confdefs.h. */
  6127. _ACEOF
  6128. cat confdefs.h >>conftest.$ac_ext
  6129. cat >>conftest.$ac_ext <<_ACEOF
  6130. /* end confdefs.h. */
  6131. /* Define inet_aton to an innocuous variant, in case <limits.h> declares inet_aton.
  6132. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6133. #define inet_aton innocuous_inet_aton
  6134. /* System header to define __stub macros and hopefully few prototypes,
  6135. which can conflict with char inet_aton (); below.
  6136. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6137. <limits.h> exists even on freestanding compilers. */
  6138. #ifdef __STDC__
  6139. # include <limits.h>
  6140. #else
  6141. # include <assert.h>
  6142. #endif
  6143. #undef inet_aton
  6144. /* Override any gcc2 internal prototype to avoid an error. */
  6145. #ifdef __cplusplus
  6146. extern "C"
  6147. {
  6148. #endif
  6149. /* We use char because int might match the return type of a gcc2
  6150. builtin and then its argument prototype would still apply. */
  6151. char inet_aton ();
  6152. /* The GNU C library defines this for functions which it implements
  6153. to always fail with ENOSYS. Some functions are actually named
  6154. something starting with __ and the normal name is an alias. */
  6155. #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
  6156. choke me
  6157. #else
  6158. char (*f) () = inet_aton;
  6159. #endif
  6160. #ifdef __cplusplus
  6161. }
  6162. #endif
  6163. int
  6164. main ()
  6165. {
  6166. return f != inet_aton;
  6167. ;
  6168. return 0;
  6169. }
  6170. _ACEOF
  6171. rm -f conftest.$ac_objext conftest$ac_exeext
  6172. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6173. (eval $ac_link) 2>conftest.er1
  6174. ac_status=$?
  6175. grep -v '^ *+' conftest.er1 >conftest.err
  6176. rm -f conftest.er1
  6177. cat conftest.err >&5
  6178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6179. (exit $ac_status); } &&
  6180. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6182. (eval $ac_try) 2>&5
  6183. ac_status=$?
  6184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6185. (exit $ac_status); }; } &&
  6186. { ac_try='test -s conftest$ac_exeext'
  6187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6188. (eval $ac_try) 2>&5
  6189. ac_status=$?
  6190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6191. (exit $ac_status); }; }; then
  6192. ac_cv_func_inet_aton=yes
  6193. else
  6194. echo "$as_me: failed program was:" >&5
  6195. sed 's/^/| /' conftest.$ac_ext >&5
  6196. ac_cv_func_inet_aton=no
  6197. fi
  6198. rm -f conftest.err conftest.$ac_objext \
  6199. conftest$ac_exeext conftest.$ac_ext
  6200. fi
  6201. echo "$as_me:$LINENO: result: $ac_cv_func_inet_aton" >&5
  6202. echo "${ECHO_T}$ac_cv_func_inet_aton" >&6
  6203. if test $ac_cv_func_inet_aton = yes; then
  6204. cat >>confdefs.h <<\_ACEOF
  6205. #define INET_ATON 1
  6206. _ACEOF
  6207. inet_aton=yes
  6208. else
  6209. inet_aton=no
  6210. fi
  6211. echo "$as_me:$LINENO: checking for inet_addr" >&5
  6212. echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6
  6213. if test "${ac_cv_func_inet_addr+set}" = set; then
  6214. echo $ECHO_N "(cached) $ECHO_C" >&6
  6215. else
  6216. cat >conftest.$ac_ext <<_ACEOF
  6217. /* confdefs.h. */
  6218. _ACEOF
  6219. cat confdefs.h >>conftest.$ac_ext
  6220. cat >>conftest.$ac_ext <<_ACEOF
  6221. /* end confdefs.h. */
  6222. /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
  6223. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  6224. #define inet_addr innocuous_inet_addr
  6225. /* System header to define __stub macros and hopefully few prototypes,
  6226. which can conflict with char inet_addr (); below.
  6227. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6228. <limits.h> exists even on freestanding compilers. */
  6229. #ifdef __STDC__
  6230. # include <limits.h>
  6231. #else
  6232. # include <assert.h>
  6233. #endif
  6234. #undef inet_addr
  6235. /* Override any gcc2 internal prototype to avoid an error. */
  6236. #ifdef __cplusplus
  6237. extern "C"
  6238. {
  6239. #endif
  6240. /* We use char because int might match the return type of a gcc2
  6241. builtin and then its argument prototype would still apply. */
  6242. char inet_addr ();
  6243. /* The GNU C library defines this for functions which it implements
  6244. to always fail with ENOSYS. Some functions are actually named
  6245. something starting with __ and the normal name is an alias. */
  6246. #if defined (__stub_inet_addr) || defined (__stub___inet_addr)
  6247. choke me
  6248. #else
  6249. char (*f) () = inet_addr;
  6250. #endif
  6251. #ifdef __cplusplus
  6252. }
  6253. #endif
  6254. int
  6255. main ()
  6256. {
  6257. return f != inet_addr;
  6258. ;
  6259. return 0;
  6260. }
  6261. _ACEOF
  6262. rm -f conftest.$ac_objext conftest$ac_exeext
  6263. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6264. (eval $ac_link) 2>conftest.er1
  6265. ac_status=$?
  6266. grep -v '^ *+' conftest.er1 >conftest.err
  6267. rm -f conftest.er1
  6268. cat conftest.err >&5
  6269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6270. (exit $ac_status); } &&
  6271. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6272. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6273. (eval $ac_try) 2>&5
  6274. ac_status=$?
  6275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6276. (exit $ac_status); }; } &&
  6277. { ac_try='test -s conftest$ac_exeext'
  6278. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6279. (eval $ac_try) 2>&5
  6280. ac_status=$?
  6281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6282. (exit $ac_status); }; }; then
  6283. ac_cv_func_inet_addr=yes
  6284. else
  6285. echo "$as_me: failed program was:" >&5
  6286. sed 's/^/| /' conftest.$ac_ext >&5
  6287. ac_cv_func_inet_addr=no
  6288. fi
  6289. rm -f conftest.err conftest.$ac_objext \
  6290. conftest$ac_exeext conftest.$ac_ext
  6291. fi
  6292. echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
  6293. echo "${ECHO_T}$ac_cv_func_inet_addr" >&6
  6294. if test $ac_cv_func_inet_addr = yes; then
  6295. cat >>confdefs.h <<\_ACEOF
  6296. #define INET_ADDR 1
  6297. _ACEOF
  6298. inet_addr=yes
  6299. else
  6300. inet_addr=no
  6301. fi
  6302. if test $inet_aton = no -a $inet_addr = no ; then
  6303. { { echo "$as_me:$LINENO: error: \"We need either inet_aton or inet_addr\"" >&5
  6304. echo "$as_me: error: \"We need either inet_aton or inet_addr\"" >&2;}
  6305. { (exit 1); exit 1; }; }
  6306. fi
  6307. foundnet=no
  6308. trynetdir=/usr/local
  6309. echo "$as_me:$LINENO: checking for libnet" >&5
  6310. echo $ECHO_N "checking for libnet... $ECHO_C" >&6
  6311. # Check whether --with-libnet or --without-libnet was given.
  6312. if test "${with_libnet+set}" = set; then
  6313. withval="$with_libnet"
  6314. trynetdir=$withval
  6315. fi;
  6316. for testdir in $trynetdir /usr/local /usr ; do
  6317. if test -f "${testdir}/include/libnet.h" -a $foundnet = no ; then
  6318. LNETINC="-I${testdir}/include"
  6319. LNETINCDIR="$testdir/include"
  6320. LNETLIB="-L${testdir}/lib -lnet"
  6321. foundnet=$testdir
  6322. fi
  6323. done
  6324. if test $foundnet = no ; then
  6325. echo "$as_me:$LINENO: result: no" >&5
  6326. echo "${ECHO_T}no" >&6
  6327. { { echo "$as_me:$LINENO: error: libnet not found" >&5
  6328. echo "$as_me: error: libnet not found" >&2;}
  6329. { (exit 1); exit 1; }; }
  6330. else
  6331. echo "$as_me:$LINENO: result: $foundnet" >&5
  6332. echo "${ECHO_T}$foundnet" >&6
  6333. fi
  6334. OLDLIBS="$LIBS"
  6335. LIBS="$LNETLIB"
  6336. echo "$as_me:$LINENO: checking for libnet version" >&5
  6337. echo $ECHO_N "checking for libnet version... $ECHO_C" >&6
  6338. if test "$cross_compiling" = yes; then
  6339. libnet_ver_10=no
  6340. else
  6341. cat >conftest.$ac_ext <<_ACEOF
  6342. /* confdefs.h. */
  6343. _ACEOF
  6344. cat confdefs.h >>conftest.$ac_ext
  6345. cat >>conftest.$ac_ext <<_ACEOF
  6346. /* end confdefs.h. */
  6347. #include <string.h>
  6348. #define LIBNET_LIL_ENDIAN 1
  6349. #include "$LNETINCDIR/libnet.h"
  6350. #define LIB_TEST "1.0"
  6351. /*
  6352. * simple proggy to test the version of libnet
  6353. * returns zero if it's 1.0.x
  6354. * or one otherwise
  6355. */
  6356. int
  6357. main (int argc, char *argv[])
  6358. {
  6359. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  6360. exit(0);
  6361. exit(1);
  6362. }
  6363. _ACEOF
  6364. rm -f conftest$ac_exeext
  6365. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6366. (eval $ac_link) 2>&5
  6367. ac_status=$?
  6368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6369. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6371. (eval $ac_try) 2>&5
  6372. ac_status=$?
  6373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6374. (exit $ac_status); }; }; then
  6375. libnet_ver_10=yes
  6376. echo "$as_me:$LINENO: result: 1.0.x" >&5
  6377. echo "${ECHO_T}1.0.x" >&6
  6378. else
  6379. echo "$as_me: program exited with status $ac_status" >&5
  6380. echo "$as_me: failed program was:" >&5
  6381. sed 's/^/| /' conftest.$ac_ext >&5
  6382. ( exit $ac_status )
  6383. libnet_ver_10=no
  6384. fi
  6385. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6386. fi
  6387. if test "$cross_compiling" = yes; then
  6388. libnet_ver_11=no
  6389. else
  6390. cat >conftest.$ac_ext <<_ACEOF
  6391. /* confdefs.h. */
  6392. _ACEOF
  6393. cat confdefs.h >>conftest.$ac_ext
  6394. cat >>conftest.$ac_ext <<_ACEOF
  6395. /* end confdefs.h. */
  6396. #include <string.h>
  6397. #include "$LNETINCDIR/libnet.h"
  6398. #define LIB_TEST "1.1"
  6399. /*
  6400. * simple proggy to test the version of libnet
  6401. * returns zero if it's 1.0.x
  6402. * or one otherwise
  6403. */
  6404. int
  6405. main (int argc, char *argv[])
  6406. {
  6407. if (strncmp(LIB_TEST, LIBNET_VERSION, 3) == 0)
  6408. exit(0);
  6409. exit(1);
  6410. }
  6411. _ACEOF
  6412. rm -f conftest$ac_exeext
  6413. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6414. (eval $ac_link) 2>&5
  6415. ac_status=$?
  6416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6417. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6419. (eval $ac_try) 2>&5
  6420. ac_status=$?
  6421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6422. (exit $ac_status); }; }; then
  6423. libnet_ver_11=yes
  6424. echo "$as_me:$LINENO: result: 1.1.x" >&5
  6425. echo "${ECHO_T}1.1.x" >&6
  6426. else
  6427. echo "$as_me: program exited with status $ac_status" >&5
  6428. echo "$as_me: failed program was:" >&5
  6429. sed 's/^/| /' conftest.$ac_ext >&5
  6430. ( exit $ac_status )
  6431. libnet_ver_11=no
  6432. fi
  6433. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6434. fi
  6435. if test $libnet_ver_10 = no -a $libnet_ver_11 = no ; then
  6436. echo "$as_me:$LINENO: result: unknown" >&5
  6437. echo "${ECHO_T}unknown" >&6
  6438. { { echo "$as_me:$LINENO: error: Unable to determine version of libnet" >&5
  6439. echo "$as_me: error: Unable to determine version of libnet" >&2;}
  6440. { (exit 1); exit 1; }; }
  6441. fi
  6442. if test $libnet_ver_10 = yes ; then
  6443. { { echo "$as_me:$LINENO: error: Libnet version 1.0.x is no longer supported.
  6444. Please upgrade to 1.1.0 or better" >&5
  6445. echo "$as_me: error: Libnet version 1.0.x is no longer supported.
  6446. Please upgrade to 1.1.0 or better" >&2;}
  6447. { (exit 1); exit 1; }; }
  6448. fi
  6449. LIBS="$OLDLIBS"
  6450. foundpcap=no
  6451. trypcapdir=/usr/local
  6452. echo "$as_me:$LINENO: checking for libpcap" >&5
  6453. echo $ECHO_N "checking for libpcap... $ECHO_C" >&6
  6454. # Check whether --with-libpcap or --without-libpcap was given.
  6455. if test "${with_libpcap+set}" = set; then
  6456. withval="$with_libpcap"
  6457. trypcapdir=$withval
  6458. fi;
  6459. for testdir in $trypcapdir /usr/local /usr ; do
  6460. if test -f "${testdir}/include/pcap.h" -a $foundpcap = no ; then
  6461. LPCAPINC="-I${testdir}/include"
  6462. LPCAPINCDIR="${testdir}/include"
  6463. LPCAPLIB="-L${testdir}/lib -lpcap"
  6464. foundpcap=$testdir
  6465. fi
  6466. done
  6467. if test $foundpcap = no ; then
  6468. echo "$as_me:$LINENO: result: no" >&5
  6469. echo "${ECHO_T}no" >&6
  6470. { { echo "$as_me:$LINENO: error: libpcap not found" >&5
  6471. echo "$as_me: error: libpcap not found" >&2;}
  6472. { (exit 1); exit 1; }; }
  6473. else
  6474. echo "$as_me:$LINENO: result: $foundpcap" >&5
  6475. echo "${ECHO_T}$foundpcap" >&6
  6476. fi
  6477. OLDLIBS="$LIBS"
  6478. LIBS="$LPCAPLIB"
  6479. echo "$as_me:$LINENO: checking for libpcap version" >&5
  6480. echo $ECHO_N "checking for libpcap version... $ECHO_C" >&6
  6481. if test "$cross_compiling" = yes; then
  6482. libpcap_ver=no
  6483. else
  6484. cat >conftest.$ac_ext <<_ACEOF
  6485. /* confdefs.h. */
  6486. _ACEOF
  6487. cat confdefs.h >>conftest.$ac_ext
  6488. cat >>conftest.$ac_ext <<_ACEOF
  6489. /* end confdefs.h. */
  6490. #include <string.h>
  6491. #include "$LPCAPINCDIR/pcap.h"
  6492. #define PCAP_TEST "0.6"
  6493. /*
  6494. * simple proggy to test the version of libpcap
  6495. * returns zero if version >= 0.6
  6496. * or one otherwise
  6497. */
  6498. extern char pcap_version[];
  6499. int
  6500. main (int argc, char *argv[])
  6501. {
  6502. if (strncmp(pcap_version, PCAP_TEST, 3) >= 0)
  6503. exit(0);
  6504. exit(1);
  6505. }
  6506. _ACEOF
  6507. rm -f conftest$ac_exeext
  6508. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6509. (eval $ac_link) 2>&5
  6510. ac_status=$?
  6511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6512. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6513. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6514. (eval $ac_try) 2>&5
  6515. ac_status=$?
  6516. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6517. (exit $ac_status); }; }; then
  6518. libpcap_ver=yes
  6519. echo "$as_me:$LINENO: result: >= 0.6" >&5
  6520. echo "${ECHO_T}>= 0.6" >&6
  6521. else
  6522. echo "$as_me: program exited with status $ac_status" >&5
  6523. echo "$as_me: failed program was:" >&5
  6524. sed 's/^/| /' conftest.$ac_ext >&5
  6525. ( exit $ac_status )
  6526. libpcap_ver=no
  6527. echo "$as_me:$LINENO: result: < 0.6" >&5
  6528. echo "${ECHO_T}< 0.6" >&6
  6529. fi
  6530. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6531. fi
  6532. if test $libpcap_ver = no ; then
  6533. { { echo "$as_me:$LINENO: error: Libpcap versions < 0.6 are no longer supported.
  6534. Please upgrade to version 0.6 or better" >&5
  6535. echo "$as_me: error: Libpcap versions < 0.6 are no longer supported.
  6536. Please upgrade to version 0.6 or better" >&2;}
  6537. { (exit 1); exit 1; }; }
  6538. fi
  6539. echo "$as_me:$LINENO: checking for pcap_datalink_val_to_description" >&5
  6540. echo $ECHO_N "checking for pcap_datalink_val_to_description... $ECHO_C" >&6
  6541. if test "$cross_compiling" = yes; then
  6542. have_dlt_to_desc=no
  6543. else
  6544. cat >conftest.$ac_ext <<_ACEOF
  6545. /* confdefs.h. */
  6546. _ACEOF
  6547. cat confdefs.h >>conftest.$ac_ext
  6548. cat >>conftest.$ac_ext <<_ACEOF
  6549. /* end confdefs.h. */
  6550. #include <stdio.h>
  6551. #include "$LPCAPINCDIR/pcap.h"
  6552. int
  6553. main(int argc, char *argv[]) {
  6554. char name[100];
  6555. strncpy(name, pcap_datalink_val_to_description(1), 99);
  6556. exit(0);
  6557. }
  6558. _ACEOF
  6559. rm -f conftest$ac_exeext
  6560. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6561. (eval $ac_link) 2>&5
  6562. ac_status=$?
  6563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6564. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6565. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6566. (eval $ac_try) 2>&5
  6567. ac_status=$?
  6568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6569. (exit $ac_status); }; }; then
  6570. have_dlt_to_desc=yes
  6571. echo "$as_me:$LINENO: result: yes" >&5
  6572. echo "${ECHO_T}yes" >&6
  6573. else
  6574. echo "$as_me: program exited with status $ac_status" >&5
  6575. echo "$as_me: failed program was:" >&5
  6576. sed 's/^/| /' conftest.$ac_ext >&5
  6577. ( exit $ac_status )
  6578. have_dlt_to_desc=no
  6579. echo "$as_me:$LINENO: result: no" >&5
  6580. echo "${ECHO_T}no" >&6
  6581. fi
  6582. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6583. fi
  6584. if test $have_dlt_to_desc = yes ; then
  6585. cat >>confdefs.h <<\_ACEOF
  6586. #define HAVE_DLT_VAL_TO_DESC 1
  6587. _ACEOF
  6588. fi
  6589. LIBS="$OLDLIBS"
  6590. pcapnav_ver=no
  6591. pcncfg=no
  6592. # Check whether --with-pcapnav-config or --without-pcapnav-config was given.
  6593. if test "${with_pcapnav_config+set}" = set; then
  6594. withval="$with_pcapnav_config"
  6595. pcncfg=$withval
  6596. else
  6597. # Extract the first word of "pcapnav-config", so it can be a program name with args.
  6598. set dummy pcapnav-config; ac_word=$2
  6599. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6600. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6601. if test "${ac_cv_path_pcncfg+set}" = set; then
  6602. echo $ECHO_N "(cached) $ECHO_C" >&6
  6603. else
  6604. case $pcncfg in
  6605. [\\/]* | ?:[\\/]*)
  6606. ac_cv_path_pcncfg="$pcncfg" # Let the user override the test with a path.
  6607. ;;
  6608. *)
  6609. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6610. for as_dir in $PATH
  6611. do
  6612. IFS=$as_save_IFS
  6613. test -z "$as_dir" && as_dir=.
  6614. for ac_exec_ext in '' $ac_executable_extensions; do
  6615. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6616. ac_cv_path_pcncfg="$as_dir/$ac_word$ac_exec_ext"
  6617. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6618. break 2
  6619. fi
  6620. done
  6621. done
  6622. test -z "$ac_cv_path_pcncfg" && ac_cv_path_pcncfg=" "
  6623. ;;
  6624. esac
  6625. fi
  6626. pcncfg=$ac_cv_path_pcncfg
  6627. if test -n "$pcncfg"; then
  6628. echo "$as_me:$LINENO: result: $pcncfg" >&5
  6629. echo "${ECHO_T}$pcncfg" >&6
  6630. else
  6631. echo "$as_me:$LINENO: result: no" >&5
  6632. echo "${ECHO_T}no" >&6
  6633. fi
  6634. fi;
  6635. if test $pcncfg = no ; then
  6636. echo "$as_me:$LINENO: result: Cannot find pcapnav-config: Disabling offset jump feature." >&5
  6637. echo "${ECHO_T}Cannot find pcapnav-config: Disabling offset jump feature." >&6
  6638. else
  6639. echo "$as_me:$LINENO: result: $pcncfg" >&5
  6640. echo "${ECHO_T}$pcncfg" >&6
  6641. LNAVLIB=`$pcncfg --libs`
  6642. LNAV_CFLAGS=`$pcncfg --cflags`
  6643. PCAPNAV_VERSION=`$pcncfg --version`
  6644. cat >>confdefs.h <<_ACEOF
  6645. #define PCAPNAV_VERSION "$PCAPNAV_VERSION"
  6646. _ACEOF
  6647. echo "$as_me:$LINENO: checking for libpcapnav version" >&5
  6648. echo $ECHO_N "checking for libpcapnav version... $ECHO_C" >&6
  6649. if test "$cross_compiling" = yes; then
  6650. libpcapnav_ver=no
  6651. else
  6652. cat >conftest.$ac_ext <<_ACEOF
  6653. /* confdefs.h. */
  6654. _ACEOF
  6655. cat confdefs.h >>conftest.$ac_ext
  6656. cat >>conftest.$ac_ext <<_ACEOF
  6657. /* end confdefs.h. */
  6658. #include <string.h>
  6659. #define PCAPNAV_TEST "0.4"
  6660. /*
  6661. * simple proggy to test the version of libpcapnav
  6662. * returns zero if version >= 0.4
  6663. * or one otherwise
  6664. */
  6665. int
  6666. main (int argc, char *argv[])
  6667. {
  6668. if (strncmp(PCAPNAV_VERSION, PCAPNAV_TEST, 3) >= 0)
  6669. exit(0);
  6670. exit(1);
  6671. }
  6672. _ACEOF
  6673. rm -f conftest$ac_exeext
  6674. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6675. (eval $ac_link) 2>&5
  6676. ac_status=$?
  6677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6678. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6679. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6680. (eval $ac_try) 2>&5
  6681. ac_status=$?
  6682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6683. (exit $ac_status); }; }; then
  6684. libpcapnav_ver=yes
  6685. echo "$as_me:$LINENO: result: >= 0.4" >&5
  6686. echo "${ECHO_T}>= 0.4" >&6
  6687. else
  6688. echo "$as_me: program exited with status $ac_status" >&5
  6689. echo "$as_me: failed program was:" >&5
  6690. sed 's/^/| /' conftest.$ac_ext >&5
  6691. ( exit $ac_status )
  6692. libpcapnav_ver=no
  6693. echo "$as_me:$LINENO: result: < 0.4" >&5
  6694. echo "${ECHO_T}< 0.4" >&6
  6695. fi
  6696. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6697. fi
  6698. if test $libpcapnav_ver = no ; then
  6699. { echo "$as_me:$LINENO: WARNING: Libpcapnav versions < 0.4 are not supported.
  6700. Please upgrade to version 0.4 or better.
  6701. Disabling offset jump feature." >&5
  6702. echo "$as_me: WARNING: Libpcapnav versions < 0.4 are not supported.
  6703. Please upgrade to version 0.4 or better.
  6704. Disabling offset jump feature." >&2;}
  6705. else
  6706. cat >>confdefs.h <<\_ACEOF
  6707. #define HAVE_PCAPNAV 1
  6708. _ACEOF
  6709. fi
  6710. fi # checking pcapnav version
  6711. echo "$as_me:$LINENO: checking for requires strict byte alignment" >&5
  6712. echo $ECHO_N "checking for requires strict byte alignment... $ECHO_C" >&6
  6713. if test "${unaligned_fail+set}" = set; then
  6714. echo $ECHO_N "(cached) $ECHO_C" >&6
  6715. else
  6716. case "$host_cpu" in
  6717. # XXX: should also check that they don't do weird things (like on arm)
  6718. alpha*|arm*|hp*|mips*|sparc*|ia64)
  6719. unaligned_fail=yes
  6720. ;;
  6721. *)
  6722. cat >conftest.c <<EOF
  6723. #include <sys/types.h>
  6724. #include <sys/wait.h>
  6725. #include <stdio.h>
  6726. unsigned char a[5] = { 1, 2, 3, 4, 5 };
  6727. main() {
  6728. unsigned int i;
  6729. pid_t pid;
  6730. int status;
  6731. /* avoid "core dumped" message */
  6732. pid = fork();
  6733. if (pid < 0)
  6734. exit(2);
  6735. if (pid > 0) {
  6736. /* parent */
  6737. pid = waitpid(pid, &status, 0);
  6738. if (pid < 0)
  6739. exit(3);
  6740. exit(!WIFEXITED(status));
  6741. }
  6742. /* child */
  6743. i = *(unsigned int *)&a[1];
  6744. printf("%d\n", i);
  6745. exit(0);
  6746. }
  6747. EOF
  6748. ${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS \
  6749. conftest.c $LIBS >/dev/null 2>&1
  6750. if test ! -x conftest ; then
  6751. unaligned_fail=yes
  6752. else
  6753. ./conftest >conftest.out
  6754. if test ! -s conftest.out ; then
  6755. unaligned_fail=yes
  6756. else
  6757. unaligned_fail=no
  6758. fi
  6759. fi
  6760. rm -f conftest* core core.conftest
  6761. ;;
  6762. esac
  6763. fi
  6764. echo "$as_me:$LINENO: result: $unaligned_fail" >&5
  6765. echo "${ECHO_T}$unaligned_fail" >&6
  6766. if test $unaligned_fail = yes ; then
  6767. cat >>confdefs.h <<\_ACEOF
  6768. #define FORCE_ALIGN 1
  6769. _ACEOF
  6770. fi
  6771. # Check whether --with-tcpdump or --without-tcpdump was given.
  6772. if test "${with_tcpdump+set}" = set; then
  6773. withval="$with_tcpdump"
  6774. td=$withval
  6775. else
  6776. td=no
  6777. fi;
  6778. # Extract the first word of "tcpdump", so it can be a program name with args.
  6779. set dummy tcpdump; ac_word=$2
  6780. echo "$as_me:$LINENO: checking for $ac_word" >&5
  6781. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  6782. if test "${ac_cv_path_td+set}" = set; then
  6783. echo $ECHO_N "(cached) $ECHO_C" >&6
  6784. else
  6785. case $td in
  6786. [\\/]* | ?:[\\/]*)
  6787. ac_cv_path_td="$td" # Let the user override the test with a path.
  6788. ;;
  6789. *)
  6790. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6791. as_dummy="$PATH:/usr/sbin:/sbin:/usr/local/sbin"
  6792. for as_dir in $as_dummy
  6793. do
  6794. IFS=$as_save_IFS
  6795. test -z "$as_dir" && as_dir=.
  6796. for ac_exec_ext in '' $ac_executable_extensions; do
  6797. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6798. ac_cv_path_td="$as_dir/$ac_word$ac_exec_ext"
  6799. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  6800. break 2
  6801. fi
  6802. done
  6803. done
  6804. test -z "$ac_cv_path_td" && ac_cv_path_td=""no""
  6805. ;;
  6806. esac
  6807. fi
  6808. td=$ac_cv_path_td
  6809. if test -n "$td"; then
  6810. echo "$as_me:$LINENO: result: $td" >&5
  6811. echo "${ECHO_T}$td" >&6
  6812. else
  6813. echo "$as_me:$LINENO: result: no" >&5
  6814. echo "${ECHO_T}no" >&6
  6815. fi
  6816. if test $td = no ; then
  6817. { echo "$as_me:$LINENO: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  6818. Disabling verbose reporting." >&5
  6819. echo "$as_me: WARNING: Unable to find tcpdump. Please specify --with-tcpdump.
  6820. Disabling verbose reporting." >&2;}
  6821. else
  6822. echo "$as_me:$LINENO: result: Using tcpdump in $td." >&5
  6823. echo "${ECHO_T}Using tcpdump in $td." >&6
  6824. cat >>confdefs.h <<\_ACEOF
  6825. #define HAVE_TCPDUMP 1
  6826. _ACEOF
  6827. cat >>confdefs.h <<_ACEOF
  6828. #define TCPDUMP_BINARY "$td"
  6829. _ACEOF
  6830. fi
  6831. echo "$as_me:$LINENO: checking for 'make test' profile" >&5
  6832. echo $ECHO_N "checking for 'make test' profile... $ECHO_C" >&6
  6833. if test "$host" != "$build" ; then
  6834. { echo "$as_me:$LINENO: WARNING: Unable to do tests when cross-compiling" >&5
  6835. echo "$as_me: WARNING: Unable to do tests when cross-compiling" >&2;}
  6836. fi
  6837. # Check whether --with-testnic or --without-testnic was given.
  6838. if test "${with_testnic+set}" = set; then
  6839. withval="$with_testnic"
  6840. nic1=$withval
  6841. nic2=$withval
  6842. echo "$as_me:$LINENO: result: Using --with-testnic=$withval" >&5
  6843. echo "${ECHO_T}Using --with-testnic=$withval" >&6
  6844. else
  6845. case $host in
  6846. *-*-linux*)
  6847. nic1=eth0
  6848. nic2=eth0
  6849. echo "$as_me:$LINENO: result: Linux" >&5
  6850. echo "${ECHO_T}Linux" >&6
  6851. ;;
  6852. *-*-solaris*)
  6853. nic1=hme0
  6854. nic2=hme0
  6855. echo "$as_me:$LINENO: result: Solaris" >&5
  6856. echo "${ECHO_T}Solaris" >&6
  6857. ;;
  6858. *-*-sunos*)
  6859. nic1=hme0
  6860. nic2=hme0
  6861. echo "$as_me:$LINENO: result: SunOS" >&5
  6862. echo "${ECHO_T}SunOS" >&6
  6863. ;;
  6864. powerpc-apple-darwin*)
  6865. nic1=en0
  6866. nic2=en0
  6867. echo "$as_me:$LINENO: result: Apple OSX" >&5
  6868. echo "${ECHO_T}Apple OSX" >&6
  6869. ;;
  6870. *-*-openbsd*)
  6871. nic1=xl0
  6872. nic2=xl0
  6873. echo "$as_me:$LINENO: result: OpenBSD" >&5
  6874. echo "${ECHO_T}OpenBSD" >&6
  6875. ;;
  6876. *)
  6877. echo "$as_me:$LINENO: result: $host is unknown!
  6878. Please use --with-nictest to select an interface for 'make test'" >&5
  6879. echo "${ECHO_T}$host is unknown!
  6880. Please use --with-nictest to select an interface for 'make test'" >&6
  6881. ;;
  6882. esac
  6883. fi;
  6884. # Check whether --with-testnic2 or --without-testnic2 was given.
  6885. if test "${with_testnic2+set}" = set; then
  6886. withval="$with_testnic2"
  6887. nic2=$withval
  6888. fi;
  6889. { echo "$as_me:$LINENO: Using $nic1 for 1st test network interface card" >&5
  6890. echo "$as_me: Using $nic1 for 1st test network interface card" >&6;}
  6891. { echo "$as_me:$LINENO: Using $nic2 for 2nd test network interface card" >&5
  6892. echo "$as_me: Using $nic2 for 2nd test network interface card" >&6;}
  6893. ac_config_files="$ac_config_files Makefile"
  6894. cat >confcache <<\_ACEOF
  6895. # This file is a shell script that caches the results of configure
  6896. # tests run on this system so they can be shared between configure
  6897. # scripts and configure runs, see configure's option --config-cache.
  6898. # It is not useful on other systems. If it contains results you don't
  6899. # want to keep, you may remove or edit it.
  6900. #
  6901. # config.status only pays attention to the cache file if you give it
  6902. # the --recheck option to rerun configure.
  6903. #
  6904. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6905. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6906. # following values.
  6907. _ACEOF
  6908. # The following way of writing the cache mishandles newlines in values,
  6909. # but we know of no workaround that is simple, portable, and efficient.
  6910. # So, don't put newlines in cache variables' values.
  6911. # Ultrix sh set writes to stderr and can't be redirected directly,
  6912. # and sets the high bit in the cache file unless we assign to the vars.
  6913. {
  6914. (set) 2>&1 |
  6915. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6916. *ac_space=\ *)
  6917. # `set' does not quote correctly, so add quotes (double-quote
  6918. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6919. sed -n \
  6920. "s/'/'\\\\''/g;
  6921. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6922. ;;
  6923. *)
  6924. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6925. sed -n \
  6926. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6927. ;;
  6928. esac;
  6929. } |
  6930. sed '
  6931. t clear
  6932. : clear
  6933. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6934. t end
  6935. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6936. : end' >>confcache
  6937. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6938. if test -w $cache_file; then
  6939. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  6940. cat confcache >$cache_file
  6941. else
  6942. echo "not updating unwritable cache $cache_file"
  6943. fi
  6944. fi
  6945. rm -f confcache
  6946. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  6947. # Let make expand exec_prefix.
  6948. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  6949. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  6950. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  6951. # trailing colons and then remove the whole line if VPATH becomes empty
  6952. # (actually we leave an empty line to preserve line numbers).
  6953. if test "x$srcdir" = x.; then
  6954. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  6955. s/:*\$(srcdir):*/:/;
  6956. s/:*\${srcdir}:*/:/;
  6957. s/:*@srcdir@:*/:/;
  6958. s/^\([^=]*=[ ]*\):*/\1/;
  6959. s/:*$//;
  6960. s/^[^=]*=[ ]*$//;
  6961. }'
  6962. fi
  6963. DEFS=-DHAVE_CONFIG_H
  6964. ac_libobjs=
  6965. ac_ltlibobjs=
  6966. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  6967. # 1. Remove the extension, and $U if already installed.
  6968. ac_i=`echo "$ac_i" |
  6969. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  6970. # 2. Add them.
  6971. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  6972. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  6973. done
  6974. LIBOBJS=$ac_libobjs
  6975. LTLIBOBJS=$ac_ltlibobjs
  6976. : ${CONFIG_STATUS=./config.status}
  6977. ac_clean_files_save=$ac_clean_files
  6978. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  6979. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  6980. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  6981. cat >$CONFIG_STATUS <<_ACEOF
  6982. #! $SHELL
  6983. # Generated by $as_me.
  6984. # Run this file to recreate the current configuration.
  6985. # Compiler output produced by configure, useful for debugging
  6986. # configure, is in config.log if it exists.
  6987. debug=false
  6988. ac_cs_recheck=false
  6989. ac_cs_silent=false
  6990. SHELL=\${CONFIG_SHELL-$SHELL}
  6991. _ACEOF
  6992. cat >>$CONFIG_STATUS <<\_ACEOF
  6993. ## --------------------- ##
  6994. ## M4sh Initialization. ##
  6995. ## --------------------- ##
  6996. # Be Bourne compatible
  6997. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  6998. emulate sh
  6999. NULLCMD=:
  7000. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  7001. # is contrary to our usage. Disable this feature.
  7002. alias -g '${1+"$@"}'='"$@"'
  7003. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  7004. set -o posix
  7005. fi
  7006. DUALCASE=1; export DUALCASE # for MKS sh
  7007. # Support unset when possible.
  7008. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  7009. as_unset=unset
  7010. else
  7011. as_unset=false
  7012. fi
  7013. # Work around bugs in pre-3.0 UWIN ksh.
  7014. $as_unset ENV MAIL MAILPATH
  7015. PS1='$ '
  7016. PS2='> '
  7017. PS4='+ '
  7018. # NLS nuisances.
  7019. for as_var in \
  7020. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  7021. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  7022. LC_TELEPHONE LC_TIME
  7023. do
  7024. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  7025. eval $as_var=C; export $as_var
  7026. else
  7027. $as_unset $as_var
  7028. fi
  7029. done
  7030. # Required to use basename.
  7031. if expr a : '\(a\)' >/dev/null 2>&1; then
  7032. as_expr=expr
  7033. else
  7034. as_expr=false
  7035. fi
  7036. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  7037. as_basename=basename
  7038. else
  7039. as_basename=false
  7040. fi
  7041. # Name of the executable.
  7042. as_me=`$as_basename "$0" ||
  7043. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7044. X"$0" : 'X\(//\)$' \| \
  7045. X"$0" : 'X\(/\)$' \| \
  7046. . : '\(.\)' 2>/dev/null ||
  7047. echo X/"$0" |
  7048. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  7049. /^X\/\(\/\/\)$/{ s//\1/; q; }
  7050. /^X\/\(\/\).*/{ s//\1/; q; }
  7051. s/.*/./; q'`
  7052. # PATH needs CR, and LINENO needs CR and PATH.
  7053. # Avoid depending upon Character Ranges.
  7054. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7055. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7056. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7057. as_cr_digits='0123456789'
  7058. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7059. # The user is always right.
  7060. if test "${PATH_SEPARATOR+set}" != set; then
  7061. echo "#! /bin/sh" >conf$$.sh
  7062. echo "exit 0" >>conf$$.sh
  7063. chmod +x conf$$.sh
  7064. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7065. PATH_SEPARATOR=';'
  7066. else
  7067. PATH_SEPARATOR=:
  7068. fi
  7069. rm -f conf$$.sh
  7070. fi
  7071. as_lineno_1=$LINENO
  7072. as_lineno_2=$LINENO
  7073. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  7074. test "x$as_lineno_1" != "x$as_lineno_2" &&
  7075. test "x$as_lineno_3" = "x$as_lineno_2" || {
  7076. # Find who we are. Look in the path if we contain no path at all
  7077. # relative or not.
  7078. case $0 in
  7079. *[\\/]* ) as_myself=$0 ;;
  7080. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7081. for as_dir in $PATH
  7082. do
  7083. IFS=$as_save_IFS
  7084. test -z "$as_dir" && as_dir=.
  7085. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7086. done
  7087. ;;
  7088. esac
  7089. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7090. # in which case we are not to be found in the path.
  7091. if test "x$as_myself" = x; then
  7092. as_myself=$0
  7093. fi
  7094. if test ! -f "$as_myself"; then
  7095. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  7096. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  7097. { (exit 1); exit 1; }; }
  7098. fi
  7099. case $CONFIG_SHELL in
  7100. '')
  7101. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7102. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  7103. do
  7104. IFS=$as_save_IFS
  7105. test -z "$as_dir" && as_dir=.
  7106. for as_base in sh bash ksh sh5; do
  7107. case $as_dir in
  7108. /*)
  7109. if ("$as_dir/$as_base" -c '
  7110. as_lineno_1=$LINENO
  7111. as_lineno_2=$LINENO
  7112. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  7113. test "x$as_lineno_1" != "x$as_lineno_2" &&
  7114. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  7115. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  7116. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  7117. CONFIG_SHELL=$as_dir/$as_base
  7118. export CONFIG_SHELL
  7119. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  7120. fi;;
  7121. esac
  7122. done
  7123. done
  7124. ;;
  7125. esac
  7126. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  7127. # uniformly replaced by the line number. The first 'sed' inserts a
  7128. # line-number line before each line; the second 'sed' does the real
  7129. # work. The second script uses 'N' to pair each line-number line
  7130. # with the numbered line, and appends trailing '-' during
  7131. # substitution so that $LINENO is not a special case at line end.
  7132. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  7133. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  7134. sed '=' <$as_myself |
  7135. sed '
  7136. N
  7137. s,$,-,
  7138. : loop
  7139. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  7140. t loop
  7141. s,-$,,
  7142. s,^['$as_cr_digits']*\n,,
  7143. ' >$as_me.lineno &&
  7144. chmod +x $as_me.lineno ||
  7145. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  7146. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  7147. { (exit 1); exit 1; }; }
  7148. # Don't try to exec as it changes $[0], causing all sort of problems
  7149. # (the dirname of $[0] is not the place where we might find the
  7150. # original and so on. Autoconf is especially sensible to this).
  7151. . ./$as_me.lineno
  7152. # Exit status is that of the last command.
  7153. exit
  7154. }
  7155. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  7156. *c*,-n*) ECHO_N= ECHO_C='
  7157. ' ECHO_T=' ' ;;
  7158. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  7159. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  7160. esac
  7161. if expr a : '\(a\)' >/dev/null 2>&1; then
  7162. as_expr=expr
  7163. else
  7164. as_expr=false
  7165. fi
  7166. rm -f conf$$ conf$$.exe conf$$.file
  7167. echo >conf$$.file
  7168. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7169. # We could just check for DJGPP; but this test a) works b) is more generic
  7170. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  7171. if test -f conf$$.exe; then
  7172. # Don't use ln at all; we don't have any links
  7173. as_ln_s='cp -p'
  7174. else
  7175. as_ln_s='ln -s'
  7176. fi
  7177. elif ln conf$$.file conf$$ 2>/dev/null; then
  7178. as_ln_s=ln
  7179. else
  7180. as_ln_s='cp -p'
  7181. fi
  7182. rm -f conf$$ conf$$.exe conf$$.file
  7183. if mkdir -p . 2>/dev/null; then
  7184. as_mkdir_p=:
  7185. else
  7186. test -d ./-p && rmdir ./-p
  7187. as_mkdir_p=false
  7188. fi
  7189. as_executable_p="test -f"
  7190. # Sed expression to map a string onto a valid CPP name.
  7191. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  7192. # Sed expression to map a string onto a valid variable name.
  7193. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  7194. # IFS
  7195. # We need space, tab and new line, in precisely that order.
  7196. as_nl='
  7197. '
  7198. IFS=" $as_nl"
  7199. # CDPATH.
  7200. $as_unset CDPATH
  7201. exec 6>&1
  7202. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  7203. # report actual input values of CONFIG_FILES etc. instead of their
  7204. # values after options handling. Logging --version etc. is OK.
  7205. exec 5>>config.log
  7206. {
  7207. echo
  7208. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7209. ## Running $as_me. ##
  7210. _ASBOX
  7211. } >&5
  7212. cat >&5 <<_CSEOF
  7213. This file was extended by $as_me, which was
  7214. generated by GNU Autoconf 2.59. Invocation command line was
  7215. CONFIG_FILES = $CONFIG_FILES
  7216. CONFIG_HEADERS = $CONFIG_HEADERS
  7217. CONFIG_LINKS = $CONFIG_LINKS
  7218. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7219. $ $0 $@
  7220. _CSEOF
  7221. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  7222. echo >&5
  7223. _ACEOF
  7224. # Files that config.status was made for.
  7225. if test -n "$ac_config_files"; then
  7226. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  7227. fi
  7228. if test -n "$ac_config_headers"; then
  7229. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  7230. fi
  7231. if test -n "$ac_config_links"; then
  7232. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  7233. fi
  7234. if test -n "$ac_config_commands"; then
  7235. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  7236. fi
  7237. cat >>$CONFIG_STATUS <<\_ACEOF
  7238. ac_cs_usage="\
  7239. \`$as_me' instantiates files from templates according to the
  7240. current configuration.
  7241. Usage: $0 [OPTIONS] [FILE]...
  7242. -h, --help print this help, then exit
  7243. -V, --version print version number, then exit
  7244. -q, --quiet do not print progress messages
  7245. -d, --debug don't remove temporary files
  7246. --recheck update $as_me by reconfiguring in the same conditions
  7247. --file=FILE[:TEMPLATE]
  7248. instantiate the configuration file FILE
  7249. --header=FILE[:TEMPLATE]
  7250. instantiate the configuration header FILE
  7251. Configuration files:
  7252. $config_files
  7253. Configuration headers:
  7254. $config_headers
  7255. Report bugs to <bug-autoconf@gnu.org>."
  7256. _ACEOF
  7257. cat >>$CONFIG_STATUS <<_ACEOF
  7258. ac_cs_version="\\
  7259. config.status
  7260. configured by $0, generated by GNU Autoconf 2.59,
  7261. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  7262. Copyright (C) 2003 Free Software Foundation, Inc.
  7263. This config.status script is free software; the Free Software Foundation
  7264. gives unlimited permission to copy, distribute and modify it."
  7265. srcdir=$srcdir
  7266. INSTALL="$INSTALL"
  7267. _ACEOF
  7268. cat >>$CONFIG_STATUS <<\_ACEOF
  7269. # If no file are specified by the user, then we need to provide default
  7270. # value. By we need to know if files were specified by the user.
  7271. ac_need_defaults=:
  7272. while test $# != 0
  7273. do
  7274. case $1 in
  7275. --*=*)
  7276. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  7277. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  7278. ac_shift=:
  7279. ;;
  7280. -*)
  7281. ac_option=$1
  7282. ac_optarg=$2
  7283. ac_shift=shift
  7284. ;;
  7285. *) # This is not an option, so the user has probably given explicit
  7286. # arguments.
  7287. ac_option=$1
  7288. ac_need_defaults=false;;
  7289. esac
  7290. case $ac_option in
  7291. # Handling of the options.
  7292. _ACEOF
  7293. cat >>$CONFIG_STATUS <<\_ACEOF
  7294. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7295. ac_cs_recheck=: ;;
  7296. --version | --vers* | -V )
  7297. echo "$ac_cs_version"; exit 0 ;;
  7298. --he | --h)
  7299. # Conflict between --help and --header
  7300. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  7301. Try \`$0 --help' for more information." >&5
  7302. echo "$as_me: error: ambiguous option: $1
  7303. Try \`$0 --help' for more information." >&2;}
  7304. { (exit 1); exit 1; }; };;
  7305. --help | --hel | -h )
  7306. echo "$ac_cs_usage"; exit 0 ;;
  7307. --debug | --d* | -d )
  7308. debug=: ;;
  7309. --file | --fil | --fi | --f )
  7310. $ac_shift
  7311. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  7312. ac_need_defaults=false;;
  7313. --header | --heade | --head | --hea )
  7314. $ac_shift
  7315. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  7316. ac_need_defaults=false;;
  7317. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7318. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7319. ac_cs_silent=: ;;
  7320. # This is an error.
  7321. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  7322. Try \`$0 --help' for more information." >&5
  7323. echo "$as_me: error: unrecognized option: $1
  7324. Try \`$0 --help' for more information." >&2;}
  7325. { (exit 1); exit 1; }; } ;;
  7326. *) ac_config_targets="$ac_config_targets $1" ;;
  7327. esac
  7328. shift
  7329. done
  7330. ac_configure_extra_args=
  7331. if $ac_cs_silent; then
  7332. exec 6>/dev/null
  7333. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7334. fi
  7335. _ACEOF
  7336. cat >>$CONFIG_STATUS <<_ACEOF
  7337. if \$ac_cs_recheck; then
  7338. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  7339. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7340. fi
  7341. _ACEOF
  7342. cat >>$CONFIG_STATUS <<\_ACEOF
  7343. for ac_config_target in $ac_config_targets
  7344. do
  7345. case "$ac_config_target" in
  7346. # Handling of arguments.
  7347. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7348. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  7349. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  7350. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  7351. { (exit 1); exit 1; }; };;
  7352. esac
  7353. done
  7354. # If the user did not use the arguments to specify the items to instantiate,
  7355. # then the envvar interface is used. Set only those that are not.
  7356. # We use the long form for the default assignment because of an extremely
  7357. # bizarre bug on SunOS 4.1.3.
  7358. if $ac_need_defaults; then
  7359. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7360. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7361. fi
  7362. # Have a temporary directory for convenience. Make it in the build tree
  7363. # simply because there is no reason to put it here, and in addition,
  7364. # creating and moving files from /tmp can sometimes cause problems.
  7365. # Create a temporary directory, and hook for its removal unless debugging.
  7366. $debug ||
  7367. {
  7368. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  7369. trap '{ (exit 1); exit 1; }' 1 2 13 15
  7370. }
  7371. # Create a (secure) tmp directory for tmp files.
  7372. {
  7373. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  7374. test -n "$tmp" && test -d "$tmp"
  7375. } ||
  7376. {
  7377. tmp=./confstat$$-$RANDOM
  7378. (umask 077 && mkdir $tmp)
  7379. } ||
  7380. {
  7381. echo "$me: cannot create a temporary directory in ." >&2
  7382. { (exit 1); exit 1; }
  7383. }
  7384. _ACEOF
  7385. cat >>$CONFIG_STATUS <<_ACEOF
  7386. #
  7387. # CONFIG_FILES section.
  7388. #
  7389. # No need to generate the scripts if there are no CONFIG_FILES.
  7390. # This happens for instance when ./config.status config.h
  7391. if test -n "\$CONFIG_FILES"; then
  7392. # Protect against being on the right side of a sed subst in config.status.
  7393. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  7394. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  7395. s,@SHELL@,$SHELL,;t t
  7396. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  7397. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  7398. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  7399. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  7400. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  7401. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  7402. s,@exec_prefix@,$exec_prefix,;t t
  7403. s,@prefix@,$prefix,;t t
  7404. s,@program_transform_name@,$program_transform_name,;t t
  7405. s,@bindir@,$bindir,;t t
  7406. s,@sbindir@,$sbindir,;t t
  7407. s,@libexecdir@,$libexecdir,;t t
  7408. s,@datadir@,$datadir,;t t
  7409. s,@sysconfdir@,$sysconfdir,;t t
  7410. s,@sharedstatedir@,$sharedstatedir,;t t
  7411. s,@localstatedir@,$localstatedir,;t t
  7412. s,@libdir@,$libdir,;t t
  7413. s,@includedir@,$includedir,;t t
  7414. s,@oldincludedir@,$oldincludedir,;t t
  7415. s,@infodir@,$infodir,;t t
  7416. s,@mandir@,$mandir,;t t
  7417. s,@build_alias@,$build_alias,;t t
  7418. s,@host_alias@,$host_alias,;t t
  7419. s,@target_alias@,$target_alias,;t t
  7420. s,@DEFS@,$DEFS,;t t
  7421. s,@ECHO_C@,$ECHO_C,;t t
  7422. s,@ECHO_N@,$ECHO_N,;t t
  7423. s,@ECHO_T@,$ECHO_T,;t t
  7424. s,@LIBS@,$LIBS,;t t
  7425. s,@TCPREPLAY_VERSION@,$TCPREPLAY_VERSION,;t t
  7426. s,@TCPREPLAY_RELEASE@,$TCPREPLAY_RELEASE,;t t
  7427. s,@build@,$build,;t t
  7428. s,@build_cpu@,$build_cpu,;t t
  7429. s,@build_vendor@,$build_vendor,;t t
  7430. s,@build_os@,$build_os,;t t
  7431. s,@host@,$host,;t t
  7432. s,@host_cpu@,$host_cpu,;t t
  7433. s,@host_vendor@,$host_vendor,;t t
  7434. s,@host_os@,$host_os,;t t
  7435. s,@target@,$target,;t t
  7436. s,@target_cpu@,$target_cpu,;t t
  7437. s,@target_vendor@,$target_vendor,;t t
  7438. s,@target_os@,$target_os,;t t
  7439. s,@CC@,$CC,;t t
  7440. s,@CFLAGS@,$CFLAGS,;t t
  7441. s,@LDFLAGS@,$LDFLAGS,;t t
  7442. s,@CPPFLAGS@,$CPPFLAGS,;t t
  7443. s,@ac_ct_CC@,$ac_ct_CC,;t t
  7444. s,@EXEEXT@,$EXEEXT,;t t
  7445. s,@OBJEXT@,$OBJEXT,;t t
  7446. s,@CXX@,$CXX,;t t
  7447. s,@CXXFLAGS@,$CXXFLAGS,;t t
  7448. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  7449. s,@CPP@,$CPP,;t t
  7450. s,@LN_S@,$LN_S,;t t
  7451. s,@RANLIB@,$RANLIB,;t t
  7452. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  7453. s,@AWK@,$AWK,;t t
  7454. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  7455. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  7456. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  7457. s,@SET_MAKE@,$SET_MAKE,;t t
  7458. s,@PRINTF@,$PRINTF,;t t
  7459. s,@EGREP@,$EGREP,;t t
  7460. s,@debug_flag@,$debug_flag,;t t
  7461. s,@LIBOBJS@,$LIBOBJS,;t t
  7462. s,@LNETINC@,$LNETINC,;t t
  7463. s,@LNETLIB@,$LNETLIB,;t t
  7464. s,@LPCAPINC@,$LPCAPINC,;t t
  7465. s,@LPCAPLIB@,$LPCAPLIB,;t t
  7466. s,@pcncfg@,$pcncfg,;t t
  7467. s,@LNAVLIB@,$LNAVLIB,;t t
  7468. s,@LNAV_CFLAGS@,$LNAV_CFLAGS,;t t
  7469. s,@td@,$td,;t t
  7470. s,@nic1@,$nic1,;t t
  7471. s,@nic2@,$nic2,;t t
  7472. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  7473. CEOF
  7474. _ACEOF
  7475. cat >>$CONFIG_STATUS <<\_ACEOF
  7476. # Split the substitutions into bite-sized pieces for seds with
  7477. # small command number limits, like on Digital OSF/1 and HP-UX.
  7478. ac_max_sed_lines=48
  7479. ac_sed_frag=1 # Number of current file.
  7480. ac_beg=1 # First line for current file.
  7481. ac_end=$ac_max_sed_lines # Line after last line for current file.
  7482. ac_more_lines=:
  7483. ac_sed_cmds=
  7484. while $ac_more_lines; do
  7485. if test $ac_beg -gt 1; then
  7486. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  7487. else
  7488. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  7489. fi
  7490. if test ! -s $tmp/subs.frag; then
  7491. ac_more_lines=false
  7492. else
  7493. # The purpose of the label and of the branching condition is to
  7494. # speed up the sed processing (if there are no `@' at all, there
  7495. # is no need to browse any of the substitutions).
  7496. # These are the two extra sed commands mentioned above.
  7497. (echo ':t
  7498. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  7499. if test -z "$ac_sed_cmds"; then
  7500. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  7501. else
  7502. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  7503. fi
  7504. ac_sed_frag=`expr $ac_sed_frag + 1`
  7505. ac_beg=$ac_end
  7506. ac_end=`expr $ac_end + $ac_max_sed_lines`
  7507. fi
  7508. done
  7509. if test -z "$ac_sed_cmds"; then
  7510. ac_sed_cmds=cat
  7511. fi
  7512. fi # test -n "$CONFIG_FILES"
  7513. _ACEOF
  7514. cat >>$CONFIG_STATUS <<\_ACEOF
  7515. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  7516. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  7517. case $ac_file in
  7518. - | *:- | *:-:* ) # input from stdin
  7519. cat >$tmp/stdin
  7520. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7521. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7522. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7523. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7524. * ) ac_file_in=$ac_file.in ;;
  7525. esac
  7526. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  7527. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  7528. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7529. X"$ac_file" : 'X\(//\)[^/]' \| \
  7530. X"$ac_file" : 'X\(//\)$' \| \
  7531. X"$ac_file" : 'X\(/\)' \| \
  7532. . : '\(.\)' 2>/dev/null ||
  7533. echo X"$ac_file" |
  7534. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  7535. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  7536. /^X\(\/\/\)$/{ s//\1/; q; }
  7537. /^X\(\/\).*/{ s//\1/; q; }
  7538. s/.*/./; q'`
  7539. { if $as_mkdir_p; then
  7540. mkdir -p "$ac_dir"
  7541. else
  7542. as_dir="$ac_dir"
  7543. as_dirs=
  7544. while test ! -d "$as_dir"; do
  7545. as_dirs="$as_dir $as_dirs"
  7546. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  7547. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7548. X"$as_dir" : 'X\(//\)[^/]' \| \
  7549. X"$as_dir" : 'X\(//\)$' \| \
  7550. X"$as_dir" : 'X\(/\)' \| \
  7551. . : '\(.\)' 2>/dev/null ||
  7552. echo X"$as_dir" |
  7553. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  7554. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  7555. /^X\(\/\/\)$/{ s//\1/; q; }
  7556. /^X\(\/\).*/{ s//\1/; q; }
  7557. s/.*/./; q'`
  7558. done
  7559. test ! -n "$as_dirs" || mkdir $as_dirs
  7560. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  7561. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  7562. { (exit 1); exit 1; }; }; }
  7563. ac_builddir=.
  7564. if test "$ac_dir" != .; then
  7565. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  7566. # A "../" for each directory in $ac_dir_suffix.
  7567. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  7568. else
  7569. ac_dir_suffix= ac_top_builddir=
  7570. fi
  7571. case $srcdir in
  7572. .) # No --srcdir option. We are building in place.
  7573. ac_srcdir=.
  7574. if test -z "$ac_top_builddir"; then
  7575. ac_top_srcdir=.
  7576. else
  7577. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  7578. fi ;;
  7579. [\\/]* | ?:[\\/]* ) # Absolute path.
  7580. ac_srcdir=$srcdir$ac_dir_suffix;
  7581. ac_top_srcdir=$srcdir ;;
  7582. *) # Relative path.
  7583. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  7584. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  7585. esac
  7586. # Do not use `cd foo && pwd` to compute absolute paths, because
  7587. # the directories may not exist.
  7588. case `pwd` in
  7589. .) ac_abs_builddir="$ac_dir";;
  7590. *)
  7591. case "$ac_dir" in
  7592. .) ac_abs_builddir=`pwd`;;
  7593. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  7594. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  7595. esac;;
  7596. esac
  7597. case $ac_abs_builddir in
  7598. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  7599. *)
  7600. case ${ac_top_builddir}. in
  7601. .) ac_abs_top_builddir=$ac_abs_builddir;;
  7602. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  7603. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  7604. esac;;
  7605. esac
  7606. case $ac_abs_builddir in
  7607. .) ac_abs_srcdir=$ac_srcdir;;
  7608. *)
  7609. case $ac_srcdir in
  7610. .) ac_abs_srcdir=$ac_abs_builddir;;
  7611. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  7612. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  7613. esac;;
  7614. esac
  7615. case $ac_abs_builddir in
  7616. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  7617. *)
  7618. case $ac_top_srcdir in
  7619. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  7620. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  7621. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  7622. esac;;
  7623. esac
  7624. case $INSTALL in
  7625. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  7626. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  7627. esac
  7628. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7629. # use $as_me), people would be surprised to read:
  7630. # /* config.h. Generated by config.status. */
  7631. if test x"$ac_file" = x-; then
  7632. configure_input=
  7633. else
  7634. configure_input="$ac_file. "
  7635. fi
  7636. configure_input=$configure_input"Generated from `echo $ac_file_in |
  7637. sed 's,.*/,,'` by configure."
  7638. # First look for the input files in the build tree, otherwise in the
  7639. # src tree.
  7640. ac_file_inputs=`IFS=:
  7641. for f in $ac_file_in; do
  7642. case $f in
  7643. -) echo $tmp/stdin ;;
  7644. [\\/$]*)
  7645. # Absolute (can't be DOS-style, as IFS=:)
  7646. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  7647. echo "$as_me: error: cannot find input file: $f" >&2;}
  7648. { (exit 1); exit 1; }; }
  7649. echo "$f";;
  7650. *) # Relative
  7651. if test -f "$f"; then
  7652. # Build tree
  7653. echo "$f"
  7654. elif test -f "$srcdir/$f"; then
  7655. # Source tree
  7656. echo "$srcdir/$f"
  7657. else
  7658. # /dev/null tree
  7659. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  7660. echo "$as_me: error: cannot find input file: $f" >&2;}
  7661. { (exit 1); exit 1; }; }
  7662. fi;;
  7663. esac
  7664. done` || { (exit 1); exit 1; }
  7665. if test x"$ac_file" != x-; then
  7666. { echo "$as_me:$LINENO: creating $ac_file" >&5
  7667. echo "$as_me: creating $ac_file" >&6;}
  7668. rm -f "$ac_file"
  7669. fi
  7670. _ACEOF
  7671. cat >>$CONFIG_STATUS <<_ACEOF
  7672. sed "$ac_vpsub
  7673. $extrasub
  7674. _ACEOF
  7675. cat >>$CONFIG_STATUS <<\_ACEOF
  7676. :t
  7677. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7678. s,@configure_input@,$configure_input,;t t
  7679. s,@srcdir@,$ac_srcdir,;t t
  7680. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  7681. s,@top_srcdir@,$ac_top_srcdir,;t t
  7682. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  7683. s,@builddir@,$ac_builddir,;t t
  7684. s,@abs_builddir@,$ac_abs_builddir,;t t
  7685. s,@top_builddir@,$ac_top_builddir,;t t
  7686. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  7687. s,@INSTALL@,$ac_INSTALL,;t t
  7688. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  7689. rm -f $tmp/stdin
  7690. if test x"$ac_file" != x-; then
  7691. mv $tmp/out $ac_file
  7692. else
  7693. cat $tmp/out
  7694. rm -f $tmp/out
  7695. fi
  7696. done
  7697. _ACEOF
  7698. cat >>$CONFIG_STATUS <<\_ACEOF
  7699. #
  7700. # CONFIG_HEADER section.
  7701. #
  7702. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  7703. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  7704. #
  7705. # ac_d sets the value in "#define NAME VALUE" lines.
  7706. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  7707. ac_dB='[ ].*$,\1#\2'
  7708. ac_dC=' '
  7709. ac_dD=',;t'
  7710. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  7711. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  7712. ac_uB='$,\1#\2define\3'
  7713. ac_uC=' '
  7714. ac_uD=',;t'
  7715. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  7716. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  7717. case $ac_file in
  7718. - | *:- | *:-:* ) # input from stdin
  7719. cat >$tmp/stdin
  7720. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7721. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7722. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7723. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7724. * ) ac_file_in=$ac_file.in ;;
  7725. esac
  7726. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  7727. echo "$as_me: creating $ac_file" >&6;}
  7728. # First look for the input files in the build tree, otherwise in the
  7729. # src tree.
  7730. ac_file_inputs=`IFS=:
  7731. for f in $ac_file_in; do
  7732. case $f in
  7733. -) echo $tmp/stdin ;;
  7734. [\\/$]*)
  7735. # Absolute (can't be DOS-style, as IFS=:)
  7736. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  7737. echo "$as_me: error: cannot find input file: $f" >&2;}
  7738. { (exit 1); exit 1; }; }
  7739. # Do quote $f, to prevent DOS paths from being IFS'd.
  7740. echo "$f";;
  7741. *) # Relative
  7742. if test -f "$f"; then
  7743. # Build tree
  7744. echo "$f"
  7745. elif test -f "$srcdir/$f"; then
  7746. # Source tree
  7747. echo "$srcdir/$f"
  7748. else
  7749. # /dev/null tree
  7750. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  7751. echo "$as_me: error: cannot find input file: $f" >&2;}
  7752. { (exit 1); exit 1; }; }
  7753. fi;;
  7754. esac
  7755. done` || { (exit 1); exit 1; }
  7756. # Remove the trailing spaces.
  7757. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  7758. _ACEOF
  7759. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  7760. # `conftest.undefs', that substitutes the proper values into
  7761. # config.h.in to produce config.h. The first handles `#define'
  7762. # templates, and the second `#undef' templates.
  7763. # And first: Protect against being on the right side of a sed subst in
  7764. # config.status. Protect against being in an unquoted here document
  7765. # in config.status.
  7766. rm -f conftest.defines conftest.undefs
  7767. # Using a here document instead of a string reduces the quoting nightmare.
  7768. # Putting comments in sed scripts is not portable.
  7769. #
  7770. # `end' is used to avoid that the second main sed command (meant for
  7771. # 0-ary CPP macros) applies to n-ary macro definitions.
  7772. # See the Autoconf documentation for `clear'.
  7773. cat >confdef2sed.sed <<\_ACEOF
  7774. s/[\\&,]/\\&/g
  7775. s,[\\$`],\\&,g
  7776. t clear
  7777. : clear
  7778. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  7779. t end
  7780. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  7781. : end
  7782. _ACEOF
  7783. # If some macros were called several times there might be several times
  7784. # the same #defines, which is useless. Nevertheless, we may not want to
  7785. # sort them, since we want the *last* AC-DEFINE to be honored.
  7786. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  7787. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  7788. rm -f confdef2sed.sed
  7789. # This sed command replaces #undef with comments. This is necessary, for
  7790. # example, in the case of _POSIX_SOURCE, which is predefined and required
  7791. # on some systems where configure will not decide to define it.
  7792. cat >>conftest.undefs <<\_ACEOF
  7793. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  7794. _ACEOF
  7795. # Break up conftest.defines because some shells have a limit on the size
  7796. # of here documents, and old seds have small limits too (100 cmds).
  7797. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  7798. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  7799. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  7800. echo ' :' >>$CONFIG_STATUS
  7801. rm -f conftest.tail
  7802. while grep . conftest.defines >/dev/null
  7803. do
  7804. # Write a limited-size here document to $tmp/defines.sed.
  7805. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  7806. # Speed up: don't consider the non `#define' lines.
  7807. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  7808. # Work around the forget-to-reset-the-flag bug.
  7809. echo 't clr' >>$CONFIG_STATUS
  7810. echo ': clr' >>$CONFIG_STATUS
  7811. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  7812. echo 'CEOF
  7813. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  7814. rm -f $tmp/in
  7815. mv $tmp/out $tmp/in
  7816. ' >>$CONFIG_STATUS
  7817. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  7818. rm -f conftest.defines
  7819. mv conftest.tail conftest.defines
  7820. done
  7821. rm -f conftest.defines
  7822. echo ' fi # grep' >>$CONFIG_STATUS
  7823. echo >>$CONFIG_STATUS
  7824. # Break up conftest.undefs because some shells have a limit on the size
  7825. # of here documents, and old seds have small limits too (100 cmds).
  7826. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  7827. rm -f conftest.tail
  7828. while grep . conftest.undefs >/dev/null
  7829. do
  7830. # Write a limited-size here document to $tmp/undefs.sed.
  7831. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  7832. # Speed up: don't consider the non `#undef'
  7833. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  7834. # Work around the forget-to-reset-the-flag bug.
  7835. echo 't clr' >>$CONFIG_STATUS
  7836. echo ': clr' >>$CONFIG_STATUS
  7837. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  7838. echo 'CEOF
  7839. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  7840. rm -f $tmp/in
  7841. mv $tmp/out $tmp/in
  7842. ' >>$CONFIG_STATUS
  7843. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  7844. rm -f conftest.undefs
  7845. mv conftest.tail conftest.undefs
  7846. done
  7847. rm -f conftest.undefs
  7848. cat >>$CONFIG_STATUS <<\_ACEOF
  7849. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7850. # use $as_me), people would be surprised to read:
  7851. # /* config.h. Generated by config.status. */
  7852. if test x"$ac_file" = x-; then
  7853. echo "/* Generated by configure. */" >$tmp/config.h
  7854. else
  7855. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  7856. fi
  7857. cat $tmp/in >>$tmp/config.h
  7858. rm -f $tmp/in
  7859. if test x"$ac_file" != x-; then
  7860. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  7861. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  7862. echo "$as_me: $ac_file is unchanged" >&6;}
  7863. else
  7864. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  7865. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7866. X"$ac_file" : 'X\(//\)[^/]' \| \
  7867. X"$ac_file" : 'X\(//\)$' \| \
  7868. X"$ac_file" : 'X\(/\)' \| \
  7869. . : '\(.\)' 2>/dev/null ||
  7870. echo X"$ac_file" |
  7871. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  7872. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  7873. /^X\(\/\/\)$/{ s//\1/; q; }
  7874. /^X\(\/\).*/{ s//\1/; q; }
  7875. s/.*/./; q'`
  7876. { if $as_mkdir_p; then
  7877. mkdir -p "$ac_dir"
  7878. else
  7879. as_dir="$ac_dir"
  7880. as_dirs=
  7881. while test ! -d "$as_dir"; do
  7882. as_dirs="$as_dir $as_dirs"
  7883. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  7884. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7885. X"$as_dir" : 'X\(//\)[^/]' \| \
  7886. X"$as_dir" : 'X\(//\)$' \| \
  7887. X"$as_dir" : 'X\(/\)' \| \
  7888. . : '\(.\)' 2>/dev/null ||
  7889. echo X"$as_dir" |
  7890. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  7891. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  7892. /^X\(\/\/\)$/{ s//\1/; q; }
  7893. /^X\(\/\).*/{ s//\1/; q; }
  7894. s/.*/./; q'`
  7895. done
  7896. test ! -n "$as_dirs" || mkdir $as_dirs
  7897. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  7898. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  7899. { (exit 1); exit 1; }; }; }
  7900. rm -f $ac_file
  7901. mv $tmp/config.h $ac_file
  7902. fi
  7903. else
  7904. cat $tmp/config.h
  7905. rm -f $tmp/config.h
  7906. fi
  7907. done
  7908. _ACEOF
  7909. cat >>$CONFIG_STATUS <<\_ACEOF
  7910. { (exit 0); exit 0; }
  7911. _ACEOF
  7912. chmod +x $CONFIG_STATUS
  7913. ac_clean_files=$ac_clean_files_save
  7914. # configure is writing to config.log, and then calls config.status.
  7915. # config.status does its own redirection, appending to config.log.
  7916. # Unfortunately, on DOS this fails, as config.log is still kept open
  7917. # by configure, so config.status won't be able to write to it; its
  7918. # output is simply discarded. So we exec the FD to /dev/null,
  7919. # effectively closing config.log, so it can be properly (re)opened and
  7920. # appended to by config.status. When coming back to configure, we
  7921. # need to make the FD available again.
  7922. if test "$no_create" != yes; then
  7923. ac_cs_success=:
  7924. ac_config_status_args=
  7925. test "$silent" = yes &&
  7926. ac_config_status_args="$ac_config_status_args --quiet"
  7927. exec 5>/dev/null
  7928. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  7929. exec 5>>config.log
  7930. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  7931. # would make configure fail if this is the last instruction.
  7932. $ac_cs_success || { (exit 1); exit 1; }
  7933. fi
  7934. ac_config_files="$ac_config_files test/Makefile"
  7935. cat >confcache <<\_ACEOF
  7936. # This file is a shell script that caches the results of configure
  7937. # tests run on this system so they can be shared between configure
  7938. # scripts and configure runs, see configure's option --config-cache.
  7939. # It is not useful on other systems. If it contains results you don't
  7940. # want to keep, you may remove or edit it.
  7941. #
  7942. # config.status only pays attention to the cache file if you give it
  7943. # the --recheck option to rerun configure.
  7944. #
  7945. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7946. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7947. # following values.
  7948. _ACEOF
  7949. # The following way of writing the cache mishandles newlines in values,
  7950. # but we know of no workaround that is simple, portable, and efficient.
  7951. # So, don't put newlines in cache variables' values.
  7952. # Ultrix sh set writes to stderr and can't be redirected directly,
  7953. # and sets the high bit in the cache file unless we assign to the vars.
  7954. {
  7955. (set) 2>&1 |
  7956. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7957. *ac_space=\ *)
  7958. # `set' does not quote correctly, so add quotes (double-quote
  7959. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7960. sed -n \
  7961. "s/'/'\\\\''/g;
  7962. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7963. ;;
  7964. *)
  7965. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7966. sed -n \
  7967. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7968. ;;
  7969. esac;
  7970. } |
  7971. sed '
  7972. t clear
  7973. : clear
  7974. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7975. t end
  7976. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7977. : end' >>confcache
  7978. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7979. if test -w $cache_file; then
  7980. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  7981. cat confcache >$cache_file
  7982. else
  7983. echo "not updating unwritable cache $cache_file"
  7984. fi
  7985. fi
  7986. rm -f confcache
  7987. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7988. # Let make expand exec_prefix.
  7989. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7990. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  7991. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  7992. # trailing colons and then remove the whole line if VPATH becomes empty
  7993. # (actually we leave an empty line to preserve line numbers).
  7994. if test "x$srcdir" = x.; then
  7995. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  7996. s/:*\$(srcdir):*/:/;
  7997. s/:*\${srcdir}:*/:/;
  7998. s/:*@srcdir@:*/:/;
  7999. s/^\([^=]*=[ ]*\):*/\1/;
  8000. s/:*$//;
  8001. s/^[^=]*=[ ]*$//;
  8002. }'
  8003. fi
  8004. DEFS=-DHAVE_CONFIG_H
  8005. ac_libobjs=
  8006. ac_ltlibobjs=
  8007. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  8008. # 1. Remove the extension, and $U if already installed.
  8009. ac_i=`echo "$ac_i" |
  8010. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  8011. # 2. Add them.
  8012. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  8013. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  8014. done
  8015. LIBOBJS=$ac_libobjs
  8016. LTLIBOBJS=$ac_ltlibobjs
  8017. : ${CONFIG_STATUS=./config.status}
  8018. ac_clean_files_save=$ac_clean_files
  8019. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  8020. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  8021. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  8022. cat >$CONFIG_STATUS <<_ACEOF
  8023. #! $SHELL
  8024. # Generated by $as_me.
  8025. # Run this file to recreate the current configuration.
  8026. # Compiler output produced by configure, useful for debugging
  8027. # configure, is in config.log if it exists.
  8028. debug=false
  8029. ac_cs_recheck=false
  8030. ac_cs_silent=false
  8031. SHELL=\${CONFIG_SHELL-$SHELL}
  8032. _ACEOF
  8033. cat >>$CONFIG_STATUS <<\_ACEOF
  8034. ## --------------------- ##
  8035. ## M4sh Initialization. ##
  8036. ## --------------------- ##
  8037. # Be Bourne compatible
  8038. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  8039. emulate sh
  8040. NULLCMD=:
  8041. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  8042. # is contrary to our usage. Disable this feature.
  8043. alias -g '${1+"$@"}'='"$@"'
  8044. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8045. set -o posix
  8046. fi
  8047. DUALCASE=1; export DUALCASE # for MKS sh
  8048. # Support unset when possible.
  8049. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8050. as_unset=unset
  8051. else
  8052. as_unset=false
  8053. fi
  8054. # Work around bugs in pre-3.0 UWIN ksh.
  8055. $as_unset ENV MAIL MAILPATH
  8056. PS1='$ '
  8057. PS2='> '
  8058. PS4='+ '
  8059. # NLS nuisances.
  8060. for as_var in \
  8061. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  8062. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  8063. LC_TELEPHONE LC_TIME
  8064. do
  8065. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  8066. eval $as_var=C; export $as_var
  8067. else
  8068. $as_unset $as_var
  8069. fi
  8070. done
  8071. # Required to use basename.
  8072. if expr a : '\(a\)' >/dev/null 2>&1; then
  8073. as_expr=expr
  8074. else
  8075. as_expr=false
  8076. fi
  8077. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  8078. as_basename=basename
  8079. else
  8080. as_basename=false
  8081. fi
  8082. # Name of the executable.
  8083. as_me=`$as_basename "$0" ||
  8084. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  8085. X"$0" : 'X\(//\)$' \| \
  8086. X"$0" : 'X\(/\)$' \| \
  8087. . : '\(.\)' 2>/dev/null ||
  8088. echo X/"$0" |
  8089. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  8090. /^X\/\(\/\/\)$/{ s//\1/; q; }
  8091. /^X\/\(\/\).*/{ s//\1/; q; }
  8092. s/.*/./; q'`
  8093. # PATH needs CR, and LINENO needs CR and PATH.
  8094. # Avoid depending upon Character Ranges.
  8095. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  8096. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  8097. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  8098. as_cr_digits='0123456789'
  8099. as_cr_alnum=$as_cr_Letters$as_cr_digits
  8100. # The user is always right.
  8101. if test "${PATH_SEPARATOR+set}" != set; then
  8102. echo "#! /bin/sh" >conf$$.sh
  8103. echo "exit 0" >>conf$$.sh
  8104. chmod +x conf$$.sh
  8105. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  8106. PATH_SEPARATOR=';'
  8107. else
  8108. PATH_SEPARATOR=:
  8109. fi
  8110. rm -f conf$$.sh
  8111. fi
  8112. as_lineno_1=$LINENO
  8113. as_lineno_2=$LINENO
  8114. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8115. test "x$as_lineno_1" != "x$as_lineno_2" &&
  8116. test "x$as_lineno_3" = "x$as_lineno_2" || {
  8117. # Find who we are. Look in the path if we contain no path at all
  8118. # relative or not.
  8119. case $0 in
  8120. *[\\/]* ) as_myself=$0 ;;
  8121. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8122. for as_dir in $PATH
  8123. do
  8124. IFS=$as_save_IFS
  8125. test -z "$as_dir" && as_dir=.
  8126. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  8127. done
  8128. ;;
  8129. esac
  8130. # We did not find ourselves, most probably we were run as `sh COMMAND'
  8131. # in which case we are not to be found in the path.
  8132. if test "x$as_myself" = x; then
  8133. as_myself=$0
  8134. fi
  8135. if test ! -f "$as_myself"; then
  8136. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  8137. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  8138. { (exit 1); exit 1; }; }
  8139. fi
  8140. case $CONFIG_SHELL in
  8141. '')
  8142. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8143. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  8144. do
  8145. IFS=$as_save_IFS
  8146. test -z "$as_dir" && as_dir=.
  8147. for as_base in sh bash ksh sh5; do
  8148. case $as_dir in
  8149. /*)
  8150. if ("$as_dir/$as_base" -c '
  8151. as_lineno_1=$LINENO
  8152. as_lineno_2=$LINENO
  8153. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  8154. test "x$as_lineno_1" != "x$as_lineno_2" &&
  8155. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  8156. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  8157. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  8158. CONFIG_SHELL=$as_dir/$as_base
  8159. export CONFIG_SHELL
  8160. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  8161. fi;;
  8162. esac
  8163. done
  8164. done
  8165. ;;
  8166. esac
  8167. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  8168. # uniformly replaced by the line number. The first 'sed' inserts a
  8169. # line-number line before each line; the second 'sed' does the real
  8170. # work. The second script uses 'N' to pair each line-number line
  8171. # with the numbered line, and appends trailing '-' during
  8172. # substitution so that $LINENO is not a special case at line end.
  8173. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  8174. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  8175. sed '=' <$as_myself |
  8176. sed '
  8177. N
  8178. s,$,-,
  8179. : loop
  8180. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  8181. t loop
  8182. s,-$,,
  8183. s,^['$as_cr_digits']*\n,,
  8184. ' >$as_me.lineno &&
  8185. chmod +x $as_me.lineno ||
  8186. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  8187. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  8188. { (exit 1); exit 1; }; }
  8189. # Don't try to exec as it changes $[0], causing all sort of problems
  8190. # (the dirname of $[0] is not the place where we might find the
  8191. # original and so on. Autoconf is especially sensible to this).
  8192. . ./$as_me.lineno
  8193. # Exit status is that of the last command.
  8194. exit
  8195. }
  8196. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  8197. *c*,-n*) ECHO_N= ECHO_C='
  8198. ' ECHO_T=' ' ;;
  8199. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  8200. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  8201. esac
  8202. if expr a : '\(a\)' >/dev/null 2>&1; then
  8203. as_expr=expr
  8204. else
  8205. as_expr=false
  8206. fi
  8207. rm -f conf$$ conf$$.exe conf$$.file
  8208. echo >conf$$.file
  8209. if ln -s conf$$.file conf$$ 2>/dev/null; then
  8210. # We could just check for DJGPP; but this test a) works b) is more generic
  8211. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  8212. if test -f conf$$.exe; then
  8213. # Don't use ln at all; we don't have any links
  8214. as_ln_s='cp -p'
  8215. else
  8216. as_ln_s='ln -s'
  8217. fi
  8218. elif ln conf$$.file conf$$ 2>/dev/null; then
  8219. as_ln_s=ln
  8220. else
  8221. as_ln_s='cp -p'
  8222. fi
  8223. rm -f conf$$ conf$$.exe conf$$.file
  8224. if mkdir -p . 2>/dev/null; then
  8225. as_mkdir_p=:
  8226. else
  8227. test -d ./-p && rmdir ./-p
  8228. as_mkdir_p=false
  8229. fi
  8230. as_executable_p="test -f"
  8231. # Sed expression to map a string onto a valid CPP name.
  8232. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  8233. # Sed expression to map a string onto a valid variable name.
  8234. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  8235. # IFS
  8236. # We need space, tab and new line, in precisely that order.
  8237. as_nl='
  8238. '
  8239. IFS=" $as_nl"
  8240. # CDPATH.
  8241. $as_unset CDPATH
  8242. exec 6>&1
  8243. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  8244. # report actual input values of CONFIG_FILES etc. instead of their
  8245. # values after options handling. Logging --version etc. is OK.
  8246. exec 5>>config.log
  8247. {
  8248. echo
  8249. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  8250. ## Running $as_me. ##
  8251. _ASBOX
  8252. } >&5
  8253. cat >&5 <<_CSEOF
  8254. This file was extended by $as_me, which was
  8255. generated by GNU Autoconf 2.59. Invocation command line was
  8256. CONFIG_FILES = $CONFIG_FILES
  8257. CONFIG_HEADERS = $CONFIG_HEADERS
  8258. CONFIG_LINKS = $CONFIG_LINKS
  8259. CONFIG_COMMANDS = $CONFIG_COMMANDS
  8260. $ $0 $@
  8261. _CSEOF
  8262. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  8263. echo >&5
  8264. _ACEOF
  8265. # Files that config.status was made for.
  8266. if test -n "$ac_config_files"; then
  8267. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  8268. fi
  8269. if test -n "$ac_config_headers"; then
  8270. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  8271. fi
  8272. if test -n "$ac_config_links"; then
  8273. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  8274. fi
  8275. if test -n "$ac_config_commands"; then
  8276. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  8277. fi
  8278. cat >>$CONFIG_STATUS <<\_ACEOF
  8279. ac_cs_usage="\
  8280. \`$as_me' instantiates files from templates according to the
  8281. current configuration.
  8282. Usage: $0 [OPTIONS] [FILE]...
  8283. -h, --help print this help, then exit
  8284. -V, --version print version number, then exit
  8285. -q, --quiet do not print progress messages
  8286. -d, --debug don't remove temporary files
  8287. --recheck update $as_me by reconfiguring in the same conditions
  8288. --file=FILE[:TEMPLATE]
  8289. instantiate the configuration file FILE
  8290. --header=FILE[:TEMPLATE]
  8291. instantiate the configuration header FILE
  8292. Configuration files:
  8293. $config_files
  8294. Configuration headers:
  8295. $config_headers
  8296. Report bugs to <bug-autoconf@gnu.org>."
  8297. _ACEOF
  8298. cat >>$CONFIG_STATUS <<_ACEOF
  8299. ac_cs_version="\\
  8300. config.status
  8301. configured by $0, generated by GNU Autoconf 2.59,
  8302. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  8303. Copyright (C) 2003 Free Software Foundation, Inc.
  8304. This config.status script is free software; the Free Software Foundation
  8305. gives unlimited permission to copy, distribute and modify it."
  8306. srcdir=$srcdir
  8307. INSTALL="$INSTALL"
  8308. _ACEOF
  8309. cat >>$CONFIG_STATUS <<\_ACEOF
  8310. # If no file are specified by the user, then we need to provide default
  8311. # value. By we need to know if files were specified by the user.
  8312. ac_need_defaults=:
  8313. while test $# != 0
  8314. do
  8315. case $1 in
  8316. --*=*)
  8317. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  8318. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  8319. ac_shift=:
  8320. ;;
  8321. -*)
  8322. ac_option=$1
  8323. ac_optarg=$2
  8324. ac_shift=shift
  8325. ;;
  8326. *) # This is not an option, so the user has probably given explicit
  8327. # arguments.
  8328. ac_option=$1
  8329. ac_need_defaults=false;;
  8330. esac
  8331. case $ac_option in
  8332. # Handling of the options.
  8333. _ACEOF
  8334. cat >>$CONFIG_STATUS <<\_ACEOF
  8335. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  8336. ac_cs_recheck=: ;;
  8337. --version | --vers* | -V )
  8338. echo "$ac_cs_version"; exit 0 ;;
  8339. --he | --h)
  8340. # Conflict between --help and --header
  8341. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  8342. Try \`$0 --help' for more information." >&5
  8343. echo "$as_me: error: ambiguous option: $1
  8344. Try \`$0 --help' for more information." >&2;}
  8345. { (exit 1); exit 1; }; };;
  8346. --help | --hel | -h )
  8347. echo "$ac_cs_usage"; exit 0 ;;
  8348. --debug | --d* | -d )
  8349. debug=: ;;
  8350. --file | --fil | --fi | --f )
  8351. $ac_shift
  8352. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  8353. ac_need_defaults=false;;
  8354. --header | --heade | --head | --hea )
  8355. $ac_shift
  8356. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  8357. ac_need_defaults=false;;
  8358. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  8359. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  8360. ac_cs_silent=: ;;
  8361. # This is an error.
  8362. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  8363. Try \`$0 --help' for more information." >&5
  8364. echo "$as_me: error: unrecognized option: $1
  8365. Try \`$0 --help' for more information." >&2;}
  8366. { (exit 1); exit 1; }; } ;;
  8367. *) ac_config_targets="$ac_config_targets $1" ;;
  8368. esac
  8369. shift
  8370. done
  8371. ac_configure_extra_args=
  8372. if $ac_cs_silent; then
  8373. exec 6>/dev/null
  8374. ac_configure_extra_args="$ac_configure_extra_args --silent"
  8375. fi
  8376. _ACEOF
  8377. cat >>$CONFIG_STATUS <<_ACEOF
  8378. if \$ac_cs_recheck; then
  8379. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  8380. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  8381. fi
  8382. _ACEOF
  8383. cat >>$CONFIG_STATUS <<\_ACEOF
  8384. for ac_config_target in $ac_config_targets
  8385. do
  8386. case "$ac_config_target" in
  8387. # Handling of arguments.
  8388. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  8389. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  8390. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  8391. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  8392. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  8393. { (exit 1); exit 1; }; };;
  8394. esac
  8395. done
  8396. # If the user did not use the arguments to specify the items to instantiate,
  8397. # then the envvar interface is used. Set only those that are not.
  8398. # We use the long form for the default assignment because of an extremely
  8399. # bizarre bug on SunOS 4.1.3.
  8400. if $ac_need_defaults; then
  8401. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  8402. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  8403. fi
  8404. # Have a temporary directory for convenience. Make it in the build tree
  8405. # simply because there is no reason to put it here, and in addition,
  8406. # creating and moving files from /tmp can sometimes cause problems.
  8407. # Create a temporary directory, and hook for its removal unless debugging.
  8408. $debug ||
  8409. {
  8410. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8411. trap '{ (exit 1); exit 1; }' 1 2 13 15
  8412. }
  8413. # Create a (secure) tmp directory for tmp files.
  8414. {
  8415. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  8416. test -n "$tmp" && test -d "$tmp"
  8417. } ||
  8418. {
  8419. tmp=./confstat$$-$RANDOM
  8420. (umask 077 && mkdir $tmp)
  8421. } ||
  8422. {
  8423. echo "$me: cannot create a temporary directory in ." >&2
  8424. { (exit 1); exit 1; }
  8425. }
  8426. _ACEOF
  8427. cat >>$CONFIG_STATUS <<_ACEOF
  8428. #
  8429. # CONFIG_FILES section.
  8430. #
  8431. # No need to generate the scripts if there are no CONFIG_FILES.
  8432. # This happens for instance when ./config.status config.h
  8433. if test -n "\$CONFIG_FILES"; then
  8434. # Protect against being on the right side of a sed subst in config.status.
  8435. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  8436. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  8437. s,@SHELL@,$SHELL,;t t
  8438. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  8439. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  8440. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  8441. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  8442. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  8443. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  8444. s,@exec_prefix@,$exec_prefix,;t t
  8445. s,@prefix@,$prefix,;t t
  8446. s,@program_transform_name@,$program_transform_name,;t t
  8447. s,@bindir@,$bindir,;t t
  8448. s,@sbindir@,$sbindir,;t t
  8449. s,@libexecdir@,$libexecdir,;t t
  8450. s,@datadir@,$datadir,;t t
  8451. s,@sysconfdir@,$sysconfdir,;t t
  8452. s,@sharedstatedir@,$sharedstatedir,;t t
  8453. s,@localstatedir@,$localstatedir,;t t
  8454. s,@libdir@,$libdir,;t t
  8455. s,@includedir@,$includedir,;t t
  8456. s,@oldincludedir@,$oldincludedir,;t t
  8457. s,@infodir@,$infodir,;t t
  8458. s,@mandir@,$mandir,;t t
  8459. s,@build_alias@,$build_alias,;t t
  8460. s,@host_alias@,$host_alias,;t t
  8461. s,@target_alias@,$target_alias,;t t
  8462. s,@DEFS@,$DEFS,;t t
  8463. s,@ECHO_C@,$ECHO_C,;t t
  8464. s,@ECHO_N@,$ECHO_N,;t t
  8465. s,@ECHO_T@,$ECHO_T,;t t
  8466. s,@LIBS@,$LIBS,;t t
  8467. s,@TCPREPLAY_VERSION@,$TCPREPLAY_VERSION,;t t
  8468. s,@TCPREPLAY_RELEASE@,$TCPREPLAY_RELEASE,;t t
  8469. s,@build@,$build,;t t
  8470. s,@build_cpu@,$build_cpu,;t t
  8471. s,@build_vendor@,$build_vendor,;t t
  8472. s,@build_os@,$build_os,;t t
  8473. s,@host@,$host,;t t
  8474. s,@host_cpu@,$host_cpu,;t t
  8475. s,@host_vendor@,$host_vendor,;t t
  8476. s,@host_os@,$host_os,;t t
  8477. s,@target@,$target,;t t
  8478. s,@target_cpu@,$target_cpu,;t t
  8479. s,@target_vendor@,$target_vendor,;t t
  8480. s,@target_os@,$target_os,;t t
  8481. s,@CC@,$CC,;t t
  8482. s,@CFLAGS@,$CFLAGS,;t t
  8483. s,@LDFLAGS@,$LDFLAGS,;t t
  8484. s,@CPPFLAGS@,$CPPFLAGS,;t t
  8485. s,@ac_ct_CC@,$ac_ct_CC,;t t
  8486. s,@EXEEXT@,$EXEEXT,;t t
  8487. s,@OBJEXT@,$OBJEXT,;t t
  8488. s,@CXX@,$CXX,;t t
  8489. s,@CXXFLAGS@,$CXXFLAGS,;t t
  8490. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  8491. s,@CPP@,$CPP,;t t
  8492. s,@LN_S@,$LN_S,;t t
  8493. s,@RANLIB@,$RANLIB,;t t
  8494. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  8495. s,@AWK@,$AWK,;t t
  8496. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  8497. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  8498. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  8499. s,@SET_MAKE@,$SET_MAKE,;t t
  8500. s,@PRINTF@,$PRINTF,;t t
  8501. s,@EGREP@,$EGREP,;t t
  8502. s,@debug_flag@,$debug_flag,;t t
  8503. s,@LIBOBJS@,$LIBOBJS,;t t
  8504. s,@LNETINC@,$LNETINC,;t t
  8505. s,@LNETLIB@,$LNETLIB,;t t
  8506. s,@LPCAPINC@,$LPCAPINC,;t t
  8507. s,@LPCAPLIB@,$LPCAPLIB,;t t
  8508. s,@pcncfg@,$pcncfg,;t t
  8509. s,@LNAVLIB@,$LNAVLIB,;t t
  8510. s,@LNAV_CFLAGS@,$LNAV_CFLAGS,;t t
  8511. s,@td@,$td,;t t
  8512. s,@nic1@,$nic1,;t t
  8513. s,@nic2@,$nic2,;t t
  8514. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  8515. CEOF
  8516. _ACEOF
  8517. cat >>$CONFIG_STATUS <<\_ACEOF
  8518. # Split the substitutions into bite-sized pieces for seds with
  8519. # small command number limits, like on Digital OSF/1 and HP-UX.
  8520. ac_max_sed_lines=48
  8521. ac_sed_frag=1 # Number of current file.
  8522. ac_beg=1 # First line for current file.
  8523. ac_end=$ac_max_sed_lines # Line after last line for current file.
  8524. ac_more_lines=:
  8525. ac_sed_cmds=
  8526. while $ac_more_lines; do
  8527. if test $ac_beg -gt 1; then
  8528. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8529. else
  8530. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  8531. fi
  8532. if test ! -s $tmp/subs.frag; then
  8533. ac_more_lines=false
  8534. else
  8535. # The purpose of the label and of the branching condition is to
  8536. # speed up the sed processing (if there are no `@' at all, there
  8537. # is no need to browse any of the substitutions).
  8538. # These are the two extra sed commands mentioned above.
  8539. (echo ':t
  8540. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  8541. if test -z "$ac_sed_cmds"; then
  8542. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  8543. else
  8544. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  8545. fi
  8546. ac_sed_frag=`expr $ac_sed_frag + 1`
  8547. ac_beg=$ac_end
  8548. ac_end=`expr $ac_end + $ac_max_sed_lines`
  8549. fi
  8550. done
  8551. if test -z "$ac_sed_cmds"; then
  8552. ac_sed_cmds=cat
  8553. fi
  8554. fi # test -n "$CONFIG_FILES"
  8555. _ACEOF
  8556. cat >>$CONFIG_STATUS <<\_ACEOF
  8557. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  8558. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8559. case $ac_file in
  8560. - | *:- | *:-:* ) # input from stdin
  8561. cat >$tmp/stdin
  8562. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8563. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8564. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8565. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8566. * ) ac_file_in=$ac_file.in ;;
  8567. esac
  8568. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  8569. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8570. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8571. X"$ac_file" : 'X\(//\)[^/]' \| \
  8572. X"$ac_file" : 'X\(//\)$' \| \
  8573. X"$ac_file" : 'X\(/\)' \| \
  8574. . : '\(.\)' 2>/dev/null ||
  8575. echo X"$ac_file" |
  8576. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8577. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8578. /^X\(\/\/\)$/{ s//\1/; q; }
  8579. /^X\(\/\).*/{ s//\1/; q; }
  8580. s/.*/./; q'`
  8581. { if $as_mkdir_p; then
  8582. mkdir -p "$ac_dir"
  8583. else
  8584. as_dir="$ac_dir"
  8585. as_dirs=
  8586. while test ! -d "$as_dir"; do
  8587. as_dirs="$as_dir $as_dirs"
  8588. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8589. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8590. X"$as_dir" : 'X\(//\)[^/]' \| \
  8591. X"$as_dir" : 'X\(//\)$' \| \
  8592. X"$as_dir" : 'X\(/\)' \| \
  8593. . : '\(.\)' 2>/dev/null ||
  8594. echo X"$as_dir" |
  8595. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8596. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8597. /^X\(\/\/\)$/{ s//\1/; q; }
  8598. /^X\(\/\).*/{ s//\1/; q; }
  8599. s/.*/./; q'`
  8600. done
  8601. test ! -n "$as_dirs" || mkdir $as_dirs
  8602. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8603. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8604. { (exit 1); exit 1; }; }; }
  8605. ac_builddir=.
  8606. if test "$ac_dir" != .; then
  8607. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  8608. # A "../" for each directory in $ac_dir_suffix.
  8609. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  8610. else
  8611. ac_dir_suffix= ac_top_builddir=
  8612. fi
  8613. case $srcdir in
  8614. .) # No --srcdir option. We are building in place.
  8615. ac_srcdir=.
  8616. if test -z "$ac_top_builddir"; then
  8617. ac_top_srcdir=.
  8618. else
  8619. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  8620. fi ;;
  8621. [\\/]* | ?:[\\/]* ) # Absolute path.
  8622. ac_srcdir=$srcdir$ac_dir_suffix;
  8623. ac_top_srcdir=$srcdir ;;
  8624. *) # Relative path.
  8625. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  8626. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  8627. esac
  8628. # Do not use `cd foo && pwd` to compute absolute paths, because
  8629. # the directories may not exist.
  8630. case `pwd` in
  8631. .) ac_abs_builddir="$ac_dir";;
  8632. *)
  8633. case "$ac_dir" in
  8634. .) ac_abs_builddir=`pwd`;;
  8635. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  8636. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  8637. esac;;
  8638. esac
  8639. case $ac_abs_builddir in
  8640. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  8641. *)
  8642. case ${ac_top_builddir}. in
  8643. .) ac_abs_top_builddir=$ac_abs_builddir;;
  8644. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  8645. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  8646. esac;;
  8647. esac
  8648. case $ac_abs_builddir in
  8649. .) ac_abs_srcdir=$ac_srcdir;;
  8650. *)
  8651. case $ac_srcdir in
  8652. .) ac_abs_srcdir=$ac_abs_builddir;;
  8653. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  8654. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  8655. esac;;
  8656. esac
  8657. case $ac_abs_builddir in
  8658. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  8659. *)
  8660. case $ac_top_srcdir in
  8661. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  8662. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  8663. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  8664. esac;;
  8665. esac
  8666. case $INSTALL in
  8667. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  8668. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  8669. esac
  8670. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8671. # use $as_me), people would be surprised to read:
  8672. # /* config.h. Generated by config.status. */
  8673. if test x"$ac_file" = x-; then
  8674. configure_input=
  8675. else
  8676. configure_input="$ac_file. "
  8677. fi
  8678. configure_input=$configure_input"Generated from `echo $ac_file_in |
  8679. sed 's,.*/,,'` by configure."
  8680. # First look for the input files in the build tree, otherwise in the
  8681. # src tree.
  8682. ac_file_inputs=`IFS=:
  8683. for f in $ac_file_in; do
  8684. case $f in
  8685. -) echo $tmp/stdin ;;
  8686. [\\/$]*)
  8687. # Absolute (can't be DOS-style, as IFS=:)
  8688. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8689. echo "$as_me: error: cannot find input file: $f" >&2;}
  8690. { (exit 1); exit 1; }; }
  8691. echo "$f";;
  8692. *) # Relative
  8693. if test -f "$f"; then
  8694. # Build tree
  8695. echo "$f"
  8696. elif test -f "$srcdir/$f"; then
  8697. # Source tree
  8698. echo "$srcdir/$f"
  8699. else
  8700. # /dev/null tree
  8701. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8702. echo "$as_me: error: cannot find input file: $f" >&2;}
  8703. { (exit 1); exit 1; }; }
  8704. fi;;
  8705. esac
  8706. done` || { (exit 1); exit 1; }
  8707. if test x"$ac_file" != x-; then
  8708. { echo "$as_me:$LINENO: creating $ac_file" >&5
  8709. echo "$as_me: creating $ac_file" >&6;}
  8710. rm -f "$ac_file"
  8711. fi
  8712. _ACEOF
  8713. cat >>$CONFIG_STATUS <<_ACEOF
  8714. sed "$ac_vpsub
  8715. $extrasub
  8716. _ACEOF
  8717. cat >>$CONFIG_STATUS <<\_ACEOF
  8718. :t
  8719. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  8720. s,@configure_input@,$configure_input,;t t
  8721. s,@srcdir@,$ac_srcdir,;t t
  8722. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  8723. s,@top_srcdir@,$ac_top_srcdir,;t t
  8724. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  8725. s,@builddir@,$ac_builddir,;t t
  8726. s,@abs_builddir@,$ac_abs_builddir,;t t
  8727. s,@top_builddir@,$ac_top_builddir,;t t
  8728. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  8729. s,@INSTALL@,$ac_INSTALL,;t t
  8730. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  8731. rm -f $tmp/stdin
  8732. if test x"$ac_file" != x-; then
  8733. mv $tmp/out $ac_file
  8734. else
  8735. cat $tmp/out
  8736. rm -f $tmp/out
  8737. fi
  8738. done
  8739. _ACEOF
  8740. cat >>$CONFIG_STATUS <<\_ACEOF
  8741. #
  8742. # CONFIG_HEADER section.
  8743. #
  8744. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  8745. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  8746. #
  8747. # ac_d sets the value in "#define NAME VALUE" lines.
  8748. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  8749. ac_dB='[ ].*$,\1#\2'
  8750. ac_dC=' '
  8751. ac_dD=',;t'
  8752. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  8753. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  8754. ac_uB='$,\1#\2define\3'
  8755. ac_uC=' '
  8756. ac_uD=',;t'
  8757. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  8758. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  8759. case $ac_file in
  8760. - | *:- | *:-:* ) # input from stdin
  8761. cat >$tmp/stdin
  8762. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8763. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8764. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  8765. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  8766. * ) ac_file_in=$ac_file.in ;;
  8767. esac
  8768. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  8769. echo "$as_me: creating $ac_file" >&6;}
  8770. # First look for the input files in the build tree, otherwise in the
  8771. # src tree.
  8772. ac_file_inputs=`IFS=:
  8773. for f in $ac_file_in; do
  8774. case $f in
  8775. -) echo $tmp/stdin ;;
  8776. [\\/$]*)
  8777. # Absolute (can't be DOS-style, as IFS=:)
  8778. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8779. echo "$as_me: error: cannot find input file: $f" >&2;}
  8780. { (exit 1); exit 1; }; }
  8781. # Do quote $f, to prevent DOS paths from being IFS'd.
  8782. echo "$f";;
  8783. *) # Relative
  8784. if test -f "$f"; then
  8785. # Build tree
  8786. echo "$f"
  8787. elif test -f "$srcdir/$f"; then
  8788. # Source tree
  8789. echo "$srcdir/$f"
  8790. else
  8791. # /dev/null tree
  8792. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  8793. echo "$as_me: error: cannot find input file: $f" >&2;}
  8794. { (exit 1); exit 1; }; }
  8795. fi;;
  8796. esac
  8797. done` || { (exit 1); exit 1; }
  8798. # Remove the trailing spaces.
  8799. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  8800. _ACEOF
  8801. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  8802. # `conftest.undefs', that substitutes the proper values into
  8803. # config.h.in to produce config.h. The first handles `#define'
  8804. # templates, and the second `#undef' templates.
  8805. # And first: Protect against being on the right side of a sed subst in
  8806. # config.status. Protect against being in an unquoted here document
  8807. # in config.status.
  8808. rm -f conftest.defines conftest.undefs
  8809. # Using a here document instead of a string reduces the quoting nightmare.
  8810. # Putting comments in sed scripts is not portable.
  8811. #
  8812. # `end' is used to avoid that the second main sed command (meant for
  8813. # 0-ary CPP macros) applies to n-ary macro definitions.
  8814. # See the Autoconf documentation for `clear'.
  8815. cat >confdef2sed.sed <<\_ACEOF
  8816. s/[\\&,]/\\&/g
  8817. s,[\\$`],\\&,g
  8818. t clear
  8819. : clear
  8820. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  8821. t end
  8822. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  8823. : end
  8824. _ACEOF
  8825. # If some macros were called several times there might be several times
  8826. # the same #defines, which is useless. Nevertheless, we may not want to
  8827. # sort them, since we want the *last* AC-DEFINE to be honored.
  8828. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  8829. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  8830. rm -f confdef2sed.sed
  8831. # This sed command replaces #undef with comments. This is necessary, for
  8832. # example, in the case of _POSIX_SOURCE, which is predefined and required
  8833. # on some systems where configure will not decide to define it.
  8834. cat >>conftest.undefs <<\_ACEOF
  8835. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  8836. _ACEOF
  8837. # Break up conftest.defines because some shells have a limit on the size
  8838. # of here documents, and old seds have small limits too (100 cmds).
  8839. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  8840. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  8841. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  8842. echo ' :' >>$CONFIG_STATUS
  8843. rm -f conftest.tail
  8844. while grep . conftest.defines >/dev/null
  8845. do
  8846. # Write a limited-size here document to $tmp/defines.sed.
  8847. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  8848. # Speed up: don't consider the non `#define' lines.
  8849. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  8850. # Work around the forget-to-reset-the-flag bug.
  8851. echo 't clr' >>$CONFIG_STATUS
  8852. echo ': clr' >>$CONFIG_STATUS
  8853. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  8854. echo 'CEOF
  8855. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  8856. rm -f $tmp/in
  8857. mv $tmp/out $tmp/in
  8858. ' >>$CONFIG_STATUS
  8859. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  8860. rm -f conftest.defines
  8861. mv conftest.tail conftest.defines
  8862. done
  8863. rm -f conftest.defines
  8864. echo ' fi # grep' >>$CONFIG_STATUS
  8865. echo >>$CONFIG_STATUS
  8866. # Break up conftest.undefs because some shells have a limit on the size
  8867. # of here documents, and old seds have small limits too (100 cmds).
  8868. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  8869. rm -f conftest.tail
  8870. while grep . conftest.undefs >/dev/null
  8871. do
  8872. # Write a limited-size here document to $tmp/undefs.sed.
  8873. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  8874. # Speed up: don't consider the non `#undef'
  8875. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  8876. # Work around the forget-to-reset-the-flag bug.
  8877. echo 't clr' >>$CONFIG_STATUS
  8878. echo ': clr' >>$CONFIG_STATUS
  8879. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  8880. echo 'CEOF
  8881. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  8882. rm -f $tmp/in
  8883. mv $tmp/out $tmp/in
  8884. ' >>$CONFIG_STATUS
  8885. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  8886. rm -f conftest.undefs
  8887. mv conftest.tail conftest.undefs
  8888. done
  8889. rm -f conftest.undefs
  8890. cat >>$CONFIG_STATUS <<\_ACEOF
  8891. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8892. # use $as_me), people would be surprised to read:
  8893. # /* config.h. Generated by config.status. */
  8894. if test x"$ac_file" = x-; then
  8895. echo "/* Generated by configure. */" >$tmp/config.h
  8896. else
  8897. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  8898. fi
  8899. cat $tmp/in >>$tmp/config.h
  8900. rm -f $tmp/in
  8901. if test x"$ac_file" != x-; then
  8902. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  8903. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  8904. echo "$as_me: $ac_file is unchanged" >&6;}
  8905. else
  8906. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8907. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8908. X"$ac_file" : 'X\(//\)[^/]' \| \
  8909. X"$ac_file" : 'X\(//\)$' \| \
  8910. X"$ac_file" : 'X\(/\)' \| \
  8911. . : '\(.\)' 2>/dev/null ||
  8912. echo X"$ac_file" |
  8913. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8914. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8915. /^X\(\/\/\)$/{ s//\1/; q; }
  8916. /^X\(\/\).*/{ s//\1/; q; }
  8917. s/.*/./; q'`
  8918. { if $as_mkdir_p; then
  8919. mkdir -p "$ac_dir"
  8920. else
  8921. as_dir="$ac_dir"
  8922. as_dirs=
  8923. while test ! -d "$as_dir"; do
  8924. as_dirs="$as_dir $as_dirs"
  8925. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8926. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8927. X"$as_dir" : 'X\(//\)[^/]' \| \
  8928. X"$as_dir" : 'X\(//\)$' \| \
  8929. X"$as_dir" : 'X\(/\)' \| \
  8930. . : '\(.\)' 2>/dev/null ||
  8931. echo X"$as_dir" |
  8932. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8933. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8934. /^X\(\/\/\)$/{ s//\1/; q; }
  8935. /^X\(\/\).*/{ s//\1/; q; }
  8936. s/.*/./; q'`
  8937. done
  8938. test ! -n "$as_dirs" || mkdir $as_dirs
  8939. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8940. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8941. { (exit 1); exit 1; }; }; }
  8942. rm -f $ac_file
  8943. mv $tmp/config.h $ac_file
  8944. fi
  8945. else
  8946. cat $tmp/config.h
  8947. rm -f $tmp/config.h
  8948. fi
  8949. done
  8950. _ACEOF
  8951. cat >>$CONFIG_STATUS <<\_ACEOF
  8952. { (exit 0); exit 0; }
  8953. _ACEOF
  8954. chmod +x $CONFIG_STATUS
  8955. ac_clean_files=$ac_clean_files_save
  8956. # configure is writing to config.log, and then calls config.status.
  8957. # config.status does its own redirection, appending to config.log.
  8958. # Unfortunately, on DOS this fails, as config.log is still kept open
  8959. # by configure, so config.status won't be able to write to it; its
  8960. # output is simply discarded. So we exec the FD to /dev/null,
  8961. # effectively closing config.log, so it can be properly (re)opened and
  8962. # appended to by config.status. When coming back to configure, we
  8963. # need to make the FD available again.
  8964. if test "$no_create" != yes; then
  8965. ac_cs_success=:
  8966. ac_config_status_args=
  8967. test "$silent" = yes &&
  8968. ac_config_status_args="$ac_config_status_args --quiet"
  8969. exec 5>/dev/null
  8970. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8971. exec 5>>config.log
  8972. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8973. # would make configure fail if this is the last instruction.
  8974. $ac_cs_success || { (exit 1); exit 1; }
  8975. fi
  8976. ac_config_files="$ac_config_files test/config"
  8977. cat >confcache <<\_ACEOF
  8978. # This file is a shell script that caches the results of configure
  8979. # tests run on this system so they can be shared between configure
  8980. # scripts and configure runs, see configure's option --config-cache.
  8981. # It is not useful on other systems. If it contains results you don't
  8982. # want to keep, you may remove or edit it.
  8983. #
  8984. # config.status only pays attention to the cache file if you give it
  8985. # the --recheck option to rerun configure.
  8986. #
  8987. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8988. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8989. # following values.
  8990. _ACEOF
  8991. # The following way of writing the cache mishandles newlines in values,
  8992. # but we know of no workaround that is simple, portable, and efficient.
  8993. # So, don't put newlines in cache variables' values.
  8994. # Ultrix sh set writes to stderr and can't be redirected directly,
  8995. # and sets the high bit in the cache file unless we assign to the vars.
  8996. {
  8997. (set) 2>&1 |
  8998. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8999. *ac_space=\ *)
  9000. # `set' does not quote correctly, so add quotes (double-quote
  9001. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9002. sed -n \
  9003. "s/'/'\\\\''/g;
  9004. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9005. ;;
  9006. *)
  9007. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9008. sed -n \
  9009. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9010. ;;
  9011. esac;
  9012. } |
  9013. sed '
  9014. t clear
  9015. : clear
  9016. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9017. t end
  9018. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9019. : end' >>confcache
  9020. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9021. if test -w $cache_file; then
  9022. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  9023. cat confcache >$cache_file
  9024. else
  9025. echo "not updating unwritable cache $cache_file"
  9026. fi
  9027. fi
  9028. rm -f confcache
  9029. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9030. # Let make expand exec_prefix.
  9031. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9032. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9033. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9034. # trailing colons and then remove the whole line if VPATH becomes empty
  9035. # (actually we leave an empty line to preserve line numbers).
  9036. if test "x$srcdir" = x.; then
  9037. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  9038. s/:*\$(srcdir):*/:/;
  9039. s/:*\${srcdir}:*/:/;
  9040. s/:*@srcdir@:*/:/;
  9041. s/^\([^=]*=[ ]*\):*/\1/;
  9042. s/:*$//;
  9043. s/^[^=]*=[ ]*$//;
  9044. }'
  9045. fi
  9046. DEFS=-DHAVE_CONFIG_H
  9047. ac_libobjs=
  9048. ac_ltlibobjs=
  9049. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9050. # 1. Remove the extension, and $U if already installed.
  9051. ac_i=`echo "$ac_i" |
  9052. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  9053. # 2. Add them.
  9054. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  9055. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  9056. done
  9057. LIBOBJS=$ac_libobjs
  9058. LTLIBOBJS=$ac_ltlibobjs
  9059. : ${CONFIG_STATUS=./config.status}
  9060. ac_clean_files_save=$ac_clean_files
  9061. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9062. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9063. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9064. cat >$CONFIG_STATUS <<_ACEOF
  9065. #! $SHELL
  9066. # Generated by $as_me.
  9067. # Run this file to recreate the current configuration.
  9068. # Compiler output produced by configure, useful for debugging
  9069. # configure, is in config.log if it exists.
  9070. debug=false
  9071. ac_cs_recheck=false
  9072. ac_cs_silent=false
  9073. SHELL=\${CONFIG_SHELL-$SHELL}
  9074. _ACEOF
  9075. cat >>$CONFIG_STATUS <<\_ACEOF
  9076. ## --------------------- ##
  9077. ## M4sh Initialization. ##
  9078. ## --------------------- ##
  9079. # Be Bourne compatible
  9080. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9081. emulate sh
  9082. NULLCMD=:
  9083. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  9084. # is contrary to our usage. Disable this feature.
  9085. alias -g '${1+"$@"}'='"$@"'
  9086. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  9087. set -o posix
  9088. fi
  9089. DUALCASE=1; export DUALCASE # for MKS sh
  9090. # Support unset when possible.
  9091. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9092. as_unset=unset
  9093. else
  9094. as_unset=false
  9095. fi
  9096. # Work around bugs in pre-3.0 UWIN ksh.
  9097. $as_unset ENV MAIL MAILPATH
  9098. PS1='$ '
  9099. PS2='> '
  9100. PS4='+ '
  9101. # NLS nuisances.
  9102. for as_var in \
  9103. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  9104. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  9105. LC_TELEPHONE LC_TIME
  9106. do
  9107. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9108. eval $as_var=C; export $as_var
  9109. else
  9110. $as_unset $as_var
  9111. fi
  9112. done
  9113. # Required to use basename.
  9114. if expr a : '\(a\)' >/dev/null 2>&1; then
  9115. as_expr=expr
  9116. else
  9117. as_expr=false
  9118. fi
  9119. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  9120. as_basename=basename
  9121. else
  9122. as_basename=false
  9123. fi
  9124. # Name of the executable.
  9125. as_me=`$as_basename "$0" ||
  9126. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9127. X"$0" : 'X\(//\)$' \| \
  9128. X"$0" : 'X\(/\)$' \| \
  9129. . : '\(.\)' 2>/dev/null ||
  9130. echo X/"$0" |
  9131. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  9132. /^X\/\(\/\/\)$/{ s//\1/; q; }
  9133. /^X\/\(\/\).*/{ s//\1/; q; }
  9134. s/.*/./; q'`
  9135. # PATH needs CR, and LINENO needs CR and PATH.
  9136. # Avoid depending upon Character Ranges.
  9137. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9138. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9139. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9140. as_cr_digits='0123456789'
  9141. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9142. # The user is always right.
  9143. if test "${PATH_SEPARATOR+set}" != set; then
  9144. echo "#! /bin/sh" >conf$$.sh
  9145. echo "exit 0" >>conf$$.sh
  9146. chmod +x conf$$.sh
  9147. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9148. PATH_SEPARATOR=';'
  9149. else
  9150. PATH_SEPARATOR=:
  9151. fi
  9152. rm -f conf$$.sh
  9153. fi
  9154. as_lineno_1=$LINENO
  9155. as_lineno_2=$LINENO
  9156. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9157. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9158. test "x$as_lineno_3" = "x$as_lineno_2" || {
  9159. # Find who we are. Look in the path if we contain no path at all
  9160. # relative or not.
  9161. case $0 in
  9162. *[\\/]* ) as_myself=$0 ;;
  9163. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9164. for as_dir in $PATH
  9165. do
  9166. IFS=$as_save_IFS
  9167. test -z "$as_dir" && as_dir=.
  9168. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9169. done
  9170. ;;
  9171. esac
  9172. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9173. # in which case we are not to be found in the path.
  9174. if test "x$as_myself" = x; then
  9175. as_myself=$0
  9176. fi
  9177. if test ! -f "$as_myself"; then
  9178. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  9179. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  9180. { (exit 1); exit 1; }; }
  9181. fi
  9182. case $CONFIG_SHELL in
  9183. '')
  9184. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9185. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9186. do
  9187. IFS=$as_save_IFS
  9188. test -z "$as_dir" && as_dir=.
  9189. for as_base in sh bash ksh sh5; do
  9190. case $as_dir in
  9191. /*)
  9192. if ("$as_dir/$as_base" -c '
  9193. as_lineno_1=$LINENO
  9194. as_lineno_2=$LINENO
  9195. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9196. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9197. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  9198. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  9199. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  9200. CONFIG_SHELL=$as_dir/$as_base
  9201. export CONFIG_SHELL
  9202. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  9203. fi;;
  9204. esac
  9205. done
  9206. done
  9207. ;;
  9208. esac
  9209. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9210. # uniformly replaced by the line number. The first 'sed' inserts a
  9211. # line-number line before each line; the second 'sed' does the real
  9212. # work. The second script uses 'N' to pair each line-number line
  9213. # with the numbered line, and appends trailing '-' during
  9214. # substitution so that $LINENO is not a special case at line end.
  9215. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9216. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  9217. sed '=' <$as_myself |
  9218. sed '
  9219. N
  9220. s,$,-,
  9221. : loop
  9222. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  9223. t loop
  9224. s,-$,,
  9225. s,^['$as_cr_digits']*\n,,
  9226. ' >$as_me.lineno &&
  9227. chmod +x $as_me.lineno ||
  9228. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  9229. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  9230. { (exit 1); exit 1; }; }
  9231. # Don't try to exec as it changes $[0], causing all sort of problems
  9232. # (the dirname of $[0] is not the place where we might find the
  9233. # original and so on. Autoconf is especially sensible to this).
  9234. . ./$as_me.lineno
  9235. # Exit status is that of the last command.
  9236. exit
  9237. }
  9238. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  9239. *c*,-n*) ECHO_N= ECHO_C='
  9240. ' ECHO_T=' ' ;;
  9241. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  9242. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  9243. esac
  9244. if expr a : '\(a\)' >/dev/null 2>&1; then
  9245. as_expr=expr
  9246. else
  9247. as_expr=false
  9248. fi
  9249. rm -f conf$$ conf$$.exe conf$$.file
  9250. echo >conf$$.file
  9251. if ln -s conf$$.file conf$$ 2>/dev/null; then
  9252. # We could just check for DJGPP; but this test a) works b) is more generic
  9253. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  9254. if test -f conf$$.exe; then
  9255. # Don't use ln at all; we don't have any links
  9256. as_ln_s='cp -p'
  9257. else
  9258. as_ln_s='ln -s'
  9259. fi
  9260. elif ln conf$$.file conf$$ 2>/dev/null; then
  9261. as_ln_s=ln
  9262. else
  9263. as_ln_s='cp -p'
  9264. fi
  9265. rm -f conf$$ conf$$.exe conf$$.file
  9266. if mkdir -p . 2>/dev/null; then
  9267. as_mkdir_p=:
  9268. else
  9269. test -d ./-p && rmdir ./-p
  9270. as_mkdir_p=false
  9271. fi
  9272. as_executable_p="test -f"
  9273. # Sed expression to map a string onto a valid CPP name.
  9274. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9275. # Sed expression to map a string onto a valid variable name.
  9276. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9277. # IFS
  9278. # We need space, tab and new line, in precisely that order.
  9279. as_nl='
  9280. '
  9281. IFS=" $as_nl"
  9282. # CDPATH.
  9283. $as_unset CDPATH
  9284. exec 6>&1
  9285. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  9286. # report actual input values of CONFIG_FILES etc. instead of their
  9287. # values after options handling. Logging --version etc. is OK.
  9288. exec 5>>config.log
  9289. {
  9290. echo
  9291. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  9292. ## Running $as_me. ##
  9293. _ASBOX
  9294. } >&5
  9295. cat >&5 <<_CSEOF
  9296. This file was extended by $as_me, which was
  9297. generated by GNU Autoconf 2.59. Invocation command line was
  9298. CONFIG_FILES = $CONFIG_FILES
  9299. CONFIG_HEADERS = $CONFIG_HEADERS
  9300. CONFIG_LINKS = $CONFIG_LINKS
  9301. CONFIG_COMMANDS = $CONFIG_COMMANDS
  9302. $ $0 $@
  9303. _CSEOF
  9304. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  9305. echo >&5
  9306. _ACEOF
  9307. # Files that config.status was made for.
  9308. if test -n "$ac_config_files"; then
  9309. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  9310. fi
  9311. if test -n "$ac_config_headers"; then
  9312. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  9313. fi
  9314. if test -n "$ac_config_links"; then
  9315. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  9316. fi
  9317. if test -n "$ac_config_commands"; then
  9318. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  9319. fi
  9320. cat >>$CONFIG_STATUS <<\_ACEOF
  9321. ac_cs_usage="\
  9322. \`$as_me' instantiates files from templates according to the
  9323. current configuration.
  9324. Usage: $0 [OPTIONS] [FILE]...
  9325. -h, --help print this help, then exit
  9326. -V, --version print version number, then exit
  9327. -q, --quiet do not print progress messages
  9328. -d, --debug don't remove temporary files
  9329. --recheck update $as_me by reconfiguring in the same conditions
  9330. --file=FILE[:TEMPLATE]
  9331. instantiate the configuration file FILE
  9332. --header=FILE[:TEMPLATE]
  9333. instantiate the configuration header FILE
  9334. Configuration files:
  9335. $config_files
  9336. Configuration headers:
  9337. $config_headers
  9338. Report bugs to <bug-autoconf@gnu.org>."
  9339. _ACEOF
  9340. cat >>$CONFIG_STATUS <<_ACEOF
  9341. ac_cs_version="\\
  9342. config.status
  9343. configured by $0, generated by GNU Autoconf 2.59,
  9344. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  9345. Copyright (C) 2003 Free Software Foundation, Inc.
  9346. This config.status script is free software; the Free Software Foundation
  9347. gives unlimited permission to copy, distribute and modify it."
  9348. srcdir=$srcdir
  9349. INSTALL="$INSTALL"
  9350. _ACEOF
  9351. cat >>$CONFIG_STATUS <<\_ACEOF
  9352. # If no file are specified by the user, then we need to provide default
  9353. # value. By we need to know if files were specified by the user.
  9354. ac_need_defaults=:
  9355. while test $# != 0
  9356. do
  9357. case $1 in
  9358. --*=*)
  9359. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  9360. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  9361. ac_shift=:
  9362. ;;
  9363. -*)
  9364. ac_option=$1
  9365. ac_optarg=$2
  9366. ac_shift=shift
  9367. ;;
  9368. *) # This is not an option, so the user has probably given explicit
  9369. # arguments.
  9370. ac_option=$1
  9371. ac_need_defaults=false;;
  9372. esac
  9373. case $ac_option in
  9374. # Handling of the options.
  9375. _ACEOF
  9376. cat >>$CONFIG_STATUS <<\_ACEOF
  9377. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  9378. ac_cs_recheck=: ;;
  9379. --version | --vers* | -V )
  9380. echo "$ac_cs_version"; exit 0 ;;
  9381. --he | --h)
  9382. # Conflict between --help and --header
  9383. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  9384. Try \`$0 --help' for more information." >&5
  9385. echo "$as_me: error: ambiguous option: $1
  9386. Try \`$0 --help' for more information." >&2;}
  9387. { (exit 1); exit 1; }; };;
  9388. --help | --hel | -h )
  9389. echo "$ac_cs_usage"; exit 0 ;;
  9390. --debug | --d* | -d )
  9391. debug=: ;;
  9392. --file | --fil | --fi | --f )
  9393. $ac_shift
  9394. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  9395. ac_need_defaults=false;;
  9396. --header | --heade | --head | --hea )
  9397. $ac_shift
  9398. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  9399. ac_need_defaults=false;;
  9400. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  9401. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  9402. ac_cs_silent=: ;;
  9403. # This is an error.
  9404. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  9405. Try \`$0 --help' for more information." >&5
  9406. echo "$as_me: error: unrecognized option: $1
  9407. Try \`$0 --help' for more information." >&2;}
  9408. { (exit 1); exit 1; }; } ;;
  9409. *) ac_config_targets="$ac_config_targets $1" ;;
  9410. esac
  9411. shift
  9412. done
  9413. ac_configure_extra_args=
  9414. if $ac_cs_silent; then
  9415. exec 6>/dev/null
  9416. ac_configure_extra_args="$ac_configure_extra_args --silent"
  9417. fi
  9418. _ACEOF
  9419. cat >>$CONFIG_STATUS <<_ACEOF
  9420. if \$ac_cs_recheck; then
  9421. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  9422. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  9423. fi
  9424. _ACEOF
  9425. cat >>$CONFIG_STATUS <<\_ACEOF
  9426. for ac_config_target in $ac_config_targets
  9427. do
  9428. case "$ac_config_target" in
  9429. # Handling of arguments.
  9430. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  9431. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  9432. "test/config" ) CONFIG_FILES="$CONFIG_FILES test/config" ;;
  9433. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  9434. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  9435. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  9436. { (exit 1); exit 1; }; };;
  9437. esac
  9438. done
  9439. # If the user did not use the arguments to specify the items to instantiate,
  9440. # then the envvar interface is used. Set only those that are not.
  9441. # We use the long form for the default assignment because of an extremely
  9442. # bizarre bug on SunOS 4.1.3.
  9443. if $ac_need_defaults; then
  9444. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  9445. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  9446. fi
  9447. # Have a temporary directory for convenience. Make it in the build tree
  9448. # simply because there is no reason to put it here, and in addition,
  9449. # creating and moving files from /tmp can sometimes cause problems.
  9450. # Create a temporary directory, and hook for its removal unless debugging.
  9451. $debug ||
  9452. {
  9453. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  9454. trap '{ (exit 1); exit 1; }' 1 2 13 15
  9455. }
  9456. # Create a (secure) tmp directory for tmp files.
  9457. {
  9458. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  9459. test -n "$tmp" && test -d "$tmp"
  9460. } ||
  9461. {
  9462. tmp=./confstat$$-$RANDOM
  9463. (umask 077 && mkdir $tmp)
  9464. } ||
  9465. {
  9466. echo "$me: cannot create a temporary directory in ." >&2
  9467. { (exit 1); exit 1; }
  9468. }
  9469. _ACEOF
  9470. cat >>$CONFIG_STATUS <<_ACEOF
  9471. #
  9472. # CONFIG_FILES section.
  9473. #
  9474. # No need to generate the scripts if there are no CONFIG_FILES.
  9475. # This happens for instance when ./config.status config.h
  9476. if test -n "\$CONFIG_FILES"; then
  9477. # Protect against being on the right side of a sed subst in config.status.
  9478. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  9479. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  9480. s,@SHELL@,$SHELL,;t t
  9481. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  9482. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  9483. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  9484. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  9485. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  9486. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  9487. s,@exec_prefix@,$exec_prefix,;t t
  9488. s,@prefix@,$prefix,;t t
  9489. s,@program_transform_name@,$program_transform_name,;t t
  9490. s,@bindir@,$bindir,;t t
  9491. s,@sbindir@,$sbindir,;t t
  9492. s,@libexecdir@,$libexecdir,;t t
  9493. s,@datadir@,$datadir,;t t
  9494. s,@sysconfdir@,$sysconfdir,;t t
  9495. s,@sharedstatedir@,$sharedstatedir,;t t
  9496. s,@localstatedir@,$localstatedir,;t t
  9497. s,@libdir@,$libdir,;t t
  9498. s,@includedir@,$includedir,;t t
  9499. s,@oldincludedir@,$oldincludedir,;t t
  9500. s,@infodir@,$infodir,;t t
  9501. s,@mandir@,$mandir,;t t
  9502. s,@build_alias@,$build_alias,;t t
  9503. s,@host_alias@,$host_alias,;t t
  9504. s,@target_alias@,$target_alias,;t t
  9505. s,@DEFS@,$DEFS,;t t
  9506. s,@ECHO_C@,$ECHO_C,;t t
  9507. s,@ECHO_N@,$ECHO_N,;t t
  9508. s,@ECHO_T@,$ECHO_T,;t t
  9509. s,@LIBS@,$LIBS,;t t
  9510. s,@TCPREPLAY_VERSION@,$TCPREPLAY_VERSION,;t t
  9511. s,@TCPREPLAY_RELEASE@,$TCPREPLAY_RELEASE,;t t
  9512. s,@build@,$build,;t t
  9513. s,@build_cpu@,$build_cpu,;t t
  9514. s,@build_vendor@,$build_vendor,;t t
  9515. s,@build_os@,$build_os,;t t
  9516. s,@host@,$host,;t t
  9517. s,@host_cpu@,$host_cpu,;t t
  9518. s,@host_vendor@,$host_vendor,;t t
  9519. s,@host_os@,$host_os,;t t
  9520. s,@target@,$target,;t t
  9521. s,@target_cpu@,$target_cpu,;t t
  9522. s,@target_vendor@,$target_vendor,;t t
  9523. s,@target_os@,$target_os,;t t
  9524. s,@CC@,$CC,;t t
  9525. s,@CFLAGS@,$CFLAGS,;t t
  9526. s,@LDFLAGS@,$LDFLAGS,;t t
  9527. s,@CPPFLAGS@,$CPPFLAGS,;t t
  9528. s,@ac_ct_CC@,$ac_ct_CC,;t t
  9529. s,@EXEEXT@,$EXEEXT,;t t
  9530. s,@OBJEXT@,$OBJEXT,;t t
  9531. s,@CXX@,$CXX,;t t
  9532. s,@CXXFLAGS@,$CXXFLAGS,;t t
  9533. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  9534. s,@CPP@,$CPP,;t t
  9535. s,@LN_S@,$LN_S,;t t
  9536. s,@RANLIB@,$RANLIB,;t t
  9537. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  9538. s,@AWK@,$AWK,;t t
  9539. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  9540. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  9541. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  9542. s,@SET_MAKE@,$SET_MAKE,;t t
  9543. s,@PRINTF@,$PRINTF,;t t
  9544. s,@EGREP@,$EGREP,;t t
  9545. s,@debug_flag@,$debug_flag,;t t
  9546. s,@LIBOBJS@,$LIBOBJS,;t t
  9547. s,@LNETINC@,$LNETINC,;t t
  9548. s,@LNETLIB@,$LNETLIB,;t t
  9549. s,@LPCAPINC@,$LPCAPINC,;t t
  9550. s,@LPCAPLIB@,$LPCAPLIB,;t t
  9551. s,@pcncfg@,$pcncfg,;t t
  9552. s,@LNAVLIB@,$LNAVLIB,;t t
  9553. s,@LNAV_CFLAGS@,$LNAV_CFLAGS,;t t
  9554. s,@td@,$td,;t t
  9555. s,@nic1@,$nic1,;t t
  9556. s,@nic2@,$nic2,;t t
  9557. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  9558. CEOF
  9559. _ACEOF
  9560. cat >>$CONFIG_STATUS <<\_ACEOF
  9561. # Split the substitutions into bite-sized pieces for seds with
  9562. # small command number limits, like on Digital OSF/1 and HP-UX.
  9563. ac_max_sed_lines=48
  9564. ac_sed_frag=1 # Number of current file.
  9565. ac_beg=1 # First line for current file.
  9566. ac_end=$ac_max_sed_lines # Line after last line for current file.
  9567. ac_more_lines=:
  9568. ac_sed_cmds=
  9569. while $ac_more_lines; do
  9570. if test $ac_beg -gt 1; then
  9571. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9572. else
  9573. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  9574. fi
  9575. if test ! -s $tmp/subs.frag; then
  9576. ac_more_lines=false
  9577. else
  9578. # The purpose of the label and of the branching condition is to
  9579. # speed up the sed processing (if there are no `@' at all, there
  9580. # is no need to browse any of the substitutions).
  9581. # These are the two extra sed commands mentioned above.
  9582. (echo ':t
  9583. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  9584. if test -z "$ac_sed_cmds"; then
  9585. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  9586. else
  9587. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  9588. fi
  9589. ac_sed_frag=`expr $ac_sed_frag + 1`
  9590. ac_beg=$ac_end
  9591. ac_end=`expr $ac_end + $ac_max_sed_lines`
  9592. fi
  9593. done
  9594. if test -z "$ac_sed_cmds"; then
  9595. ac_sed_cmds=cat
  9596. fi
  9597. fi # test -n "$CONFIG_FILES"
  9598. _ACEOF
  9599. cat >>$CONFIG_STATUS <<\_ACEOF
  9600. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  9601. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9602. case $ac_file in
  9603. - | *:- | *:-:* ) # input from stdin
  9604. cat >$tmp/stdin
  9605. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9606. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9607. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9608. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9609. * ) ac_file_in=$ac_file.in ;;
  9610. esac
  9611. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  9612. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9613. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9614. X"$ac_file" : 'X\(//\)[^/]' \| \
  9615. X"$ac_file" : 'X\(//\)$' \| \
  9616. X"$ac_file" : 'X\(/\)' \| \
  9617. . : '\(.\)' 2>/dev/null ||
  9618. echo X"$ac_file" |
  9619. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9620. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9621. /^X\(\/\/\)$/{ s//\1/; q; }
  9622. /^X\(\/\).*/{ s//\1/; q; }
  9623. s/.*/./; q'`
  9624. { if $as_mkdir_p; then
  9625. mkdir -p "$ac_dir"
  9626. else
  9627. as_dir="$ac_dir"
  9628. as_dirs=
  9629. while test ! -d "$as_dir"; do
  9630. as_dirs="$as_dir $as_dirs"
  9631. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9632. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9633. X"$as_dir" : 'X\(//\)[^/]' \| \
  9634. X"$as_dir" : 'X\(//\)$' \| \
  9635. X"$as_dir" : 'X\(/\)' \| \
  9636. . : '\(.\)' 2>/dev/null ||
  9637. echo X"$as_dir" |
  9638. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9639. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9640. /^X\(\/\/\)$/{ s//\1/; q; }
  9641. /^X\(\/\).*/{ s//\1/; q; }
  9642. s/.*/./; q'`
  9643. done
  9644. test ! -n "$as_dirs" || mkdir $as_dirs
  9645. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9646. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9647. { (exit 1); exit 1; }; }; }
  9648. ac_builddir=.
  9649. if test "$ac_dir" != .; then
  9650. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  9651. # A "../" for each directory in $ac_dir_suffix.
  9652. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  9653. else
  9654. ac_dir_suffix= ac_top_builddir=
  9655. fi
  9656. case $srcdir in
  9657. .) # No --srcdir option. We are building in place.
  9658. ac_srcdir=.
  9659. if test -z "$ac_top_builddir"; then
  9660. ac_top_srcdir=.
  9661. else
  9662. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  9663. fi ;;
  9664. [\\/]* | ?:[\\/]* ) # Absolute path.
  9665. ac_srcdir=$srcdir$ac_dir_suffix;
  9666. ac_top_srcdir=$srcdir ;;
  9667. *) # Relative path.
  9668. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9669. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9670. esac
  9671. # Do not use `cd foo && pwd` to compute absolute paths, because
  9672. # the directories may not exist.
  9673. case `pwd` in
  9674. .) ac_abs_builddir="$ac_dir";;
  9675. *)
  9676. case "$ac_dir" in
  9677. .) ac_abs_builddir=`pwd`;;
  9678. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9679. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9680. esac;;
  9681. esac
  9682. case $ac_abs_builddir in
  9683. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  9684. *)
  9685. case ${ac_top_builddir}. in
  9686. .) ac_abs_top_builddir=$ac_abs_builddir;;
  9687. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9688. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9689. esac;;
  9690. esac
  9691. case $ac_abs_builddir in
  9692. .) ac_abs_srcdir=$ac_srcdir;;
  9693. *)
  9694. case $ac_srcdir in
  9695. .) ac_abs_srcdir=$ac_abs_builddir;;
  9696. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  9697. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  9698. esac;;
  9699. esac
  9700. case $ac_abs_builddir in
  9701. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  9702. *)
  9703. case $ac_top_srcdir in
  9704. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  9705. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  9706. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  9707. esac;;
  9708. esac
  9709. case $INSTALL in
  9710. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  9711. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  9712. esac
  9713. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9714. # use $as_me), people would be surprised to read:
  9715. # /* config.h. Generated by config.status. */
  9716. if test x"$ac_file" = x-; then
  9717. configure_input=
  9718. else
  9719. configure_input="$ac_file. "
  9720. fi
  9721. configure_input=$configure_input"Generated from `echo $ac_file_in |
  9722. sed 's,.*/,,'` by configure."
  9723. # First look for the input files in the build tree, otherwise in the
  9724. # src tree.
  9725. ac_file_inputs=`IFS=:
  9726. for f in $ac_file_in; do
  9727. case $f in
  9728. -) echo $tmp/stdin ;;
  9729. [\\/$]*)
  9730. # Absolute (can't be DOS-style, as IFS=:)
  9731. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9732. echo "$as_me: error: cannot find input file: $f" >&2;}
  9733. { (exit 1); exit 1; }; }
  9734. echo "$f";;
  9735. *) # Relative
  9736. if test -f "$f"; then
  9737. # Build tree
  9738. echo "$f"
  9739. elif test -f "$srcdir/$f"; then
  9740. # Source tree
  9741. echo "$srcdir/$f"
  9742. else
  9743. # /dev/null tree
  9744. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9745. echo "$as_me: error: cannot find input file: $f" >&2;}
  9746. { (exit 1); exit 1; }; }
  9747. fi;;
  9748. esac
  9749. done` || { (exit 1); exit 1; }
  9750. if test x"$ac_file" != x-; then
  9751. { echo "$as_me:$LINENO: creating $ac_file" >&5
  9752. echo "$as_me: creating $ac_file" >&6;}
  9753. rm -f "$ac_file"
  9754. fi
  9755. _ACEOF
  9756. cat >>$CONFIG_STATUS <<_ACEOF
  9757. sed "$ac_vpsub
  9758. $extrasub
  9759. _ACEOF
  9760. cat >>$CONFIG_STATUS <<\_ACEOF
  9761. :t
  9762. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  9763. s,@configure_input@,$configure_input,;t t
  9764. s,@srcdir@,$ac_srcdir,;t t
  9765. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  9766. s,@top_srcdir@,$ac_top_srcdir,;t t
  9767. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  9768. s,@builddir@,$ac_builddir,;t t
  9769. s,@abs_builddir@,$ac_abs_builddir,;t t
  9770. s,@top_builddir@,$ac_top_builddir,;t t
  9771. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  9772. s,@INSTALL@,$ac_INSTALL,;t t
  9773. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  9774. rm -f $tmp/stdin
  9775. if test x"$ac_file" != x-; then
  9776. mv $tmp/out $ac_file
  9777. else
  9778. cat $tmp/out
  9779. rm -f $tmp/out
  9780. fi
  9781. done
  9782. _ACEOF
  9783. cat >>$CONFIG_STATUS <<\_ACEOF
  9784. #
  9785. # CONFIG_HEADER section.
  9786. #
  9787. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  9788. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  9789. #
  9790. # ac_d sets the value in "#define NAME VALUE" lines.
  9791. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  9792. ac_dB='[ ].*$,\1#\2'
  9793. ac_dC=' '
  9794. ac_dD=',;t'
  9795. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  9796. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  9797. ac_uB='$,\1#\2define\3'
  9798. ac_uC=' '
  9799. ac_uD=',;t'
  9800. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  9801. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  9802. case $ac_file in
  9803. - | *:- | *:-:* ) # input from stdin
  9804. cat >$tmp/stdin
  9805. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9806. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9807. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  9808. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  9809. * ) ac_file_in=$ac_file.in ;;
  9810. esac
  9811. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  9812. echo "$as_me: creating $ac_file" >&6;}
  9813. # First look for the input files in the build tree, otherwise in the
  9814. # src tree.
  9815. ac_file_inputs=`IFS=:
  9816. for f in $ac_file_in; do
  9817. case $f in
  9818. -) echo $tmp/stdin ;;
  9819. [\\/$]*)
  9820. # Absolute (can't be DOS-style, as IFS=:)
  9821. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9822. echo "$as_me: error: cannot find input file: $f" >&2;}
  9823. { (exit 1); exit 1; }; }
  9824. # Do quote $f, to prevent DOS paths from being IFS'd.
  9825. echo "$f";;
  9826. *) # Relative
  9827. if test -f "$f"; then
  9828. # Build tree
  9829. echo "$f"
  9830. elif test -f "$srcdir/$f"; then
  9831. # Source tree
  9832. echo "$srcdir/$f"
  9833. else
  9834. # /dev/null tree
  9835. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  9836. echo "$as_me: error: cannot find input file: $f" >&2;}
  9837. { (exit 1); exit 1; }; }
  9838. fi;;
  9839. esac
  9840. done` || { (exit 1); exit 1; }
  9841. # Remove the trailing spaces.
  9842. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  9843. _ACEOF
  9844. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  9845. # `conftest.undefs', that substitutes the proper values into
  9846. # config.h.in to produce config.h. The first handles `#define'
  9847. # templates, and the second `#undef' templates.
  9848. # And first: Protect against being on the right side of a sed subst in
  9849. # config.status. Protect against being in an unquoted here document
  9850. # in config.status.
  9851. rm -f conftest.defines conftest.undefs
  9852. # Using a here document instead of a string reduces the quoting nightmare.
  9853. # Putting comments in sed scripts is not portable.
  9854. #
  9855. # `end' is used to avoid that the second main sed command (meant for
  9856. # 0-ary CPP macros) applies to n-ary macro definitions.
  9857. # See the Autoconf documentation for `clear'.
  9858. cat >confdef2sed.sed <<\_ACEOF
  9859. s/[\\&,]/\\&/g
  9860. s,[\\$`],\\&,g
  9861. t clear
  9862. : clear
  9863. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  9864. t end
  9865. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  9866. : end
  9867. _ACEOF
  9868. # If some macros were called several times there might be several times
  9869. # the same #defines, which is useless. Nevertheless, we may not want to
  9870. # sort them, since we want the *last* AC-DEFINE to be honored.
  9871. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  9872. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  9873. rm -f confdef2sed.sed
  9874. # This sed command replaces #undef with comments. This is necessary, for
  9875. # example, in the case of _POSIX_SOURCE, which is predefined and required
  9876. # on some systems where configure will not decide to define it.
  9877. cat >>conftest.undefs <<\_ACEOF
  9878. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  9879. _ACEOF
  9880. # Break up conftest.defines because some shells have a limit on the size
  9881. # of here documents, and old seds have small limits too (100 cmds).
  9882. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  9883. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  9884. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  9885. echo ' :' >>$CONFIG_STATUS
  9886. rm -f conftest.tail
  9887. while grep . conftest.defines >/dev/null
  9888. do
  9889. # Write a limited-size here document to $tmp/defines.sed.
  9890. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  9891. # Speed up: don't consider the non `#define' lines.
  9892. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  9893. # Work around the forget-to-reset-the-flag bug.
  9894. echo 't clr' >>$CONFIG_STATUS
  9895. echo ': clr' >>$CONFIG_STATUS
  9896. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  9897. echo 'CEOF
  9898. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  9899. rm -f $tmp/in
  9900. mv $tmp/out $tmp/in
  9901. ' >>$CONFIG_STATUS
  9902. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  9903. rm -f conftest.defines
  9904. mv conftest.tail conftest.defines
  9905. done
  9906. rm -f conftest.defines
  9907. echo ' fi # grep' >>$CONFIG_STATUS
  9908. echo >>$CONFIG_STATUS
  9909. # Break up conftest.undefs because some shells have a limit on the size
  9910. # of here documents, and old seds have small limits too (100 cmds).
  9911. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  9912. rm -f conftest.tail
  9913. while grep . conftest.undefs >/dev/null
  9914. do
  9915. # Write a limited-size here document to $tmp/undefs.sed.
  9916. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  9917. # Speed up: don't consider the non `#undef'
  9918. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  9919. # Work around the forget-to-reset-the-flag bug.
  9920. echo 't clr' >>$CONFIG_STATUS
  9921. echo ': clr' >>$CONFIG_STATUS
  9922. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  9923. echo 'CEOF
  9924. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  9925. rm -f $tmp/in
  9926. mv $tmp/out $tmp/in
  9927. ' >>$CONFIG_STATUS
  9928. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  9929. rm -f conftest.undefs
  9930. mv conftest.tail conftest.undefs
  9931. done
  9932. rm -f conftest.undefs
  9933. cat >>$CONFIG_STATUS <<\_ACEOF
  9934. # Let's still pretend it is `configure' which instantiates (i.e., don't
  9935. # use $as_me), people would be surprised to read:
  9936. # /* config.h. Generated by config.status. */
  9937. if test x"$ac_file" = x-; then
  9938. echo "/* Generated by configure. */" >$tmp/config.h
  9939. else
  9940. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  9941. fi
  9942. cat $tmp/in >>$tmp/config.h
  9943. rm -f $tmp/in
  9944. if test x"$ac_file" != x-; then
  9945. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  9946. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  9947. echo "$as_me: $ac_file is unchanged" >&6;}
  9948. else
  9949. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  9950. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9951. X"$ac_file" : 'X\(//\)[^/]' \| \
  9952. X"$ac_file" : 'X\(//\)$' \| \
  9953. X"$ac_file" : 'X\(/\)' \| \
  9954. . : '\(.\)' 2>/dev/null ||
  9955. echo X"$ac_file" |
  9956. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9957. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9958. /^X\(\/\/\)$/{ s//\1/; q; }
  9959. /^X\(\/\).*/{ s//\1/; q; }
  9960. s/.*/./; q'`
  9961. { if $as_mkdir_p; then
  9962. mkdir -p "$ac_dir"
  9963. else
  9964. as_dir="$ac_dir"
  9965. as_dirs=
  9966. while test ! -d "$as_dir"; do
  9967. as_dirs="$as_dir $as_dirs"
  9968. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  9969. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9970. X"$as_dir" : 'X\(//\)[^/]' \| \
  9971. X"$as_dir" : 'X\(//\)$' \| \
  9972. X"$as_dir" : 'X\(/\)' \| \
  9973. . : '\(.\)' 2>/dev/null ||
  9974. echo X"$as_dir" |
  9975. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9976. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9977. /^X\(\/\/\)$/{ s//\1/; q; }
  9978. /^X\(\/\).*/{ s//\1/; q; }
  9979. s/.*/./; q'`
  9980. done
  9981. test ! -n "$as_dirs" || mkdir $as_dirs
  9982. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  9983. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  9984. { (exit 1); exit 1; }; }; }
  9985. rm -f $ac_file
  9986. mv $tmp/config.h $ac_file
  9987. fi
  9988. else
  9989. cat $tmp/config.h
  9990. rm -f $tmp/config.h
  9991. fi
  9992. done
  9993. _ACEOF
  9994. cat >>$CONFIG_STATUS <<\_ACEOF
  9995. { (exit 0); exit 0; }
  9996. _ACEOF
  9997. chmod +x $CONFIG_STATUS
  9998. ac_clean_files=$ac_clean_files_save
  9999. # configure is writing to config.log, and then calls config.status.
  10000. # config.status does its own redirection, appending to config.log.
  10001. # Unfortunately, on DOS this fails, as config.log is still kept open
  10002. # by configure, so config.status won't be able to write to it; its
  10003. # output is simply discarded. So we exec the FD to /dev/null,
  10004. # effectively closing config.log, so it can be properly (re)opened and
  10005. # appended to by config.status. When coming back to configure, we
  10006. # need to make the FD available again.
  10007. if test "$no_create" != yes; then
  10008. ac_cs_success=:
  10009. ac_config_status_args=
  10010. test "$silent" = yes &&
  10011. ac_config_status_args="$ac_config_status_args --quiet"
  10012. exec 5>/dev/null
  10013. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10014. exec 5>>config.log
  10015. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10016. # would make configure fail if this is the last instruction.
  10017. $ac_cs_success || { (exit 1); exit 1; }
  10018. fi
  10019. ac_config_files="$ac_config_files tcpreplay.spec"
  10020. cat >confcache <<\_ACEOF
  10021. # This file is a shell script that caches the results of configure
  10022. # tests run on this system so they can be shared between configure
  10023. # scripts and configure runs, see configure's option --config-cache.
  10024. # It is not useful on other systems. If it contains results you don't
  10025. # want to keep, you may remove or edit it.
  10026. #
  10027. # config.status only pays attention to the cache file if you give it
  10028. # the --recheck option to rerun configure.
  10029. #
  10030. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10031. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10032. # following values.
  10033. _ACEOF
  10034. # The following way of writing the cache mishandles newlines in values,
  10035. # but we know of no workaround that is simple, portable, and efficient.
  10036. # So, don't put newlines in cache variables' values.
  10037. # Ultrix sh set writes to stderr and can't be redirected directly,
  10038. # and sets the high bit in the cache file unless we assign to the vars.
  10039. {
  10040. (set) 2>&1 |
  10041. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10042. *ac_space=\ *)
  10043. # `set' does not quote correctly, so add quotes (double-quote
  10044. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10045. sed -n \
  10046. "s/'/'\\\\''/g;
  10047. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10048. ;;
  10049. *)
  10050. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10051. sed -n \
  10052. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10053. ;;
  10054. esac;
  10055. } |
  10056. sed '
  10057. t clear
  10058. : clear
  10059. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10060. t end
  10061. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10062. : end' >>confcache
  10063. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10064. if test -w $cache_file; then
  10065. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  10066. cat confcache >$cache_file
  10067. else
  10068. echo "not updating unwritable cache $cache_file"
  10069. fi
  10070. fi
  10071. rm -f confcache
  10072. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10073. # Let make expand exec_prefix.
  10074. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10075. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10076. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10077. # trailing colons and then remove the whole line if VPATH becomes empty
  10078. # (actually we leave an empty line to preserve line numbers).
  10079. if test "x$srcdir" = x.; then
  10080. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10081. s/:*\$(srcdir):*/:/;
  10082. s/:*\${srcdir}:*/:/;
  10083. s/:*@srcdir@:*/:/;
  10084. s/^\([^=]*=[ ]*\):*/\1/;
  10085. s/:*$//;
  10086. s/^[^=]*=[ ]*$//;
  10087. }'
  10088. fi
  10089. DEFS=-DHAVE_CONFIG_H
  10090. ac_libobjs=
  10091. ac_ltlibobjs=
  10092. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10093. # 1. Remove the extension, and $U if already installed.
  10094. ac_i=`echo "$ac_i" |
  10095. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10096. # 2. Add them.
  10097. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10098. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10099. done
  10100. LIBOBJS=$ac_libobjs
  10101. LTLIBOBJS=$ac_ltlibobjs
  10102. : ${CONFIG_STATUS=./config.status}
  10103. ac_clean_files_save=$ac_clean_files
  10104. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10105. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10106. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10107. cat >$CONFIG_STATUS <<_ACEOF
  10108. #! $SHELL
  10109. # Generated by $as_me.
  10110. # Run this file to recreate the current configuration.
  10111. # Compiler output produced by configure, useful for debugging
  10112. # configure, is in config.log if it exists.
  10113. debug=false
  10114. ac_cs_recheck=false
  10115. ac_cs_silent=false
  10116. SHELL=\${CONFIG_SHELL-$SHELL}
  10117. _ACEOF
  10118. cat >>$CONFIG_STATUS <<\_ACEOF
  10119. ## --------------------- ##
  10120. ## M4sh Initialization. ##
  10121. ## --------------------- ##
  10122. # Be Bourne compatible
  10123. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10124. emulate sh
  10125. NULLCMD=:
  10126. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10127. # is contrary to our usage. Disable this feature.
  10128. alias -g '${1+"$@"}'='"$@"'
  10129. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10130. set -o posix
  10131. fi
  10132. DUALCASE=1; export DUALCASE # for MKS sh
  10133. # Support unset when possible.
  10134. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10135. as_unset=unset
  10136. else
  10137. as_unset=false
  10138. fi
  10139. # Work around bugs in pre-3.0 UWIN ksh.
  10140. $as_unset ENV MAIL MAILPATH
  10141. PS1='$ '
  10142. PS2='> '
  10143. PS4='+ '
  10144. # NLS nuisances.
  10145. for as_var in \
  10146. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10147. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10148. LC_TELEPHONE LC_TIME
  10149. do
  10150. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10151. eval $as_var=C; export $as_var
  10152. else
  10153. $as_unset $as_var
  10154. fi
  10155. done
  10156. # Required to use basename.
  10157. if expr a : '\(a\)' >/dev/null 2>&1; then
  10158. as_expr=expr
  10159. else
  10160. as_expr=false
  10161. fi
  10162. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10163. as_basename=basename
  10164. else
  10165. as_basename=false
  10166. fi
  10167. # Name of the executable.
  10168. as_me=`$as_basename "$0" ||
  10169. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10170. X"$0" : 'X\(//\)$' \| \
  10171. X"$0" : 'X\(/\)$' \| \
  10172. . : '\(.\)' 2>/dev/null ||
  10173. echo X/"$0" |
  10174. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10175. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10176. /^X\/\(\/\).*/{ s//\1/; q; }
  10177. s/.*/./; q'`
  10178. # PATH needs CR, and LINENO needs CR and PATH.
  10179. # Avoid depending upon Character Ranges.
  10180. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10181. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10182. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10183. as_cr_digits='0123456789'
  10184. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10185. # The user is always right.
  10186. if test "${PATH_SEPARATOR+set}" != set; then
  10187. echo "#! /bin/sh" >conf$$.sh
  10188. echo "exit 0" >>conf$$.sh
  10189. chmod +x conf$$.sh
  10190. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10191. PATH_SEPARATOR=';'
  10192. else
  10193. PATH_SEPARATOR=:
  10194. fi
  10195. rm -f conf$$.sh
  10196. fi
  10197. as_lineno_1=$LINENO
  10198. as_lineno_2=$LINENO
  10199. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10200. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10201. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10202. # Find who we are. Look in the path if we contain no path at all
  10203. # relative or not.
  10204. case $0 in
  10205. *[\\/]* ) as_myself=$0 ;;
  10206. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10207. for as_dir in $PATH
  10208. do
  10209. IFS=$as_save_IFS
  10210. test -z "$as_dir" && as_dir=.
  10211. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10212. done
  10213. ;;
  10214. esac
  10215. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10216. # in which case we are not to be found in the path.
  10217. if test "x$as_myself" = x; then
  10218. as_myself=$0
  10219. fi
  10220. if test ! -f "$as_myself"; then
  10221. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10222. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10223. { (exit 1); exit 1; }; }
  10224. fi
  10225. case $CONFIG_SHELL in
  10226. '')
  10227. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10228. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10229. do
  10230. IFS=$as_save_IFS
  10231. test -z "$as_dir" && as_dir=.
  10232. for as_base in sh bash ksh sh5; do
  10233. case $as_dir in
  10234. /*)
  10235. if ("$as_dir/$as_base" -c '
  10236. as_lineno_1=$LINENO
  10237. as_lineno_2=$LINENO
  10238. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10239. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10240. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10241. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10242. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10243. CONFIG_SHELL=$as_dir/$as_base
  10244. export CONFIG_SHELL
  10245. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10246. fi;;
  10247. esac
  10248. done
  10249. done
  10250. ;;
  10251. esac
  10252. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10253. # uniformly replaced by the line number. The first 'sed' inserts a
  10254. # line-number line before each line; the second 'sed' does the real
  10255. # work. The second script uses 'N' to pair each line-number line
  10256. # with the numbered line, and appends trailing '-' during
  10257. # substitution so that $LINENO is not a special case at line end.
  10258. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10259. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10260. sed '=' <$as_myself |
  10261. sed '
  10262. N
  10263. s,$,-,
  10264. : loop
  10265. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10266. t loop
  10267. s,-$,,
  10268. s,^['$as_cr_digits']*\n,,
  10269. ' >$as_me.lineno &&
  10270. chmod +x $as_me.lineno ||
  10271. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10272. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10273. { (exit 1); exit 1; }; }
  10274. # Don't try to exec as it changes $[0], causing all sort of problems
  10275. # (the dirname of $[0] is not the place where we might find the
  10276. # original and so on. Autoconf is especially sensible to this).
  10277. . ./$as_me.lineno
  10278. # Exit status is that of the last command.
  10279. exit
  10280. }
  10281. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10282. *c*,-n*) ECHO_N= ECHO_C='
  10283. ' ECHO_T=' ' ;;
  10284. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10285. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10286. esac
  10287. if expr a : '\(a\)' >/dev/null 2>&1; then
  10288. as_expr=expr
  10289. else
  10290. as_expr=false
  10291. fi
  10292. rm -f conf$$ conf$$.exe conf$$.file
  10293. echo >conf$$.file
  10294. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10295. # We could just check for DJGPP; but this test a) works b) is more generic
  10296. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10297. if test -f conf$$.exe; then
  10298. # Don't use ln at all; we don't have any links
  10299. as_ln_s='cp -p'
  10300. else
  10301. as_ln_s='ln -s'
  10302. fi
  10303. elif ln conf$$.file conf$$ 2>/dev/null; then
  10304. as_ln_s=ln
  10305. else
  10306. as_ln_s='cp -p'
  10307. fi
  10308. rm -f conf$$ conf$$.exe conf$$.file
  10309. if mkdir -p . 2>/dev/null; then
  10310. as_mkdir_p=:
  10311. else
  10312. test -d ./-p && rmdir ./-p
  10313. as_mkdir_p=false
  10314. fi
  10315. as_executable_p="test -f"
  10316. # Sed expression to map a string onto a valid CPP name.
  10317. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10318. # Sed expression to map a string onto a valid variable name.
  10319. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10320. # IFS
  10321. # We need space, tab and new line, in precisely that order.
  10322. as_nl='
  10323. '
  10324. IFS=" $as_nl"
  10325. # CDPATH.
  10326. $as_unset CDPATH
  10327. exec 6>&1
  10328. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10329. # report actual input values of CONFIG_FILES etc. instead of their
  10330. # values after options handling. Logging --version etc. is OK.
  10331. exec 5>>config.log
  10332. {
  10333. echo
  10334. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10335. ## Running $as_me. ##
  10336. _ASBOX
  10337. } >&5
  10338. cat >&5 <<_CSEOF
  10339. This file was extended by $as_me, which was
  10340. generated by GNU Autoconf 2.59. Invocation command line was
  10341. CONFIG_FILES = $CONFIG_FILES
  10342. CONFIG_HEADERS = $CONFIG_HEADERS
  10343. CONFIG_LINKS = $CONFIG_LINKS
  10344. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10345. $ $0 $@
  10346. _CSEOF
  10347. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10348. echo >&5
  10349. _ACEOF
  10350. # Files that config.status was made for.
  10351. if test -n "$ac_config_files"; then
  10352. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10353. fi
  10354. if test -n "$ac_config_headers"; then
  10355. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10356. fi
  10357. if test -n "$ac_config_links"; then
  10358. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10359. fi
  10360. if test -n "$ac_config_commands"; then
  10361. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10362. fi
  10363. cat >>$CONFIG_STATUS <<\_ACEOF
  10364. ac_cs_usage="\
  10365. \`$as_me' instantiates files from templates according to the
  10366. current configuration.
  10367. Usage: $0 [OPTIONS] [FILE]...
  10368. -h, --help print this help, then exit
  10369. -V, --version print version number, then exit
  10370. -q, --quiet do not print progress messages
  10371. -d, --debug don't remove temporary files
  10372. --recheck update $as_me by reconfiguring in the same conditions
  10373. --file=FILE[:TEMPLATE]
  10374. instantiate the configuration file FILE
  10375. --header=FILE[:TEMPLATE]
  10376. instantiate the configuration header FILE
  10377. Configuration files:
  10378. $config_files
  10379. Configuration headers:
  10380. $config_headers
  10381. Report bugs to <bug-autoconf@gnu.org>."
  10382. _ACEOF
  10383. cat >>$CONFIG_STATUS <<_ACEOF
  10384. ac_cs_version="\\
  10385. config.status
  10386. configured by $0, generated by GNU Autoconf 2.59,
  10387. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10388. Copyright (C) 2003 Free Software Foundation, Inc.
  10389. This config.status script is free software; the Free Software Foundation
  10390. gives unlimited permission to copy, distribute and modify it."
  10391. srcdir=$srcdir
  10392. INSTALL="$INSTALL"
  10393. _ACEOF
  10394. cat >>$CONFIG_STATUS <<\_ACEOF
  10395. # If no file are specified by the user, then we need to provide default
  10396. # value. By we need to know if files were specified by the user.
  10397. ac_need_defaults=:
  10398. while test $# != 0
  10399. do
  10400. case $1 in
  10401. --*=*)
  10402. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10403. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10404. ac_shift=:
  10405. ;;
  10406. -*)
  10407. ac_option=$1
  10408. ac_optarg=$2
  10409. ac_shift=shift
  10410. ;;
  10411. *) # This is not an option, so the user has probably given explicit
  10412. # arguments.
  10413. ac_option=$1
  10414. ac_need_defaults=false;;
  10415. esac
  10416. case $ac_option in
  10417. # Handling of the options.
  10418. _ACEOF
  10419. cat >>$CONFIG_STATUS <<\_ACEOF
  10420. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10421. ac_cs_recheck=: ;;
  10422. --version | --vers* | -V )
  10423. echo "$ac_cs_version"; exit 0 ;;
  10424. --he | --h)
  10425. # Conflict between --help and --header
  10426. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10427. Try \`$0 --help' for more information." >&5
  10428. echo "$as_me: error: ambiguous option: $1
  10429. Try \`$0 --help' for more information." >&2;}
  10430. { (exit 1); exit 1; }; };;
  10431. --help | --hel | -h )
  10432. echo "$ac_cs_usage"; exit 0 ;;
  10433. --debug | --d* | -d )
  10434. debug=: ;;
  10435. --file | --fil | --fi | --f )
  10436. $ac_shift
  10437. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10438. ac_need_defaults=false;;
  10439. --header | --heade | --head | --hea )
  10440. $ac_shift
  10441. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10442. ac_need_defaults=false;;
  10443. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10444. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10445. ac_cs_silent=: ;;
  10446. # This is an error.
  10447. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10448. Try \`$0 --help' for more information." >&5
  10449. echo "$as_me: error: unrecognized option: $1
  10450. Try \`$0 --help' for more information." >&2;}
  10451. { (exit 1); exit 1; }; } ;;
  10452. *) ac_config_targets="$ac_config_targets $1" ;;
  10453. esac
  10454. shift
  10455. done
  10456. ac_configure_extra_args=
  10457. if $ac_cs_silent; then
  10458. exec 6>/dev/null
  10459. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10460. fi
  10461. _ACEOF
  10462. cat >>$CONFIG_STATUS <<_ACEOF
  10463. if \$ac_cs_recheck; then
  10464. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10465. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10466. fi
  10467. _ACEOF
  10468. cat >>$CONFIG_STATUS <<\_ACEOF
  10469. for ac_config_target in $ac_config_targets
  10470. do
  10471. case "$ac_config_target" in
  10472. # Handling of arguments.
  10473. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10474. "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
  10475. "test/config" ) CONFIG_FILES="$CONFIG_FILES test/config" ;;
  10476. "tcpreplay.spec" ) CONFIG_FILES="$CONFIG_FILES tcpreplay.spec" ;;
  10477. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10478. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10479. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10480. { (exit 1); exit 1; }; };;
  10481. esac
  10482. done
  10483. # If the user did not use the arguments to specify the items to instantiate,
  10484. # then the envvar interface is used. Set only those that are not.
  10485. # We use the long form for the default assignment because of an extremely
  10486. # bizarre bug on SunOS 4.1.3.
  10487. if $ac_need_defaults; then
  10488. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10489. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10490. fi
  10491. # Have a temporary directory for convenience. Make it in the build tree
  10492. # simply because there is no reason to put it here, and in addition,
  10493. # creating and moving files from /tmp can sometimes cause problems.
  10494. # Create a temporary directory, and hook for its removal unless debugging.
  10495. $debug ||
  10496. {
  10497. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10498. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10499. }
  10500. # Create a (secure) tmp directory for tmp files.
  10501. {
  10502. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10503. test -n "$tmp" && test -d "$tmp"
  10504. } ||
  10505. {
  10506. tmp=./confstat$$-$RANDOM
  10507. (umask 077 && mkdir $tmp)
  10508. } ||
  10509. {
  10510. echo "$me: cannot create a temporary directory in ." >&2
  10511. { (exit 1); exit 1; }
  10512. }
  10513. _ACEOF
  10514. cat >>$CONFIG_STATUS <<_ACEOF
  10515. #
  10516. # CONFIG_FILES section.
  10517. #
  10518. # No need to generate the scripts if there are no CONFIG_FILES.
  10519. # This happens for instance when ./config.status config.h
  10520. if test -n "\$CONFIG_FILES"; then
  10521. # Protect against being on the right side of a sed subst in config.status.
  10522. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10523. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10524. s,@SHELL@,$SHELL,;t t
  10525. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10526. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10527. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10528. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10529. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10530. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10531. s,@exec_prefix@,$exec_prefix,;t t
  10532. s,@prefix@,$prefix,;t t
  10533. s,@program_transform_name@,$program_transform_name,;t t
  10534. s,@bindir@,$bindir,;t t
  10535. s,@sbindir@,$sbindir,;t t
  10536. s,@libexecdir@,$libexecdir,;t t
  10537. s,@datadir@,$datadir,;t t
  10538. s,@sysconfdir@,$sysconfdir,;t t
  10539. s,@sharedstatedir@,$sharedstatedir,;t t
  10540. s,@localstatedir@,$localstatedir,;t t
  10541. s,@libdir@,$libdir,;t t
  10542. s,@includedir@,$includedir,;t t
  10543. s,@oldincludedir@,$oldincludedir,;t t
  10544. s,@infodir@,$infodir,;t t
  10545. s,@mandir@,$mandir,;t t
  10546. s,@build_alias@,$build_alias,;t t
  10547. s,@host_alias@,$host_alias,;t t
  10548. s,@target_alias@,$target_alias,;t t
  10549. s,@DEFS@,$DEFS,;t t
  10550. s,@ECHO_C@,$ECHO_C,;t t
  10551. s,@ECHO_N@,$ECHO_N,;t t
  10552. s,@ECHO_T@,$ECHO_T,;t t
  10553. s,@LIBS@,$LIBS,;t t
  10554. s,@TCPREPLAY_VERSION@,$TCPREPLAY_VERSION,;t t
  10555. s,@TCPREPLAY_RELEASE@,$TCPREPLAY_RELEASE,;t t
  10556. s,@build@,$build,;t t
  10557. s,@build_cpu@,$build_cpu,;t t
  10558. s,@build_vendor@,$build_vendor,;t t
  10559. s,@build_os@,$build_os,;t t
  10560. s,@host@,$host,;t t
  10561. s,@host_cpu@,$host_cpu,;t t
  10562. s,@host_vendor@,$host_vendor,;t t
  10563. s,@host_os@,$host_os,;t t
  10564. s,@target@,$target,;t t
  10565. s,@target_cpu@,$target_cpu,;t t
  10566. s,@target_vendor@,$target_vendor,;t t
  10567. s,@target_os@,$target_os,;t t
  10568. s,@CC@,$CC,;t t
  10569. s,@CFLAGS@,$CFLAGS,;t t
  10570. s,@LDFLAGS@,$LDFLAGS,;t t
  10571. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10572. s,@ac_ct_CC@,$ac_ct_CC,;t t
  10573. s,@EXEEXT@,$EXEEXT,;t t
  10574. s,@OBJEXT@,$OBJEXT,;t t
  10575. s,@CXX@,$CXX,;t t
  10576. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10577. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10578. s,@CPP@,$CPP,;t t
  10579. s,@LN_S@,$LN_S,;t t
  10580. s,@RANLIB@,$RANLIB,;t t
  10581. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  10582. s,@AWK@,$AWK,;t t
  10583. s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  10584. s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  10585. s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  10586. s,@SET_MAKE@,$SET_MAKE,;t t
  10587. s,@PRINTF@,$PRINTF,;t t
  10588. s,@EGREP@,$EGREP,;t t
  10589. s,@debug_flag@,$debug_flag,;t t
  10590. s,@LIBOBJS@,$LIBOBJS,;t t
  10591. s,@LNETINC@,$LNETINC,;t t
  10592. s,@LNETLIB@,$LNETLIB,;t t
  10593. s,@LPCAPINC@,$LPCAPINC,;t t
  10594. s,@LPCAPLIB@,$LPCAPLIB,;t t
  10595. s,@pcncfg@,$pcncfg,;t t
  10596. s,@LNAVLIB@,$LNAVLIB,;t t
  10597. s,@LNAV_CFLAGS@,$LNAV_CFLAGS,;t t
  10598. s,@td@,$td,;t t
  10599. s,@nic1@,$nic1,;t t
  10600. s,@nic2@,$nic2,;t t
  10601. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10602. CEOF
  10603. _ACEOF
  10604. cat >>$CONFIG_STATUS <<\_ACEOF
  10605. # Split the substitutions into bite-sized pieces for seds with
  10606. # small command number limits, like on Digital OSF/1 and HP-UX.
  10607. ac_max_sed_lines=48
  10608. ac_sed_frag=1 # Number of current file.
  10609. ac_beg=1 # First line for current file.
  10610. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10611. ac_more_lines=:
  10612. ac_sed_cmds=
  10613. while $ac_more_lines; do
  10614. if test $ac_beg -gt 1; then
  10615. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10616. else
  10617. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10618. fi
  10619. if test ! -s $tmp/subs.frag; then
  10620. ac_more_lines=false
  10621. else
  10622. # The purpose of the label and of the branching condition is to
  10623. # speed up the sed processing (if there are no `@' at all, there
  10624. # is no need to browse any of the substitutions).
  10625. # These are the two extra sed commands mentioned above.
  10626. (echo ':t
  10627. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10628. if test -z "$ac_sed_cmds"; then
  10629. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10630. else
  10631. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10632. fi
  10633. ac_sed_frag=`expr $ac_sed_frag + 1`
  10634. ac_beg=$ac_end
  10635. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10636. fi
  10637. done
  10638. if test -z "$ac_sed_cmds"; then
  10639. ac_sed_cmds=cat
  10640. fi
  10641. fi # test -n "$CONFIG_FILES"
  10642. _ACEOF
  10643. cat >>$CONFIG_STATUS <<\_ACEOF
  10644. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10645. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10646. case $ac_file in
  10647. - | *:- | *:-:* ) # input from stdin
  10648. cat >$tmp/stdin
  10649. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10650. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10651. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10652. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10653. * ) ac_file_in=$ac_file.in ;;
  10654. esac
  10655. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10656. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10657. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10658. X"$ac_file" : 'X\(//\)[^/]' \| \
  10659. X"$ac_file" : 'X\(//\)$' \| \
  10660. X"$ac_file" : 'X\(/\)' \| \
  10661. . : '\(.\)' 2>/dev/null ||
  10662. echo X"$ac_file" |
  10663. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10664. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10665. /^X\(\/\/\)$/{ s//\1/; q; }
  10666. /^X\(\/\).*/{ s//\1/; q; }
  10667. s/.*/./; q'`
  10668. { if $as_mkdir_p; then
  10669. mkdir -p "$ac_dir"
  10670. else
  10671. as_dir="$ac_dir"
  10672. as_dirs=
  10673. while test ! -d "$as_dir"; do
  10674. as_dirs="$as_dir $as_dirs"
  10675. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10676. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10677. X"$as_dir" : 'X\(//\)[^/]' \| \
  10678. X"$as_dir" : 'X\(//\)$' \| \
  10679. X"$as_dir" : 'X\(/\)' \| \
  10680. . : '\(.\)' 2>/dev/null ||
  10681. echo X"$as_dir" |
  10682. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10683. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10684. /^X\(\/\/\)$/{ s//\1/; q; }
  10685. /^X\(\/\).*/{ s//\1/; q; }
  10686. s/.*/./; q'`
  10687. done
  10688. test ! -n "$as_dirs" || mkdir $as_dirs
  10689. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10690. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10691. { (exit 1); exit 1; }; }; }
  10692. ac_builddir=.
  10693. if test "$ac_dir" != .; then
  10694. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10695. # A "../" for each directory in $ac_dir_suffix.
  10696. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10697. else
  10698. ac_dir_suffix= ac_top_builddir=
  10699. fi
  10700. case $srcdir in
  10701. .) # No --srcdir option. We are building in place.
  10702. ac_srcdir=.
  10703. if test -z "$ac_top_builddir"; then
  10704. ac_top_srcdir=.
  10705. else
  10706. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10707. fi ;;
  10708. [\\/]* | ?:[\\/]* ) # Absolute path.
  10709. ac_srcdir=$srcdir$ac_dir_suffix;
  10710. ac_top_srcdir=$srcdir ;;
  10711. *) # Relative path.
  10712. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10713. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10714. esac
  10715. # Do not use `cd foo && pwd` to compute absolute paths, because
  10716. # the directories may not exist.
  10717. case `pwd` in
  10718. .) ac_abs_builddir="$ac_dir";;
  10719. *)
  10720. case "$ac_dir" in
  10721. .) ac_abs_builddir=`pwd`;;
  10722. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10723. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10724. esac;;
  10725. esac
  10726. case $ac_abs_builddir in
  10727. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  10728. *)
  10729. case ${ac_top_builddir}. in
  10730. .) ac_abs_top_builddir=$ac_abs_builddir;;
  10731. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10732. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10733. esac;;
  10734. esac
  10735. case $ac_abs_builddir in
  10736. .) ac_abs_srcdir=$ac_srcdir;;
  10737. *)
  10738. case $ac_srcdir in
  10739. .) ac_abs_srcdir=$ac_abs_builddir;;
  10740. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10741. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10742. esac;;
  10743. esac
  10744. case $ac_abs_builddir in
  10745. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10746. *)
  10747. case $ac_top_srcdir in
  10748. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10749. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10750. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10751. esac;;
  10752. esac
  10753. case $INSTALL in
  10754. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10755. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  10756. esac
  10757. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10758. # use $as_me), people would be surprised to read:
  10759. # /* config.h. Generated by config.status. */
  10760. if test x"$ac_file" = x-; then
  10761. configure_input=
  10762. else
  10763. configure_input="$ac_file. "
  10764. fi
  10765. configure_input=$configure_input"Generated from `echo $ac_file_in |
  10766. sed 's,.*/,,'` by configure."
  10767. # First look for the input files in the build tree, otherwise in the
  10768. # src tree.
  10769. ac_file_inputs=`IFS=:
  10770. for f in $ac_file_in; do
  10771. case $f in
  10772. -) echo $tmp/stdin ;;
  10773. [\\/$]*)
  10774. # Absolute (can't be DOS-style, as IFS=:)
  10775. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10776. echo "$as_me: error: cannot find input file: $f" >&2;}
  10777. { (exit 1); exit 1; }; }
  10778. echo "$f";;
  10779. *) # Relative
  10780. if test -f "$f"; then
  10781. # Build tree
  10782. echo "$f"
  10783. elif test -f "$srcdir/$f"; then
  10784. # Source tree
  10785. echo "$srcdir/$f"
  10786. else
  10787. # /dev/null tree
  10788. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10789. echo "$as_me: error: cannot find input file: $f" >&2;}
  10790. { (exit 1); exit 1; }; }
  10791. fi;;
  10792. esac
  10793. done` || { (exit 1); exit 1; }
  10794. if test x"$ac_file" != x-; then
  10795. { echo "$as_me:$LINENO: creating $ac_file" >&5
  10796. echo "$as_me: creating $ac_file" >&6;}
  10797. rm -f "$ac_file"
  10798. fi
  10799. _ACEOF
  10800. cat >>$CONFIG_STATUS <<_ACEOF
  10801. sed "$ac_vpsub
  10802. $extrasub
  10803. _ACEOF
  10804. cat >>$CONFIG_STATUS <<\_ACEOF
  10805. :t
  10806. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10807. s,@configure_input@,$configure_input,;t t
  10808. s,@srcdir@,$ac_srcdir,;t t
  10809. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10810. s,@top_srcdir@,$ac_top_srcdir,;t t
  10811. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10812. s,@builddir@,$ac_builddir,;t t
  10813. s,@abs_builddir@,$ac_abs_builddir,;t t
  10814. s,@top_builddir@,$ac_top_builddir,;t t
  10815. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10816. s,@INSTALL@,$ac_INSTALL,;t t
  10817. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10818. rm -f $tmp/stdin
  10819. if test x"$ac_file" != x-; then
  10820. mv $tmp/out $ac_file
  10821. else
  10822. cat $tmp/out
  10823. rm -f $tmp/out
  10824. fi
  10825. done
  10826. _ACEOF
  10827. cat >>$CONFIG_STATUS <<\_ACEOF
  10828. #
  10829. # CONFIG_HEADER section.
  10830. #
  10831. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  10832. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  10833. #
  10834. # ac_d sets the value in "#define NAME VALUE" lines.
  10835. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  10836. ac_dB='[ ].*$,\1#\2'
  10837. ac_dC=' '
  10838. ac_dD=',;t'
  10839. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  10840. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  10841. ac_uB='$,\1#\2define\3'
  10842. ac_uC=' '
  10843. ac_uD=',;t'
  10844. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  10845. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10846. case $ac_file in
  10847. - | *:- | *:-:* ) # input from stdin
  10848. cat >$tmp/stdin
  10849. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10850. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10851. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10852. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10853. * ) ac_file_in=$ac_file.in ;;
  10854. esac
  10855. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  10856. echo "$as_me: creating $ac_file" >&6;}
  10857. # First look for the input files in the build tree, otherwise in the
  10858. # src tree.
  10859. ac_file_inputs=`IFS=:
  10860. for f in $ac_file_in; do
  10861. case $f in
  10862. -) echo $tmp/stdin ;;
  10863. [\\/$]*)
  10864. # Absolute (can't be DOS-style, as IFS=:)
  10865. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10866. echo "$as_me: error: cannot find input file: $f" >&2;}
  10867. { (exit 1); exit 1; }; }
  10868. # Do quote $f, to prevent DOS paths from being IFS'd.
  10869. echo "$f";;
  10870. *) # Relative
  10871. if test -f "$f"; then
  10872. # Build tree
  10873. echo "$f"
  10874. elif test -f "$srcdir/$f"; then
  10875. # Source tree
  10876. echo "$srcdir/$f"
  10877. else
  10878. # /dev/null tree
  10879. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10880. echo "$as_me: error: cannot find input file: $f" >&2;}
  10881. { (exit 1); exit 1; }; }
  10882. fi;;
  10883. esac
  10884. done` || { (exit 1); exit 1; }
  10885. # Remove the trailing spaces.
  10886. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  10887. _ACEOF
  10888. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  10889. # `conftest.undefs', that substitutes the proper values into
  10890. # config.h.in to produce config.h. The first handles `#define'
  10891. # templates, and the second `#undef' templates.
  10892. # And first: Protect against being on the right side of a sed subst in
  10893. # config.status. Protect against being in an unquoted here document
  10894. # in config.status.
  10895. rm -f conftest.defines conftest.undefs
  10896. # Using a here document instead of a string reduces the quoting nightmare.
  10897. # Putting comments in sed scripts is not portable.
  10898. #
  10899. # `end' is used to avoid that the second main sed command (meant for
  10900. # 0-ary CPP macros) applies to n-ary macro definitions.
  10901. # See the Autoconf documentation for `clear'.
  10902. cat >confdef2sed.sed <<\_ACEOF
  10903. s/[\\&,]/\\&/g
  10904. s,[\\$`],\\&,g
  10905. t clear
  10906. : clear
  10907. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  10908. t end
  10909. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  10910. : end
  10911. _ACEOF
  10912. # If some macros were called several times there might be several times
  10913. # the same #defines, which is useless. Nevertheless, we may not want to
  10914. # sort them, since we want the *last* AC-DEFINE to be honored.
  10915. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  10916. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  10917. rm -f confdef2sed.sed
  10918. # This sed command replaces #undef with comments. This is necessary, for
  10919. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10920. # on some systems where configure will not decide to define it.
  10921. cat >>conftest.undefs <<\_ACEOF
  10922. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  10923. _ACEOF
  10924. # Break up conftest.defines because some shells have a limit on the size
  10925. # of here documents, and old seds have small limits too (100 cmds).
  10926. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  10927. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  10928. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  10929. echo ' :' >>$CONFIG_STATUS
  10930. rm -f conftest.tail
  10931. while grep . conftest.defines >/dev/null
  10932. do
  10933. # Write a limited-size here document to $tmp/defines.sed.
  10934. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  10935. # Speed up: don't consider the non `#define' lines.
  10936. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  10937. # Work around the forget-to-reset-the-flag bug.
  10938. echo 't clr' >>$CONFIG_STATUS
  10939. echo ': clr' >>$CONFIG_STATUS
  10940. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  10941. echo 'CEOF
  10942. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  10943. rm -f $tmp/in
  10944. mv $tmp/out $tmp/in
  10945. ' >>$CONFIG_STATUS
  10946. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  10947. rm -f conftest.defines
  10948. mv conftest.tail conftest.defines
  10949. done
  10950. rm -f conftest.defines
  10951. echo ' fi # grep' >>$CONFIG_STATUS
  10952. echo >>$CONFIG_STATUS
  10953. # Break up conftest.undefs because some shells have a limit on the size
  10954. # of here documents, and old seds have small limits too (100 cmds).
  10955. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  10956. rm -f conftest.tail
  10957. while grep . conftest.undefs >/dev/null
  10958. do
  10959. # Write a limited-size here document to $tmp/undefs.sed.
  10960. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  10961. # Speed up: don't consider the non `#undef'
  10962. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  10963. # Work around the forget-to-reset-the-flag bug.
  10964. echo 't clr' >>$CONFIG_STATUS
  10965. echo ': clr' >>$CONFIG_STATUS
  10966. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  10967. echo 'CEOF
  10968. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  10969. rm -f $tmp/in
  10970. mv $tmp/out $tmp/in
  10971. ' >>$CONFIG_STATUS
  10972. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  10973. rm -f conftest.undefs
  10974. mv conftest.tail conftest.undefs
  10975. done
  10976. rm -f conftest.undefs
  10977. cat >>$CONFIG_STATUS <<\_ACEOF
  10978. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10979. # use $as_me), people would be surprised to read:
  10980. # /* config.h. Generated by config.status. */
  10981. if test x"$ac_file" = x-; then
  10982. echo "/* Generated by configure. */" >$tmp/config.h
  10983. else
  10984. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  10985. fi
  10986. cat $tmp/in >>$tmp/config.h
  10987. rm -f $tmp/in
  10988. if test x"$ac_file" != x-; then
  10989. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  10990. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  10991. echo "$as_me: $ac_file is unchanged" >&6;}
  10992. else
  10993. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10994. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10995. X"$ac_file" : 'X\(//\)[^/]' \| \
  10996. X"$ac_file" : 'X\(//\)$' \| \
  10997. X"$ac_file" : 'X\(/\)' \| \
  10998. . : '\(.\)' 2>/dev/null ||
  10999. echo X"$ac_file" |
  11000. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11001. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11002. /^X\(\/\/\)$/{ s//\1/; q; }
  11003. /^X\(\/\).*/{ s//\1/; q; }
  11004. s/.*/./; q'`
  11005. { if $as_mkdir_p; then
  11006. mkdir -p "$ac_dir"
  11007. else
  11008. as_dir="$ac_dir"
  11009. as_dirs=
  11010. while test ! -d "$as_dir"; do
  11011. as_dirs="$as_dir $as_dirs"
  11012. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11013. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11014. X"$as_dir" : 'X\(//\)[^/]' \| \
  11015. X"$as_dir" : 'X\(//\)$' \| \
  11016. X"$as_dir" : 'X\(/\)' \| \
  11017. . : '\(.\)' 2>/dev/null ||
  11018. echo X"$as_dir" |
  11019. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11020. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11021. /^X\(\/\/\)$/{ s//\1/; q; }
  11022. /^X\(\/\).*/{ s//\1/; q; }
  11023. s/.*/./; q'`
  11024. done
  11025. test ! -n "$as_dirs" || mkdir $as_dirs
  11026. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11027. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11028. { (exit 1); exit 1; }; }; }
  11029. rm -f $ac_file
  11030. mv $tmp/config.h $ac_file
  11031. fi
  11032. else
  11033. cat $tmp/config.h
  11034. rm -f $tmp/config.h
  11035. fi
  11036. done
  11037. _ACEOF
  11038. cat >>$CONFIG_STATUS <<\_ACEOF
  11039. { (exit 0); exit 0; }
  11040. _ACEOF
  11041. chmod +x $CONFIG_STATUS
  11042. ac_clean_files=$ac_clean_files_save
  11043. # configure is writing to config.log, and then calls config.status.
  11044. # config.status does its own redirection, appending to config.log.
  11045. # Unfortunately, on DOS this fails, as config.log is still kept open
  11046. # by configure, so config.status won't be able to write to it; its
  11047. # output is simply discarded. So we exec the FD to /dev/null,
  11048. # effectively closing config.log, so it can be properly (re)opened and
  11049. # appended to by config.status. When coming back to configure, we
  11050. # need to make the FD available again.
  11051. if test "$no_create" != yes; then
  11052. ac_cs_success=:
  11053. ac_config_status_args=
  11054. test "$silent" = yes &&
  11055. ac_config_status_args="$ac_config_status_args --quiet"
  11056. exec 5>/dev/null
  11057. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11058. exec 5>>config.log
  11059. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11060. # would make configure fail if this is the last instruction.
  11061. $ac_cs_success || { (exit 1); exit 1; }
  11062. fi