configure 237 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027
  1. #! /bin/sh
  2. # From configure.in Revision: 1.13 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.57.
  5. #
  6. # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  7. # Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. ## --------------------- ##
  11. ## M4sh Initialization. ##
  12. ## --------------------- ##
  13. # Be Bourne compatible
  14. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15. emulate sh
  16. NULLCMD=:
  17. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  18. # is contrary to our usage. Disable this feature.
  19. alias -g '${1+"$@"}'='"$@"'
  20. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  21. set -o posix
  22. fi
  23. # Support unset when possible.
  24. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  25. as_unset=unset
  26. else
  27. as_unset=false
  28. fi
  29. # Work around bugs in pre-3.0 UWIN ksh.
  30. $as_unset ENV MAIL MAILPATH
  31. PS1='$ '
  32. PS2='> '
  33. PS4='+ '
  34. # NLS nuisances.
  35. for as_var in \
  36. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  37. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  38. LC_TELEPHONE LC_TIME
  39. do
  40. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  41. eval $as_var=C; export $as_var
  42. else
  43. $as_unset $as_var
  44. fi
  45. done
  46. # Required to use basename.
  47. if expr a : '\(a\)' >/dev/null 2>&1; then
  48. as_expr=expr
  49. else
  50. as_expr=false
  51. fi
  52. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  53. as_basename=basename
  54. else
  55. as_basename=false
  56. fi
  57. # Name of the executable.
  58. as_me=`$as_basename "$0" ||
  59. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  60. X"$0" : 'X\(//\)$' \| \
  61. X"$0" : 'X\(/\)$' \| \
  62. . : '\(.\)' 2>/dev/null ||
  63. echo X/"$0" |
  64. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  65. /^X\/\(\/\/\)$/{ s//\1/; q; }
  66. /^X\/\(\/\).*/{ s//\1/; q; }
  67. s/.*/./; q'`
  68. # PATH needs CR, and LINENO needs CR and PATH.
  69. # Avoid depending upon Character Ranges.
  70. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  71. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  72. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  73. as_cr_digits='0123456789'
  74. as_cr_alnum=$as_cr_Letters$as_cr_digits
  75. # The user is always right.
  76. if test "${PATH_SEPARATOR+set}" != set; then
  77. echo "#! /bin/sh" >conf$$.sh
  78. echo "exit 0" >>conf$$.sh
  79. chmod +x conf$$.sh
  80. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  81. PATH_SEPARATOR=';'
  82. else
  83. PATH_SEPARATOR=:
  84. fi
  85. rm -f conf$$.sh
  86. fi
  87. as_lineno_1=$LINENO
  88. as_lineno_2=$LINENO
  89. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  90. test "x$as_lineno_1" != "x$as_lineno_2" &&
  91. test "x$as_lineno_3" = "x$as_lineno_2" || {
  92. # Find who we are. Look in the path if we contain no path at all
  93. # relative or not.
  94. case $0 in
  95. *[\\/]* ) as_myself=$0 ;;
  96. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  97. for as_dir in $PATH
  98. do
  99. IFS=$as_save_IFS
  100. test -z "$as_dir" && as_dir=.
  101. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  102. done
  103. ;;
  104. esac
  105. # We did not find ourselves, most probably we were run as `sh COMMAND'
  106. # in which case we are not to be found in the path.
  107. if test "x$as_myself" = x; then
  108. as_myself=$0
  109. fi
  110. if test ! -f "$as_myself"; then
  111. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  112. { (exit 1); exit 1; }; }
  113. fi
  114. case $CONFIG_SHELL in
  115. '')
  116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  117. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  118. do
  119. IFS=$as_save_IFS
  120. test -z "$as_dir" && as_dir=.
  121. for as_base in sh bash ksh sh5; do
  122. case $as_dir in
  123. /*)
  124. if ("$as_dir/$as_base" -c '
  125. as_lineno_1=$LINENO
  126. as_lineno_2=$LINENO
  127. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  128. test "x$as_lineno_1" != "x$as_lineno_2" &&
  129. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  130. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  131. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  132. CONFIG_SHELL=$as_dir/$as_base
  133. export CONFIG_SHELL
  134. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  135. fi;;
  136. esac
  137. done
  138. done
  139. ;;
  140. esac
  141. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  142. # uniformly replaced by the line number. The first 'sed' inserts a
  143. # line-number line before each line; the second 'sed' does the real
  144. # work. The second script uses 'N' to pair each line-number line
  145. # with the numbered line, and appends trailing '-' during
  146. # substitution so that $LINENO is not a special case at line end.
  147. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  148. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  149. sed '=' <$as_myself |
  150. sed '
  151. N
  152. s,$,-,
  153. : loop
  154. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  155. t loop
  156. s,-$,,
  157. s,^['$as_cr_digits']*\n,,
  158. ' >$as_me.lineno &&
  159. chmod +x $as_me.lineno ||
  160. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  161. { (exit 1); exit 1; }; }
  162. # Don't try to exec as it changes $[0], causing all sort of problems
  163. # (the dirname of $[0] is not the place where we might find the
  164. # original and so on. Autoconf is especially sensible to this).
  165. . ./$as_me.lineno
  166. # Exit status is that of the last command.
  167. exit
  168. }
  169. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  170. *c*,-n*) ECHO_N= ECHO_C='
  171. ' ECHO_T=' ' ;;
  172. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  173. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  174. esac
  175. if expr a : '\(a\)' >/dev/null 2>&1; then
  176. as_expr=expr
  177. else
  178. as_expr=false
  179. fi
  180. rm -f conf$$ conf$$.exe conf$$.file
  181. echo >conf$$.file
  182. if ln -s conf$$.file conf$$ 2>/dev/null; then
  183. # We could just check for DJGPP; but this test a) works b) is more generic
  184. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  185. if test -f conf$$.exe; then
  186. # Don't use ln at all; we don't have any links
  187. as_ln_s='cp -p'
  188. else
  189. as_ln_s='ln -s'
  190. fi
  191. elif ln conf$$.file conf$$ 2>/dev/null; then
  192. as_ln_s=ln
  193. else
  194. as_ln_s='cp -p'
  195. fi
  196. rm -f conf$$ conf$$.exe conf$$.file
  197. if mkdir -p . 2>/dev/null; then
  198. as_mkdir_p=:
  199. else
  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="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="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="lib/unp.h"
  240. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT RANLIB ac_ct_RANLIB CPP EGREP LIB_OBJS LIBFREE_OBJS LIBGAI_OBJS LIBROUTE_OBJS LIBXTI_OBJS LIBS_XTI LIBUNP LIBUNPXTI LIBUNP_NAME LIBUNPXTI_NAME LIBOBJS LTLIBOBJS'
  241. ac_subst_files=''
  242. # Initialize some variables set by options.
  243. ac_init_help=
  244. ac_init_version=false
  245. # The variables have the same names as the options, with
  246. # dashes changed to underlines.
  247. cache_file=/dev/null
  248. exec_prefix=NONE
  249. no_create=
  250. no_recursion=
  251. prefix=NONE
  252. program_prefix=NONE
  253. program_suffix=NONE
  254. program_transform_name=s,x,x,
  255. silent=
  256. site=
  257. srcdir=
  258. verbose=
  259. x_includes=NONE
  260. x_libraries=NONE
  261. # Installation directory options.
  262. # These are left unexpanded so users can "make install exec_prefix=/foo"
  263. # and all the variables that are supposed to be based on exec_prefix
  264. # by default will actually change.
  265. # Use braces instead of parens because sh, perl, etc. also accept them.
  266. bindir='${exec_prefix}/bin'
  267. sbindir='${exec_prefix}/sbin'
  268. libexecdir='${exec_prefix}/libexec'
  269. datadir='${prefix}/share'
  270. sysconfdir='${prefix}/etc'
  271. sharedstatedir='${prefix}/com'
  272. localstatedir='${prefix}/var'
  273. libdir='${exec_prefix}/lib'
  274. includedir='${prefix}/include'
  275. oldincludedir='/usr/include'
  276. infodir='${prefix}/info'
  277. mandir='${prefix}/man'
  278. ac_prev=
  279. for ac_option
  280. do
  281. # If the previous option needs an argument, assign it.
  282. if test -n "$ac_prev"; then
  283. eval "$ac_prev=\$ac_option"
  284. ac_prev=
  285. continue
  286. fi
  287. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  288. # Accept the important Cygnus configure options, so we can diagnose typos.
  289. case $ac_option in
  290. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  291. ac_prev=bindir ;;
  292. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  293. bindir=$ac_optarg ;;
  294. -build | --build | --buil | --bui | --bu)
  295. ac_prev=build_alias ;;
  296. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  297. build_alias=$ac_optarg ;;
  298. -cache-file | --cache-file | --cache-fil | --cache-fi \
  299. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  300. ac_prev=cache_file ;;
  301. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  302. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  303. cache_file=$ac_optarg ;;
  304. --config-cache | -C)
  305. cache_file=config.cache ;;
  306. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  307. ac_prev=datadir ;;
  308. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  309. | --da=*)
  310. datadir=$ac_optarg ;;
  311. -disable-* | --disable-*)
  312. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  313. # Reject names that are not valid shell variable names.
  314. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  315. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  316. { (exit 1); exit 1; }; }
  317. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  318. eval "enable_$ac_feature=no" ;;
  319. -enable-* | --enable-*)
  320. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  321. # Reject names that are not valid shell variable names.
  322. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  323. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  324. { (exit 1); exit 1; }; }
  325. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  326. case $ac_option in
  327. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  328. *) ac_optarg=yes ;;
  329. esac
  330. eval "enable_$ac_feature='$ac_optarg'" ;;
  331. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  332. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  333. | --exec | --exe | --ex)
  334. ac_prev=exec_prefix ;;
  335. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  336. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  337. | --exec=* | --exe=* | --ex=*)
  338. exec_prefix=$ac_optarg ;;
  339. -gas | --gas | --ga | --g)
  340. # Obsolete; use --with-gas.
  341. with_gas=yes ;;
  342. -help | --help | --hel | --he | -h)
  343. ac_init_help=long ;;
  344. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  345. ac_init_help=recursive ;;
  346. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  347. ac_init_help=short ;;
  348. -host | --host | --hos | --ho)
  349. ac_prev=host_alias ;;
  350. -host=* | --host=* | --hos=* | --ho=*)
  351. host_alias=$ac_optarg ;;
  352. -includedir | --includedir | --includedi | --included | --include \
  353. | --includ | --inclu | --incl | --inc)
  354. ac_prev=includedir ;;
  355. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  356. | --includ=* | --inclu=* | --incl=* | --inc=*)
  357. includedir=$ac_optarg ;;
  358. -infodir | --infodir | --infodi | --infod | --info | --inf)
  359. ac_prev=infodir ;;
  360. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  361. infodir=$ac_optarg ;;
  362. -libdir | --libdir | --libdi | --libd)
  363. ac_prev=libdir ;;
  364. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  365. libdir=$ac_optarg ;;
  366. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  367. | --libexe | --libex | --libe)
  368. ac_prev=libexecdir ;;
  369. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  370. | --libexe=* | --libex=* | --libe=*)
  371. libexecdir=$ac_optarg ;;
  372. -localstatedir | --localstatedir | --localstatedi | --localstated \
  373. | --localstate | --localstat | --localsta | --localst \
  374. | --locals | --local | --loca | --loc | --lo)
  375. ac_prev=localstatedir ;;
  376. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  377. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  378. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  379. localstatedir=$ac_optarg ;;
  380. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  381. ac_prev=mandir ;;
  382. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  383. mandir=$ac_optarg ;;
  384. -nfp | --nfp | --nf)
  385. # Obsolete; use --without-fp.
  386. with_fp=no ;;
  387. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  388. | --no-cr | --no-c | -n)
  389. no_create=yes ;;
  390. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  391. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  392. no_recursion=yes ;;
  393. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  394. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  395. | --oldin | --oldi | --old | --ol | --o)
  396. ac_prev=oldincludedir ;;
  397. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  398. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  399. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  400. oldincludedir=$ac_optarg ;;
  401. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  402. ac_prev=prefix ;;
  403. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  404. prefix=$ac_optarg ;;
  405. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  406. | --program-pre | --program-pr | --program-p)
  407. ac_prev=program_prefix ;;
  408. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  409. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  410. program_prefix=$ac_optarg ;;
  411. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  412. | --program-suf | --program-su | --program-s)
  413. ac_prev=program_suffix ;;
  414. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  415. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  416. program_suffix=$ac_optarg ;;
  417. -program-transform-name | --program-transform-name \
  418. | --program-transform-nam | --program-transform-na \
  419. | --program-transform-n | --program-transform- \
  420. | --program-transform | --program-transfor \
  421. | --program-transfo | --program-transf \
  422. | --program-trans | --program-tran \
  423. | --progr-tra | --program-tr | --program-t)
  424. ac_prev=program_transform_name ;;
  425. -program-transform-name=* | --program-transform-name=* \
  426. | --program-transform-nam=* | --program-transform-na=* \
  427. | --program-transform-n=* | --program-transform-=* \
  428. | --program-transform=* | --program-transfor=* \
  429. | --program-transfo=* | --program-transf=* \
  430. | --program-trans=* | --program-tran=* \
  431. | --progr-tra=* | --program-tr=* | --program-t=*)
  432. program_transform_name=$ac_optarg ;;
  433. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  434. | -silent | --silent | --silen | --sile | --sil)
  435. silent=yes ;;
  436. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  437. ac_prev=sbindir ;;
  438. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  439. | --sbi=* | --sb=*)
  440. sbindir=$ac_optarg ;;
  441. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  442. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  443. | --sharedst | --shareds | --shared | --share | --shar \
  444. | --sha | --sh)
  445. ac_prev=sharedstatedir ;;
  446. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  447. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  448. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  449. | --sha=* | --sh=*)
  450. sharedstatedir=$ac_optarg ;;
  451. -site | --site | --sit)
  452. ac_prev=site ;;
  453. -site=* | --site=* | --sit=*)
  454. site=$ac_optarg ;;
  455. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  456. ac_prev=srcdir ;;
  457. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  458. srcdir=$ac_optarg ;;
  459. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  460. | --syscon | --sysco | --sysc | --sys | --sy)
  461. ac_prev=sysconfdir ;;
  462. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  463. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  464. sysconfdir=$ac_optarg ;;
  465. -target | --target | --targe | --targ | --tar | --ta | --t)
  466. ac_prev=target_alias ;;
  467. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  468. target_alias=$ac_optarg ;;
  469. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  470. verbose=yes ;;
  471. -version | --version | --versio | --versi | --vers | -V)
  472. ac_init_version=: ;;
  473. -with-* | --with-*)
  474. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  475. # Reject names that are not valid shell variable names.
  476. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  477. { echo "$as_me: error: invalid package name: $ac_package" >&2
  478. { (exit 1); exit 1; }; }
  479. ac_package=`echo $ac_package| sed 's/-/_/g'`
  480. case $ac_option in
  481. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  482. *) ac_optarg=yes ;;
  483. esac
  484. eval "with_$ac_package='$ac_optarg'" ;;
  485. -without-* | --without-*)
  486. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  487. # Reject names that are not valid shell variable names.
  488. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  489. { echo "$as_me: error: invalid package name: $ac_package" >&2
  490. { (exit 1); exit 1; }; }
  491. ac_package=`echo $ac_package | sed 's/-/_/g'`
  492. eval "with_$ac_package=no" ;;
  493. --x)
  494. # Obsolete; use --with-x.
  495. with_x=yes ;;
  496. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  497. | --x-incl | --x-inc | --x-in | --x-i)
  498. ac_prev=x_includes ;;
  499. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  500. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  501. x_includes=$ac_optarg ;;
  502. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  503. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  504. ac_prev=x_libraries ;;
  505. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  506. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  507. x_libraries=$ac_optarg ;;
  508. -*) { echo "$as_me: error: unrecognized option: $ac_option
  509. Try \`$0 --help' for more information." >&2
  510. { (exit 1); exit 1; }; }
  511. ;;
  512. *=*)
  513. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  514. # Reject names that are not valid shell variable names.
  515. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  516. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  517. { (exit 1); exit 1; }; }
  518. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  519. eval "$ac_envvar='$ac_optarg'"
  520. export $ac_envvar ;;
  521. *)
  522. # FIXME: should be removed in autoconf 3.0.
  523. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  524. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  525. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  526. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  527. ;;
  528. esac
  529. done
  530. if test -n "$ac_prev"; then
  531. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  532. { echo "$as_me: error: missing argument to $ac_option" >&2
  533. { (exit 1); exit 1; }; }
  534. fi
  535. # Be sure to have absolute paths.
  536. for ac_var in exec_prefix prefix
  537. do
  538. eval ac_val=$`echo $ac_var`
  539. case $ac_val in
  540. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  541. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  542. { (exit 1); exit 1; }; };;
  543. esac
  544. done
  545. # Be sure to have absolute paths.
  546. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  547. localstatedir libdir includedir oldincludedir infodir mandir
  548. do
  549. eval ac_val=$`echo $ac_var`
  550. case $ac_val in
  551. [\\/$]* | ?:[\\/]* ) ;;
  552. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  553. { (exit 1); exit 1; }; };;
  554. esac
  555. done
  556. # There might be people who depend on the old broken behavior: `$host'
  557. # used to hold the argument of --host etc.
  558. # FIXME: To remove some day.
  559. build=$build_alias
  560. host=$host_alias
  561. target=$target_alias
  562. # FIXME: To remove some day.
  563. if test "x$host_alias" != x; then
  564. if test "x$build_alias" = x; then
  565. cross_compiling=maybe
  566. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  567. If a cross compiler is detected then cross compile mode will be used." >&2
  568. elif test "x$build_alias" != "x$host_alias"; then
  569. cross_compiling=yes
  570. fi
  571. fi
  572. ac_tool_prefix=
  573. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  574. test "$silent" = yes && exec 6>/dev/null
  575. # Find the source files, if location was not specified.
  576. if test -z "$srcdir"; then
  577. ac_srcdir_defaulted=yes
  578. # Try the directory containing this script, then its parent.
  579. ac_confdir=`(dirname "$0") 2>/dev/null ||
  580. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  581. X"$0" : 'X\(//\)[^/]' \| \
  582. X"$0" : 'X\(//\)$' \| \
  583. X"$0" : 'X\(/\)' \| \
  584. . : '\(.\)' 2>/dev/null ||
  585. echo X"$0" |
  586. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  587. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  588. /^X\(\/\/\)$/{ s//\1/; q; }
  589. /^X\(\/\).*/{ s//\1/; q; }
  590. s/.*/./; q'`
  591. srcdir=$ac_confdir
  592. if test ! -r $srcdir/$ac_unique_file; then
  593. srcdir=..
  594. fi
  595. else
  596. ac_srcdir_defaulted=no
  597. fi
  598. if test ! -r $srcdir/$ac_unique_file; then
  599. if test "$ac_srcdir_defaulted" = yes; then
  600. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  601. { (exit 1); exit 1; }; }
  602. else
  603. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  604. { (exit 1); exit 1; }; }
  605. fi
  606. fi
  607. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  608. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  609. { (exit 1); exit 1; }; }
  610. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  611. ac_env_build_alias_set=${build_alias+set}
  612. ac_env_build_alias_value=$build_alias
  613. ac_cv_env_build_alias_set=${build_alias+set}
  614. ac_cv_env_build_alias_value=$build_alias
  615. ac_env_host_alias_set=${host_alias+set}
  616. ac_env_host_alias_value=$host_alias
  617. ac_cv_env_host_alias_set=${host_alias+set}
  618. ac_cv_env_host_alias_value=$host_alias
  619. ac_env_target_alias_set=${target_alias+set}
  620. ac_env_target_alias_value=$target_alias
  621. ac_cv_env_target_alias_set=${target_alias+set}
  622. ac_cv_env_target_alias_value=$target_alias
  623. ac_env_CC_set=${CC+set}
  624. ac_env_CC_value=$CC
  625. ac_cv_env_CC_set=${CC+set}
  626. ac_cv_env_CC_value=$CC
  627. ac_env_CFLAGS_set=${CFLAGS+set}
  628. ac_env_CFLAGS_value=$CFLAGS
  629. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  630. ac_cv_env_CFLAGS_value=$CFLAGS
  631. ac_env_LDFLAGS_set=${LDFLAGS+set}
  632. ac_env_LDFLAGS_value=$LDFLAGS
  633. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  634. ac_cv_env_LDFLAGS_value=$LDFLAGS
  635. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  636. ac_env_CPPFLAGS_value=$CPPFLAGS
  637. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  638. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  639. ac_env_CPP_set=${CPP+set}
  640. ac_env_CPP_value=$CPP
  641. ac_cv_env_CPP_set=${CPP+set}
  642. ac_cv_env_CPP_value=$CPP
  643. #
  644. # Report the --help message.
  645. #
  646. if test "$ac_init_help" = "long"; then
  647. # Omit some internal or obsolete options to make the list less imposing.
  648. # This message is too long to be a string in the A/UX 3.1 sh.
  649. cat <<_ACEOF
  650. \`configure' configures this package to adapt to many kinds of systems.
  651. Usage: $0 [OPTION]... [VAR=VALUE]...
  652. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  653. VAR=VALUE. See below for descriptions of some of the useful variables.
  654. Defaults for the options are specified in brackets.
  655. Configuration:
  656. -h, --help display this help and exit
  657. --help=short display options specific to this package
  658. --help=recursive display the short help of all the included packages
  659. -V, --version display version information and exit
  660. -q, --quiet, --silent do not print \`checking...' messages
  661. --cache-file=FILE cache test results in FILE [disabled]
  662. -C, --config-cache alias for \`--cache-file=config.cache'
  663. -n, --no-create do not create output files
  664. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  665. _ACEOF
  666. cat <<_ACEOF
  667. Installation directories:
  668. --prefix=PREFIX install architecture-independent files in PREFIX
  669. [$ac_default_prefix]
  670. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  671. [PREFIX]
  672. By default, \`make install' will install all the files in
  673. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  674. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  675. for instance \`--prefix=\$HOME'.
  676. For better control, use the options below.
  677. Fine tuning of the installation directories:
  678. --bindir=DIR user executables [EPREFIX/bin]
  679. --sbindir=DIR system admin executables [EPREFIX/sbin]
  680. --libexecdir=DIR program executables [EPREFIX/libexec]
  681. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  682. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  683. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  684. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  685. --libdir=DIR object code libraries [EPREFIX/lib]
  686. --includedir=DIR C header files [PREFIX/include]
  687. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  688. --infodir=DIR info documentation [PREFIX/info]
  689. --mandir=DIR man documentation [PREFIX/man]
  690. _ACEOF
  691. cat <<\_ACEOF
  692. System types:
  693. --build=BUILD configure for building on BUILD [guessed]
  694. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  695. _ACEOF
  696. fi
  697. if test -n "$ac_init_help"; then
  698. cat <<\_ACEOF
  699. Some influential environment variables:
  700. CC C compiler command
  701. CFLAGS C compiler flags
  702. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  703. nonstandard directory <lib dir>
  704. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  705. headers in a nonstandard directory <include dir>
  706. CPP C preprocessor
  707. Use these variables to override the choices made by `configure' or to help
  708. it to find libraries and programs with nonstandard names/locations.
  709. _ACEOF
  710. fi
  711. if test "$ac_init_help" = "recursive"; then
  712. # If there are subdirs, report their specific --help.
  713. ac_popdir=`pwd`
  714. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  715. test -d $ac_dir || continue
  716. ac_builddir=.
  717. if test "$ac_dir" != .; then
  718. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  719. # A "../" for each directory in $ac_dir_suffix.
  720. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  721. else
  722. ac_dir_suffix= ac_top_builddir=
  723. fi
  724. case $srcdir in
  725. .) # No --srcdir option. We are building in place.
  726. ac_srcdir=.
  727. if test -z "$ac_top_builddir"; then
  728. ac_top_srcdir=.
  729. else
  730. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  731. fi ;;
  732. [\\/]* | ?:[\\/]* ) # Absolute path.
  733. ac_srcdir=$srcdir$ac_dir_suffix;
  734. ac_top_srcdir=$srcdir ;;
  735. *) # Relative path.
  736. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  737. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  738. esac
  739. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  740. # absolute.
  741. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  742. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  743. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  744. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  745. cd $ac_dir
  746. # Check for guested configure; otherwise get Cygnus style configure.
  747. if test -f $ac_srcdir/configure.gnu; then
  748. echo
  749. $SHELL $ac_srcdir/configure.gnu --help=recursive
  750. elif test -f $ac_srcdir/configure; then
  751. echo
  752. $SHELL $ac_srcdir/configure --help=recursive
  753. elif test -f $ac_srcdir/configure.ac ||
  754. test -f $ac_srcdir/configure.in; then
  755. echo
  756. $ac_configure --help
  757. else
  758. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  759. fi
  760. cd $ac_popdir
  761. done
  762. fi
  763. test -n "$ac_init_help" && exit 0
  764. if $ac_init_version; then
  765. cat <<\_ACEOF
  766. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  767. Free Software Foundation, Inc.
  768. This configure script is free software; the Free Software Foundation
  769. gives unlimited permission to copy, distribute and modify it.
  770. _ACEOF
  771. exit 0
  772. fi
  773. exec 5>config.log
  774. cat >&5 <<_ACEOF
  775. This file contains any messages produced by compilers while
  776. running configure, to aid debugging if configure makes a mistake.
  777. It was created by $as_me, which was
  778. generated by GNU Autoconf 2.57. Invocation command line was
  779. $ $0 $@
  780. _ACEOF
  781. {
  782. cat <<_ASUNAME
  783. ## --------- ##
  784. ## Platform. ##
  785. ## --------- ##
  786. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  787. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  788. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  789. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  790. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  791. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  792. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  793. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  794. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  795. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  796. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  797. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  798. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  799. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  800. _ASUNAME
  801. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  802. for as_dir in $PATH
  803. do
  804. IFS=$as_save_IFS
  805. test -z "$as_dir" && as_dir=.
  806. echo "PATH: $as_dir"
  807. done
  808. } >&5
  809. cat >&5 <<_ACEOF
  810. ## ----------- ##
  811. ## Core tests. ##
  812. ## ----------- ##
  813. _ACEOF
  814. # Keep a trace of the command line.
  815. # Strip out --no-create and --no-recursion so they do not pile up.
  816. # Strip out --silent because we don't want to record it for future runs.
  817. # Also quote any args containing shell meta-characters.
  818. # Make two passes to allow for proper duplicate-argument suppression.
  819. ac_configure_args=
  820. ac_configure_args0=
  821. ac_configure_args1=
  822. ac_sep=
  823. ac_must_keep_next=false
  824. for ac_pass in 1 2
  825. do
  826. for ac_arg
  827. do
  828. case $ac_arg in
  829. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  830. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  831. | -silent | --silent | --silen | --sile | --sil)
  832. continue ;;
  833. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  834. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  835. esac
  836. case $ac_pass in
  837. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  838. 2)
  839. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  840. if test $ac_must_keep_next = true; then
  841. ac_must_keep_next=false # Got value, back to normal.
  842. else
  843. case $ac_arg in
  844. *=* | --config-cache | -C | -disable-* | --disable-* \
  845. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  846. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  847. | -with-* | --with-* | -without-* | --without-* | --x)
  848. case "$ac_configure_args0 " in
  849. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  850. esac
  851. ;;
  852. -* ) ac_must_keep_next=true ;;
  853. esac
  854. fi
  855. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  856. # Get rid of the leading space.
  857. ac_sep=" "
  858. ;;
  859. esac
  860. done
  861. done
  862. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  863. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  864. # When interrupted or exit'd, cleanup temporary files, and complete
  865. # config.log. We remove comments because anyway the quotes in there
  866. # would cause problems or look ugly.
  867. # WARNING: Be sure not to use single quotes in there, as some shells,
  868. # such as our DU 5.0 friend, will then `close' the trap.
  869. trap 'exit_status=$?
  870. # Save into config.log some information that might help in debugging.
  871. {
  872. echo
  873. cat <<\_ASBOX
  874. ## ---------------- ##
  875. ## Cache variables. ##
  876. ## ---------------- ##
  877. _ASBOX
  878. echo
  879. # The following way of writing the cache mishandles newlines in values,
  880. {
  881. (set) 2>&1 |
  882. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  883. *ac_space=\ *)
  884. sed -n \
  885. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  886. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  887. ;;
  888. *)
  889. sed -n \
  890. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  891. ;;
  892. esac;
  893. }
  894. echo
  895. cat <<\_ASBOX
  896. ## ----------------- ##
  897. ## Output variables. ##
  898. ## ----------------- ##
  899. _ASBOX
  900. echo
  901. for ac_var in $ac_subst_vars
  902. do
  903. eval ac_val=$`echo $ac_var`
  904. echo "$ac_var='"'"'$ac_val'"'"'"
  905. done | sort
  906. echo
  907. if test -n "$ac_subst_files"; then
  908. cat <<\_ASBOX
  909. ## ------------- ##
  910. ## Output files. ##
  911. ## ------------- ##
  912. _ASBOX
  913. echo
  914. for ac_var in $ac_subst_files
  915. do
  916. eval ac_val=$`echo $ac_var`
  917. echo "$ac_var='"'"'$ac_val'"'"'"
  918. done | sort
  919. echo
  920. fi
  921. if test -s confdefs.h; then
  922. cat <<\_ASBOX
  923. ## ----------- ##
  924. ## confdefs.h. ##
  925. ## ----------- ##
  926. _ASBOX
  927. echo
  928. sed "/^$/d" confdefs.h | sort
  929. echo
  930. fi
  931. test "$ac_signal" != 0 &&
  932. echo "$as_me: caught signal $ac_signal"
  933. echo "$as_me: exit $exit_status"
  934. } >&5
  935. rm -f core core.* *.core &&
  936. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  937. exit $exit_status
  938. ' 0
  939. for ac_signal in 1 2 13 15; do
  940. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  941. done
  942. ac_signal=0
  943. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  944. rm -rf conftest* confdefs.h
  945. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  946. echo >confdefs.h
  947. # Predefined preprocessor variables.
  948. cat >>confdefs.h <<_ACEOF
  949. #define PACKAGE_NAME "$PACKAGE_NAME"
  950. _ACEOF
  951. cat >>confdefs.h <<_ACEOF
  952. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  953. _ACEOF
  954. cat >>confdefs.h <<_ACEOF
  955. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  956. _ACEOF
  957. cat >>confdefs.h <<_ACEOF
  958. #define PACKAGE_STRING "$PACKAGE_STRING"
  959. _ACEOF
  960. cat >>confdefs.h <<_ACEOF
  961. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  962. _ACEOF
  963. # Let the site file select an alternate cache file if it wants to.
  964. # Prefer explicitly selected file to automatically selected ones.
  965. if test -z "$CONFIG_SITE"; then
  966. if test "x$prefix" != xNONE; then
  967. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  968. else
  969. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  970. fi
  971. fi
  972. for ac_site_file in $CONFIG_SITE; do
  973. if test -r "$ac_site_file"; then
  974. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  975. echo "$as_me: loading site script $ac_site_file" >&6;}
  976. sed 's/^/| /' "$ac_site_file" >&5
  977. . "$ac_site_file"
  978. fi
  979. done
  980. if test -r "$cache_file"; then
  981. # Some versions of bash will fail to source /dev/null (special
  982. # files actually), so we avoid doing that.
  983. if test -f "$cache_file"; then
  984. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  985. echo "$as_me: loading cache $cache_file" >&6;}
  986. case $cache_file in
  987. [\\/]* | ?:[\\/]* ) . $cache_file;;
  988. *) . ./$cache_file;;
  989. esac
  990. fi
  991. else
  992. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  993. echo "$as_me: creating cache $cache_file" >&6;}
  994. >$cache_file
  995. fi
  996. # Check that the precious variables saved in the cache have kept the same
  997. # value.
  998. ac_cache_corrupted=false
  999. for ac_var in `(set) 2>&1 |
  1000. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1001. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1002. eval ac_new_set=\$ac_env_${ac_var}_set
  1003. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1004. eval ac_new_val="\$ac_env_${ac_var}_value"
  1005. case $ac_old_set,$ac_new_set in
  1006. set,)
  1007. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1008. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1009. ac_cache_corrupted=: ;;
  1010. ,set)
  1011. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1012. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1013. ac_cache_corrupted=: ;;
  1014. ,);;
  1015. *)
  1016. if test "x$ac_old_val" != "x$ac_new_val"; then
  1017. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1018. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1019. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1020. echo "$as_me: former value: $ac_old_val" >&2;}
  1021. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1022. echo "$as_me: current value: $ac_new_val" >&2;}
  1023. ac_cache_corrupted=:
  1024. fi;;
  1025. esac
  1026. # Pass precious variables to config.status.
  1027. if test "$ac_new_set" = set; then
  1028. case $ac_new_val in
  1029. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1030. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1031. *) ac_arg=$ac_var=$ac_new_val ;;
  1032. esac
  1033. case " $ac_configure_args " in
  1034. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1035. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1036. esac
  1037. fi
  1038. done
  1039. if $ac_cache_corrupted; then
  1040. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1041. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1042. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1043. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1044. { (exit 1); exit 1; }; }
  1045. fi
  1046. ac_ext=c
  1047. ac_cpp='$CPP $CPPFLAGS'
  1048. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1049. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1050. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1051. ac_aux_dir=
  1052. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1053. if test -f $ac_dir/install-sh; then
  1054. ac_aux_dir=$ac_dir
  1055. ac_install_sh="$ac_aux_dir/install-sh -c"
  1056. break
  1057. elif test -f $ac_dir/install.sh; then
  1058. ac_aux_dir=$ac_dir
  1059. ac_install_sh="$ac_aux_dir/install.sh -c"
  1060. break
  1061. elif test -f $ac_dir/shtool; then
  1062. ac_aux_dir=$ac_dir
  1063. ac_install_sh="$ac_aux_dir/shtool install -c"
  1064. break
  1065. fi
  1066. done
  1067. if test -z "$ac_aux_dir"; then
  1068. { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  1069. echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  1070. { (exit 1); exit 1; }; }
  1071. fi
  1072. ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  1073. ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  1074. ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  1075. # Make sure we can run config.sub.
  1076. $ac_config_sub sun4 >/dev/null 2>&1 ||
  1077. { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  1078. echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  1079. { (exit 1); exit 1; }; }
  1080. echo "$as_me:$LINENO: checking build system type" >&5
  1081. echo $ECHO_N "checking build system type... $ECHO_C" >&6
  1082. if test "${ac_cv_build+set}" = set; then
  1083. echo $ECHO_N "(cached) $ECHO_C" >&6
  1084. else
  1085. ac_cv_build_alias=$build_alias
  1086. test -z "$ac_cv_build_alias" &&
  1087. ac_cv_build_alias=`$ac_config_guess`
  1088. test -z "$ac_cv_build_alias" &&
  1089. { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  1090. echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  1091. { (exit 1); exit 1; }; }
  1092. ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  1093. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  1094. echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  1095. { (exit 1); exit 1; }; }
  1096. fi
  1097. echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  1098. echo "${ECHO_T}$ac_cv_build" >&6
  1099. build=$ac_cv_build
  1100. build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1101. build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1102. build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1103. echo "$as_me:$LINENO: checking host system type" >&5
  1104. echo $ECHO_N "checking host system type... $ECHO_C" >&6
  1105. if test "${ac_cv_host+set}" = set; then
  1106. echo $ECHO_N "(cached) $ECHO_C" >&6
  1107. else
  1108. ac_cv_host_alias=$host_alias
  1109. test -z "$ac_cv_host_alias" &&
  1110. ac_cv_host_alias=$ac_cv_build_alias
  1111. ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  1112. { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  1113. echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  1114. { (exit 1); exit 1; }; }
  1115. fi
  1116. echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  1117. echo "${ECHO_T}$ac_cv_host" >&6
  1118. host=$ac_cv_host
  1119. host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1120. host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1121. host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1122. ac_config_headers="$ac_config_headers config.h"
  1123. cat >>confdefs.h <<_ACEOF
  1124. #define CPU_VENDOR_OS "$host"
  1125. _ACEOF
  1126. case "$host_os" in
  1127. *aix*) CPPFLAGS="$CPPFLAGS -D_ALL_SOURCE" ;;
  1128. *osf*) CPPFLAGS="$CPPFLAGS -D_SOCKADDR_LEN" ;;
  1129. esac
  1130. ac_ext=c
  1131. ac_cpp='$CPP $CPPFLAGS'
  1132. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1133. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1134. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1135. if test -n "$ac_tool_prefix"; then
  1136. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1137. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1138. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1139. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1140. if test "${ac_cv_prog_CC+set}" = set; then
  1141. echo $ECHO_N "(cached) $ECHO_C" >&6
  1142. else
  1143. if test -n "$CC"; then
  1144. ac_cv_prog_CC="$CC" # Let the user override the test.
  1145. else
  1146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1147. for as_dir in $PATH
  1148. do
  1149. IFS=$as_save_IFS
  1150. test -z "$as_dir" && as_dir=.
  1151. for ac_exec_ext in '' $ac_executable_extensions; do
  1152. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1153. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1154. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1155. break 2
  1156. fi
  1157. done
  1158. done
  1159. fi
  1160. fi
  1161. CC=$ac_cv_prog_CC
  1162. if test -n "$CC"; then
  1163. echo "$as_me:$LINENO: result: $CC" >&5
  1164. echo "${ECHO_T}$CC" >&6
  1165. else
  1166. echo "$as_me:$LINENO: result: no" >&5
  1167. echo "${ECHO_T}no" >&6
  1168. fi
  1169. fi
  1170. if test -z "$ac_cv_prog_CC"; then
  1171. ac_ct_CC=$CC
  1172. # Extract the first word of "gcc", so it can be a program name with args.
  1173. set dummy gcc; ac_word=$2
  1174. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1175. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1176. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1177. echo $ECHO_N "(cached) $ECHO_C" >&6
  1178. else
  1179. if test -n "$ac_ct_CC"; then
  1180. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1181. else
  1182. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1183. for as_dir in $PATH
  1184. do
  1185. IFS=$as_save_IFS
  1186. test -z "$as_dir" && as_dir=.
  1187. for ac_exec_ext in '' $ac_executable_extensions; do
  1188. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1189. ac_cv_prog_ac_ct_CC="gcc"
  1190. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1191. break 2
  1192. fi
  1193. done
  1194. done
  1195. fi
  1196. fi
  1197. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1198. if test -n "$ac_ct_CC"; then
  1199. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1200. echo "${ECHO_T}$ac_ct_CC" >&6
  1201. else
  1202. echo "$as_me:$LINENO: result: no" >&5
  1203. echo "${ECHO_T}no" >&6
  1204. fi
  1205. CC=$ac_ct_CC
  1206. else
  1207. CC="$ac_cv_prog_CC"
  1208. fi
  1209. if test -z "$CC"; then
  1210. if test -n "$ac_tool_prefix"; then
  1211. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1212. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1213. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1214. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1215. if test "${ac_cv_prog_CC+set}" = set; then
  1216. echo $ECHO_N "(cached) $ECHO_C" >&6
  1217. else
  1218. if test -n "$CC"; then
  1219. ac_cv_prog_CC="$CC" # Let the user override the test.
  1220. else
  1221. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1222. for as_dir in $PATH
  1223. do
  1224. IFS=$as_save_IFS
  1225. test -z "$as_dir" && as_dir=.
  1226. for ac_exec_ext in '' $ac_executable_extensions; do
  1227. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1228. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1229. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1230. break 2
  1231. fi
  1232. done
  1233. done
  1234. fi
  1235. fi
  1236. CC=$ac_cv_prog_CC
  1237. if test -n "$CC"; then
  1238. echo "$as_me:$LINENO: result: $CC" >&5
  1239. echo "${ECHO_T}$CC" >&6
  1240. else
  1241. echo "$as_me:$LINENO: result: no" >&5
  1242. echo "${ECHO_T}no" >&6
  1243. fi
  1244. fi
  1245. if test -z "$ac_cv_prog_CC"; then
  1246. ac_ct_CC=$CC
  1247. # Extract the first word of "cc", so it can be a program name with args.
  1248. set dummy cc; ac_word=$2
  1249. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1250. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1251. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1252. echo $ECHO_N "(cached) $ECHO_C" >&6
  1253. else
  1254. if test -n "$ac_ct_CC"; then
  1255. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1256. else
  1257. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1258. for as_dir in $PATH
  1259. do
  1260. IFS=$as_save_IFS
  1261. test -z "$as_dir" && as_dir=.
  1262. for ac_exec_ext in '' $ac_executable_extensions; do
  1263. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1264. ac_cv_prog_ac_ct_CC="cc"
  1265. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1266. break 2
  1267. fi
  1268. done
  1269. done
  1270. fi
  1271. fi
  1272. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1273. if test -n "$ac_ct_CC"; then
  1274. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1275. echo "${ECHO_T}$ac_ct_CC" >&6
  1276. else
  1277. echo "$as_me:$LINENO: result: no" >&5
  1278. echo "${ECHO_T}no" >&6
  1279. fi
  1280. CC=$ac_ct_CC
  1281. else
  1282. CC="$ac_cv_prog_CC"
  1283. fi
  1284. fi
  1285. if test -z "$CC"; then
  1286. # Extract the first word of "cc", so it can be a program name with args.
  1287. set dummy cc; ac_word=$2
  1288. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1289. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1290. if test "${ac_cv_prog_CC+set}" = set; then
  1291. echo $ECHO_N "(cached) $ECHO_C" >&6
  1292. else
  1293. if test -n "$CC"; then
  1294. ac_cv_prog_CC="$CC" # Let the user override the test.
  1295. else
  1296. ac_prog_rejected=no
  1297. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1298. for as_dir in $PATH
  1299. do
  1300. IFS=$as_save_IFS
  1301. test -z "$as_dir" && as_dir=.
  1302. for ac_exec_ext in '' $ac_executable_extensions; do
  1303. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1304. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1305. ac_prog_rejected=yes
  1306. continue
  1307. fi
  1308. ac_cv_prog_CC="cc"
  1309. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1310. break 2
  1311. fi
  1312. done
  1313. done
  1314. if test $ac_prog_rejected = yes; then
  1315. # We found a bogon in the path, so make sure we never use it.
  1316. set dummy $ac_cv_prog_CC
  1317. shift
  1318. if test $# != 0; then
  1319. # We chose a different compiler from the bogus one.
  1320. # However, it has the same basename, so the bogon will be chosen
  1321. # first if we set CC to just the basename; use the full file name.
  1322. shift
  1323. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1324. fi
  1325. fi
  1326. fi
  1327. fi
  1328. CC=$ac_cv_prog_CC
  1329. if test -n "$CC"; then
  1330. echo "$as_me:$LINENO: result: $CC" >&5
  1331. echo "${ECHO_T}$CC" >&6
  1332. else
  1333. echo "$as_me:$LINENO: result: no" >&5
  1334. echo "${ECHO_T}no" >&6
  1335. fi
  1336. fi
  1337. if test -z "$CC"; then
  1338. if test -n "$ac_tool_prefix"; then
  1339. for ac_prog in cl
  1340. do
  1341. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1342. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1343. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1344. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1345. if test "${ac_cv_prog_CC+set}" = set; then
  1346. echo $ECHO_N "(cached) $ECHO_C" >&6
  1347. else
  1348. if test -n "$CC"; then
  1349. ac_cv_prog_CC="$CC" # Let the user override the test.
  1350. else
  1351. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1352. for as_dir in $PATH
  1353. do
  1354. IFS=$as_save_IFS
  1355. test -z "$as_dir" && as_dir=.
  1356. for ac_exec_ext in '' $ac_executable_extensions; do
  1357. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1358. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1359. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1360. break 2
  1361. fi
  1362. done
  1363. done
  1364. fi
  1365. fi
  1366. CC=$ac_cv_prog_CC
  1367. if test -n "$CC"; then
  1368. echo "$as_me:$LINENO: result: $CC" >&5
  1369. echo "${ECHO_T}$CC" >&6
  1370. else
  1371. echo "$as_me:$LINENO: result: no" >&5
  1372. echo "${ECHO_T}no" >&6
  1373. fi
  1374. test -n "$CC" && break
  1375. done
  1376. fi
  1377. if test -z "$CC"; then
  1378. ac_ct_CC=$CC
  1379. for ac_prog in cl
  1380. do
  1381. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1382. set dummy $ac_prog; ac_word=$2
  1383. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1384. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1385. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1386. echo $ECHO_N "(cached) $ECHO_C" >&6
  1387. else
  1388. if test -n "$ac_ct_CC"; then
  1389. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1390. else
  1391. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1392. for as_dir in $PATH
  1393. do
  1394. IFS=$as_save_IFS
  1395. test -z "$as_dir" && as_dir=.
  1396. for ac_exec_ext in '' $ac_executable_extensions; do
  1397. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1398. ac_cv_prog_ac_ct_CC="$ac_prog"
  1399. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1400. break 2
  1401. fi
  1402. done
  1403. done
  1404. fi
  1405. fi
  1406. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1407. if test -n "$ac_ct_CC"; then
  1408. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1409. echo "${ECHO_T}$ac_ct_CC" >&6
  1410. else
  1411. echo "$as_me:$LINENO: result: no" >&5
  1412. echo "${ECHO_T}no" >&6
  1413. fi
  1414. test -n "$ac_ct_CC" && break
  1415. done
  1416. CC=$ac_ct_CC
  1417. fi
  1418. fi
  1419. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1420. See \`config.log' for more details." >&5
  1421. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1422. See \`config.log' for more details." >&2;}
  1423. { (exit 1); exit 1; }; }
  1424. # Provide some information about the compiler.
  1425. echo "$as_me:$LINENO:" \
  1426. "checking for C compiler version" >&5
  1427. ac_compiler=`set X $ac_compile; echo $2`
  1428. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1429. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1430. ac_status=$?
  1431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1432. (exit $ac_status); }
  1433. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1434. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1435. ac_status=$?
  1436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1437. (exit $ac_status); }
  1438. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1439. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1440. ac_status=$?
  1441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1442. (exit $ac_status); }
  1443. cat >conftest.$ac_ext <<_ACEOF
  1444. #line $LINENO "configure"
  1445. /* confdefs.h. */
  1446. _ACEOF
  1447. cat confdefs.h >>conftest.$ac_ext
  1448. cat >>conftest.$ac_ext <<_ACEOF
  1449. /* end confdefs.h. */
  1450. int
  1451. main ()
  1452. {
  1453. ;
  1454. return 0;
  1455. }
  1456. _ACEOF
  1457. ac_clean_files_save=$ac_clean_files
  1458. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1459. # Try to create an executable without -o first, disregard a.out.
  1460. # It will help us diagnose broken compilers, and finding out an intuition
  1461. # of exeext.
  1462. echo "$as_me:$LINENO: checking for C compiler default output" >&5
  1463. echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  1464. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1465. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1466. (eval $ac_link_default) 2>&5
  1467. ac_status=$?
  1468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1469. (exit $ac_status); }; then
  1470. # Find the output, starting from the most likely. This scheme is
  1471. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1472. # resort.
  1473. # Be careful to initialize this variable, since it used to be cached.
  1474. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1475. ac_cv_exeext=
  1476. # b.out is created by i960 compilers.
  1477. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1478. do
  1479. test -f "$ac_file" || continue
  1480. case $ac_file in
  1481. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1482. ;;
  1483. conftest.$ac_ext )
  1484. # This is the source file.
  1485. ;;
  1486. [ab].out )
  1487. # We found the default executable, but exeext='' is most
  1488. # certainly right.
  1489. break;;
  1490. *.* )
  1491. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1492. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1493. # but it would be cool to find out if it's true. Does anybody
  1494. # maintain Libtool? --akim.
  1495. export ac_cv_exeext
  1496. break;;
  1497. * )
  1498. break;;
  1499. esac
  1500. done
  1501. else
  1502. echo "$as_me: failed program was:" >&5
  1503. sed 's/^/| /' conftest.$ac_ext >&5
  1504. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1505. See \`config.log' for more details." >&5
  1506. echo "$as_me: error: C compiler cannot create executables
  1507. See \`config.log' for more details." >&2;}
  1508. { (exit 77); exit 77; }; }
  1509. fi
  1510. ac_exeext=$ac_cv_exeext
  1511. echo "$as_me:$LINENO: result: $ac_file" >&5
  1512. echo "${ECHO_T}$ac_file" >&6
  1513. # Check the compiler produces executables we can run. If not, either
  1514. # the compiler is broken, or we cross compile.
  1515. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1516. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1517. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1518. # If not cross compiling, check that we can run a simple program.
  1519. if test "$cross_compiling" != yes; then
  1520. if { ac_try='./$ac_file'
  1521. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1522. (eval $ac_try) 2>&5
  1523. ac_status=$?
  1524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1525. (exit $ac_status); }; }; then
  1526. cross_compiling=no
  1527. else
  1528. if test "$cross_compiling" = maybe; then
  1529. cross_compiling=yes
  1530. else
  1531. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1532. If you meant to cross compile, use \`--host'.
  1533. See \`config.log' for more details." >&5
  1534. echo "$as_me: error: cannot run C compiled programs.
  1535. If you meant to cross compile, use \`--host'.
  1536. See \`config.log' for more details." >&2;}
  1537. { (exit 1); exit 1; }; }
  1538. fi
  1539. fi
  1540. fi
  1541. echo "$as_me:$LINENO: result: yes" >&5
  1542. echo "${ECHO_T}yes" >&6
  1543. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1544. ac_clean_files=$ac_clean_files_save
  1545. # Check the compiler produces executables we can run. If not, either
  1546. # the compiler is broken, or we cross compile.
  1547. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1548. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1549. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1550. echo "${ECHO_T}$cross_compiling" >&6
  1551. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1552. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1553. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1554. (eval $ac_link) 2>&5
  1555. ac_status=$?
  1556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1557. (exit $ac_status); }; then
  1558. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1559. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1560. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1561. # `rm'.
  1562. for ac_file in conftest.exe conftest conftest.*; do
  1563. test -f "$ac_file" || continue
  1564. case $ac_file in
  1565. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1566. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1567. export ac_cv_exeext
  1568. break;;
  1569. * ) break;;
  1570. esac
  1571. done
  1572. else
  1573. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1574. See \`config.log' for more details." >&5
  1575. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1576. See \`config.log' for more details." >&2;}
  1577. { (exit 1); exit 1; }; }
  1578. fi
  1579. rm -f conftest$ac_cv_exeext
  1580. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1581. echo "${ECHO_T}$ac_cv_exeext" >&6
  1582. rm -f conftest.$ac_ext
  1583. EXEEXT=$ac_cv_exeext
  1584. ac_exeext=$EXEEXT
  1585. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1586. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1587. if test "${ac_cv_objext+set}" = set; then
  1588. echo $ECHO_N "(cached) $ECHO_C" >&6
  1589. else
  1590. cat >conftest.$ac_ext <<_ACEOF
  1591. #line $LINENO "configure"
  1592. /* confdefs.h. */
  1593. _ACEOF
  1594. cat confdefs.h >>conftest.$ac_ext
  1595. cat >>conftest.$ac_ext <<_ACEOF
  1596. /* end confdefs.h. */
  1597. int
  1598. main ()
  1599. {
  1600. ;
  1601. return 0;
  1602. }
  1603. _ACEOF
  1604. rm -f conftest.o conftest.obj
  1605. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1606. (eval $ac_compile) 2>&5
  1607. ac_status=$?
  1608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1609. (exit $ac_status); }; then
  1610. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1611. case $ac_file in
  1612. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1613. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1614. break;;
  1615. esac
  1616. done
  1617. else
  1618. echo "$as_me: failed program was:" >&5
  1619. sed 's/^/| /' conftest.$ac_ext >&5
  1620. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1621. See \`config.log' for more details." >&5
  1622. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1623. See \`config.log' for more details." >&2;}
  1624. { (exit 1); exit 1; }; }
  1625. fi
  1626. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1627. fi
  1628. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1629. echo "${ECHO_T}$ac_cv_objext" >&6
  1630. OBJEXT=$ac_cv_objext
  1631. ac_objext=$OBJEXT
  1632. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1633. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1634. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1635. echo $ECHO_N "(cached) $ECHO_C" >&6
  1636. else
  1637. cat >conftest.$ac_ext <<_ACEOF
  1638. #line $LINENO "configure"
  1639. /* confdefs.h. */
  1640. _ACEOF
  1641. cat confdefs.h >>conftest.$ac_ext
  1642. cat >>conftest.$ac_ext <<_ACEOF
  1643. /* end confdefs.h. */
  1644. int
  1645. main ()
  1646. {
  1647. #ifndef __GNUC__
  1648. choke me
  1649. #endif
  1650. ;
  1651. return 0;
  1652. }
  1653. _ACEOF
  1654. rm -f conftest.$ac_objext
  1655. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1656. (eval $ac_compile) 2>&5
  1657. ac_status=$?
  1658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1659. (exit $ac_status); } &&
  1660. { ac_try='test -s conftest.$ac_objext'
  1661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1662. (eval $ac_try) 2>&5
  1663. ac_status=$?
  1664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1665. (exit $ac_status); }; }; then
  1666. ac_compiler_gnu=yes
  1667. else
  1668. echo "$as_me: failed program was:" >&5
  1669. sed 's/^/| /' conftest.$ac_ext >&5
  1670. ac_compiler_gnu=no
  1671. fi
  1672. rm -f conftest.$ac_objext conftest.$ac_ext
  1673. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1674. fi
  1675. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1676. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1677. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1678. ac_test_CFLAGS=${CFLAGS+set}
  1679. ac_save_CFLAGS=$CFLAGS
  1680. CFLAGS="-g"
  1681. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1682. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1683. if test "${ac_cv_prog_cc_g+set}" = set; then
  1684. echo $ECHO_N "(cached) $ECHO_C" >&6
  1685. else
  1686. cat >conftest.$ac_ext <<_ACEOF
  1687. #line $LINENO "configure"
  1688. /* confdefs.h. */
  1689. _ACEOF
  1690. cat confdefs.h >>conftest.$ac_ext
  1691. cat >>conftest.$ac_ext <<_ACEOF
  1692. /* end confdefs.h. */
  1693. int
  1694. main ()
  1695. {
  1696. ;
  1697. return 0;
  1698. }
  1699. _ACEOF
  1700. rm -f conftest.$ac_objext
  1701. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1702. (eval $ac_compile) 2>&5
  1703. ac_status=$?
  1704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1705. (exit $ac_status); } &&
  1706. { ac_try='test -s conftest.$ac_objext'
  1707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1708. (eval $ac_try) 2>&5
  1709. ac_status=$?
  1710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1711. (exit $ac_status); }; }; then
  1712. ac_cv_prog_cc_g=yes
  1713. else
  1714. echo "$as_me: failed program was:" >&5
  1715. sed 's/^/| /' conftest.$ac_ext >&5
  1716. ac_cv_prog_cc_g=no
  1717. fi
  1718. rm -f conftest.$ac_objext conftest.$ac_ext
  1719. fi
  1720. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1721. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1722. if test "$ac_test_CFLAGS" = set; then
  1723. CFLAGS=$ac_save_CFLAGS
  1724. elif test $ac_cv_prog_cc_g = yes; then
  1725. if test "$GCC" = yes; then
  1726. CFLAGS="-g -O2"
  1727. else
  1728. CFLAGS="-g"
  1729. fi
  1730. else
  1731. if test "$GCC" = yes; then
  1732. CFLAGS="-O2"
  1733. else
  1734. CFLAGS=
  1735. fi
  1736. fi
  1737. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1738. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1739. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1740. echo $ECHO_N "(cached) $ECHO_C" >&6
  1741. else
  1742. ac_cv_prog_cc_stdc=no
  1743. ac_save_CC=$CC
  1744. cat >conftest.$ac_ext <<_ACEOF
  1745. #line $LINENO "configure"
  1746. /* confdefs.h. */
  1747. _ACEOF
  1748. cat confdefs.h >>conftest.$ac_ext
  1749. cat >>conftest.$ac_ext <<_ACEOF
  1750. /* end confdefs.h. */
  1751. #include <stdarg.h>
  1752. #include <stdio.h>
  1753. #include <sys/types.h>
  1754. #include <sys/stat.h>
  1755. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1756. struct buf { int x; };
  1757. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1758. static char *e (p, i)
  1759. char **p;
  1760. int i;
  1761. {
  1762. return p[i];
  1763. }
  1764. static char *f (char * (*g) (char **, int), char **p, ...)
  1765. {
  1766. char *s;
  1767. va_list v;
  1768. va_start (v,p);
  1769. s = g (p, va_arg (v,int));
  1770. va_end (v);
  1771. return s;
  1772. }
  1773. int test (int i, double x);
  1774. struct s1 {int (*f) (int a);};
  1775. struct s2 {int (*f) (double a);};
  1776. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1777. int argc;
  1778. char **argv;
  1779. int
  1780. main ()
  1781. {
  1782. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1783. ;
  1784. return 0;
  1785. }
  1786. _ACEOF
  1787. # Don't try gcc -ansi; that turns off useful extensions and
  1788. # breaks some systems' header files.
  1789. # AIX -qlanglvl=ansi
  1790. # Ultrix and OSF/1 -std1
  1791. # HP-UX 10.20 and later -Ae
  1792. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1793. # SVR4 -Xc -D__EXTENSIONS__
  1794. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1795. do
  1796. CC="$ac_save_CC $ac_arg"
  1797. rm -f conftest.$ac_objext
  1798. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1799. (eval $ac_compile) 2>&5
  1800. ac_status=$?
  1801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1802. (exit $ac_status); } &&
  1803. { ac_try='test -s conftest.$ac_objext'
  1804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1805. (eval $ac_try) 2>&5
  1806. ac_status=$?
  1807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1808. (exit $ac_status); }; }; then
  1809. ac_cv_prog_cc_stdc=$ac_arg
  1810. break
  1811. else
  1812. echo "$as_me: failed program was:" >&5
  1813. sed 's/^/| /' conftest.$ac_ext >&5
  1814. fi
  1815. rm -f conftest.$ac_objext
  1816. done
  1817. rm -f conftest.$ac_ext conftest.$ac_objext
  1818. CC=$ac_save_CC
  1819. fi
  1820. case "x$ac_cv_prog_cc_stdc" in
  1821. x|xno)
  1822. echo "$as_me:$LINENO: result: none needed" >&5
  1823. echo "${ECHO_T}none needed" >&6 ;;
  1824. *)
  1825. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1826. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1827. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1828. esac
  1829. # Some people use a C++ compiler to compile C. Since we use `exit',
  1830. # in C++ we need to declare it. In case someone uses the same compiler
  1831. # for both compiling C and C++ we need to have the C++ compiler decide
  1832. # the declaration of exit, since it's the most demanding environment.
  1833. cat >conftest.$ac_ext <<_ACEOF
  1834. #ifndef __cplusplus
  1835. choke me
  1836. #endif
  1837. _ACEOF
  1838. rm -f conftest.$ac_objext
  1839. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1840. (eval $ac_compile) 2>&5
  1841. ac_status=$?
  1842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1843. (exit $ac_status); } &&
  1844. { ac_try='test -s conftest.$ac_objext'
  1845. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1846. (eval $ac_try) 2>&5
  1847. ac_status=$?
  1848. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1849. (exit $ac_status); }; }; then
  1850. for ac_declaration in \
  1851. ''\
  1852. '#include <stdlib.h>' \
  1853. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1854. 'extern "C" void std::exit (int); using std::exit;' \
  1855. 'extern "C" void exit (int) throw ();' \
  1856. 'extern "C" void exit (int);' \
  1857. 'void exit (int);'
  1858. do
  1859. cat >conftest.$ac_ext <<_ACEOF
  1860. #line $LINENO "configure"
  1861. /* confdefs.h. */
  1862. _ACEOF
  1863. cat confdefs.h >>conftest.$ac_ext
  1864. cat >>conftest.$ac_ext <<_ACEOF
  1865. /* end confdefs.h. */
  1866. #include <stdlib.h>
  1867. $ac_declaration
  1868. int
  1869. main ()
  1870. {
  1871. exit (42);
  1872. ;
  1873. return 0;
  1874. }
  1875. _ACEOF
  1876. rm -f conftest.$ac_objext
  1877. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1878. (eval $ac_compile) 2>&5
  1879. ac_status=$?
  1880. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1881. (exit $ac_status); } &&
  1882. { ac_try='test -s conftest.$ac_objext'
  1883. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1884. (eval $ac_try) 2>&5
  1885. ac_status=$?
  1886. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1887. (exit $ac_status); }; }; then
  1888. :
  1889. else
  1890. echo "$as_me: failed program was:" >&5
  1891. sed 's/^/| /' conftest.$ac_ext >&5
  1892. continue
  1893. fi
  1894. rm -f conftest.$ac_objext conftest.$ac_ext
  1895. cat >conftest.$ac_ext <<_ACEOF
  1896. #line $LINENO "configure"
  1897. /* confdefs.h. */
  1898. _ACEOF
  1899. cat confdefs.h >>conftest.$ac_ext
  1900. cat >>conftest.$ac_ext <<_ACEOF
  1901. /* end confdefs.h. */
  1902. $ac_declaration
  1903. int
  1904. main ()
  1905. {
  1906. exit (42);
  1907. ;
  1908. return 0;
  1909. }
  1910. _ACEOF
  1911. rm -f conftest.$ac_objext
  1912. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1913. (eval $ac_compile) 2>&5
  1914. ac_status=$?
  1915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1916. (exit $ac_status); } &&
  1917. { ac_try='test -s conftest.$ac_objext'
  1918. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1919. (eval $ac_try) 2>&5
  1920. ac_status=$?
  1921. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1922. (exit $ac_status); }; }; then
  1923. break
  1924. else
  1925. echo "$as_me: failed program was:" >&5
  1926. sed 's/^/| /' conftest.$ac_ext >&5
  1927. fi
  1928. rm -f conftest.$ac_objext conftest.$ac_ext
  1929. done
  1930. rm -f conftest*
  1931. if test -n "$ac_declaration"; then
  1932. echo '#ifdef __cplusplus' >>confdefs.h
  1933. echo $ac_declaration >>confdefs.h
  1934. echo '#endif' >>confdefs.h
  1935. fi
  1936. else
  1937. echo "$as_me: failed program was:" >&5
  1938. sed 's/^/| /' conftest.$ac_ext >&5
  1939. fi
  1940. rm -f conftest.$ac_objext conftest.$ac_ext
  1941. ac_ext=c
  1942. ac_cpp='$CPP $CPPFLAGS'
  1943. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1944. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1945. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1946. if test -n "$ac_tool_prefix"; then
  1947. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  1948. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  1949. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1950. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1951. if test "${ac_cv_prog_RANLIB+set}" = set; then
  1952. echo $ECHO_N "(cached) $ECHO_C" >&6
  1953. else
  1954. if test -n "$RANLIB"; then
  1955. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  1956. else
  1957. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1958. for as_dir in $PATH
  1959. do
  1960. IFS=$as_save_IFS
  1961. test -z "$as_dir" && as_dir=.
  1962. for ac_exec_ext in '' $ac_executable_extensions; do
  1963. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1964. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  1965. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1966. break 2
  1967. fi
  1968. done
  1969. done
  1970. fi
  1971. fi
  1972. RANLIB=$ac_cv_prog_RANLIB
  1973. if test -n "$RANLIB"; then
  1974. echo "$as_me:$LINENO: result: $RANLIB" >&5
  1975. echo "${ECHO_T}$RANLIB" >&6
  1976. else
  1977. echo "$as_me:$LINENO: result: no" >&5
  1978. echo "${ECHO_T}no" >&6
  1979. fi
  1980. fi
  1981. if test -z "$ac_cv_prog_RANLIB"; then
  1982. ac_ct_RANLIB=$RANLIB
  1983. # Extract the first word of "ranlib", so it can be a program name with args.
  1984. set dummy ranlib; ac_word=$2
  1985. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1986. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1987. if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  1988. echo $ECHO_N "(cached) $ECHO_C" >&6
  1989. else
  1990. if test -n "$ac_ct_RANLIB"; then
  1991. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  1992. else
  1993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1994. for as_dir in $PATH
  1995. do
  1996. IFS=$as_save_IFS
  1997. test -z "$as_dir" && as_dir=.
  1998. for ac_exec_ext in '' $ac_executable_extensions; do
  1999. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2000. ac_cv_prog_ac_ct_RANLIB="ranlib"
  2001. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2002. break 2
  2003. fi
  2004. done
  2005. done
  2006. test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  2007. fi
  2008. fi
  2009. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  2010. if test -n "$ac_ct_RANLIB"; then
  2011. echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  2012. echo "${ECHO_T}$ac_ct_RANLIB" >&6
  2013. else
  2014. echo "$as_me:$LINENO: result: no" >&5
  2015. echo "${ECHO_T}no" >&6
  2016. fi
  2017. RANLIB=$ac_ct_RANLIB
  2018. else
  2019. RANLIB="$ac_cv_prog_RANLIB"
  2020. fi
  2021. echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
  2022. echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
  2023. if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
  2024. echo $ECHO_N "(cached) $ECHO_C" >&6
  2025. else
  2026. ac_check_lib_save_LIBS=$LIBS
  2027. LIBS="-lpthread $LIBS"
  2028. cat >conftest.$ac_ext <<_ACEOF
  2029. #line $LINENO "configure"
  2030. /* confdefs.h. */
  2031. _ACEOF
  2032. cat confdefs.h >>conftest.$ac_ext
  2033. cat >>conftest.$ac_ext <<_ACEOF
  2034. /* end confdefs.h. */
  2035. /* Override any gcc2 internal prototype to avoid an error. */
  2036. #ifdef __cplusplus
  2037. extern "C"
  2038. #endif
  2039. /* We use char because int might match the return type of a gcc2
  2040. builtin and then its argument prototype would still apply. */
  2041. char pthread_create ();
  2042. int
  2043. main ()
  2044. {
  2045. pthread_create ();
  2046. ;
  2047. return 0;
  2048. }
  2049. _ACEOF
  2050. rm -f conftest.$ac_objext conftest$ac_exeext
  2051. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2052. (eval $ac_link) 2>&5
  2053. ac_status=$?
  2054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2055. (exit $ac_status); } &&
  2056. { ac_try='test -s conftest$ac_exeext'
  2057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2058. (eval $ac_try) 2>&5
  2059. ac_status=$?
  2060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2061. (exit $ac_status); }; }; then
  2062. ac_cv_lib_pthread_pthread_create=yes
  2063. else
  2064. echo "$as_me: failed program was:" >&5
  2065. sed 's/^/| /' conftest.$ac_ext >&5
  2066. ac_cv_lib_pthread_pthread_create=no
  2067. fi
  2068. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2069. LIBS=$ac_check_lib_save_LIBS
  2070. fi
  2071. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
  2072. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
  2073. if test $ac_cv_lib_pthread_pthread_create = yes; then
  2074. cat >>confdefs.h <<_ACEOF
  2075. #define HAVE_LIBPTHREAD 1
  2076. _ACEOF
  2077. LIBS="-lpthread $LIBS"
  2078. fi
  2079. if test "$ac_cv_lib_pthread_pthread_create" = yes ; then
  2080. CFLAGS="$CFLAGS -D_REENTRANT"
  2081. else
  2082. echo "$as_me:$LINENO: checking for pthread_create in -lpthreads" >&5
  2083. echo $ECHO_N "checking for pthread_create in -lpthreads... $ECHO_C" >&6
  2084. if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then
  2085. echo $ECHO_N "(cached) $ECHO_C" >&6
  2086. else
  2087. ac_check_lib_save_LIBS=$LIBS
  2088. LIBS="-lpthreads $LIBS"
  2089. cat >conftest.$ac_ext <<_ACEOF
  2090. #line $LINENO "configure"
  2091. /* confdefs.h. */
  2092. _ACEOF
  2093. cat confdefs.h >>conftest.$ac_ext
  2094. cat >>conftest.$ac_ext <<_ACEOF
  2095. /* end confdefs.h. */
  2096. /* Override any gcc2 internal prototype to avoid an error. */
  2097. #ifdef __cplusplus
  2098. extern "C"
  2099. #endif
  2100. /* We use char because int might match the return type of a gcc2
  2101. builtin and then its argument prototype would still apply. */
  2102. char pthread_create ();
  2103. int
  2104. main ()
  2105. {
  2106. pthread_create ();
  2107. ;
  2108. return 0;
  2109. }
  2110. _ACEOF
  2111. rm -f conftest.$ac_objext conftest$ac_exeext
  2112. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2113. (eval $ac_link) 2>&5
  2114. ac_status=$?
  2115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2116. (exit $ac_status); } &&
  2117. { ac_try='test -s conftest$ac_exeext'
  2118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2119. (eval $ac_try) 2>&5
  2120. ac_status=$?
  2121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2122. (exit $ac_status); }; }; then
  2123. ac_cv_lib_pthreads_pthread_create=yes
  2124. else
  2125. echo "$as_me: failed program was:" >&5
  2126. sed 's/^/| /' conftest.$ac_ext >&5
  2127. ac_cv_lib_pthreads_pthread_create=no
  2128. fi
  2129. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2130. LIBS=$ac_check_lib_save_LIBS
  2131. fi
  2132. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_create" >&5
  2133. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_create" >&6
  2134. if test $ac_cv_lib_pthreads_pthread_create = yes; then
  2135. cat >>confdefs.h <<_ACEOF
  2136. #define HAVE_LIBPTHREADS 1
  2137. _ACEOF
  2138. LIBS="-lpthreads $LIBS"
  2139. fi
  2140. if test "$ac_cv_lib_pthreads_pthread_create" = yes ; then
  2141. CFLAGS="$CFLAGS -D_REENTRANT"
  2142. fi
  2143. fi
  2144. echo "$as_me:$LINENO: checking for t_open in -lnsl" >&5
  2145. echo $ECHO_N "checking for t_open in -lnsl... $ECHO_C" >&6
  2146. if test "${ac_cv_lib_nsl_t_open+set}" = set; then
  2147. echo $ECHO_N "(cached) $ECHO_C" >&6
  2148. else
  2149. ac_check_lib_save_LIBS=$LIBS
  2150. LIBS="-lnsl $LIBS"
  2151. cat >conftest.$ac_ext <<_ACEOF
  2152. #line $LINENO "configure"
  2153. /* confdefs.h. */
  2154. _ACEOF
  2155. cat confdefs.h >>conftest.$ac_ext
  2156. cat >>conftest.$ac_ext <<_ACEOF
  2157. /* end confdefs.h. */
  2158. /* Override any gcc2 internal prototype to avoid an error. */
  2159. #ifdef __cplusplus
  2160. extern "C"
  2161. #endif
  2162. /* We use char because int might match the return type of a gcc2
  2163. builtin and then its argument prototype would still apply. */
  2164. char t_open ();
  2165. int
  2166. main ()
  2167. {
  2168. t_open ();
  2169. ;
  2170. return 0;
  2171. }
  2172. _ACEOF
  2173. rm -f conftest.$ac_objext conftest$ac_exeext
  2174. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2175. (eval $ac_link) 2>&5
  2176. ac_status=$?
  2177. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2178. (exit $ac_status); } &&
  2179. { ac_try='test -s conftest$ac_exeext'
  2180. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2181. (eval $ac_try) 2>&5
  2182. ac_status=$?
  2183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2184. (exit $ac_status); }; }; then
  2185. ac_cv_lib_nsl_t_open=yes
  2186. else
  2187. echo "$as_me: failed program was:" >&5
  2188. sed 's/^/| /' conftest.$ac_ext >&5
  2189. ac_cv_lib_nsl_t_open=no
  2190. fi
  2191. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2192. LIBS=$ac_check_lib_save_LIBS
  2193. fi
  2194. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_t_open" >&5
  2195. echo "${ECHO_T}$ac_cv_lib_nsl_t_open" >&6
  2196. if test $ac_cv_lib_nsl_t_open = yes; then
  2197. cat >>confdefs.h <<_ACEOF
  2198. #define HAVE_LIBNSL 1
  2199. _ACEOF
  2200. LIBS="-lnsl $LIBS"
  2201. fi
  2202. echo "$as_me:$LINENO: checking for library containing socket" >&5
  2203. echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
  2204. if test "${ac_cv_search_socket+set}" = set; then
  2205. echo $ECHO_N "(cached) $ECHO_C" >&6
  2206. else
  2207. ac_func_search_save_LIBS=$LIBS
  2208. ac_cv_search_socket=no
  2209. cat >conftest.$ac_ext <<_ACEOF
  2210. #line $LINENO "configure"
  2211. /* confdefs.h. */
  2212. _ACEOF
  2213. cat confdefs.h >>conftest.$ac_ext
  2214. cat >>conftest.$ac_ext <<_ACEOF
  2215. /* end confdefs.h. */
  2216. /* Override any gcc2 internal prototype to avoid an error. */
  2217. #ifdef __cplusplus
  2218. extern "C"
  2219. #endif
  2220. /* We use char because int might match the return type of a gcc2
  2221. builtin and then its argument prototype would still apply. */
  2222. char socket ();
  2223. int
  2224. main ()
  2225. {
  2226. socket ();
  2227. ;
  2228. return 0;
  2229. }
  2230. _ACEOF
  2231. rm -f conftest.$ac_objext conftest$ac_exeext
  2232. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2233. (eval $ac_link) 2>&5
  2234. ac_status=$?
  2235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2236. (exit $ac_status); } &&
  2237. { ac_try='test -s conftest$ac_exeext'
  2238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2239. (eval $ac_try) 2>&5
  2240. ac_status=$?
  2241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2242. (exit $ac_status); }; }; then
  2243. ac_cv_search_socket="none required"
  2244. else
  2245. echo "$as_me: failed program was:" >&5
  2246. sed 's/^/| /' conftest.$ac_ext >&5
  2247. fi
  2248. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2249. if test "$ac_cv_search_socket" = no; then
  2250. for ac_lib in socket; do
  2251. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2252. cat >conftest.$ac_ext <<_ACEOF
  2253. #line $LINENO "configure"
  2254. /* confdefs.h. */
  2255. _ACEOF
  2256. cat confdefs.h >>conftest.$ac_ext
  2257. cat >>conftest.$ac_ext <<_ACEOF
  2258. /* end confdefs.h. */
  2259. /* Override any gcc2 internal prototype to avoid an error. */
  2260. #ifdef __cplusplus
  2261. extern "C"
  2262. #endif
  2263. /* We use char because int might match the return type of a gcc2
  2264. builtin and then its argument prototype would still apply. */
  2265. char socket ();
  2266. int
  2267. main ()
  2268. {
  2269. socket ();
  2270. ;
  2271. return 0;
  2272. }
  2273. _ACEOF
  2274. rm -f conftest.$ac_objext conftest$ac_exeext
  2275. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2276. (eval $ac_link) 2>&5
  2277. ac_status=$?
  2278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2279. (exit $ac_status); } &&
  2280. { ac_try='test -s conftest$ac_exeext'
  2281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2282. (eval $ac_try) 2>&5
  2283. ac_status=$?
  2284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2285. (exit $ac_status); }; }; then
  2286. ac_cv_search_socket="-l$ac_lib"
  2287. break
  2288. else
  2289. echo "$as_me: failed program was:" >&5
  2290. sed 's/^/| /' conftest.$ac_ext >&5
  2291. fi
  2292. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2293. done
  2294. fi
  2295. LIBS=$ac_func_search_save_LIBS
  2296. fi
  2297. echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
  2298. echo "${ECHO_T}$ac_cv_search_socket" >&6
  2299. if test "$ac_cv_search_socket" != no; then
  2300. test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
  2301. fi
  2302. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  2303. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  2304. if test -f /usr/local/bind/lib/libbind.a ; then
  2305. echo "$as_me:$LINENO: result: yes" >&5
  2306. echo "${ECHO_T}yes" >&6
  2307. LIBS="/usr/local/bind/lib/libbind.a $LIBS"
  2308. else
  2309. echo "$as_me:$LINENO: result: no" >&5
  2310. echo "${ECHO_T}no" >&6
  2311. echo "$as_me:$LINENO: checking for $HOME/libbind.a" >&5
  2312. echo $ECHO_N "checking for $HOME/libbind.a... $ECHO_C" >&6
  2313. if test -f $HOME/libbind.a ; then
  2314. echo "$as_me:$LINENO: result: yes" >&5
  2315. echo "${ECHO_T}yes" >&6
  2316. LIBS="$HOME/libbind.a $LIBS"
  2317. else
  2318. echo "$as_me:$LINENO: result: no" >&5
  2319. echo "${ECHO_T}no" >&6
  2320. echo "$as_me:$LINENO: checking for $HOME/libresolv.a" >&5
  2321. echo $ECHO_N "checking for $HOME/libresolv.a... $ECHO_C" >&6
  2322. if test -f $HOME/libresolv.a ; then
  2323. echo "$as_me:$LINENO: result: yes" >&5
  2324. echo "${ECHO_T}yes" >&6
  2325. LIBS="$HOME/libresolv.a $LIBS"
  2326. else
  2327. echo "$as_me:$LINENO: result: no" >&5
  2328. echo "${ECHO_T}no" >&6
  2329. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  2330. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  2331. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  2332. echo $ECHO_N "(cached) $ECHO_C" >&6
  2333. else
  2334. ac_check_lib_save_LIBS=$LIBS
  2335. LIBS="-lresolv $LIBS"
  2336. cat >conftest.$ac_ext <<_ACEOF
  2337. #line $LINENO "configure"
  2338. /* confdefs.h. */
  2339. _ACEOF
  2340. cat confdefs.h >>conftest.$ac_ext
  2341. cat >>conftest.$ac_ext <<_ACEOF
  2342. /* end confdefs.h. */
  2343. /* Override any gcc2 internal prototype to avoid an error. */
  2344. #ifdef __cplusplus
  2345. extern "C"
  2346. #endif
  2347. /* We use char because int might match the return type of a gcc2
  2348. builtin and then its argument prototype would still apply. */
  2349. char res_init ();
  2350. int
  2351. main ()
  2352. {
  2353. res_init ();
  2354. ;
  2355. return 0;
  2356. }
  2357. _ACEOF
  2358. rm -f conftest.$ac_objext conftest$ac_exeext
  2359. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2360. (eval $ac_link) 2>&5
  2361. ac_status=$?
  2362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2363. (exit $ac_status); } &&
  2364. { ac_try='test -s conftest$ac_exeext'
  2365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2366. (eval $ac_try) 2>&5
  2367. ac_status=$?
  2368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2369. (exit $ac_status); }; }; then
  2370. ac_cv_lib_resolv_res_init=yes
  2371. else
  2372. echo "$as_me: failed program was:" >&5
  2373. sed 's/^/| /' conftest.$ac_ext >&5
  2374. ac_cv_lib_resolv_res_init=no
  2375. fi
  2376. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2377. LIBS=$ac_check_lib_save_LIBS
  2378. fi
  2379. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  2380. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  2381. if test $ac_cv_lib_resolv_res_init = yes; then
  2382. cat >>confdefs.h <<_ACEOF
  2383. #define HAVE_LIBRESOLV 1
  2384. _ACEOF
  2385. LIBS="-lresolv $LIBS"
  2386. fi
  2387. fi
  2388. fi
  2389. fi
  2390. echo "$as_me:$LINENO: checking for t_open in -lxti" >&5
  2391. echo $ECHO_N "checking for t_open in -lxti... $ECHO_C" >&6
  2392. if test "${ac_cv_lib_xti_t_open+set}" = set; then
  2393. echo $ECHO_N "(cached) $ECHO_C" >&6
  2394. else
  2395. ac_check_lib_save_LIBS=$LIBS
  2396. LIBS="-lxti $LIBS"
  2397. cat >conftest.$ac_ext <<_ACEOF
  2398. #line $LINENO "configure"
  2399. /* confdefs.h. */
  2400. _ACEOF
  2401. cat confdefs.h >>conftest.$ac_ext
  2402. cat >>conftest.$ac_ext <<_ACEOF
  2403. /* end confdefs.h. */
  2404. /* Override any gcc2 internal prototype to avoid an error. */
  2405. #ifdef __cplusplus
  2406. extern "C"
  2407. #endif
  2408. /* We use char because int might match the return type of a gcc2
  2409. builtin and then its argument prototype would still apply. */
  2410. char t_open ();
  2411. int
  2412. main ()
  2413. {
  2414. t_open ();
  2415. ;
  2416. return 0;
  2417. }
  2418. _ACEOF
  2419. rm -f conftest.$ac_objext conftest$ac_exeext
  2420. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2421. (eval $ac_link) 2>&5
  2422. ac_status=$?
  2423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2424. (exit $ac_status); } &&
  2425. { ac_try='test -s conftest$ac_exeext'
  2426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2427. (eval $ac_try) 2>&5
  2428. ac_status=$?
  2429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2430. (exit $ac_status); }; }; then
  2431. ac_cv_lib_xti_t_open=yes
  2432. else
  2433. echo "$as_me: failed program was:" >&5
  2434. sed 's/^/| /' conftest.$ac_ext >&5
  2435. ac_cv_lib_xti_t_open=no
  2436. fi
  2437. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  2438. LIBS=$ac_check_lib_save_LIBS
  2439. fi
  2440. echo "$as_me:$LINENO: result: $ac_cv_lib_xti_t_open" >&5
  2441. echo "${ECHO_T}$ac_cv_lib_xti_t_open" >&6
  2442. if test $ac_cv_lib_xti_t_open = yes; then
  2443. cat >>confdefs.h <<_ACEOF
  2444. #define HAVE_LIBXTI 1
  2445. _ACEOF
  2446. LIBS="-lxti $LIBS"
  2447. fi
  2448. echo "$as_me:$LINENO: checking for $HOME/libunp.a" >&5
  2449. echo $ECHO_N "checking for $HOME/libunp.a... $ECHO_C" >&6
  2450. if test -f $HOME/libunp.a ; then
  2451. echo "$as_me:$LINENO: result: yes" >&5
  2452. echo "${ECHO_T}yes" >&6
  2453. LIBUNP="$HOME/libunp.a"
  2454. LIBUNP_NAME=$HOME/libunp.a
  2455. else
  2456. echo "$as_me:$LINENO: result: no" >&5
  2457. echo "${ECHO_T}no" >&6
  2458. LIBUNP="../libunp.a"
  2459. LIBUNP_NAME=../libunp.a
  2460. fi
  2461. echo "$as_me:$LINENO: checking for $HOME/libunpxti.a" >&5
  2462. echo $ECHO_N "checking for $HOME/libunpxti.a... $ECHO_C" >&6
  2463. if test -f $HOME/libunpxti.a ; then
  2464. echo "$as_me:$LINENO: result: yes" >&5
  2465. echo "${ECHO_T}yes" >&6
  2466. LIBUNPXTI="$HOME/libunpxti.a"
  2467. LIBUNPXTI_NAME=$HOME/libunpxti.a
  2468. else
  2469. echo "$as_me:$LINENO: result: no" >&5
  2470. echo "${ECHO_T}no" >&6
  2471. LIBUNPXTI="../libunpxti.a"
  2472. LIBUNPXTI_NAME=../libunpxti.a
  2473. fi
  2474. ac_ext=c
  2475. ac_cpp='$CPP $CPPFLAGS'
  2476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2479. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2480. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2481. # On Suns, sometimes $CPP names a directory.
  2482. if test -n "$CPP" && test -d "$CPP"; then
  2483. CPP=
  2484. fi
  2485. if test -z "$CPP"; then
  2486. if test "${ac_cv_prog_CPP+set}" = set; then
  2487. echo $ECHO_N "(cached) $ECHO_C" >&6
  2488. else
  2489. # Double quotes because CPP needs to be expanded
  2490. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2491. do
  2492. ac_preproc_ok=false
  2493. for ac_c_preproc_warn_flag in '' yes
  2494. do
  2495. # Use a header file that comes with gcc, so configuring glibc
  2496. # with a fresh cross-compiler works.
  2497. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2498. # <limits.h> exists even on freestanding compilers.
  2499. # On the NeXT, cc -E runs the code through the compiler's parser,
  2500. # not just through cpp. "Syntax error" is here to catch this case.
  2501. cat >conftest.$ac_ext <<_ACEOF
  2502. #line $LINENO "configure"
  2503. /* confdefs.h. */
  2504. _ACEOF
  2505. cat confdefs.h >>conftest.$ac_ext
  2506. cat >>conftest.$ac_ext <<_ACEOF
  2507. /* end confdefs.h. */
  2508. #ifdef __STDC__
  2509. # include <limits.h>
  2510. #else
  2511. # include <assert.h>
  2512. #endif
  2513. Syntax error
  2514. _ACEOF
  2515. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2516. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2517. ac_status=$?
  2518. grep -v '^ *+' conftest.er1 >conftest.err
  2519. rm -f conftest.er1
  2520. cat conftest.err >&5
  2521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2522. (exit $ac_status); } >/dev/null; then
  2523. if test -s conftest.err; then
  2524. ac_cpp_err=$ac_c_preproc_warn_flag
  2525. else
  2526. ac_cpp_err=
  2527. fi
  2528. else
  2529. ac_cpp_err=yes
  2530. fi
  2531. if test -z "$ac_cpp_err"; then
  2532. :
  2533. else
  2534. echo "$as_me: failed program was:" >&5
  2535. sed 's/^/| /' conftest.$ac_ext >&5
  2536. # Broken: fails on valid input.
  2537. continue
  2538. fi
  2539. rm -f conftest.err conftest.$ac_ext
  2540. # OK, works on sane cases. Now check whether non-existent headers
  2541. # can be detected and how.
  2542. cat >conftest.$ac_ext <<_ACEOF
  2543. #line $LINENO "configure"
  2544. /* confdefs.h. */
  2545. _ACEOF
  2546. cat confdefs.h >>conftest.$ac_ext
  2547. cat >>conftest.$ac_ext <<_ACEOF
  2548. /* end confdefs.h. */
  2549. #include <ac_nonexistent.h>
  2550. _ACEOF
  2551. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2552. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2553. ac_status=$?
  2554. grep -v '^ *+' conftest.er1 >conftest.err
  2555. rm -f conftest.er1
  2556. cat conftest.err >&5
  2557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2558. (exit $ac_status); } >/dev/null; then
  2559. if test -s conftest.err; then
  2560. ac_cpp_err=$ac_c_preproc_warn_flag
  2561. else
  2562. ac_cpp_err=
  2563. fi
  2564. else
  2565. ac_cpp_err=yes
  2566. fi
  2567. if test -z "$ac_cpp_err"; then
  2568. # Broken: success on invalid input.
  2569. continue
  2570. else
  2571. echo "$as_me: failed program was:" >&5
  2572. sed 's/^/| /' conftest.$ac_ext >&5
  2573. # Passes both tests.
  2574. ac_preproc_ok=:
  2575. break
  2576. fi
  2577. rm -f conftest.err conftest.$ac_ext
  2578. done
  2579. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2580. rm -f conftest.err conftest.$ac_ext
  2581. if $ac_preproc_ok; then
  2582. break
  2583. fi
  2584. done
  2585. ac_cv_prog_CPP=$CPP
  2586. fi
  2587. CPP=$ac_cv_prog_CPP
  2588. else
  2589. ac_cv_prog_CPP=$CPP
  2590. fi
  2591. echo "$as_me:$LINENO: result: $CPP" >&5
  2592. echo "${ECHO_T}$CPP" >&6
  2593. ac_preproc_ok=false
  2594. for ac_c_preproc_warn_flag in '' yes
  2595. do
  2596. # Use a header file that comes with gcc, so configuring glibc
  2597. # with a fresh cross-compiler works.
  2598. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2599. # <limits.h> exists even on freestanding compilers.
  2600. # On the NeXT, cc -E runs the code through the compiler's parser,
  2601. # not just through cpp. "Syntax error" is here to catch this case.
  2602. cat >conftest.$ac_ext <<_ACEOF
  2603. #line $LINENO "configure"
  2604. /* confdefs.h. */
  2605. _ACEOF
  2606. cat confdefs.h >>conftest.$ac_ext
  2607. cat >>conftest.$ac_ext <<_ACEOF
  2608. /* end confdefs.h. */
  2609. #ifdef __STDC__
  2610. # include <limits.h>
  2611. #else
  2612. # include <assert.h>
  2613. #endif
  2614. Syntax error
  2615. _ACEOF
  2616. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2617. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2618. ac_status=$?
  2619. grep -v '^ *+' conftest.er1 >conftest.err
  2620. rm -f conftest.er1
  2621. cat conftest.err >&5
  2622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2623. (exit $ac_status); } >/dev/null; then
  2624. if test -s conftest.err; then
  2625. ac_cpp_err=$ac_c_preproc_warn_flag
  2626. else
  2627. ac_cpp_err=
  2628. fi
  2629. else
  2630. ac_cpp_err=yes
  2631. fi
  2632. if test -z "$ac_cpp_err"; then
  2633. :
  2634. else
  2635. echo "$as_me: failed program was:" >&5
  2636. sed 's/^/| /' conftest.$ac_ext >&5
  2637. # Broken: fails on valid input.
  2638. continue
  2639. fi
  2640. rm -f conftest.err conftest.$ac_ext
  2641. # OK, works on sane cases. Now check whether non-existent headers
  2642. # can be detected and how.
  2643. cat >conftest.$ac_ext <<_ACEOF
  2644. #line $LINENO "configure"
  2645. /* confdefs.h. */
  2646. _ACEOF
  2647. cat confdefs.h >>conftest.$ac_ext
  2648. cat >>conftest.$ac_ext <<_ACEOF
  2649. /* end confdefs.h. */
  2650. #include <ac_nonexistent.h>
  2651. _ACEOF
  2652. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2653. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2654. ac_status=$?
  2655. grep -v '^ *+' conftest.er1 >conftest.err
  2656. rm -f conftest.er1
  2657. cat conftest.err >&5
  2658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2659. (exit $ac_status); } >/dev/null; then
  2660. if test -s conftest.err; then
  2661. ac_cpp_err=$ac_c_preproc_warn_flag
  2662. else
  2663. ac_cpp_err=
  2664. fi
  2665. else
  2666. ac_cpp_err=yes
  2667. fi
  2668. if test -z "$ac_cpp_err"; then
  2669. # Broken: success on invalid input.
  2670. continue
  2671. else
  2672. echo "$as_me: failed program was:" >&5
  2673. sed 's/^/| /' conftest.$ac_ext >&5
  2674. # Passes both tests.
  2675. ac_preproc_ok=:
  2676. break
  2677. fi
  2678. rm -f conftest.err conftest.$ac_ext
  2679. done
  2680. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2681. rm -f conftest.err conftest.$ac_ext
  2682. if $ac_preproc_ok; then
  2683. :
  2684. else
  2685. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2686. See \`config.log' for more details." >&5
  2687. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2688. See \`config.log' for more details." >&2;}
  2689. { (exit 1); exit 1; }; }
  2690. fi
  2691. ac_ext=c
  2692. ac_cpp='$CPP $CPPFLAGS'
  2693. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2694. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2695. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2696. echo "$as_me:$LINENO: checking for egrep" >&5
  2697. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2698. if test "${ac_cv_prog_egrep+set}" = set; then
  2699. echo $ECHO_N "(cached) $ECHO_C" >&6
  2700. else
  2701. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2702. then ac_cv_prog_egrep='grep -E'
  2703. else ac_cv_prog_egrep='egrep'
  2704. fi
  2705. fi
  2706. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2707. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2708. EGREP=$ac_cv_prog_egrep
  2709. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2710. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2711. if test "${ac_cv_header_stdc+set}" = set; then
  2712. echo $ECHO_N "(cached) $ECHO_C" >&6
  2713. else
  2714. cat >conftest.$ac_ext <<_ACEOF
  2715. #line $LINENO "configure"
  2716. /* confdefs.h. */
  2717. _ACEOF
  2718. cat confdefs.h >>conftest.$ac_ext
  2719. cat >>conftest.$ac_ext <<_ACEOF
  2720. /* end confdefs.h. */
  2721. #include <stdlib.h>
  2722. #include <stdarg.h>
  2723. #include <string.h>
  2724. #include <float.h>
  2725. int
  2726. main ()
  2727. {
  2728. ;
  2729. return 0;
  2730. }
  2731. _ACEOF
  2732. rm -f conftest.$ac_objext
  2733. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2734. (eval $ac_compile) 2>&5
  2735. ac_status=$?
  2736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2737. (exit $ac_status); } &&
  2738. { ac_try='test -s conftest.$ac_objext'
  2739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2740. (eval $ac_try) 2>&5
  2741. ac_status=$?
  2742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2743. (exit $ac_status); }; }; then
  2744. ac_cv_header_stdc=yes
  2745. else
  2746. echo "$as_me: failed program was:" >&5
  2747. sed 's/^/| /' conftest.$ac_ext >&5
  2748. ac_cv_header_stdc=no
  2749. fi
  2750. rm -f conftest.$ac_objext conftest.$ac_ext
  2751. if test $ac_cv_header_stdc = yes; then
  2752. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2753. cat >conftest.$ac_ext <<_ACEOF
  2754. #line $LINENO "configure"
  2755. /* confdefs.h. */
  2756. _ACEOF
  2757. cat confdefs.h >>conftest.$ac_ext
  2758. cat >>conftest.$ac_ext <<_ACEOF
  2759. /* end confdefs.h. */
  2760. #include <string.h>
  2761. _ACEOF
  2762. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2763. $EGREP "memchr" >/dev/null 2>&1; then
  2764. :
  2765. else
  2766. ac_cv_header_stdc=no
  2767. fi
  2768. rm -f conftest*
  2769. fi
  2770. if test $ac_cv_header_stdc = yes; then
  2771. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2772. cat >conftest.$ac_ext <<_ACEOF
  2773. #line $LINENO "configure"
  2774. /* confdefs.h. */
  2775. _ACEOF
  2776. cat confdefs.h >>conftest.$ac_ext
  2777. cat >>conftest.$ac_ext <<_ACEOF
  2778. /* end confdefs.h. */
  2779. #include <stdlib.h>
  2780. _ACEOF
  2781. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2782. $EGREP "free" >/dev/null 2>&1; then
  2783. :
  2784. else
  2785. ac_cv_header_stdc=no
  2786. fi
  2787. rm -f conftest*
  2788. fi
  2789. if test $ac_cv_header_stdc = yes; then
  2790. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2791. if test "$cross_compiling" = yes; then
  2792. :
  2793. else
  2794. cat >conftest.$ac_ext <<_ACEOF
  2795. #line $LINENO "configure"
  2796. /* confdefs.h. */
  2797. _ACEOF
  2798. cat confdefs.h >>conftest.$ac_ext
  2799. cat >>conftest.$ac_ext <<_ACEOF
  2800. /* end confdefs.h. */
  2801. #include <ctype.h>
  2802. #if ((' ' & 0x0FF) == 0x020)
  2803. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2804. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2805. #else
  2806. # define ISLOWER(c) \
  2807. (('a' <= (c) && (c) <= 'i') \
  2808. || ('j' <= (c) && (c) <= 'r') \
  2809. || ('s' <= (c) && (c) <= 'z'))
  2810. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2811. #endif
  2812. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2813. int
  2814. main ()
  2815. {
  2816. int i;
  2817. for (i = 0; i < 256; i++)
  2818. if (XOR (islower (i), ISLOWER (i))
  2819. || toupper (i) != TOUPPER (i))
  2820. exit(2);
  2821. exit (0);
  2822. }
  2823. _ACEOF
  2824. rm -f conftest$ac_exeext
  2825. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2826. (eval $ac_link) 2>&5
  2827. ac_status=$?
  2828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2829. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2830. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2831. (eval $ac_try) 2>&5
  2832. ac_status=$?
  2833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2834. (exit $ac_status); }; }; then
  2835. :
  2836. else
  2837. echo "$as_me: program exited with status $ac_status" >&5
  2838. echo "$as_me: failed program was:" >&5
  2839. sed 's/^/| /' conftest.$ac_ext >&5
  2840. ( exit $ac_status )
  2841. ac_cv_header_stdc=no
  2842. fi
  2843. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2844. fi
  2845. fi
  2846. fi
  2847. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2848. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2849. if test $ac_cv_header_stdc = yes; then
  2850. cat >>confdefs.h <<\_ACEOF
  2851. #define STDC_HEADERS 1
  2852. _ACEOF
  2853. fi
  2854. for ac_header in sys/types.h sys/socket.h sys/time.h time.h netinet/in.h arpa/inet.h errno.h fcntl.h netdb.h signal.h stdio.h stdlib.h string.h sys/stat.h sys/uio.h unistd.h sys/wait.h sys/un.h sys/param.h sys/select.h sys/sysctl.h poll.h sys/event.h strings.h sys/ioctl.h sys/filio.h sys/sockio.h pthread.h net/if_dl.h xti.h xti_inet.h netconfig.h netdir.h stropts.h
  2855. do
  2856. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2857. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2858. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2859. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2860. echo $ECHO_N "(cached) $ECHO_C" >&6
  2861. else
  2862. cat >conftest.$ac_ext <<_ACEOF
  2863. #line $LINENO "configure"
  2864. /* confdefs.h. */
  2865. _ACEOF
  2866. cat confdefs.h >>conftest.$ac_ext
  2867. cat >>conftest.$ac_ext <<_ACEOF
  2868. /* end confdefs.h. */
  2869. #include <stdio.h>
  2870. #if HAVE_SYS_TYPES_H
  2871. # include <sys/types.h>
  2872. #endif
  2873. #if HAVE_SYS_STAT_H
  2874. # include <sys/stat.h>
  2875. #endif
  2876. #if STDC_HEADERS
  2877. # include <stdlib.h>
  2878. # include <stddef.h>
  2879. #else
  2880. # if HAVE_STDLIB_H
  2881. # include <stdlib.h>
  2882. # endif
  2883. #endif
  2884. #if HAVE_STRING_H
  2885. # if !STDC_HEADERS && HAVE_MEMORY_H
  2886. # include <memory.h>
  2887. # endif
  2888. # include <string.h>
  2889. #endif
  2890. #if HAVE_STRINGS_H
  2891. # include <strings.h>
  2892. #endif
  2893. #if HAVE_INTTYPES_H
  2894. # include <inttypes.h>
  2895. #else
  2896. # if HAVE_STDINT_H
  2897. # include <stdint.h>
  2898. # endif
  2899. #endif
  2900. #if HAVE_UNISTD_H
  2901. # include <unistd.h>
  2902. #endif
  2903. #if HAVE_SYS_PARAM_H
  2904. # include <sys/param.h>
  2905. #endif
  2906. #include <$ac_header>
  2907. _ACEOF
  2908. rm -f conftest.$ac_objext
  2909. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2910. (eval $ac_compile) 2>&5
  2911. ac_status=$?
  2912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2913. (exit $ac_status); } &&
  2914. { ac_try='test -s conftest.$ac_objext'
  2915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2916. (eval $ac_try) 2>&5
  2917. ac_status=$?
  2918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2919. (exit $ac_status); }; }; then
  2920. eval "$as_ac_Header=yes"
  2921. else
  2922. echo "$as_me: failed program was:" >&5
  2923. sed 's/^/| /' conftest.$ac_ext >&5
  2924. eval "$as_ac_Header=no"
  2925. fi
  2926. rm -f conftest.$ac_objext conftest.$ac_ext
  2927. fi
  2928. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2929. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2930. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2931. cat >>confdefs.h <<_ACEOF
  2932. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2933. _ACEOF
  2934. fi
  2935. done
  2936. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  2937. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  2938. if test "${ac_cv_header_time+set}" = set; then
  2939. echo $ECHO_N "(cached) $ECHO_C" >&6
  2940. else
  2941. cat >conftest.$ac_ext <<_ACEOF
  2942. #line $LINENO "configure"
  2943. /* confdefs.h. */
  2944. _ACEOF
  2945. cat confdefs.h >>conftest.$ac_ext
  2946. cat >>conftest.$ac_ext <<_ACEOF
  2947. /* end confdefs.h. */
  2948. #include <sys/types.h>
  2949. #include <sys/time.h>
  2950. #include <time.h>
  2951. int
  2952. main ()
  2953. {
  2954. if ((struct tm *) 0)
  2955. return 0;
  2956. ;
  2957. return 0;
  2958. }
  2959. _ACEOF
  2960. rm -f conftest.$ac_objext
  2961. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2962. (eval $ac_compile) 2>&5
  2963. ac_status=$?
  2964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2965. (exit $ac_status); } &&
  2966. { ac_try='test -s conftest.$ac_objext'
  2967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2968. (eval $ac_try) 2>&5
  2969. ac_status=$?
  2970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2971. (exit $ac_status); }; }; then
  2972. ac_cv_header_time=yes
  2973. else
  2974. echo "$as_me: failed program was:" >&5
  2975. sed 's/^/| /' conftest.$ac_ext >&5
  2976. ac_cv_header_time=no
  2977. fi
  2978. rm -f conftest.$ac_objext conftest.$ac_ext
  2979. fi
  2980. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  2981. echo "${ECHO_T}$ac_cv_header_time" >&6
  2982. if test $ac_cv_header_time = yes; then
  2983. cat >>confdefs.h <<\_ACEOF
  2984. #define TIME_WITH_SYS_TIME 1
  2985. _ACEOF
  2986. fi
  2987. echo "$as_me:$LINENO: checking if uint8_t defined" >&5
  2988. echo $ECHO_N "checking if uint8_t defined... $ECHO_C" >&6
  2989. if test "${ac_cv_type_uint8_t+set}" = set; then
  2990. echo $ECHO_N "(cached) $ECHO_C" >&6
  2991. else
  2992. cat >conftest.$ac_ext <<_ACEOF
  2993. #line $LINENO "configure"
  2994. /* confdefs.h. */
  2995. _ACEOF
  2996. cat confdefs.h >>conftest.$ac_ext
  2997. cat >>conftest.$ac_ext <<_ACEOF
  2998. /* end confdefs.h. */
  2999. #include "confdefs.h" /* the header built by configure so far */
  3000. #ifdef HAVE_SYS_TYPES_H
  3001. # include <sys/types.h>
  3002. #endif
  3003. #ifdef HAVE_SYS_SOCKET_H
  3004. # include <sys/socket.h>
  3005. #endif
  3006. #ifdef HAVE_SYS_TIME_H
  3007. # include <sys/time.h>
  3008. #endif
  3009. #ifdef HAVE_NETINET_IN_H
  3010. # include <netinet/in.h>
  3011. #endif
  3012. #ifdef HAVE_ARPA_INET_H
  3013. # include <arpa/inet.h>
  3014. #endif
  3015. #ifdef HAVE_ERRNO_H
  3016. # include <errno.h>
  3017. #endif
  3018. #ifdef HAVE_FCNTL_H
  3019. # include <fcntl.h>
  3020. #endif
  3021. #ifdef HAVE_NETDB_H
  3022. # include <netdb.h>
  3023. #endif
  3024. #ifdef HAVE_SIGNAL_H
  3025. # include <signal.h>
  3026. #endif
  3027. #ifdef HAVE_STDIO_H
  3028. # include <stdio.h>
  3029. #endif
  3030. #ifdef HAVE_STDLIB_H
  3031. # include <stdlib.h>
  3032. #endif
  3033. #ifdef HAVE_STRING_H
  3034. # include <string.h>
  3035. #endif
  3036. #ifdef HAVE_SYS_STAT_H
  3037. # include <sys/stat.h>
  3038. #endif
  3039. #ifdef HAVE_SYS_UIO_H
  3040. # include <sys/uio.h>
  3041. #endif
  3042. #ifdef HAVE_UNISTD_H
  3043. # include <unistd.h>
  3044. #endif
  3045. #ifdef HAVE_SYS_WAIT_H
  3046. # include <sys/wait.h>
  3047. #endif
  3048. #ifdef HAVE_SYS_UN_H
  3049. # include <sys/un.h>
  3050. #endif
  3051. #ifdef HAVE_SYS_SELECT_H
  3052. # include <sys/select.h>
  3053. #endif
  3054. #ifdef HAVE_STRINGS_H
  3055. # include <strings.h>
  3056. #endif
  3057. #ifdef HAVE_SYS_IOCTL_H
  3058. # include <sys/ioctl.h>
  3059. #endif
  3060. #ifdef HAVE_SYS_FILIO_H
  3061. # include <sys/filio.h>
  3062. #endif
  3063. #ifdef HAVE_SYS_SOCKIO_H
  3064. # include <sys/sockio.h>
  3065. #endif
  3066. #ifdef HAVE_PTHREAD_H
  3067. # include <pthread.h>
  3068. #endif
  3069. int
  3070. main ()
  3071. {
  3072. uint8_t foo
  3073. ;
  3074. return 0;
  3075. }
  3076. _ACEOF
  3077. rm -f conftest.$ac_objext
  3078. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3079. (eval $ac_compile) 2>&5
  3080. ac_status=$?
  3081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3082. (exit $ac_status); } &&
  3083. { ac_try='test -s conftest.$ac_objext'
  3084. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3085. (eval $ac_try) 2>&5
  3086. ac_status=$?
  3087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3088. (exit $ac_status); }; }; then
  3089. ac_cv_type_uint8_t=yes
  3090. else
  3091. echo "$as_me: failed program was:" >&5
  3092. sed 's/^/| /' conftest.$ac_ext >&5
  3093. ac_cv_type_uint8_t=no
  3094. fi
  3095. rm -f conftest.$ac_objext conftest.$ac_ext
  3096. fi
  3097. echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
  3098. echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
  3099. if test $ac_cv_type_uint8_t = no ; then
  3100. cat >>confdefs.h <<\_ACEOF
  3101. #define uint8_t unsigned char
  3102. _ACEOF
  3103. fi
  3104. echo "$as_me:$LINENO: checking if int16_t defined" >&5
  3105. echo $ECHO_N "checking if int16_t defined... $ECHO_C" >&6
  3106. if test "${ac_cv_type_int16_t+set}" = set; then
  3107. echo $ECHO_N "(cached) $ECHO_C" >&6
  3108. else
  3109. cat >conftest.$ac_ext <<_ACEOF
  3110. #line $LINENO "configure"
  3111. /* confdefs.h. */
  3112. _ACEOF
  3113. cat confdefs.h >>conftest.$ac_ext
  3114. cat >>conftest.$ac_ext <<_ACEOF
  3115. /* end confdefs.h. */
  3116. #include "confdefs.h" /* the header built by configure so far */
  3117. #ifdef HAVE_SYS_TYPES_H
  3118. # include <sys/types.h>
  3119. #endif
  3120. #ifdef HAVE_SYS_SOCKET_H
  3121. # include <sys/socket.h>
  3122. #endif
  3123. #ifdef HAVE_SYS_TIME_H
  3124. # include <sys/time.h>
  3125. #endif
  3126. #ifdef HAVE_NETINET_IN_H
  3127. # include <netinet/in.h>
  3128. #endif
  3129. #ifdef HAVE_ARPA_INET_H
  3130. # include <arpa/inet.h>
  3131. #endif
  3132. #ifdef HAVE_ERRNO_H
  3133. # include <errno.h>
  3134. #endif
  3135. #ifdef HAVE_FCNTL_H
  3136. # include <fcntl.h>
  3137. #endif
  3138. #ifdef HAVE_NETDB_H
  3139. # include <netdb.h>
  3140. #endif
  3141. #ifdef HAVE_SIGNAL_H
  3142. # include <signal.h>
  3143. #endif
  3144. #ifdef HAVE_STDIO_H
  3145. # include <stdio.h>
  3146. #endif
  3147. #ifdef HAVE_STDLIB_H
  3148. # include <stdlib.h>
  3149. #endif
  3150. #ifdef HAVE_STRING_H
  3151. # include <string.h>
  3152. #endif
  3153. #ifdef HAVE_SYS_STAT_H
  3154. # include <sys/stat.h>
  3155. #endif
  3156. #ifdef HAVE_SYS_UIO_H
  3157. # include <sys/uio.h>
  3158. #endif
  3159. #ifdef HAVE_UNISTD_H
  3160. # include <unistd.h>
  3161. #endif
  3162. #ifdef HAVE_SYS_WAIT_H
  3163. # include <sys/wait.h>
  3164. #endif
  3165. #ifdef HAVE_SYS_UN_H
  3166. # include <sys/un.h>
  3167. #endif
  3168. #ifdef HAVE_SYS_SELECT_H
  3169. # include <sys/select.h>
  3170. #endif
  3171. #ifdef HAVE_STRINGS_H
  3172. # include <strings.h>
  3173. #endif
  3174. #ifdef HAVE_SYS_IOCTL_H
  3175. # include <sys/ioctl.h>
  3176. #endif
  3177. #ifdef HAVE_SYS_FILIO_H
  3178. # include <sys/filio.h>
  3179. #endif
  3180. #ifdef HAVE_SYS_SOCKIO_H
  3181. # include <sys/sockio.h>
  3182. #endif
  3183. #ifdef HAVE_PTHREAD_H
  3184. # include <pthread.h>
  3185. #endif
  3186. int
  3187. main ()
  3188. {
  3189. int16_t foo
  3190. ;
  3191. return 0;
  3192. }
  3193. _ACEOF
  3194. rm -f conftest.$ac_objext
  3195. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3196. (eval $ac_compile) 2>&5
  3197. ac_status=$?
  3198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3199. (exit $ac_status); } &&
  3200. { ac_try='test -s conftest.$ac_objext'
  3201. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3202. (eval $ac_try) 2>&5
  3203. ac_status=$?
  3204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3205. (exit $ac_status); }; }; then
  3206. ac_cv_type_int16_t=yes
  3207. else
  3208. echo "$as_me: failed program was:" >&5
  3209. sed 's/^/| /' conftest.$ac_ext >&5
  3210. ac_cv_type_int16_t=no
  3211. fi
  3212. rm -f conftest.$ac_objext conftest.$ac_ext
  3213. fi
  3214. echo "$as_me:$LINENO: result: $ac_cv_type_int16_t" >&5
  3215. echo "${ECHO_T}$ac_cv_type_int16_t" >&6
  3216. if test $ac_cv_type_int16_t = no ; then
  3217. cat >>confdefs.h <<\_ACEOF
  3218. #define int16_t short
  3219. _ACEOF
  3220. fi
  3221. echo "$as_me:$LINENO: checking if uint16_t defined" >&5
  3222. echo $ECHO_N "checking if uint16_t defined... $ECHO_C" >&6
  3223. if test "${ac_cv_type_uint16_t+set}" = set; then
  3224. echo $ECHO_N "(cached) $ECHO_C" >&6
  3225. else
  3226. cat >conftest.$ac_ext <<_ACEOF
  3227. #line $LINENO "configure"
  3228. /* confdefs.h. */
  3229. _ACEOF
  3230. cat confdefs.h >>conftest.$ac_ext
  3231. cat >>conftest.$ac_ext <<_ACEOF
  3232. /* end confdefs.h. */
  3233. #include "confdefs.h" /* the header built by configure so far */
  3234. #ifdef HAVE_SYS_TYPES_H
  3235. # include <sys/types.h>
  3236. #endif
  3237. #ifdef HAVE_SYS_SOCKET_H
  3238. # include <sys/socket.h>
  3239. #endif
  3240. #ifdef HAVE_SYS_TIME_H
  3241. # include <sys/time.h>
  3242. #endif
  3243. #ifdef HAVE_NETINET_IN_H
  3244. # include <netinet/in.h>
  3245. #endif
  3246. #ifdef HAVE_ARPA_INET_H
  3247. # include <arpa/inet.h>
  3248. #endif
  3249. #ifdef HAVE_ERRNO_H
  3250. # include <errno.h>
  3251. #endif
  3252. #ifdef HAVE_FCNTL_H
  3253. # include <fcntl.h>
  3254. #endif
  3255. #ifdef HAVE_NETDB_H
  3256. # include <netdb.h>
  3257. #endif
  3258. #ifdef HAVE_SIGNAL_H
  3259. # include <signal.h>
  3260. #endif
  3261. #ifdef HAVE_STDIO_H
  3262. # include <stdio.h>
  3263. #endif
  3264. #ifdef HAVE_STDLIB_H
  3265. # include <stdlib.h>
  3266. #endif
  3267. #ifdef HAVE_STRING_H
  3268. # include <string.h>
  3269. #endif
  3270. #ifdef HAVE_SYS_STAT_H
  3271. # include <sys/stat.h>
  3272. #endif
  3273. #ifdef HAVE_SYS_UIO_H
  3274. # include <sys/uio.h>
  3275. #endif
  3276. #ifdef HAVE_UNISTD_H
  3277. # include <unistd.h>
  3278. #endif
  3279. #ifdef HAVE_SYS_WAIT_H
  3280. # include <sys/wait.h>
  3281. #endif
  3282. #ifdef HAVE_SYS_UN_H
  3283. # include <sys/un.h>
  3284. #endif
  3285. #ifdef HAVE_SYS_SELECT_H
  3286. # include <sys/select.h>
  3287. #endif
  3288. #ifdef HAVE_STRINGS_H
  3289. # include <strings.h>
  3290. #endif
  3291. #ifdef HAVE_SYS_IOCTL_H
  3292. # include <sys/ioctl.h>
  3293. #endif
  3294. #ifdef HAVE_SYS_FILIO_H
  3295. # include <sys/filio.h>
  3296. #endif
  3297. #ifdef HAVE_SYS_SOCKIO_H
  3298. # include <sys/sockio.h>
  3299. #endif
  3300. #ifdef HAVE_PTHREAD_H
  3301. # include <pthread.h>
  3302. #endif
  3303. int
  3304. main ()
  3305. {
  3306. uint16_t foo
  3307. ;
  3308. return 0;
  3309. }
  3310. _ACEOF
  3311. rm -f conftest.$ac_objext
  3312. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3313. (eval $ac_compile) 2>&5
  3314. ac_status=$?
  3315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3316. (exit $ac_status); } &&
  3317. { ac_try='test -s conftest.$ac_objext'
  3318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3319. (eval $ac_try) 2>&5
  3320. ac_status=$?
  3321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3322. (exit $ac_status); }; }; then
  3323. ac_cv_type_uint16_t=yes
  3324. else
  3325. echo "$as_me: failed program was:" >&5
  3326. sed 's/^/| /' conftest.$ac_ext >&5
  3327. ac_cv_type_uint16_t=no
  3328. fi
  3329. rm -f conftest.$ac_objext conftest.$ac_ext
  3330. fi
  3331. echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
  3332. echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
  3333. if test $ac_cv_type_uint16_t = no ; then
  3334. cat >>confdefs.h <<\_ACEOF
  3335. #define uint16_t unsigned short
  3336. _ACEOF
  3337. fi
  3338. echo "$as_me:$LINENO: checking if int32_t defined" >&5
  3339. echo $ECHO_N "checking if int32_t defined... $ECHO_C" >&6
  3340. if test "${ac_cv_type_int32_t+set}" = set; then
  3341. echo $ECHO_N "(cached) $ECHO_C" >&6
  3342. else
  3343. cat >conftest.$ac_ext <<_ACEOF
  3344. #line $LINENO "configure"
  3345. /* confdefs.h. */
  3346. _ACEOF
  3347. cat confdefs.h >>conftest.$ac_ext
  3348. cat >>conftest.$ac_ext <<_ACEOF
  3349. /* end confdefs.h. */
  3350. #include "confdefs.h" /* the header built by configure so far */
  3351. #ifdef HAVE_SYS_TYPES_H
  3352. # include <sys/types.h>
  3353. #endif
  3354. #ifdef HAVE_SYS_SOCKET_H
  3355. # include <sys/socket.h>
  3356. #endif
  3357. #ifdef HAVE_SYS_TIME_H
  3358. # include <sys/time.h>
  3359. #endif
  3360. #ifdef HAVE_NETINET_IN_H
  3361. # include <netinet/in.h>
  3362. #endif
  3363. #ifdef HAVE_ARPA_INET_H
  3364. # include <arpa/inet.h>
  3365. #endif
  3366. #ifdef HAVE_ERRNO_H
  3367. # include <errno.h>
  3368. #endif
  3369. #ifdef HAVE_FCNTL_H
  3370. # include <fcntl.h>
  3371. #endif
  3372. #ifdef HAVE_NETDB_H
  3373. # include <netdb.h>
  3374. #endif
  3375. #ifdef HAVE_SIGNAL_H
  3376. # include <signal.h>
  3377. #endif
  3378. #ifdef HAVE_STDIO_H
  3379. # include <stdio.h>
  3380. #endif
  3381. #ifdef HAVE_STDLIB_H
  3382. # include <stdlib.h>
  3383. #endif
  3384. #ifdef HAVE_STRING_H
  3385. # include <string.h>
  3386. #endif
  3387. #ifdef HAVE_SYS_STAT_H
  3388. # include <sys/stat.h>
  3389. #endif
  3390. #ifdef HAVE_SYS_UIO_H
  3391. # include <sys/uio.h>
  3392. #endif
  3393. #ifdef HAVE_UNISTD_H
  3394. # include <unistd.h>
  3395. #endif
  3396. #ifdef HAVE_SYS_WAIT_H
  3397. # include <sys/wait.h>
  3398. #endif
  3399. #ifdef HAVE_SYS_UN_H
  3400. # include <sys/un.h>
  3401. #endif
  3402. #ifdef HAVE_SYS_SELECT_H
  3403. # include <sys/select.h>
  3404. #endif
  3405. #ifdef HAVE_STRINGS_H
  3406. # include <strings.h>
  3407. #endif
  3408. #ifdef HAVE_SYS_IOCTL_H
  3409. # include <sys/ioctl.h>
  3410. #endif
  3411. #ifdef HAVE_SYS_FILIO_H
  3412. # include <sys/filio.h>
  3413. #endif
  3414. #ifdef HAVE_SYS_SOCKIO_H
  3415. # include <sys/sockio.h>
  3416. #endif
  3417. #ifdef HAVE_PTHREAD_H
  3418. # include <pthread.h>
  3419. #endif
  3420. int
  3421. main ()
  3422. {
  3423. int32_t foo
  3424. ;
  3425. return 0;
  3426. }
  3427. _ACEOF
  3428. rm -f conftest.$ac_objext
  3429. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3430. (eval $ac_compile) 2>&5
  3431. ac_status=$?
  3432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3433. (exit $ac_status); } &&
  3434. { ac_try='test -s conftest.$ac_objext'
  3435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3436. (eval $ac_try) 2>&5
  3437. ac_status=$?
  3438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3439. (exit $ac_status); }; }; then
  3440. ac_cv_type_int32_t=yes
  3441. else
  3442. echo "$as_me: failed program was:" >&5
  3443. sed 's/^/| /' conftest.$ac_ext >&5
  3444. ac_cv_type_int32_t=no
  3445. fi
  3446. rm -f conftest.$ac_objext conftest.$ac_ext
  3447. fi
  3448. echo "$as_me:$LINENO: result: $ac_cv_type_int32_t" >&5
  3449. echo "${ECHO_T}$ac_cv_type_int32_t" >&6
  3450. if test $ac_cv_type_int32_t = no ; then
  3451. cat >>confdefs.h <<\_ACEOF
  3452. #define int32_t int
  3453. _ACEOF
  3454. fi
  3455. echo "$as_me:$LINENO: checking if uint32_t defined" >&5
  3456. echo $ECHO_N "checking if uint32_t defined... $ECHO_C" >&6
  3457. if test "${ac_cv_type_uint32_t+set}" = set; then
  3458. echo $ECHO_N "(cached) $ECHO_C" >&6
  3459. else
  3460. cat >conftest.$ac_ext <<_ACEOF
  3461. #line $LINENO "configure"
  3462. /* confdefs.h. */
  3463. _ACEOF
  3464. cat confdefs.h >>conftest.$ac_ext
  3465. cat >>conftest.$ac_ext <<_ACEOF
  3466. /* end confdefs.h. */
  3467. #include "confdefs.h" /* the header built by configure so far */
  3468. #ifdef HAVE_SYS_TYPES_H
  3469. # include <sys/types.h>
  3470. #endif
  3471. #ifdef HAVE_SYS_SOCKET_H
  3472. # include <sys/socket.h>
  3473. #endif
  3474. #ifdef HAVE_SYS_TIME_H
  3475. # include <sys/time.h>
  3476. #endif
  3477. #ifdef HAVE_NETINET_IN_H
  3478. # include <netinet/in.h>
  3479. #endif
  3480. #ifdef HAVE_ARPA_INET_H
  3481. # include <arpa/inet.h>
  3482. #endif
  3483. #ifdef HAVE_ERRNO_H
  3484. # include <errno.h>
  3485. #endif
  3486. #ifdef HAVE_FCNTL_H
  3487. # include <fcntl.h>
  3488. #endif
  3489. #ifdef HAVE_NETDB_H
  3490. # include <netdb.h>
  3491. #endif
  3492. #ifdef HAVE_SIGNAL_H
  3493. # include <signal.h>
  3494. #endif
  3495. #ifdef HAVE_STDIO_H
  3496. # include <stdio.h>
  3497. #endif
  3498. #ifdef HAVE_STDLIB_H
  3499. # include <stdlib.h>
  3500. #endif
  3501. #ifdef HAVE_STRING_H
  3502. # include <string.h>
  3503. #endif
  3504. #ifdef HAVE_SYS_STAT_H
  3505. # include <sys/stat.h>
  3506. #endif
  3507. #ifdef HAVE_SYS_UIO_H
  3508. # include <sys/uio.h>
  3509. #endif
  3510. #ifdef HAVE_UNISTD_H
  3511. # include <unistd.h>
  3512. #endif
  3513. #ifdef HAVE_SYS_WAIT_H
  3514. # include <sys/wait.h>
  3515. #endif
  3516. #ifdef HAVE_SYS_UN_H
  3517. # include <sys/un.h>
  3518. #endif
  3519. #ifdef HAVE_SYS_SELECT_H
  3520. # include <sys/select.h>
  3521. #endif
  3522. #ifdef HAVE_STRINGS_H
  3523. # include <strings.h>
  3524. #endif
  3525. #ifdef HAVE_SYS_IOCTL_H
  3526. # include <sys/ioctl.h>
  3527. #endif
  3528. #ifdef HAVE_SYS_FILIO_H
  3529. # include <sys/filio.h>
  3530. #endif
  3531. #ifdef HAVE_SYS_SOCKIO_H
  3532. # include <sys/sockio.h>
  3533. #endif
  3534. #ifdef HAVE_PTHREAD_H
  3535. # include <pthread.h>
  3536. #endif
  3537. int
  3538. main ()
  3539. {
  3540. uint32_t foo
  3541. ;
  3542. return 0;
  3543. }
  3544. _ACEOF
  3545. rm -f conftest.$ac_objext
  3546. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3547. (eval $ac_compile) 2>&5
  3548. ac_status=$?
  3549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3550. (exit $ac_status); } &&
  3551. { ac_try='test -s conftest.$ac_objext'
  3552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3553. (eval $ac_try) 2>&5
  3554. ac_status=$?
  3555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3556. (exit $ac_status); }; }; then
  3557. ac_cv_type_uint32_t=yes
  3558. else
  3559. echo "$as_me: failed program was:" >&5
  3560. sed 's/^/| /' conftest.$ac_ext >&5
  3561. ac_cv_type_uint32_t=no
  3562. fi
  3563. rm -f conftest.$ac_objext conftest.$ac_ext
  3564. fi
  3565. echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
  3566. echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
  3567. if test $ac_cv_type_uint32_t = no ; then
  3568. cat >>confdefs.h <<\_ACEOF
  3569. #define uint32_t unsigned int
  3570. _ACEOF
  3571. fi
  3572. echo "$as_me:$LINENO: checking if size_t defined" >&5
  3573. echo $ECHO_N "checking if size_t defined... $ECHO_C" >&6
  3574. if test "${ac_cv_type_size_t+set}" = set; then
  3575. echo $ECHO_N "(cached) $ECHO_C" >&6
  3576. else
  3577. cat >conftest.$ac_ext <<_ACEOF
  3578. #line $LINENO "configure"
  3579. /* confdefs.h. */
  3580. _ACEOF
  3581. cat confdefs.h >>conftest.$ac_ext
  3582. cat >>conftest.$ac_ext <<_ACEOF
  3583. /* end confdefs.h. */
  3584. #include "confdefs.h" /* the header built by configure so far */
  3585. #ifdef HAVE_SYS_TYPES_H
  3586. # include <sys/types.h>
  3587. #endif
  3588. #ifdef HAVE_SYS_SOCKET_H
  3589. # include <sys/socket.h>
  3590. #endif
  3591. #ifdef HAVE_SYS_TIME_H
  3592. # include <sys/time.h>
  3593. #endif
  3594. #ifdef HAVE_NETINET_IN_H
  3595. # include <netinet/in.h>
  3596. #endif
  3597. #ifdef HAVE_ARPA_INET_H
  3598. # include <arpa/inet.h>
  3599. #endif
  3600. #ifdef HAVE_ERRNO_H
  3601. # include <errno.h>
  3602. #endif
  3603. #ifdef HAVE_FCNTL_H
  3604. # include <fcntl.h>
  3605. #endif
  3606. #ifdef HAVE_NETDB_H
  3607. # include <netdb.h>
  3608. #endif
  3609. #ifdef HAVE_SIGNAL_H
  3610. # include <signal.h>
  3611. #endif
  3612. #ifdef HAVE_STDIO_H
  3613. # include <stdio.h>
  3614. #endif
  3615. #ifdef HAVE_STDLIB_H
  3616. # include <stdlib.h>
  3617. #endif
  3618. #ifdef HAVE_STRING_H
  3619. # include <string.h>
  3620. #endif
  3621. #ifdef HAVE_SYS_STAT_H
  3622. # include <sys/stat.h>
  3623. #endif
  3624. #ifdef HAVE_SYS_UIO_H
  3625. # include <sys/uio.h>
  3626. #endif
  3627. #ifdef HAVE_UNISTD_H
  3628. # include <unistd.h>
  3629. #endif
  3630. #ifdef HAVE_SYS_WAIT_H
  3631. # include <sys/wait.h>
  3632. #endif
  3633. #ifdef HAVE_SYS_UN_H
  3634. # include <sys/un.h>
  3635. #endif
  3636. #ifdef HAVE_SYS_SELECT_H
  3637. # include <sys/select.h>
  3638. #endif
  3639. #ifdef HAVE_STRINGS_H
  3640. # include <strings.h>
  3641. #endif
  3642. #ifdef HAVE_SYS_IOCTL_H
  3643. # include <sys/ioctl.h>
  3644. #endif
  3645. #ifdef HAVE_SYS_FILIO_H
  3646. # include <sys/filio.h>
  3647. #endif
  3648. #ifdef HAVE_SYS_SOCKIO_H
  3649. # include <sys/sockio.h>
  3650. #endif
  3651. #ifdef HAVE_PTHREAD_H
  3652. # include <pthread.h>
  3653. #endif
  3654. int
  3655. main ()
  3656. {
  3657. size_t foo
  3658. ;
  3659. return 0;
  3660. }
  3661. _ACEOF
  3662. rm -f conftest.$ac_objext
  3663. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3664. (eval $ac_compile) 2>&5
  3665. ac_status=$?
  3666. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3667. (exit $ac_status); } &&
  3668. { ac_try='test -s conftest.$ac_objext'
  3669. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3670. (eval $ac_try) 2>&5
  3671. ac_status=$?
  3672. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3673. (exit $ac_status); }; }; then
  3674. ac_cv_type_size_t=yes
  3675. else
  3676. echo "$as_me: failed program was:" >&5
  3677. sed 's/^/| /' conftest.$ac_ext >&5
  3678. ac_cv_type_size_t=no
  3679. fi
  3680. rm -f conftest.$ac_objext conftest.$ac_ext
  3681. fi
  3682. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  3683. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  3684. if test $ac_cv_type_size_t = no ; then
  3685. cat >>confdefs.h <<\_ACEOF
  3686. #define size_t unsigned int
  3687. _ACEOF
  3688. fi
  3689. echo "$as_me:$LINENO: checking if ssize_t defined" >&5
  3690. echo $ECHO_N "checking if ssize_t defined... $ECHO_C" >&6
  3691. if test "${ac_cv_type_ssize_t+set}" = set; then
  3692. echo $ECHO_N "(cached) $ECHO_C" >&6
  3693. else
  3694. cat >conftest.$ac_ext <<_ACEOF
  3695. #line $LINENO "configure"
  3696. /* confdefs.h. */
  3697. _ACEOF
  3698. cat confdefs.h >>conftest.$ac_ext
  3699. cat >>conftest.$ac_ext <<_ACEOF
  3700. /* end confdefs.h. */
  3701. #include "confdefs.h" /* the header built by configure so far */
  3702. #ifdef HAVE_SYS_TYPES_H
  3703. # include <sys/types.h>
  3704. #endif
  3705. #ifdef HAVE_SYS_SOCKET_H
  3706. # include <sys/socket.h>
  3707. #endif
  3708. #ifdef HAVE_SYS_TIME_H
  3709. # include <sys/time.h>
  3710. #endif
  3711. #ifdef HAVE_NETINET_IN_H
  3712. # include <netinet/in.h>
  3713. #endif
  3714. #ifdef HAVE_ARPA_INET_H
  3715. # include <arpa/inet.h>
  3716. #endif
  3717. #ifdef HAVE_ERRNO_H
  3718. # include <errno.h>
  3719. #endif
  3720. #ifdef HAVE_FCNTL_H
  3721. # include <fcntl.h>
  3722. #endif
  3723. #ifdef HAVE_NETDB_H
  3724. # include <netdb.h>
  3725. #endif
  3726. #ifdef HAVE_SIGNAL_H
  3727. # include <signal.h>
  3728. #endif
  3729. #ifdef HAVE_STDIO_H
  3730. # include <stdio.h>
  3731. #endif
  3732. #ifdef HAVE_STDLIB_H
  3733. # include <stdlib.h>
  3734. #endif
  3735. #ifdef HAVE_STRING_H
  3736. # include <string.h>
  3737. #endif
  3738. #ifdef HAVE_SYS_STAT_H
  3739. # include <sys/stat.h>
  3740. #endif
  3741. #ifdef HAVE_SYS_UIO_H
  3742. # include <sys/uio.h>
  3743. #endif
  3744. #ifdef HAVE_UNISTD_H
  3745. # include <unistd.h>
  3746. #endif
  3747. #ifdef HAVE_SYS_WAIT_H
  3748. # include <sys/wait.h>
  3749. #endif
  3750. #ifdef HAVE_SYS_UN_H
  3751. # include <sys/un.h>
  3752. #endif
  3753. #ifdef HAVE_SYS_SELECT_H
  3754. # include <sys/select.h>
  3755. #endif
  3756. #ifdef HAVE_STRINGS_H
  3757. # include <strings.h>
  3758. #endif
  3759. #ifdef HAVE_SYS_IOCTL_H
  3760. # include <sys/ioctl.h>
  3761. #endif
  3762. #ifdef HAVE_SYS_FILIO_H
  3763. # include <sys/filio.h>
  3764. #endif
  3765. #ifdef HAVE_SYS_SOCKIO_H
  3766. # include <sys/sockio.h>
  3767. #endif
  3768. #ifdef HAVE_PTHREAD_H
  3769. # include <pthread.h>
  3770. #endif
  3771. int
  3772. main ()
  3773. {
  3774. ssize_t foo
  3775. ;
  3776. return 0;
  3777. }
  3778. _ACEOF
  3779. rm -f conftest.$ac_objext
  3780. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3781. (eval $ac_compile) 2>&5
  3782. ac_status=$?
  3783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3784. (exit $ac_status); } &&
  3785. { ac_try='test -s conftest.$ac_objext'
  3786. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3787. (eval $ac_try) 2>&5
  3788. ac_status=$?
  3789. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3790. (exit $ac_status); }; }; then
  3791. ac_cv_type_ssize_t=yes
  3792. else
  3793. echo "$as_me: failed program was:" >&5
  3794. sed 's/^/| /' conftest.$ac_ext >&5
  3795. ac_cv_type_ssize_t=no
  3796. fi
  3797. rm -f conftest.$ac_objext conftest.$ac_ext
  3798. fi
  3799. echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
  3800. echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
  3801. if test $ac_cv_type_ssize_t = no ; then
  3802. cat >>confdefs.h <<\_ACEOF
  3803. #define ssize_t int
  3804. _ACEOF
  3805. fi
  3806. echo "$as_me:$LINENO: checking if socklen_t defined" >&5
  3807. echo $ECHO_N "checking if socklen_t defined... $ECHO_C" >&6
  3808. if test "${ac_cv_type_socklen_t+set}" = set; then
  3809. echo $ECHO_N "(cached) $ECHO_C" >&6
  3810. else
  3811. cat >conftest.$ac_ext <<_ACEOF
  3812. #line $LINENO "configure"
  3813. /* confdefs.h. */
  3814. _ACEOF
  3815. cat confdefs.h >>conftest.$ac_ext
  3816. cat >>conftest.$ac_ext <<_ACEOF
  3817. /* end confdefs.h. */
  3818. #include "confdefs.h" /* the header built by configure so far */
  3819. #ifdef HAVE_SYS_TYPES_H
  3820. # include <sys/types.h>
  3821. #endif
  3822. #ifdef HAVE_SYS_SOCKET_H
  3823. # include <sys/socket.h>
  3824. #endif
  3825. #ifdef HAVE_SYS_TIME_H
  3826. # include <sys/time.h>
  3827. #endif
  3828. #ifdef HAVE_NETINET_IN_H
  3829. # include <netinet/in.h>
  3830. #endif
  3831. #ifdef HAVE_ARPA_INET_H
  3832. # include <arpa/inet.h>
  3833. #endif
  3834. #ifdef HAVE_ERRNO_H
  3835. # include <errno.h>
  3836. #endif
  3837. #ifdef HAVE_FCNTL_H
  3838. # include <fcntl.h>
  3839. #endif
  3840. #ifdef HAVE_NETDB_H
  3841. # include <netdb.h>
  3842. #endif
  3843. #ifdef HAVE_SIGNAL_H
  3844. # include <signal.h>
  3845. #endif
  3846. #ifdef HAVE_STDIO_H
  3847. # include <stdio.h>
  3848. #endif
  3849. #ifdef HAVE_STDLIB_H
  3850. # include <stdlib.h>
  3851. #endif
  3852. #ifdef HAVE_STRING_H
  3853. # include <string.h>
  3854. #endif
  3855. #ifdef HAVE_SYS_STAT_H
  3856. # include <sys/stat.h>
  3857. #endif
  3858. #ifdef HAVE_SYS_UIO_H
  3859. # include <sys/uio.h>
  3860. #endif
  3861. #ifdef HAVE_UNISTD_H
  3862. # include <unistd.h>
  3863. #endif
  3864. #ifdef HAVE_SYS_WAIT_H
  3865. # include <sys/wait.h>
  3866. #endif
  3867. #ifdef HAVE_SYS_UN_H
  3868. # include <sys/un.h>
  3869. #endif
  3870. #ifdef HAVE_SYS_SELECT_H
  3871. # include <sys/select.h>
  3872. #endif
  3873. #ifdef HAVE_STRINGS_H
  3874. # include <strings.h>
  3875. #endif
  3876. #ifdef HAVE_SYS_IOCTL_H
  3877. # include <sys/ioctl.h>
  3878. #endif
  3879. #ifdef HAVE_SYS_FILIO_H
  3880. # include <sys/filio.h>
  3881. #endif
  3882. #ifdef HAVE_SYS_SOCKIO_H
  3883. # include <sys/sockio.h>
  3884. #endif
  3885. #ifdef HAVE_PTHREAD_H
  3886. # include <pthread.h>
  3887. #endif
  3888. int
  3889. main ()
  3890. {
  3891. socklen_t foo
  3892. ;
  3893. return 0;
  3894. }
  3895. _ACEOF
  3896. rm -f conftest.$ac_objext
  3897. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3898. (eval $ac_compile) 2>&5
  3899. ac_status=$?
  3900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3901. (exit $ac_status); } &&
  3902. { ac_try='test -s conftest.$ac_objext'
  3903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3904. (eval $ac_try) 2>&5
  3905. ac_status=$?
  3906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3907. (exit $ac_status); }; }; then
  3908. ac_cv_type_socklen_t=yes
  3909. else
  3910. echo "$as_me: failed program was:" >&5
  3911. sed 's/^/| /' conftest.$ac_ext >&5
  3912. ac_cv_type_socklen_t=no
  3913. fi
  3914. rm -f conftest.$ac_objext conftest.$ac_ext
  3915. fi
  3916. echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
  3917. echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
  3918. if test $ac_cv_type_socklen_t = no ; then
  3919. cat >>confdefs.h <<\_ACEOF
  3920. #define socklen_t unsigned int
  3921. _ACEOF
  3922. fi
  3923. echo "$as_me:$LINENO: checking if sa_family_t defined" >&5
  3924. echo $ECHO_N "checking if sa_family_t defined... $ECHO_C" >&6
  3925. if test "${ac_cv_type_sa_family_t+set}" = set; then
  3926. echo $ECHO_N "(cached) $ECHO_C" >&6
  3927. else
  3928. cat >conftest.$ac_ext <<_ACEOF
  3929. #line $LINENO "configure"
  3930. /* confdefs.h. */
  3931. _ACEOF
  3932. cat confdefs.h >>conftest.$ac_ext
  3933. cat >>conftest.$ac_ext <<_ACEOF
  3934. /* end confdefs.h. */
  3935. #include "confdefs.h" /* the header built by configure so far */
  3936. #ifdef HAVE_SYS_TYPES_H
  3937. # include <sys/types.h>
  3938. #endif
  3939. #ifdef HAVE_SYS_SOCKET_H
  3940. # include <sys/socket.h>
  3941. #endif
  3942. #ifdef HAVE_SYS_TIME_H
  3943. # include <sys/time.h>
  3944. #endif
  3945. #ifdef HAVE_NETINET_IN_H
  3946. # include <netinet/in.h>
  3947. #endif
  3948. #ifdef HAVE_ARPA_INET_H
  3949. # include <arpa/inet.h>
  3950. #endif
  3951. #ifdef HAVE_ERRNO_H
  3952. # include <errno.h>
  3953. #endif
  3954. #ifdef HAVE_FCNTL_H
  3955. # include <fcntl.h>
  3956. #endif
  3957. #ifdef HAVE_NETDB_H
  3958. # include <netdb.h>
  3959. #endif
  3960. #ifdef HAVE_SIGNAL_H
  3961. # include <signal.h>
  3962. #endif
  3963. #ifdef HAVE_STDIO_H
  3964. # include <stdio.h>
  3965. #endif
  3966. #ifdef HAVE_STDLIB_H
  3967. # include <stdlib.h>
  3968. #endif
  3969. #ifdef HAVE_STRING_H
  3970. # include <string.h>
  3971. #endif
  3972. #ifdef HAVE_SYS_STAT_H
  3973. # include <sys/stat.h>
  3974. #endif
  3975. #ifdef HAVE_SYS_UIO_H
  3976. # include <sys/uio.h>
  3977. #endif
  3978. #ifdef HAVE_UNISTD_H
  3979. # include <unistd.h>
  3980. #endif
  3981. #ifdef HAVE_SYS_WAIT_H
  3982. # include <sys/wait.h>
  3983. #endif
  3984. #ifdef HAVE_SYS_UN_H
  3985. # include <sys/un.h>
  3986. #endif
  3987. #ifdef HAVE_SYS_SELECT_H
  3988. # include <sys/select.h>
  3989. #endif
  3990. #ifdef HAVE_STRINGS_H
  3991. # include <strings.h>
  3992. #endif
  3993. #ifdef HAVE_SYS_IOCTL_H
  3994. # include <sys/ioctl.h>
  3995. #endif
  3996. #ifdef HAVE_SYS_FILIO_H
  3997. # include <sys/filio.h>
  3998. #endif
  3999. #ifdef HAVE_SYS_SOCKIO_H
  4000. # include <sys/sockio.h>
  4001. #endif
  4002. #ifdef HAVE_PTHREAD_H
  4003. # include <pthread.h>
  4004. #endif
  4005. int
  4006. main ()
  4007. {
  4008. sa_family_t foo
  4009. ;
  4010. return 0;
  4011. }
  4012. _ACEOF
  4013. rm -f conftest.$ac_objext
  4014. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4015. (eval $ac_compile) 2>&5
  4016. ac_status=$?
  4017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4018. (exit $ac_status); } &&
  4019. { ac_try='test -s conftest.$ac_objext'
  4020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4021. (eval $ac_try) 2>&5
  4022. ac_status=$?
  4023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4024. (exit $ac_status); }; }; then
  4025. ac_cv_type_sa_family_t=yes
  4026. else
  4027. echo "$as_me: failed program was:" >&5
  4028. sed 's/^/| /' conftest.$ac_ext >&5
  4029. ac_cv_type_sa_family_t=no
  4030. fi
  4031. rm -f conftest.$ac_objext conftest.$ac_ext
  4032. fi
  4033. echo "$as_me:$LINENO: result: $ac_cv_type_sa_family_t" >&5
  4034. echo "${ECHO_T}$ac_cv_type_sa_family_t" >&6
  4035. if test $ac_cv_type_sa_family_t = no ; then
  4036. cat >>confdefs.h <<\_ACEOF
  4037. #define sa_family_t SA_FAMILY_T
  4038. _ACEOF
  4039. fi
  4040. echo "$as_me:$LINENO: checking if t_scalar_t defined" >&5
  4041. echo $ECHO_N "checking if t_scalar_t defined... $ECHO_C" >&6
  4042. if test "${ac_cv_type_t_scalar_t+set}" = set; then
  4043. echo $ECHO_N "(cached) $ECHO_C" >&6
  4044. else
  4045. cat >conftest.$ac_ext <<_ACEOF
  4046. #line $LINENO "configure"
  4047. /* confdefs.h. */
  4048. _ACEOF
  4049. cat confdefs.h >>conftest.$ac_ext
  4050. cat >>conftest.$ac_ext <<_ACEOF
  4051. /* end confdefs.h. */
  4052. #include "confdefs.h" /* the header built by configure so far */
  4053. #ifdef HAVE_SYS_TYPES_H
  4054. # include <sys/types.h>
  4055. #endif
  4056. #ifdef HAVE_SYS_SOCKET_H
  4057. # include <sys/socket.h>
  4058. #endif
  4059. #ifdef HAVE_SYS_TIME_H
  4060. # include <sys/time.h>
  4061. #endif
  4062. #ifdef HAVE_NETINET_IN_H
  4063. # include <netinet/in.h>
  4064. #endif
  4065. #ifdef HAVE_ARPA_INET_H
  4066. # include <arpa/inet.h>
  4067. #endif
  4068. #ifdef HAVE_ERRNO_H
  4069. # include <errno.h>
  4070. #endif
  4071. #ifdef HAVE_FCNTL_H
  4072. # include <fcntl.h>
  4073. #endif
  4074. #ifdef HAVE_NETDB_H
  4075. # include <netdb.h>
  4076. #endif
  4077. #ifdef HAVE_SIGNAL_H
  4078. # include <signal.h>
  4079. #endif
  4080. #ifdef HAVE_STDIO_H
  4081. # include <stdio.h>
  4082. #endif
  4083. #ifdef HAVE_STDLIB_H
  4084. # include <stdlib.h>
  4085. #endif
  4086. #ifdef HAVE_STRING_H
  4087. # include <string.h>
  4088. #endif
  4089. #ifdef HAVE_SYS_STAT_H
  4090. # include <sys/stat.h>
  4091. #endif
  4092. #ifdef HAVE_SYS_UIO_H
  4093. # include <sys/uio.h>
  4094. #endif
  4095. #ifdef HAVE_UNISTD_H
  4096. # include <unistd.h>
  4097. #endif
  4098. #ifdef HAVE_SYS_WAIT_H
  4099. # include <sys/wait.h>
  4100. #endif
  4101. #ifdef HAVE_SYS_UN_H
  4102. # include <sys/un.h>
  4103. #endif
  4104. #ifdef HAVE_SYS_SELECT_H
  4105. # include <sys/select.h>
  4106. #endif
  4107. #ifdef HAVE_STRINGS_H
  4108. # include <strings.h>
  4109. #endif
  4110. #ifdef HAVE_SYS_IOCTL_H
  4111. # include <sys/ioctl.h>
  4112. #endif
  4113. #ifdef HAVE_SYS_FILIO_H
  4114. # include <sys/filio.h>
  4115. #endif
  4116. #ifdef HAVE_SYS_SOCKIO_H
  4117. # include <sys/sockio.h>
  4118. #endif
  4119. #ifdef HAVE_PTHREAD_H
  4120. # include <pthread.h>
  4121. #endif
  4122. #ifdef HAVE_POLL_H
  4123. # include <poll.h>
  4124. #endif
  4125. #ifdef HAVE_XTI_H
  4126. # include <xti.h>
  4127. #endif
  4128. #ifdef HAVE_NETCONFIG_H
  4129. # include <netconfig.h>
  4130. #endif
  4131. #ifdef HAVE_NETDIR_H
  4132. # include <netdir.h>
  4133. #endif
  4134. #ifdef HAVE_STROPTS_H
  4135. # include <stropts.h>
  4136. #endif
  4137. int
  4138. main ()
  4139. {
  4140. t_scalar_t foo
  4141. ;
  4142. return 0;
  4143. }
  4144. _ACEOF
  4145. rm -f conftest.$ac_objext
  4146. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4147. (eval $ac_compile) 2>&5
  4148. ac_status=$?
  4149. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4150. (exit $ac_status); } &&
  4151. { ac_try='test -s conftest.$ac_objext'
  4152. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4153. (eval $ac_try) 2>&5
  4154. ac_status=$?
  4155. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4156. (exit $ac_status); }; }; then
  4157. ac_cv_type_t_scalar_t=yes
  4158. else
  4159. echo "$as_me: failed program was:" >&5
  4160. sed 's/^/| /' conftest.$ac_ext >&5
  4161. ac_cv_type_t_scalar_t=no
  4162. fi
  4163. rm -f conftest.$ac_objext conftest.$ac_ext
  4164. fi
  4165. echo "$as_me:$LINENO: result: $ac_cv_type_t_scalar_t" >&5
  4166. echo "${ECHO_T}$ac_cv_type_t_scalar_t" >&6
  4167. if test $ac_cv_type_t_scalar_t = no ; then
  4168. cat >>confdefs.h <<\_ACEOF
  4169. #define t_scalar_t int32_t
  4170. _ACEOF
  4171. fi
  4172. echo "$as_me:$LINENO: checking if t_uscalar_t defined" >&5
  4173. echo $ECHO_N "checking if t_uscalar_t defined... $ECHO_C" >&6
  4174. if test "${ac_cv_type_t_uscalar_t+set}" = set; then
  4175. echo $ECHO_N "(cached) $ECHO_C" >&6
  4176. else
  4177. cat >conftest.$ac_ext <<_ACEOF
  4178. #line $LINENO "configure"
  4179. /* confdefs.h. */
  4180. _ACEOF
  4181. cat confdefs.h >>conftest.$ac_ext
  4182. cat >>conftest.$ac_ext <<_ACEOF
  4183. /* end confdefs.h. */
  4184. #include "confdefs.h" /* the header built by configure so far */
  4185. #ifdef HAVE_SYS_TYPES_H
  4186. # include <sys/types.h>
  4187. #endif
  4188. #ifdef HAVE_SYS_SOCKET_H
  4189. # include <sys/socket.h>
  4190. #endif
  4191. #ifdef HAVE_SYS_TIME_H
  4192. # include <sys/time.h>
  4193. #endif
  4194. #ifdef HAVE_NETINET_IN_H
  4195. # include <netinet/in.h>
  4196. #endif
  4197. #ifdef HAVE_ARPA_INET_H
  4198. # include <arpa/inet.h>
  4199. #endif
  4200. #ifdef HAVE_ERRNO_H
  4201. # include <errno.h>
  4202. #endif
  4203. #ifdef HAVE_FCNTL_H
  4204. # include <fcntl.h>
  4205. #endif
  4206. #ifdef HAVE_NETDB_H
  4207. # include <netdb.h>
  4208. #endif
  4209. #ifdef HAVE_SIGNAL_H
  4210. # include <signal.h>
  4211. #endif
  4212. #ifdef HAVE_STDIO_H
  4213. # include <stdio.h>
  4214. #endif
  4215. #ifdef HAVE_STDLIB_H
  4216. # include <stdlib.h>
  4217. #endif
  4218. #ifdef HAVE_STRING_H
  4219. # include <string.h>
  4220. #endif
  4221. #ifdef HAVE_SYS_STAT_H
  4222. # include <sys/stat.h>
  4223. #endif
  4224. #ifdef HAVE_SYS_UIO_H
  4225. # include <sys/uio.h>
  4226. #endif
  4227. #ifdef HAVE_UNISTD_H
  4228. # include <unistd.h>
  4229. #endif
  4230. #ifdef HAVE_SYS_WAIT_H
  4231. # include <sys/wait.h>
  4232. #endif
  4233. #ifdef HAVE_SYS_UN_H
  4234. # include <sys/un.h>
  4235. #endif
  4236. #ifdef HAVE_SYS_SELECT_H
  4237. # include <sys/select.h>
  4238. #endif
  4239. #ifdef HAVE_STRINGS_H
  4240. # include <strings.h>
  4241. #endif
  4242. #ifdef HAVE_SYS_IOCTL_H
  4243. # include <sys/ioctl.h>
  4244. #endif
  4245. #ifdef HAVE_SYS_FILIO_H
  4246. # include <sys/filio.h>
  4247. #endif
  4248. #ifdef HAVE_SYS_SOCKIO_H
  4249. # include <sys/sockio.h>
  4250. #endif
  4251. #ifdef HAVE_PTHREAD_H
  4252. # include <pthread.h>
  4253. #endif
  4254. #ifdef HAVE_POLL_H
  4255. # include <poll.h>
  4256. #endif
  4257. #ifdef HAVE_XTI_H
  4258. # include <xti.h>
  4259. #endif
  4260. #ifdef HAVE_NETCONFIG_H
  4261. # include <netconfig.h>
  4262. #endif
  4263. #ifdef HAVE_NETDIR_H
  4264. # include <netdir.h>
  4265. #endif
  4266. #ifdef HAVE_STROPTS_H
  4267. # include <stropts.h>
  4268. #endif
  4269. int
  4270. main ()
  4271. {
  4272. t_uscalar_t foo
  4273. ;
  4274. return 0;
  4275. }
  4276. _ACEOF
  4277. rm -f conftest.$ac_objext
  4278. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4279. (eval $ac_compile) 2>&5
  4280. ac_status=$?
  4281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4282. (exit $ac_status); } &&
  4283. { ac_try='test -s conftest.$ac_objext'
  4284. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4285. (eval $ac_try) 2>&5
  4286. ac_status=$?
  4287. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4288. (exit $ac_status); }; }; then
  4289. ac_cv_type_t_uscalar_t=yes
  4290. else
  4291. echo "$as_me: failed program was:" >&5
  4292. sed 's/^/| /' conftest.$ac_ext >&5
  4293. ac_cv_type_t_uscalar_t=no
  4294. fi
  4295. rm -f conftest.$ac_objext conftest.$ac_ext
  4296. fi
  4297. echo "$as_me:$LINENO: result: $ac_cv_type_t_uscalar_t" >&5
  4298. echo "${ECHO_T}$ac_cv_type_t_uscalar_t" >&6
  4299. if test $ac_cv_type_t_uscalar_t = no ; then
  4300. cat >>confdefs.h <<\_ACEOF
  4301. #define t_uscalar_t uint32_t
  4302. _ACEOF
  4303. fi
  4304. echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
  4305. echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
  4306. if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
  4307. echo $ECHO_N "(cached) $ECHO_C" >&6
  4308. else
  4309. cat >conftest.$ac_ext <<_ACEOF
  4310. #line $LINENO "configure"
  4311. /* confdefs.h. */
  4312. _ACEOF
  4313. cat confdefs.h >>conftest.$ac_ext
  4314. cat >>conftest.$ac_ext <<_ACEOF
  4315. /* end confdefs.h. */
  4316. #include <sys/types.h>
  4317. #include <sys/socket.h>
  4318. int
  4319. main ()
  4320. {
  4321. static struct sockaddr ac_aggr;
  4322. if (ac_aggr.sa_len)
  4323. return 0;
  4324. ;
  4325. return 0;
  4326. }
  4327. _ACEOF
  4328. rm -f conftest.$ac_objext
  4329. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4330. (eval $ac_compile) 2>&5
  4331. ac_status=$?
  4332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4333. (exit $ac_status); } &&
  4334. { ac_try='test -s conftest.$ac_objext'
  4335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4336. (eval $ac_try) 2>&5
  4337. ac_status=$?
  4338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4339. (exit $ac_status); }; }; then
  4340. ac_cv_member_struct_sockaddr_sa_len=yes
  4341. else
  4342. echo "$as_me: failed program was:" >&5
  4343. sed 's/^/| /' conftest.$ac_ext >&5
  4344. cat >conftest.$ac_ext <<_ACEOF
  4345. #line $LINENO "configure"
  4346. /* confdefs.h. */
  4347. _ACEOF
  4348. cat confdefs.h >>conftest.$ac_ext
  4349. cat >>conftest.$ac_ext <<_ACEOF
  4350. /* end confdefs.h. */
  4351. #include <sys/types.h>
  4352. #include <sys/socket.h>
  4353. int
  4354. main ()
  4355. {
  4356. static struct sockaddr ac_aggr;
  4357. if (sizeof ac_aggr.sa_len)
  4358. return 0;
  4359. ;
  4360. return 0;
  4361. }
  4362. _ACEOF
  4363. rm -f conftest.$ac_objext
  4364. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4365. (eval $ac_compile) 2>&5
  4366. ac_status=$?
  4367. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4368. (exit $ac_status); } &&
  4369. { ac_try='test -s conftest.$ac_objext'
  4370. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4371. (eval $ac_try) 2>&5
  4372. ac_status=$?
  4373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4374. (exit $ac_status); }; }; then
  4375. ac_cv_member_struct_sockaddr_sa_len=yes
  4376. else
  4377. echo "$as_me: failed program was:" >&5
  4378. sed 's/^/| /' conftest.$ac_ext >&5
  4379. ac_cv_member_struct_sockaddr_sa_len=no
  4380. fi
  4381. rm -f conftest.$ac_objext conftest.$ac_ext
  4382. fi
  4383. rm -f conftest.$ac_objext conftest.$ac_ext
  4384. fi
  4385. echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
  4386. echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
  4387. if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
  4388. cat >>confdefs.h <<\_ACEOF
  4389. #define HAVE_SOCKADDR_SA_LEN 1
  4390. _ACEOF
  4391. fi
  4392. if test $ac_cv_type_sa_family_t = no ; then
  4393. if test $ac_cv_member_struct_sockaddr_sa_len = yes ; then
  4394. cat >>confdefs.h <<\_ACEOF
  4395. #define SA_FAMILY_T uint8_t
  4396. _ACEOF
  4397. else
  4398. cat >>confdefs.h <<\_ACEOF
  4399. #define SA_FAMILY_T uint16_t
  4400. _ACEOF
  4401. fi
  4402. fi
  4403. echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
  4404. echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
  4405. if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
  4406. echo $ECHO_N "(cached) $ECHO_C" >&6
  4407. else
  4408. cat >conftest.$ac_ext <<_ACEOF
  4409. #line $LINENO "configure"
  4410. /* confdefs.h. */
  4411. _ACEOF
  4412. cat confdefs.h >>conftest.$ac_ext
  4413. cat >>conftest.$ac_ext <<_ACEOF
  4414. /* end confdefs.h. */
  4415. #include <sys/types.h>
  4416. #include <sys/socket.h>
  4417. int
  4418. main ()
  4419. {
  4420. if ((struct sockaddr_storage *) 0)
  4421. return 0;
  4422. if (sizeof (struct sockaddr_storage))
  4423. return 0;
  4424. ;
  4425. return 0;
  4426. }
  4427. _ACEOF
  4428. rm -f conftest.$ac_objext
  4429. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4430. (eval $ac_compile) 2>&5
  4431. ac_status=$?
  4432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4433. (exit $ac_status); } &&
  4434. { ac_try='test -s conftest.$ac_objext'
  4435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4436. (eval $ac_try) 2>&5
  4437. ac_status=$?
  4438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4439. (exit $ac_status); }; }; then
  4440. ac_cv_type_struct_sockaddr_storage=yes
  4441. else
  4442. echo "$as_me: failed program was:" >&5
  4443. sed 's/^/| /' conftest.$ac_ext >&5
  4444. ac_cv_type_struct_sockaddr_storage=no
  4445. fi
  4446. rm -f conftest.$ac_objext conftest.$ac_ext
  4447. fi
  4448. echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
  4449. echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
  4450. if test $ac_cv_type_struct_sockaddr_storage = yes; then
  4451. cat >>confdefs.h <<_ACEOF
  4452. #define HAVE_STRUCT_SOCKADDR_STORAGE 1
  4453. _ACEOF
  4454. echo "$as_me:$LINENO: checking for struct sockaddr_storage.ss_family" >&5
  4455. echo $ECHO_N "checking for struct sockaddr_storage.ss_family... $ECHO_C" >&6
  4456. if test "${ac_cv_member_struct_sockaddr_storage_ss_family+set}" = set; then
  4457. echo $ECHO_N "(cached) $ECHO_C" >&6
  4458. else
  4459. cat >conftest.$ac_ext <<_ACEOF
  4460. #line $LINENO "configure"
  4461. /* confdefs.h. */
  4462. _ACEOF
  4463. cat confdefs.h >>conftest.$ac_ext
  4464. cat >>conftest.$ac_ext <<_ACEOF
  4465. /* end confdefs.h. */
  4466. #include <sys/types.h>
  4467. #include <sys/socket.h>
  4468. int
  4469. main ()
  4470. {
  4471. static struct sockaddr_storage ac_aggr;
  4472. if (ac_aggr.ss_family)
  4473. return 0;
  4474. ;
  4475. return 0;
  4476. }
  4477. _ACEOF
  4478. rm -f conftest.$ac_objext
  4479. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4480. (eval $ac_compile) 2>&5
  4481. ac_status=$?
  4482. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4483. (exit $ac_status); } &&
  4484. { ac_try='test -s conftest.$ac_objext'
  4485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4486. (eval $ac_try) 2>&5
  4487. ac_status=$?
  4488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4489. (exit $ac_status); }; }; then
  4490. ac_cv_member_struct_sockaddr_storage_ss_family=yes
  4491. else
  4492. echo "$as_me: failed program was:" >&5
  4493. sed 's/^/| /' conftest.$ac_ext >&5
  4494. cat >conftest.$ac_ext <<_ACEOF
  4495. #line $LINENO "configure"
  4496. /* confdefs.h. */
  4497. _ACEOF
  4498. cat confdefs.h >>conftest.$ac_ext
  4499. cat >>conftest.$ac_ext <<_ACEOF
  4500. /* end confdefs.h. */
  4501. #include <sys/types.h>
  4502. #include <sys/socket.h>
  4503. int
  4504. main ()
  4505. {
  4506. static struct sockaddr_storage ac_aggr;
  4507. if (sizeof ac_aggr.ss_family)
  4508. return 0;
  4509. ;
  4510. return 0;
  4511. }
  4512. _ACEOF
  4513. rm -f conftest.$ac_objext
  4514. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4515. (eval $ac_compile) 2>&5
  4516. ac_status=$?
  4517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4518. (exit $ac_status); } &&
  4519. { ac_try='test -s conftest.$ac_objext'
  4520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4521. (eval $ac_try) 2>&5
  4522. ac_status=$?
  4523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4524. (exit $ac_status); }; }; then
  4525. ac_cv_member_struct_sockaddr_storage_ss_family=yes
  4526. else
  4527. echo "$as_me: failed program was:" >&5
  4528. sed 's/^/| /' conftest.$ac_ext >&5
  4529. ac_cv_member_struct_sockaddr_storage_ss_family=no
  4530. fi
  4531. rm -f conftest.$ac_objext conftest.$ac_ext
  4532. fi
  4533. rm -f conftest.$ac_objext conftest.$ac_ext
  4534. fi
  4535. echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage_ss_family" >&5
  4536. echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage_ss_family" >&6
  4537. if test $ac_cv_member_struct_sockaddr_storage_ss_family = yes; then
  4538. :
  4539. else
  4540. echo "$as_me:$LINENO: checking for struct sockaddr_storage.__ss_family" >&5
  4541. echo $ECHO_N "checking for struct sockaddr_storage.__ss_family... $ECHO_C" >&6
  4542. if test "${ac_cv_member_struct_sockaddr_storage___ss_family+set}" = set; then
  4543. echo $ECHO_N "(cached) $ECHO_C" >&6
  4544. else
  4545. cat >conftest.$ac_ext <<_ACEOF
  4546. #line $LINENO "configure"
  4547. /* confdefs.h. */
  4548. _ACEOF
  4549. cat confdefs.h >>conftest.$ac_ext
  4550. cat >>conftest.$ac_ext <<_ACEOF
  4551. /* end confdefs.h. */
  4552. #include <sys/types.h>
  4553. #include <sys/socket.h>
  4554. int
  4555. main ()
  4556. {
  4557. static struct sockaddr_storage ac_aggr;
  4558. if (ac_aggr.__ss_family)
  4559. return 0;
  4560. ;
  4561. return 0;
  4562. }
  4563. _ACEOF
  4564. rm -f conftest.$ac_objext
  4565. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4566. (eval $ac_compile) 2>&5
  4567. ac_status=$?
  4568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4569. (exit $ac_status); } &&
  4570. { ac_try='test -s conftest.$ac_objext'
  4571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4572. (eval $ac_try) 2>&5
  4573. ac_status=$?
  4574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4575. (exit $ac_status); }; }; then
  4576. ac_cv_member_struct_sockaddr_storage___ss_family=yes
  4577. else
  4578. echo "$as_me: failed program was:" >&5
  4579. sed 's/^/| /' conftest.$ac_ext >&5
  4580. cat >conftest.$ac_ext <<_ACEOF
  4581. #line $LINENO "configure"
  4582. /* confdefs.h. */
  4583. _ACEOF
  4584. cat confdefs.h >>conftest.$ac_ext
  4585. cat >>conftest.$ac_ext <<_ACEOF
  4586. /* end confdefs.h. */
  4587. #include <sys/types.h>
  4588. #include <sys/socket.h>
  4589. int
  4590. main ()
  4591. {
  4592. static struct sockaddr_storage ac_aggr;
  4593. if (sizeof ac_aggr.__ss_family)
  4594. return 0;
  4595. ;
  4596. return 0;
  4597. }
  4598. _ACEOF
  4599. rm -f conftest.$ac_objext
  4600. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4601. (eval $ac_compile) 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. ac_cv_member_struct_sockaddr_storage___ss_family=yes
  4612. else
  4613. echo "$as_me: failed program was:" >&5
  4614. sed 's/^/| /' conftest.$ac_ext >&5
  4615. ac_cv_member_struct_sockaddr_storage___ss_family=no
  4616. fi
  4617. rm -f conftest.$ac_objext conftest.$ac_ext
  4618. fi
  4619. rm -f conftest.$ac_objext conftest.$ac_ext
  4620. fi
  4621. echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_storage___ss_family" >&5
  4622. echo "${ECHO_T}$ac_cv_member_struct_sockaddr_storage___ss_family" >&6
  4623. if test $ac_cv_member_struct_sockaddr_storage___ss_family = yes; then
  4624. cat >>confdefs.h <<\_ACEOF
  4625. #define ss_family __ss_family
  4626. _ACEOF
  4627. else
  4628. { { echo "$as_me:$LINENO: error: cannot find ss_family in sockaddr_storage" >&5
  4629. echo "$as_me: error: cannot find ss_family in sockaddr_storage" >&2;}
  4630. { (exit 1); exit 1; }; }
  4631. fi
  4632. fi
  4633. fi
  4634. echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
  4635. echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6
  4636. if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
  4637. echo $ECHO_N "(cached) $ECHO_C" >&6
  4638. else
  4639. cat >conftest.$ac_ext <<_ACEOF
  4640. #line $LINENO "configure"
  4641. /* confdefs.h. */
  4642. _ACEOF
  4643. cat confdefs.h >>conftest.$ac_ext
  4644. cat >>conftest.$ac_ext <<_ACEOF
  4645. /* end confdefs.h. */
  4646. #include <sys/types.h>
  4647. #include <sys/socket.h>
  4648. int
  4649. main ()
  4650. {
  4651. static struct msghdr ac_aggr;
  4652. if (ac_aggr.msg_control)
  4653. return 0;
  4654. ;
  4655. return 0;
  4656. }
  4657. _ACEOF
  4658. rm -f conftest.$ac_objext
  4659. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4660. (eval $ac_compile) 2>&5
  4661. ac_status=$?
  4662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4663. (exit $ac_status); } &&
  4664. { ac_try='test -s conftest.$ac_objext'
  4665. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4666. (eval $ac_try) 2>&5
  4667. ac_status=$?
  4668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4669. (exit $ac_status); }; }; then
  4670. ac_cv_member_struct_msghdr_msg_control=yes
  4671. else
  4672. echo "$as_me: failed program was:" >&5
  4673. sed 's/^/| /' conftest.$ac_ext >&5
  4674. cat >conftest.$ac_ext <<_ACEOF
  4675. #line $LINENO "configure"
  4676. /* confdefs.h. */
  4677. _ACEOF
  4678. cat confdefs.h >>conftest.$ac_ext
  4679. cat >>conftest.$ac_ext <<_ACEOF
  4680. /* end confdefs.h. */
  4681. #include <sys/types.h>
  4682. #include <sys/socket.h>
  4683. int
  4684. main ()
  4685. {
  4686. static struct msghdr ac_aggr;
  4687. if (sizeof ac_aggr.msg_control)
  4688. return 0;
  4689. ;
  4690. return 0;
  4691. }
  4692. _ACEOF
  4693. rm -f conftest.$ac_objext
  4694. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4695. (eval $ac_compile) 2>&5
  4696. ac_status=$?
  4697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4698. (exit $ac_status); } &&
  4699. { ac_try='test -s conftest.$ac_objext'
  4700. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4701. (eval $ac_try) 2>&5
  4702. ac_status=$?
  4703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4704. (exit $ac_status); }; }; then
  4705. ac_cv_member_struct_msghdr_msg_control=yes
  4706. else
  4707. echo "$as_me: failed program was:" >&5
  4708. sed 's/^/| /' conftest.$ac_ext >&5
  4709. ac_cv_member_struct_msghdr_msg_control=no
  4710. fi
  4711. rm -f conftest.$ac_objext conftest.$ac_ext
  4712. fi
  4713. rm -f conftest.$ac_objext conftest.$ac_ext
  4714. fi
  4715. echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
  4716. echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6
  4717. if test $ac_cv_member_struct_msghdr_msg_control = yes; then
  4718. cat >>confdefs.h <<\_ACEOF
  4719. #define HAVE_MSGHDR_MSG_CONTROL 1
  4720. _ACEOF
  4721. fi
  4722. echo "$as_me:$LINENO: checking for struct ifreq.ifr_mtu" >&5
  4723. echo $ECHO_N "checking for struct ifreq.ifr_mtu... $ECHO_C" >&6
  4724. if test "${ac_cv_member_struct_ifreq_ifr_mtu+set}" = set; then
  4725. echo $ECHO_N "(cached) $ECHO_C" >&6
  4726. else
  4727. cat >conftest.$ac_ext <<_ACEOF
  4728. #line $LINENO "configure"
  4729. /* confdefs.h. */
  4730. _ACEOF
  4731. cat confdefs.h >>conftest.$ac_ext
  4732. cat >>conftest.$ac_ext <<_ACEOF
  4733. /* end confdefs.h. */
  4734. #include <sys/types.h>
  4735. #include <sys/socket.h>
  4736. #include <net/if.h>
  4737. int
  4738. main ()
  4739. {
  4740. static struct ifreq ac_aggr;
  4741. if (ac_aggr.ifr_mtu)
  4742. return 0;
  4743. ;
  4744. return 0;
  4745. }
  4746. _ACEOF
  4747. rm -f conftest.$ac_objext
  4748. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4749. (eval $ac_compile) 2>&5
  4750. ac_status=$?
  4751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4752. (exit $ac_status); } &&
  4753. { ac_try='test -s conftest.$ac_objext'
  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); }; }; then
  4759. ac_cv_member_struct_ifreq_ifr_mtu=yes
  4760. else
  4761. echo "$as_me: failed program was:" >&5
  4762. sed 's/^/| /' conftest.$ac_ext >&5
  4763. cat >conftest.$ac_ext <<_ACEOF
  4764. #line $LINENO "configure"
  4765. /* confdefs.h. */
  4766. _ACEOF
  4767. cat confdefs.h >>conftest.$ac_ext
  4768. cat >>conftest.$ac_ext <<_ACEOF
  4769. /* end confdefs.h. */
  4770. #include <sys/types.h>
  4771. #include <sys/socket.h>
  4772. #include <net/if.h>
  4773. int
  4774. main ()
  4775. {
  4776. static struct ifreq ac_aggr;
  4777. if (sizeof ac_aggr.ifr_mtu)
  4778. return 0;
  4779. ;
  4780. return 0;
  4781. }
  4782. _ACEOF
  4783. rm -f conftest.$ac_objext
  4784. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4785. (eval $ac_compile) 2>&5
  4786. ac_status=$?
  4787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4788. (exit $ac_status); } &&
  4789. { ac_try='test -s conftest.$ac_objext'
  4790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4791. (eval $ac_try) 2>&5
  4792. ac_status=$?
  4793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4794. (exit $ac_status); }; }; then
  4795. ac_cv_member_struct_ifreq_ifr_mtu=yes
  4796. else
  4797. echo "$as_me: failed program was:" >&5
  4798. sed 's/^/| /' conftest.$ac_ext >&5
  4799. ac_cv_member_struct_ifreq_ifr_mtu=no
  4800. fi
  4801. rm -f conftest.$ac_objext conftest.$ac_ext
  4802. fi
  4803. rm -f conftest.$ac_objext conftest.$ac_ext
  4804. fi
  4805. echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_mtu" >&5
  4806. echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_mtu" >&6
  4807. if test $ac_cv_member_struct_ifreq_ifr_mtu = yes; then
  4808. cat >>confdefs.h <<_ACEOF
  4809. #define HAVE_STRUCT_IFREQ_IFR_MTU 1
  4810. _ACEOF
  4811. fi
  4812. echo "$as_me:$LINENO: checking for getaddrinfo function prototype in netdb.h" >&5
  4813. echo $ECHO_N "checking for getaddrinfo function prototype in netdb.h... $ECHO_C" >&6
  4814. if test "${ac_cv_have_getaddrinfo_proto+set}" = set; then
  4815. echo $ECHO_N "(cached) $ECHO_C" >&6
  4816. else
  4817. cat >conftest.$ac_ext <<_ACEOF
  4818. #line $LINENO "configure"
  4819. /* confdefs.h. */
  4820. _ACEOF
  4821. cat confdefs.h >>conftest.$ac_ext
  4822. cat >>conftest.$ac_ext <<_ACEOF
  4823. /* end confdefs.h. */
  4824. #include <netdb.h>
  4825. _ACEOF
  4826. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4827. $EGREP "getaddrinfo" >/dev/null 2>&1; then
  4828. ac_cv_have_getaddrinfo_proto=yes
  4829. else
  4830. ac_cv_have_getaddrinfo_proto=no
  4831. fi
  4832. rm -f conftest*
  4833. fi
  4834. echo "$as_me:$LINENO: result: $ac_cv_have_getaddrinfo_proto" >&5
  4835. echo "${ECHO_T}$ac_cv_have_getaddrinfo_proto" >&6
  4836. if test $ac_cv_have_getaddrinfo_proto = yes ; then
  4837. ac_tr_func=HAVE_`echo getaddrinfo | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO
  4838. cat >>confdefs.h <<_ACEOF
  4839. #define $ac_tr_func 1
  4840. _ACEOF
  4841. fi
  4842. echo "$as_me:$LINENO: checking for getnameinfo function prototype in netdb.h" >&5
  4843. echo $ECHO_N "checking for getnameinfo function prototype in netdb.h... $ECHO_C" >&6
  4844. if test "${ac_cv_have_getnameinfo_proto+set}" = set; then
  4845. echo $ECHO_N "(cached) $ECHO_C" >&6
  4846. else
  4847. cat >conftest.$ac_ext <<_ACEOF
  4848. #line $LINENO "configure"
  4849. /* confdefs.h. */
  4850. _ACEOF
  4851. cat confdefs.h >>conftest.$ac_ext
  4852. cat >>conftest.$ac_ext <<_ACEOF
  4853. /* end confdefs.h. */
  4854. #include <netdb.h>
  4855. _ACEOF
  4856. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4857. $EGREP "getnameinfo" >/dev/null 2>&1; then
  4858. ac_cv_have_getnameinfo_proto=yes
  4859. else
  4860. ac_cv_have_getnameinfo_proto=no
  4861. fi
  4862. rm -f conftest*
  4863. fi
  4864. echo "$as_me:$LINENO: result: $ac_cv_have_getnameinfo_proto" >&5
  4865. echo "${ECHO_T}$ac_cv_have_getnameinfo_proto" >&6
  4866. if test $ac_cv_have_getnameinfo_proto = yes ; then
  4867. ac_tr_func=HAVE_`echo getnameinfo | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO
  4868. cat >>confdefs.h <<_ACEOF
  4869. #define $ac_tr_func 1
  4870. _ACEOF
  4871. fi
  4872. echo "$as_me:$LINENO: checking for gethostname function prototype in unistd.h" >&5
  4873. echo $ECHO_N "checking for gethostname function prototype in unistd.h... $ECHO_C" >&6
  4874. if test "${ac_cv_have_gethostname_proto+set}" = set; then
  4875. echo $ECHO_N "(cached) $ECHO_C" >&6
  4876. else
  4877. cat >conftest.$ac_ext <<_ACEOF
  4878. #line $LINENO "configure"
  4879. /* confdefs.h. */
  4880. _ACEOF
  4881. cat confdefs.h >>conftest.$ac_ext
  4882. cat >>conftest.$ac_ext <<_ACEOF
  4883. /* end confdefs.h. */
  4884. #include <unistd.h>
  4885. _ACEOF
  4886. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4887. $EGREP "gethostname" >/dev/null 2>&1; then
  4888. ac_cv_have_gethostname_proto=yes
  4889. else
  4890. ac_cv_have_gethostname_proto=no
  4891. fi
  4892. rm -f conftest*
  4893. fi
  4894. echo "$as_me:$LINENO: result: $ac_cv_have_gethostname_proto" >&5
  4895. echo "${ECHO_T}$ac_cv_have_gethostname_proto" >&6
  4896. if test $ac_cv_have_gethostname_proto = yes ; then
  4897. ac_tr_func=HAVE_`echo gethostname | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO
  4898. cat >>confdefs.h <<_ACEOF
  4899. #define $ac_tr_func 1
  4900. _ACEOF
  4901. fi
  4902. echo "$as_me:$LINENO: checking for getrusage function prototype in sys/resource.h" >&5
  4903. echo $ECHO_N "checking for getrusage function prototype in sys/resource.h... $ECHO_C" >&6
  4904. if test "${ac_cv_have_getrusage_proto+set}" = set; then
  4905. echo $ECHO_N "(cached) $ECHO_C" >&6
  4906. else
  4907. cat >conftest.$ac_ext <<_ACEOF
  4908. #line $LINENO "configure"
  4909. /* confdefs.h. */
  4910. _ACEOF
  4911. cat confdefs.h >>conftest.$ac_ext
  4912. cat >>conftest.$ac_ext <<_ACEOF
  4913. /* end confdefs.h. */
  4914. #include <sys/resource.h>
  4915. _ACEOF
  4916. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4917. $EGREP "getrusage" >/dev/null 2>&1; then
  4918. ac_cv_have_getrusage_proto=yes
  4919. else
  4920. ac_cv_have_getrusage_proto=no
  4921. fi
  4922. rm -f conftest*
  4923. fi
  4924. echo "$as_me:$LINENO: result: $ac_cv_have_getrusage_proto" >&5
  4925. echo "${ECHO_T}$ac_cv_have_getrusage_proto" >&6
  4926. if test $ac_cv_have_getrusage_proto = yes ; then
  4927. ac_tr_func=HAVE_`echo getrusage | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO
  4928. cat >>confdefs.h <<_ACEOF
  4929. #define $ac_tr_func 1
  4930. _ACEOF
  4931. fi
  4932. echo "$as_me:$LINENO: checking for hstrerror function prototype in netdb.h" >&5
  4933. echo $ECHO_N "checking for hstrerror function prototype in netdb.h... $ECHO_C" >&6
  4934. if test "${ac_cv_have_hstrerror_proto+set}" = set; then
  4935. echo $ECHO_N "(cached) $ECHO_C" >&6
  4936. else
  4937. cat >conftest.$ac_ext <<_ACEOF
  4938. #line $LINENO "configure"
  4939. /* confdefs.h. */
  4940. _ACEOF
  4941. cat confdefs.h >>conftest.$ac_ext
  4942. cat >>conftest.$ac_ext <<_ACEOF
  4943. /* end confdefs.h. */
  4944. #include <netdb.h>
  4945. _ACEOF
  4946. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4947. $EGREP "hstrerror" >/dev/null 2>&1; then
  4948. ac_cv_have_hstrerror_proto=yes
  4949. else
  4950. ac_cv_have_hstrerror_proto=no
  4951. fi
  4952. rm -f conftest*
  4953. fi
  4954. echo "$as_me:$LINENO: result: $ac_cv_have_hstrerror_proto" >&5
  4955. echo "${ECHO_T}$ac_cv_have_hstrerror_proto" >&6
  4956. if test $ac_cv_have_hstrerror_proto = yes ; then
  4957. ac_tr_func=HAVE_`echo hstrerror | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO
  4958. cat >>confdefs.h <<_ACEOF
  4959. #define $ac_tr_func 1
  4960. _ACEOF
  4961. fi
  4962. echo "$as_me:$LINENO: checking for if_nametoindex function prototype in net/if.h" >&5
  4963. echo $ECHO_N "checking for if_nametoindex function prototype in net/if.h... $ECHO_C" >&6
  4964. if test "${ac_cv_have_if_nametoindex_proto+set}" = set; then
  4965. echo $ECHO_N "(cached) $ECHO_C" >&6
  4966. else
  4967. cat >conftest.$ac_ext <<_ACEOF
  4968. #line $LINENO "configure"
  4969. /* confdefs.h. */
  4970. _ACEOF
  4971. cat confdefs.h >>conftest.$ac_ext
  4972. cat >>conftest.$ac_ext <<_ACEOF
  4973. /* end confdefs.h. */
  4974. #include <net/if.h>
  4975. _ACEOF
  4976. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4977. $EGREP "if_nametoindex" >/dev/null 2>&1; then
  4978. ac_cv_have_if_nametoindex_proto=yes
  4979. else
  4980. ac_cv_have_if_nametoindex_proto=no
  4981. fi
  4982. rm -f conftest*
  4983. fi
  4984. echo "$as_me:$LINENO: result: $ac_cv_have_if_nametoindex_proto" >&5
  4985. echo "${ECHO_T}$ac_cv_have_if_nametoindex_proto" >&6
  4986. if test $ac_cv_have_if_nametoindex_proto = yes ; then
  4987. ac_tr_func=HAVE_`echo if_nametoindex | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO
  4988. cat >>confdefs.h <<_ACEOF
  4989. #define $ac_tr_func 1
  4990. _ACEOF
  4991. fi
  4992. echo "$as_me:$LINENO: checking for inet_aton function prototype in arpa/inet.h" >&5
  4993. echo $ECHO_N "checking for inet_aton function prototype in arpa/inet.h... $ECHO_C" >&6
  4994. if test "${ac_cv_have_inet_aton_proto+set}" = set; then
  4995. echo $ECHO_N "(cached) $ECHO_C" >&6
  4996. else
  4997. cat >conftest.$ac_ext <<_ACEOF
  4998. #line $LINENO "configure"
  4999. /* confdefs.h. */
  5000. _ACEOF
  5001. cat confdefs.h >>conftest.$ac_ext
  5002. cat >>conftest.$ac_ext <<_ACEOF
  5003. /* end confdefs.h. */
  5004. #include <arpa/inet.h>
  5005. _ACEOF
  5006. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5007. $EGREP "inet_aton" >/dev/null 2>&1; then
  5008. ac_cv_have_inet_aton_proto=yes
  5009. else
  5010. ac_cv_have_inet_aton_proto=no
  5011. fi
  5012. rm -f conftest*
  5013. fi
  5014. echo "$as_me:$LINENO: result: $ac_cv_have_inet_aton_proto" >&5
  5015. echo "${ECHO_T}$ac_cv_have_inet_aton_proto" >&6
  5016. if test $ac_cv_have_inet_aton_proto = yes ; then
  5017. ac_tr_func=HAVE_`echo inet_aton | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO
  5018. cat >>confdefs.h <<_ACEOF
  5019. #define $ac_tr_func 1
  5020. _ACEOF
  5021. fi
  5022. echo "$as_me:$LINENO: checking for inet_pton function prototype in arpa/inet.h" >&5
  5023. echo $ECHO_N "checking for inet_pton function prototype in arpa/inet.h... $ECHO_C" >&6
  5024. if test "${ac_cv_have_inet_pton_proto+set}" = set; then
  5025. echo $ECHO_N "(cached) $ECHO_C" >&6
  5026. else
  5027. cat >conftest.$ac_ext <<_ACEOF
  5028. #line $LINENO "configure"
  5029. /* confdefs.h. */
  5030. _ACEOF
  5031. cat confdefs.h >>conftest.$ac_ext
  5032. cat >>conftest.$ac_ext <<_ACEOF
  5033. /* end confdefs.h. */
  5034. #include <arpa/inet.h>
  5035. _ACEOF
  5036. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5037. $EGREP "inet_pton" >/dev/null 2>&1; then
  5038. ac_cv_have_inet_pton_proto=yes
  5039. else
  5040. ac_cv_have_inet_pton_proto=no
  5041. fi
  5042. rm -f conftest*
  5043. fi
  5044. echo "$as_me:$LINENO: result: $ac_cv_have_inet_pton_proto" >&5
  5045. echo "${ECHO_T}$ac_cv_have_inet_pton_proto" >&6
  5046. if test $ac_cv_have_inet_pton_proto = yes ; then
  5047. ac_tr_func=HAVE_`echo inet_pton | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO
  5048. cat >>confdefs.h <<_ACEOF
  5049. #define $ac_tr_func 1
  5050. _ACEOF
  5051. fi
  5052. echo "$as_me:$LINENO: checking for pselect function prototype in sys/select.h" >&5
  5053. echo $ECHO_N "checking for pselect function prototype in sys/select.h... $ECHO_C" >&6
  5054. if test "${ac_cv_have_pselect_proto+set}" = set; then
  5055. echo $ECHO_N "(cached) $ECHO_C" >&6
  5056. else
  5057. cat >conftest.$ac_ext <<_ACEOF
  5058. #line $LINENO "configure"
  5059. /* confdefs.h. */
  5060. _ACEOF
  5061. cat confdefs.h >>conftest.$ac_ext
  5062. cat >>conftest.$ac_ext <<_ACEOF
  5063. /* end confdefs.h. */
  5064. #include <sys/select.h>
  5065. _ACEOF
  5066. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5067. $EGREP "pselect" >/dev/null 2>&1; then
  5068. ac_cv_have_pselect_proto=yes
  5069. else
  5070. ac_cv_have_pselect_proto=no
  5071. fi
  5072. rm -f conftest*
  5073. fi
  5074. echo "$as_me:$LINENO: result: $ac_cv_have_pselect_proto" >&5
  5075. echo "${ECHO_T}$ac_cv_have_pselect_proto" >&6
  5076. if test $ac_cv_have_pselect_proto = yes ; then
  5077. ac_tr_func=HAVE_`echo pselect | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO
  5078. cat >>confdefs.h <<_ACEOF
  5079. #define $ac_tr_func 1
  5080. _ACEOF
  5081. fi
  5082. echo "$as_me:$LINENO: checking for snprintf function prototype in stdio.h" >&5
  5083. echo $ECHO_N "checking for snprintf function prototype in stdio.h... $ECHO_C" >&6
  5084. if test "${ac_cv_have_snprintf_proto+set}" = set; then
  5085. echo $ECHO_N "(cached) $ECHO_C" >&6
  5086. else
  5087. cat >conftest.$ac_ext <<_ACEOF
  5088. #line $LINENO "configure"
  5089. /* confdefs.h. */
  5090. _ACEOF
  5091. cat confdefs.h >>conftest.$ac_ext
  5092. cat >>conftest.$ac_ext <<_ACEOF
  5093. /* end confdefs.h. */
  5094. #include <stdio.h>
  5095. _ACEOF
  5096. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5097. $EGREP "snprintf" >/dev/null 2>&1; then
  5098. ac_cv_have_snprintf_proto=yes
  5099. else
  5100. ac_cv_have_snprintf_proto=no
  5101. fi
  5102. rm -f conftest*
  5103. fi
  5104. echo "$as_me:$LINENO: result: $ac_cv_have_snprintf_proto" >&5
  5105. echo "${ECHO_T}$ac_cv_have_snprintf_proto" >&6
  5106. if test $ac_cv_have_snprintf_proto = yes ; then
  5107. ac_tr_func=HAVE_`echo snprintf | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO
  5108. cat >>confdefs.h <<_ACEOF
  5109. #define $ac_tr_func 1
  5110. _ACEOF
  5111. fi
  5112. echo "$as_me:$LINENO: checking for sockatmark function prototype in sys/socket.h" >&5
  5113. echo $ECHO_N "checking for sockatmark function prototype in sys/socket.h... $ECHO_C" >&6
  5114. if test "${ac_cv_have_sockatmark_proto+set}" = set; then
  5115. echo $ECHO_N "(cached) $ECHO_C" >&6
  5116. else
  5117. cat >conftest.$ac_ext <<_ACEOF
  5118. #line $LINENO "configure"
  5119. /* confdefs.h. */
  5120. _ACEOF
  5121. cat confdefs.h >>conftest.$ac_ext
  5122. cat >>conftest.$ac_ext <<_ACEOF
  5123. /* end confdefs.h. */
  5124. #include <sys/socket.h>
  5125. _ACEOF
  5126. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5127. $EGREP "sockatmark" >/dev/null 2>&1; then
  5128. ac_cv_have_sockatmark_proto=yes
  5129. else
  5130. ac_cv_have_sockatmark_proto=no
  5131. fi
  5132. rm -f conftest*
  5133. fi
  5134. echo "$as_me:$LINENO: result: $ac_cv_have_sockatmark_proto" >&5
  5135. echo "${ECHO_T}$ac_cv_have_sockatmark_proto" >&6
  5136. if test $ac_cv_have_sockatmark_proto = yes ; then
  5137. ac_tr_func=HAVE_`echo sockatmark | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`_PROTO
  5138. cat >>confdefs.h <<_ACEOF
  5139. #define $ac_tr_func 1
  5140. _ACEOF
  5141. fi
  5142. echo "$as_me:$LINENO: checking for struct addrinfo" >&5
  5143. echo $ECHO_N "checking for struct addrinfo... $ECHO_C" >&6
  5144. if test "${ac_cv_type_struct_addrinfo+set}" = set; then
  5145. echo $ECHO_N "(cached) $ECHO_C" >&6
  5146. else
  5147. cat >conftest.$ac_ext <<_ACEOF
  5148. #line $LINENO "configure"
  5149. /* confdefs.h. */
  5150. _ACEOF
  5151. cat confdefs.h >>conftest.$ac_ext
  5152. cat >>conftest.$ac_ext <<_ACEOF
  5153. /* end confdefs.h. */
  5154. #include <netdb.h>
  5155. int
  5156. main ()
  5157. {
  5158. if ((struct addrinfo *) 0)
  5159. return 0;
  5160. if (sizeof (struct addrinfo))
  5161. return 0;
  5162. ;
  5163. return 0;
  5164. }
  5165. _ACEOF
  5166. rm -f conftest.$ac_objext
  5167. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5168. (eval $ac_compile) 2>&5
  5169. ac_status=$?
  5170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5171. (exit $ac_status); } &&
  5172. { ac_try='test -s conftest.$ac_objext'
  5173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5174. (eval $ac_try) 2>&5
  5175. ac_status=$?
  5176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5177. (exit $ac_status); }; }; then
  5178. ac_cv_type_struct_addrinfo=yes
  5179. else
  5180. echo "$as_me: failed program was:" >&5
  5181. sed 's/^/| /' conftest.$ac_ext >&5
  5182. ac_cv_type_struct_addrinfo=no
  5183. fi
  5184. rm -f conftest.$ac_objext conftest.$ac_ext
  5185. fi
  5186. echo "$as_me:$LINENO: result: $ac_cv_type_struct_addrinfo" >&5
  5187. echo "${ECHO_T}$ac_cv_type_struct_addrinfo" >&6
  5188. if test $ac_cv_type_struct_addrinfo = yes; then
  5189. cat >>confdefs.h <<\_ACEOF
  5190. #define HAVE_ADDRINFO_STRUCT 1
  5191. _ACEOF
  5192. fi
  5193. echo "$as_me:$LINENO: checking for struct if_nameindex" >&5
  5194. echo $ECHO_N "checking for struct if_nameindex... $ECHO_C" >&6
  5195. if test "${ac_cv_type_struct_if_nameindex+set}" = set; then
  5196. echo $ECHO_N "(cached) $ECHO_C" >&6
  5197. else
  5198. cat >conftest.$ac_ext <<_ACEOF
  5199. #line $LINENO "configure"
  5200. /* confdefs.h. */
  5201. _ACEOF
  5202. cat confdefs.h >>conftest.$ac_ext
  5203. cat >>conftest.$ac_ext <<_ACEOF
  5204. /* end confdefs.h. */
  5205. #include <sys/types.h>
  5206. #include <sys/socket.h>
  5207. #include <net/if.h>
  5208. int
  5209. main ()
  5210. {
  5211. if ((struct if_nameindex *) 0)
  5212. return 0;
  5213. if (sizeof (struct if_nameindex))
  5214. return 0;
  5215. ;
  5216. return 0;
  5217. }
  5218. _ACEOF
  5219. rm -f conftest.$ac_objext
  5220. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5221. (eval $ac_compile) 2>&5
  5222. ac_status=$?
  5223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5224. (exit $ac_status); } &&
  5225. { ac_try='test -s conftest.$ac_objext'
  5226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5227. (eval $ac_try) 2>&5
  5228. ac_status=$?
  5229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5230. (exit $ac_status); }; }; then
  5231. ac_cv_type_struct_if_nameindex=yes
  5232. else
  5233. echo "$as_me: failed program was:" >&5
  5234. sed 's/^/| /' conftest.$ac_ext >&5
  5235. ac_cv_type_struct_if_nameindex=no
  5236. fi
  5237. rm -f conftest.$ac_objext conftest.$ac_ext
  5238. fi
  5239. echo "$as_me:$LINENO: result: $ac_cv_type_struct_if_nameindex" >&5
  5240. echo "${ECHO_T}$ac_cv_type_struct_if_nameindex" >&6
  5241. if test $ac_cv_type_struct_if_nameindex = yes; then
  5242. cat >>confdefs.h <<\_ACEOF
  5243. #define HAVE_IF_NAMEINDEX_STRUCT 1
  5244. _ACEOF
  5245. fi
  5246. echo "$as_me:$LINENO: checking for struct sockaddr_dl" >&5
  5247. echo $ECHO_N "checking for struct sockaddr_dl... $ECHO_C" >&6
  5248. if test "${ac_cv_type_struct_sockaddr_dl+set}" = set; then
  5249. echo $ECHO_N "(cached) $ECHO_C" >&6
  5250. else
  5251. cat >conftest.$ac_ext <<_ACEOF
  5252. #line $LINENO "configure"
  5253. /* confdefs.h. */
  5254. _ACEOF
  5255. cat confdefs.h >>conftest.$ac_ext
  5256. cat >>conftest.$ac_ext <<_ACEOF
  5257. /* end confdefs.h. */
  5258. #include <sys/types.h>
  5259. #include <sys/socket.h>
  5260. #include <net/if_dl.h>
  5261. int
  5262. main ()
  5263. {
  5264. if ((struct sockaddr_dl *) 0)
  5265. return 0;
  5266. if (sizeof (struct sockaddr_dl))
  5267. return 0;
  5268. ;
  5269. return 0;
  5270. }
  5271. _ACEOF
  5272. rm -f conftest.$ac_objext
  5273. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5274. (eval $ac_compile) 2>&5
  5275. ac_status=$?
  5276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5277. (exit $ac_status); } &&
  5278. { ac_try='test -s conftest.$ac_objext'
  5279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5280. (eval $ac_try) 2>&5
  5281. ac_status=$?
  5282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5283. (exit $ac_status); }; }; then
  5284. ac_cv_type_struct_sockaddr_dl=yes
  5285. else
  5286. echo "$as_me: failed program was:" >&5
  5287. sed 's/^/| /' conftest.$ac_ext >&5
  5288. ac_cv_type_struct_sockaddr_dl=no
  5289. fi
  5290. rm -f conftest.$ac_objext conftest.$ac_ext
  5291. fi
  5292. echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_dl" >&5
  5293. echo "${ECHO_T}$ac_cv_type_struct_sockaddr_dl" >&6
  5294. if test $ac_cv_type_struct_sockaddr_dl = yes; then
  5295. cat >>confdefs.h <<\_ACEOF
  5296. #define HAVE_SOCKADDR_DL_STRUCT 1
  5297. _ACEOF
  5298. fi
  5299. echo "$as_me:$LINENO: checking for struct timespec" >&5
  5300. echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6
  5301. if test "${ac_cv_type_struct_timespec+set}" = set; then
  5302. echo $ECHO_N "(cached) $ECHO_C" >&6
  5303. else
  5304. cat >conftest.$ac_ext <<_ACEOF
  5305. #line $LINENO "configure"
  5306. /* confdefs.h. */
  5307. _ACEOF
  5308. cat confdefs.h >>conftest.$ac_ext
  5309. cat >>conftest.$ac_ext <<_ACEOF
  5310. /* end confdefs.h. */
  5311. #if TIME_WITH_SYS_TIME
  5312. #include <sys/time.h>
  5313. #include <time.h>
  5314. #else
  5315. #if HAVE_SYS_TIME_H
  5316. #include <sys/time.h>
  5317. #else
  5318. #include <time.h>
  5319. #endif
  5320. #endif
  5321. int
  5322. main ()
  5323. {
  5324. if ((struct timespec *) 0)
  5325. return 0;
  5326. if (sizeof (struct timespec))
  5327. return 0;
  5328. ;
  5329. return 0;
  5330. }
  5331. _ACEOF
  5332. rm -f conftest.$ac_objext
  5333. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5334. (eval $ac_compile) 2>&5
  5335. ac_status=$?
  5336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5337. (exit $ac_status); } &&
  5338. { ac_try='test -s conftest.$ac_objext'
  5339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5340. (eval $ac_try) 2>&5
  5341. ac_status=$?
  5342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5343. (exit $ac_status); }; }; then
  5344. ac_cv_type_struct_timespec=yes
  5345. else
  5346. echo "$as_me: failed program was:" >&5
  5347. sed 's/^/| /' conftest.$ac_ext >&5
  5348. ac_cv_type_struct_timespec=no
  5349. fi
  5350. rm -f conftest.$ac_objext conftest.$ac_ext
  5351. fi
  5352. echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  5353. echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6
  5354. if test $ac_cv_type_struct_timespec = yes; then
  5355. cat >>confdefs.h <<\_ACEOF
  5356. #define HAVE_TIMESPEC_STRUCT 1
  5357. _ACEOF
  5358. fi
  5359. echo "$as_me:$LINENO: checking for /dev/tcp" >&5
  5360. echo $ECHO_N "checking for /dev/tcp... $ECHO_C" >&6
  5361. if test -r /dev/tcp ; then
  5362. cat >>confdefs.h <<\_ACEOF
  5363. #define HAVE_DEV_TCP 1
  5364. _ACEOF
  5365. echo "$as_me:$LINENO: result: yes" >&5
  5366. echo "${ECHO_T}yes" >&6
  5367. else
  5368. echo "$as_me:$LINENO: result: no" >&5
  5369. echo "${ECHO_T}no" >&6
  5370. echo "$as_me:$LINENO: checking for /dev/xti/tcp" >&5
  5371. echo $ECHO_N "checking for /dev/xti/tcp... $ECHO_C" >&6
  5372. if test -r /dev/xti/tcp ; then
  5373. cat >>confdefs.h <<\_ACEOF
  5374. #define HAVE_DEV_XTI_TCP 1
  5375. _ACEOF
  5376. echo "$as_me:$LINENO: result: yes" >&5
  5377. echo "${ECHO_T}yes" >&6
  5378. else
  5379. echo "$as_me:$LINENO: result: no" >&5
  5380. echo "${ECHO_T}no" >&6
  5381. echo "$as_me:$LINENO: checking for /dev/streams/xtiso/tcp" >&5
  5382. echo $ECHO_N "checking for /dev/streams/xtiso/tcp... $ECHO_C" >&6
  5383. if test -r /dev/streams/xtiso/tcp ; then
  5384. cat >>confdefs.h <<\_ACEOF
  5385. #define HAVE_DEV_STREAMS_XTISO_TCP 1
  5386. _ACEOF
  5387. echo "$as_me:$LINENO: result: yes" >&5
  5388. echo "${ECHO_T}yes" >&6
  5389. else
  5390. echo "$as_me:$LINENO: result: no" >&5
  5391. echo "${ECHO_T}no" >&6
  5392. fi
  5393. fi
  5394. fi
  5395. for ac_func in bzero
  5396. do
  5397. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5398. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5399. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5400. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5401. echo $ECHO_N "(cached) $ECHO_C" >&6
  5402. else
  5403. cat >conftest.$ac_ext <<_ACEOF
  5404. #line $LINENO "configure"
  5405. /* confdefs.h. */
  5406. _ACEOF
  5407. cat confdefs.h >>conftest.$ac_ext
  5408. cat >>conftest.$ac_ext <<_ACEOF
  5409. /* end confdefs.h. */
  5410. /* System header to define __stub macros and hopefully few prototypes,
  5411. which can conflict with char $ac_func (); below.
  5412. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5413. <limits.h> exists even on freestanding compilers. */
  5414. #ifdef __STDC__
  5415. # include <limits.h>
  5416. #else
  5417. # include <assert.h>
  5418. #endif
  5419. /* Override any gcc2 internal prototype to avoid an error. */
  5420. #ifdef __cplusplus
  5421. extern "C"
  5422. {
  5423. #endif
  5424. /* We use char because int might match the return type of a gcc2
  5425. builtin and then its argument prototype would still apply. */
  5426. char $ac_func ();
  5427. /* The GNU C library defines this for functions which it implements
  5428. to always fail with ENOSYS. Some functions are actually named
  5429. something starting with __ and the normal name is an alias. */
  5430. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5431. choke me
  5432. #else
  5433. char (*f) () = $ac_func;
  5434. #endif
  5435. #ifdef __cplusplus
  5436. }
  5437. #endif
  5438. int
  5439. main ()
  5440. {
  5441. return f != $ac_func;
  5442. ;
  5443. return 0;
  5444. }
  5445. _ACEOF
  5446. rm -f conftest.$ac_objext conftest$ac_exeext
  5447. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5448. (eval $ac_link) 2>&5
  5449. ac_status=$?
  5450. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5451. (exit $ac_status); } &&
  5452. { ac_try='test -s conftest$ac_exeext'
  5453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5454. (eval $ac_try) 2>&5
  5455. ac_status=$?
  5456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5457. (exit $ac_status); }; }; then
  5458. eval "$as_ac_var=yes"
  5459. else
  5460. echo "$as_me: failed program was:" >&5
  5461. sed 's/^/| /' conftest.$ac_ext >&5
  5462. eval "$as_ac_var=no"
  5463. fi
  5464. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5465. fi
  5466. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5467. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5468. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5469. cat >>confdefs.h <<_ACEOF
  5470. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5471. _ACEOF
  5472. fi
  5473. done
  5474. for ac_func in getaddrinfo
  5475. do
  5476. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5477. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5478. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5479. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5480. echo $ECHO_N "(cached) $ECHO_C" >&6
  5481. else
  5482. cat >conftest.$ac_ext <<_ACEOF
  5483. #line $LINENO "configure"
  5484. /* confdefs.h. */
  5485. _ACEOF
  5486. cat confdefs.h >>conftest.$ac_ext
  5487. cat >>conftest.$ac_ext <<_ACEOF
  5488. /* end confdefs.h. */
  5489. /* System header to define __stub macros and hopefully few prototypes,
  5490. which can conflict with char $ac_func (); below.
  5491. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5492. <limits.h> exists even on freestanding compilers. */
  5493. #ifdef __STDC__
  5494. # include <limits.h>
  5495. #else
  5496. # include <assert.h>
  5497. #endif
  5498. /* Override any gcc2 internal prototype to avoid an error. */
  5499. #ifdef __cplusplus
  5500. extern "C"
  5501. {
  5502. #endif
  5503. /* We use char because int might match the return type of a gcc2
  5504. builtin and then its argument prototype would still apply. */
  5505. char $ac_func ();
  5506. /* The GNU C library defines this for functions which it implements
  5507. to always fail with ENOSYS. Some functions are actually named
  5508. something starting with __ and the normal name is an alias. */
  5509. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5510. choke me
  5511. #else
  5512. char (*f) () = $ac_func;
  5513. #endif
  5514. #ifdef __cplusplus
  5515. }
  5516. #endif
  5517. int
  5518. main ()
  5519. {
  5520. return f != $ac_func;
  5521. ;
  5522. return 0;
  5523. }
  5524. _ACEOF
  5525. rm -f conftest.$ac_objext conftest$ac_exeext
  5526. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5527. (eval $ac_link) 2>&5
  5528. ac_status=$?
  5529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5530. (exit $ac_status); } &&
  5531. { ac_try='test -s conftest$ac_exeext'
  5532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5533. (eval $ac_try) 2>&5
  5534. ac_status=$?
  5535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5536. (exit $ac_status); }; }; then
  5537. eval "$as_ac_var=yes"
  5538. else
  5539. echo "$as_me: failed program was:" >&5
  5540. sed 's/^/| /' conftest.$ac_ext >&5
  5541. eval "$as_ac_var=no"
  5542. fi
  5543. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5544. fi
  5545. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5546. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5547. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5548. cat >>confdefs.h <<_ACEOF
  5549. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5550. _ACEOF
  5551. fi
  5552. done
  5553. for ac_func in gethostname
  5554. do
  5555. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5556. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5557. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5558. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5559. echo $ECHO_N "(cached) $ECHO_C" >&6
  5560. else
  5561. cat >conftest.$ac_ext <<_ACEOF
  5562. #line $LINENO "configure"
  5563. /* confdefs.h. */
  5564. _ACEOF
  5565. cat confdefs.h >>conftest.$ac_ext
  5566. cat >>conftest.$ac_ext <<_ACEOF
  5567. /* end confdefs.h. */
  5568. /* System header to define __stub macros and hopefully few prototypes,
  5569. which can conflict with char $ac_func (); below.
  5570. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5571. <limits.h> exists even on freestanding compilers. */
  5572. #ifdef __STDC__
  5573. # include <limits.h>
  5574. #else
  5575. # include <assert.h>
  5576. #endif
  5577. /* Override any gcc2 internal prototype to avoid an error. */
  5578. #ifdef __cplusplus
  5579. extern "C"
  5580. {
  5581. #endif
  5582. /* We use char because int might match the return type of a gcc2
  5583. builtin and then its argument prototype would still apply. */
  5584. char $ac_func ();
  5585. /* The GNU C library defines this for functions which it implements
  5586. to always fail with ENOSYS. Some functions are actually named
  5587. something starting with __ and the normal name is an alias. */
  5588. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5589. choke me
  5590. #else
  5591. char (*f) () = $ac_func;
  5592. #endif
  5593. #ifdef __cplusplus
  5594. }
  5595. #endif
  5596. int
  5597. main ()
  5598. {
  5599. return f != $ac_func;
  5600. ;
  5601. return 0;
  5602. }
  5603. _ACEOF
  5604. rm -f conftest.$ac_objext conftest$ac_exeext
  5605. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5606. (eval $ac_link) 2>&5
  5607. ac_status=$?
  5608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5609. (exit $ac_status); } &&
  5610. { ac_try='test -s conftest$ac_exeext'
  5611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5612. (eval $ac_try) 2>&5
  5613. ac_status=$?
  5614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5615. (exit $ac_status); }; }; then
  5616. eval "$as_ac_var=yes"
  5617. else
  5618. echo "$as_me: failed program was:" >&5
  5619. sed 's/^/| /' conftest.$ac_ext >&5
  5620. eval "$as_ac_var=no"
  5621. fi
  5622. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5623. fi
  5624. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5625. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5626. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5627. cat >>confdefs.h <<_ACEOF
  5628. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5629. _ACEOF
  5630. fi
  5631. done
  5632. for ac_func in gethostbyname2
  5633. do
  5634. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5635. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5636. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5637. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5638. echo $ECHO_N "(cached) $ECHO_C" >&6
  5639. else
  5640. cat >conftest.$ac_ext <<_ACEOF
  5641. #line $LINENO "configure"
  5642. /* confdefs.h. */
  5643. _ACEOF
  5644. cat confdefs.h >>conftest.$ac_ext
  5645. cat >>conftest.$ac_ext <<_ACEOF
  5646. /* end confdefs.h. */
  5647. /* System header to define __stub macros and hopefully few prototypes,
  5648. which can conflict with char $ac_func (); below.
  5649. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5650. <limits.h> exists even on freestanding compilers. */
  5651. #ifdef __STDC__
  5652. # include <limits.h>
  5653. #else
  5654. # include <assert.h>
  5655. #endif
  5656. /* Override any gcc2 internal prototype to avoid an error. */
  5657. #ifdef __cplusplus
  5658. extern "C"
  5659. {
  5660. #endif
  5661. /* We use char because int might match the return type of a gcc2
  5662. builtin and then its argument prototype would still apply. */
  5663. char $ac_func ();
  5664. /* The GNU C library defines this for functions which it implements
  5665. to always fail with ENOSYS. Some functions are actually named
  5666. something starting with __ and the normal name is an alias. */
  5667. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5668. choke me
  5669. #else
  5670. char (*f) () = $ac_func;
  5671. #endif
  5672. #ifdef __cplusplus
  5673. }
  5674. #endif
  5675. int
  5676. main ()
  5677. {
  5678. return f != $ac_func;
  5679. ;
  5680. return 0;
  5681. }
  5682. _ACEOF
  5683. rm -f conftest.$ac_objext conftest$ac_exeext
  5684. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5685. (eval $ac_link) 2>&5
  5686. ac_status=$?
  5687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5688. (exit $ac_status); } &&
  5689. { ac_try='test -s conftest$ac_exeext'
  5690. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5691. (eval $ac_try) 2>&5
  5692. ac_status=$?
  5693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5694. (exit $ac_status); }; }; then
  5695. eval "$as_ac_var=yes"
  5696. else
  5697. echo "$as_me: failed program was:" >&5
  5698. sed 's/^/| /' conftest.$ac_ext >&5
  5699. eval "$as_ac_var=no"
  5700. fi
  5701. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5702. fi
  5703. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5704. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5705. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5706. cat >>confdefs.h <<_ACEOF
  5707. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5708. _ACEOF
  5709. fi
  5710. done
  5711. for ac_func in gethostbyname_r
  5712. do
  5713. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5714. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5715. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5716. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5717. echo $ECHO_N "(cached) $ECHO_C" >&6
  5718. else
  5719. cat >conftest.$ac_ext <<_ACEOF
  5720. #line $LINENO "configure"
  5721. /* confdefs.h. */
  5722. _ACEOF
  5723. cat confdefs.h >>conftest.$ac_ext
  5724. cat >>conftest.$ac_ext <<_ACEOF
  5725. /* end confdefs.h. */
  5726. /* System header to define __stub macros and hopefully few prototypes,
  5727. which can conflict with char $ac_func (); below.
  5728. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5729. <limits.h> exists even on freestanding compilers. */
  5730. #ifdef __STDC__
  5731. # include <limits.h>
  5732. #else
  5733. # include <assert.h>
  5734. #endif
  5735. /* Override any gcc2 internal prototype to avoid an error. */
  5736. #ifdef __cplusplus
  5737. extern "C"
  5738. {
  5739. #endif
  5740. /* We use char because int might match the return type of a gcc2
  5741. builtin and then its argument prototype would still apply. */
  5742. char $ac_func ();
  5743. /* The GNU C library defines this for functions which it implements
  5744. to always fail with ENOSYS. Some functions are actually named
  5745. something starting with __ and the normal name is an alias. */
  5746. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5747. choke me
  5748. #else
  5749. char (*f) () = $ac_func;
  5750. #endif
  5751. #ifdef __cplusplus
  5752. }
  5753. #endif
  5754. int
  5755. main ()
  5756. {
  5757. return f != $ac_func;
  5758. ;
  5759. return 0;
  5760. }
  5761. _ACEOF
  5762. rm -f conftest.$ac_objext conftest$ac_exeext
  5763. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5764. (eval $ac_link) 2>&5
  5765. ac_status=$?
  5766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5767. (exit $ac_status); } &&
  5768. { ac_try='test -s conftest$ac_exeext'
  5769. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5770. (eval $ac_try) 2>&5
  5771. ac_status=$?
  5772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5773. (exit $ac_status); }; }; then
  5774. eval "$as_ac_var=yes"
  5775. else
  5776. echo "$as_me: failed program was:" >&5
  5777. sed 's/^/| /' conftest.$ac_ext >&5
  5778. eval "$as_ac_var=no"
  5779. fi
  5780. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5781. fi
  5782. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5783. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5784. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5785. cat >>confdefs.h <<_ACEOF
  5786. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5787. _ACEOF
  5788. fi
  5789. done
  5790. for ac_func in getnameinfo
  5791. do
  5792. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5793. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5794. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5795. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5796. echo $ECHO_N "(cached) $ECHO_C" >&6
  5797. else
  5798. cat >conftest.$ac_ext <<_ACEOF
  5799. #line $LINENO "configure"
  5800. /* confdefs.h. */
  5801. _ACEOF
  5802. cat confdefs.h >>conftest.$ac_ext
  5803. cat >>conftest.$ac_ext <<_ACEOF
  5804. /* end confdefs.h. */
  5805. /* System header to define __stub macros and hopefully few prototypes,
  5806. which can conflict with char $ac_func (); below.
  5807. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5808. <limits.h> exists even on freestanding compilers. */
  5809. #ifdef __STDC__
  5810. # include <limits.h>
  5811. #else
  5812. # include <assert.h>
  5813. #endif
  5814. /* Override any gcc2 internal prototype to avoid an error. */
  5815. #ifdef __cplusplus
  5816. extern "C"
  5817. {
  5818. #endif
  5819. /* We use char because int might match the return type of a gcc2
  5820. builtin and then its argument prototype would still apply. */
  5821. char $ac_func ();
  5822. /* The GNU C library defines this for functions which it implements
  5823. to always fail with ENOSYS. Some functions are actually named
  5824. something starting with __ and the normal name is an alias. */
  5825. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5826. choke me
  5827. #else
  5828. char (*f) () = $ac_func;
  5829. #endif
  5830. #ifdef __cplusplus
  5831. }
  5832. #endif
  5833. int
  5834. main ()
  5835. {
  5836. return f != $ac_func;
  5837. ;
  5838. return 0;
  5839. }
  5840. _ACEOF
  5841. rm -f conftest.$ac_objext conftest$ac_exeext
  5842. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5843. (eval $ac_link) 2>&5
  5844. ac_status=$?
  5845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5846. (exit $ac_status); } &&
  5847. { ac_try='test -s conftest$ac_exeext'
  5848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5849. (eval $ac_try) 2>&5
  5850. ac_status=$?
  5851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5852. (exit $ac_status); }; }; then
  5853. eval "$as_ac_var=yes"
  5854. else
  5855. echo "$as_me: failed program was:" >&5
  5856. sed 's/^/| /' conftest.$ac_ext >&5
  5857. eval "$as_ac_var=no"
  5858. fi
  5859. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5860. fi
  5861. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5862. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5863. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5864. cat >>confdefs.h <<_ACEOF
  5865. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5866. _ACEOF
  5867. fi
  5868. done
  5869. for ac_func in hstrerror
  5870. do
  5871. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5872. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5873. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5874. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5875. echo $ECHO_N "(cached) $ECHO_C" >&6
  5876. else
  5877. cat >conftest.$ac_ext <<_ACEOF
  5878. #line $LINENO "configure"
  5879. /* confdefs.h. */
  5880. _ACEOF
  5881. cat confdefs.h >>conftest.$ac_ext
  5882. cat >>conftest.$ac_ext <<_ACEOF
  5883. /* end confdefs.h. */
  5884. /* System header to define __stub macros and hopefully few prototypes,
  5885. which can conflict with char $ac_func (); below.
  5886. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5887. <limits.h> exists even on freestanding compilers. */
  5888. #ifdef __STDC__
  5889. # include <limits.h>
  5890. #else
  5891. # include <assert.h>
  5892. #endif
  5893. /* Override any gcc2 internal prototype to avoid an error. */
  5894. #ifdef __cplusplus
  5895. extern "C"
  5896. {
  5897. #endif
  5898. /* We use char because int might match the return type of a gcc2
  5899. builtin and then its argument prototype would still apply. */
  5900. char $ac_func ();
  5901. /* The GNU C library defines this for functions which it implements
  5902. to always fail with ENOSYS. Some functions are actually named
  5903. something starting with __ and the normal name is an alias. */
  5904. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5905. choke me
  5906. #else
  5907. char (*f) () = $ac_func;
  5908. #endif
  5909. #ifdef __cplusplus
  5910. }
  5911. #endif
  5912. int
  5913. main ()
  5914. {
  5915. return f != $ac_func;
  5916. ;
  5917. return 0;
  5918. }
  5919. _ACEOF
  5920. rm -f conftest.$ac_objext conftest$ac_exeext
  5921. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5922. (eval $ac_link) 2>&5
  5923. ac_status=$?
  5924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5925. (exit $ac_status); } &&
  5926. { ac_try='test -s conftest$ac_exeext'
  5927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5928. (eval $ac_try) 2>&5
  5929. ac_status=$?
  5930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5931. (exit $ac_status); }; }; then
  5932. eval "$as_ac_var=yes"
  5933. else
  5934. echo "$as_me: failed program was:" >&5
  5935. sed 's/^/| /' conftest.$ac_ext >&5
  5936. eval "$as_ac_var=no"
  5937. fi
  5938. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  5939. fi
  5940. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  5941. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  5942. if test `eval echo '${'$as_ac_var'}'` = yes; then
  5943. cat >>confdefs.h <<_ACEOF
  5944. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  5945. _ACEOF
  5946. fi
  5947. done
  5948. for ac_func in if_nametoindex
  5949. do
  5950. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  5951. echo "$as_me:$LINENO: checking for $ac_func" >&5
  5952. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  5953. if eval "test \"\${$as_ac_var+set}\" = set"; then
  5954. echo $ECHO_N "(cached) $ECHO_C" >&6
  5955. else
  5956. cat >conftest.$ac_ext <<_ACEOF
  5957. #line $LINENO "configure"
  5958. /* confdefs.h. */
  5959. _ACEOF
  5960. cat confdefs.h >>conftest.$ac_ext
  5961. cat >>conftest.$ac_ext <<_ACEOF
  5962. /* end confdefs.h. */
  5963. /* System header to define __stub macros and hopefully few prototypes,
  5964. which can conflict with char $ac_func (); below.
  5965. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  5966. <limits.h> exists even on freestanding compilers. */
  5967. #ifdef __STDC__
  5968. # include <limits.h>
  5969. #else
  5970. # include <assert.h>
  5971. #endif
  5972. /* Override any gcc2 internal prototype to avoid an error. */
  5973. #ifdef __cplusplus
  5974. extern "C"
  5975. {
  5976. #endif
  5977. /* We use char because int might match the return type of a gcc2
  5978. builtin and then its argument prototype would still apply. */
  5979. char $ac_func ();
  5980. /* The GNU C library defines this for functions which it implements
  5981. to always fail with ENOSYS. Some functions are actually named
  5982. something starting with __ and the normal name is an alias. */
  5983. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  5984. choke me
  5985. #else
  5986. char (*f) () = $ac_func;
  5987. #endif
  5988. #ifdef __cplusplus
  5989. }
  5990. #endif
  5991. int
  5992. main ()
  5993. {
  5994. return f != $ac_func;
  5995. ;
  5996. return 0;
  5997. }
  5998. _ACEOF
  5999. rm -f conftest.$ac_objext conftest$ac_exeext
  6000. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6001. (eval $ac_link) 2>&5
  6002. ac_status=$?
  6003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6004. (exit $ac_status); } &&
  6005. { ac_try='test -s conftest$ac_exeext'
  6006. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6007. (eval $ac_try) 2>&5
  6008. ac_status=$?
  6009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6010. (exit $ac_status); }; }; then
  6011. eval "$as_ac_var=yes"
  6012. else
  6013. echo "$as_me: failed program was:" >&5
  6014. sed 's/^/| /' conftest.$ac_ext >&5
  6015. eval "$as_ac_var=no"
  6016. fi
  6017. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6018. fi
  6019. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6020. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6021. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6022. cat >>confdefs.h <<_ACEOF
  6023. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6024. _ACEOF
  6025. fi
  6026. done
  6027. for ac_func in inet_aton
  6028. do
  6029. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6030. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6031. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6032. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6033. echo $ECHO_N "(cached) $ECHO_C" >&6
  6034. else
  6035. cat >conftest.$ac_ext <<_ACEOF
  6036. #line $LINENO "configure"
  6037. /* confdefs.h. */
  6038. _ACEOF
  6039. cat confdefs.h >>conftest.$ac_ext
  6040. cat >>conftest.$ac_ext <<_ACEOF
  6041. /* end confdefs.h. */
  6042. /* System header to define __stub macros and hopefully few prototypes,
  6043. which can conflict with char $ac_func (); below.
  6044. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6045. <limits.h> exists even on freestanding compilers. */
  6046. #ifdef __STDC__
  6047. # include <limits.h>
  6048. #else
  6049. # include <assert.h>
  6050. #endif
  6051. /* Override any gcc2 internal prototype to avoid an error. */
  6052. #ifdef __cplusplus
  6053. extern "C"
  6054. {
  6055. #endif
  6056. /* We use char because int might match the return type of a gcc2
  6057. builtin and then its argument prototype would still apply. */
  6058. char $ac_func ();
  6059. /* The GNU C library defines this for functions which it implements
  6060. to always fail with ENOSYS. Some functions are actually named
  6061. something starting with __ and the normal name is an alias. */
  6062. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6063. choke me
  6064. #else
  6065. char (*f) () = $ac_func;
  6066. #endif
  6067. #ifdef __cplusplus
  6068. }
  6069. #endif
  6070. int
  6071. main ()
  6072. {
  6073. return f != $ac_func;
  6074. ;
  6075. return 0;
  6076. }
  6077. _ACEOF
  6078. rm -f conftest.$ac_objext conftest$ac_exeext
  6079. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6080. (eval $ac_link) 2>&5
  6081. ac_status=$?
  6082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6083. (exit $ac_status); } &&
  6084. { ac_try='test -s conftest$ac_exeext'
  6085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6086. (eval $ac_try) 2>&5
  6087. ac_status=$?
  6088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6089. (exit $ac_status); }; }; then
  6090. eval "$as_ac_var=yes"
  6091. else
  6092. echo "$as_me: failed program was:" >&5
  6093. sed 's/^/| /' conftest.$ac_ext >&5
  6094. eval "$as_ac_var=no"
  6095. fi
  6096. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6097. fi
  6098. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6099. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6100. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6101. cat >>confdefs.h <<_ACEOF
  6102. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6103. _ACEOF
  6104. fi
  6105. done
  6106. for ac_func in inet_pton
  6107. do
  6108. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6109. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6110. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6111. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6112. echo $ECHO_N "(cached) $ECHO_C" >&6
  6113. else
  6114. cat >conftest.$ac_ext <<_ACEOF
  6115. #line $LINENO "configure"
  6116. /* confdefs.h. */
  6117. _ACEOF
  6118. cat confdefs.h >>conftest.$ac_ext
  6119. cat >>conftest.$ac_ext <<_ACEOF
  6120. /* end confdefs.h. */
  6121. /* System header to define __stub macros and hopefully few prototypes,
  6122. which can conflict with char $ac_func (); below.
  6123. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6124. <limits.h> exists even on freestanding compilers. */
  6125. #ifdef __STDC__
  6126. # include <limits.h>
  6127. #else
  6128. # include <assert.h>
  6129. #endif
  6130. /* Override any gcc2 internal prototype to avoid an error. */
  6131. #ifdef __cplusplus
  6132. extern "C"
  6133. {
  6134. #endif
  6135. /* We use char because int might match the return type of a gcc2
  6136. builtin and then its argument prototype would still apply. */
  6137. char $ac_func ();
  6138. /* The GNU C library defines this for functions which it implements
  6139. to always fail with ENOSYS. Some functions are actually named
  6140. something starting with __ and the normal name is an alias. */
  6141. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6142. choke me
  6143. #else
  6144. char (*f) () = $ac_func;
  6145. #endif
  6146. #ifdef __cplusplus
  6147. }
  6148. #endif
  6149. int
  6150. main ()
  6151. {
  6152. return f != $ac_func;
  6153. ;
  6154. return 0;
  6155. }
  6156. _ACEOF
  6157. rm -f conftest.$ac_objext conftest$ac_exeext
  6158. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6159. (eval $ac_link) 2>&5
  6160. ac_status=$?
  6161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6162. (exit $ac_status); } &&
  6163. { ac_try='test -s conftest$ac_exeext'
  6164. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6165. (eval $ac_try) 2>&5
  6166. ac_status=$?
  6167. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6168. (exit $ac_status); }; }; then
  6169. eval "$as_ac_var=yes"
  6170. else
  6171. echo "$as_me: failed program was:" >&5
  6172. sed 's/^/| /' conftest.$ac_ext >&5
  6173. eval "$as_ac_var=no"
  6174. fi
  6175. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6176. fi
  6177. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6178. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6179. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6180. cat >>confdefs.h <<_ACEOF
  6181. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6182. _ACEOF
  6183. fi
  6184. done
  6185. for ac_func in inet6_rth_init
  6186. do
  6187. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6188. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6189. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6190. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6191. echo $ECHO_N "(cached) $ECHO_C" >&6
  6192. else
  6193. cat >conftest.$ac_ext <<_ACEOF
  6194. #line $LINENO "configure"
  6195. /* confdefs.h. */
  6196. _ACEOF
  6197. cat confdefs.h >>conftest.$ac_ext
  6198. cat >>conftest.$ac_ext <<_ACEOF
  6199. /* end confdefs.h. */
  6200. /* System header to define __stub macros and hopefully few prototypes,
  6201. which can conflict with char $ac_func (); below.
  6202. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6203. <limits.h> exists even on freestanding compilers. */
  6204. #ifdef __STDC__
  6205. # include <limits.h>
  6206. #else
  6207. # include <assert.h>
  6208. #endif
  6209. /* Override any gcc2 internal prototype to avoid an error. */
  6210. #ifdef __cplusplus
  6211. extern "C"
  6212. {
  6213. #endif
  6214. /* We use char because int might match the return type of a gcc2
  6215. builtin and then its argument prototype would still apply. */
  6216. char $ac_func ();
  6217. /* The GNU C library defines this for functions which it implements
  6218. to always fail with ENOSYS. Some functions are actually named
  6219. something starting with __ and the normal name is an alias. */
  6220. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6221. choke me
  6222. #else
  6223. char (*f) () = $ac_func;
  6224. #endif
  6225. #ifdef __cplusplus
  6226. }
  6227. #endif
  6228. int
  6229. main ()
  6230. {
  6231. return f != $ac_func;
  6232. ;
  6233. return 0;
  6234. }
  6235. _ACEOF
  6236. rm -f conftest.$ac_objext conftest$ac_exeext
  6237. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6238. (eval $ac_link) 2>&5
  6239. ac_status=$?
  6240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6241. (exit $ac_status); } &&
  6242. { ac_try='test -s conftest$ac_exeext'
  6243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6244. (eval $ac_try) 2>&5
  6245. ac_status=$?
  6246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6247. (exit $ac_status); }; }; then
  6248. eval "$as_ac_var=yes"
  6249. else
  6250. echo "$as_me: failed program was:" >&5
  6251. sed 's/^/| /' conftest.$ac_ext >&5
  6252. eval "$as_ac_var=no"
  6253. fi
  6254. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6255. fi
  6256. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6257. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6258. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6259. cat >>confdefs.h <<_ACEOF
  6260. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6261. _ACEOF
  6262. fi
  6263. done
  6264. for ac_func in kqueue kevent
  6265. do
  6266. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6267. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6268. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6269. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6270. echo $ECHO_N "(cached) $ECHO_C" >&6
  6271. else
  6272. cat >conftest.$ac_ext <<_ACEOF
  6273. #line $LINENO "configure"
  6274. /* confdefs.h. */
  6275. _ACEOF
  6276. cat confdefs.h >>conftest.$ac_ext
  6277. cat >>conftest.$ac_ext <<_ACEOF
  6278. /* end confdefs.h. */
  6279. /* System header to define __stub macros and hopefully few prototypes,
  6280. which can conflict with char $ac_func (); below.
  6281. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6282. <limits.h> exists even on freestanding compilers. */
  6283. #ifdef __STDC__
  6284. # include <limits.h>
  6285. #else
  6286. # include <assert.h>
  6287. #endif
  6288. /* Override any gcc2 internal prototype to avoid an error. */
  6289. #ifdef __cplusplus
  6290. extern "C"
  6291. {
  6292. #endif
  6293. /* We use char because int might match the return type of a gcc2
  6294. builtin and then its argument prototype would still apply. */
  6295. char $ac_func ();
  6296. /* The GNU C library defines this for functions which it implements
  6297. to always fail with ENOSYS. Some functions are actually named
  6298. something starting with __ and the normal name is an alias. */
  6299. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6300. choke me
  6301. #else
  6302. char (*f) () = $ac_func;
  6303. #endif
  6304. #ifdef __cplusplus
  6305. }
  6306. #endif
  6307. int
  6308. main ()
  6309. {
  6310. return f != $ac_func;
  6311. ;
  6312. return 0;
  6313. }
  6314. _ACEOF
  6315. rm -f conftest.$ac_objext conftest$ac_exeext
  6316. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6317. (eval $ac_link) 2>&5
  6318. ac_status=$?
  6319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6320. (exit $ac_status); } &&
  6321. { ac_try='test -s conftest$ac_exeext'
  6322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6323. (eval $ac_try) 2>&5
  6324. ac_status=$?
  6325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6326. (exit $ac_status); }; }; then
  6327. eval "$as_ac_var=yes"
  6328. else
  6329. echo "$as_me: failed program was:" >&5
  6330. sed 's/^/| /' conftest.$ac_ext >&5
  6331. eval "$as_ac_var=no"
  6332. fi
  6333. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6334. fi
  6335. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6336. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6337. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6338. cat >>confdefs.h <<_ACEOF
  6339. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6340. _ACEOF
  6341. fi
  6342. done
  6343. for ac_func in mkstemp
  6344. do
  6345. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6346. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6347. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6348. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6349. echo $ECHO_N "(cached) $ECHO_C" >&6
  6350. else
  6351. cat >conftest.$ac_ext <<_ACEOF
  6352. #line $LINENO "configure"
  6353. /* confdefs.h. */
  6354. _ACEOF
  6355. cat confdefs.h >>conftest.$ac_ext
  6356. cat >>conftest.$ac_ext <<_ACEOF
  6357. /* end confdefs.h. */
  6358. /* System header to define __stub macros and hopefully few prototypes,
  6359. which can conflict with char $ac_func (); below.
  6360. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6361. <limits.h> exists even on freestanding compilers. */
  6362. #ifdef __STDC__
  6363. # include <limits.h>
  6364. #else
  6365. # include <assert.h>
  6366. #endif
  6367. /* Override any gcc2 internal prototype to avoid an error. */
  6368. #ifdef __cplusplus
  6369. extern "C"
  6370. {
  6371. #endif
  6372. /* We use char because int might match the return type of a gcc2
  6373. builtin and then its argument prototype would still apply. */
  6374. char $ac_func ();
  6375. /* The GNU C library defines this for functions which it implements
  6376. to always fail with ENOSYS. Some functions are actually named
  6377. something starting with __ and the normal name is an alias. */
  6378. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6379. choke me
  6380. #else
  6381. char (*f) () = $ac_func;
  6382. #endif
  6383. #ifdef __cplusplus
  6384. }
  6385. #endif
  6386. int
  6387. main ()
  6388. {
  6389. return f != $ac_func;
  6390. ;
  6391. return 0;
  6392. }
  6393. _ACEOF
  6394. rm -f conftest.$ac_objext conftest$ac_exeext
  6395. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6396. (eval $ac_link) 2>&5
  6397. ac_status=$?
  6398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6399. (exit $ac_status); } &&
  6400. { ac_try='test -s conftest$ac_exeext'
  6401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6402. (eval $ac_try) 2>&5
  6403. ac_status=$?
  6404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6405. (exit $ac_status); }; }; then
  6406. eval "$as_ac_var=yes"
  6407. else
  6408. echo "$as_me: failed program was:" >&5
  6409. sed 's/^/| /' conftest.$ac_ext >&5
  6410. eval "$as_ac_var=no"
  6411. fi
  6412. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6413. fi
  6414. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6415. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6416. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6417. cat >>confdefs.h <<_ACEOF
  6418. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6419. _ACEOF
  6420. fi
  6421. done
  6422. for ac_func in poll
  6423. do
  6424. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6425. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6426. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6427. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6428. echo $ECHO_N "(cached) $ECHO_C" >&6
  6429. else
  6430. cat >conftest.$ac_ext <<_ACEOF
  6431. #line $LINENO "configure"
  6432. /* confdefs.h. */
  6433. _ACEOF
  6434. cat confdefs.h >>conftest.$ac_ext
  6435. cat >>conftest.$ac_ext <<_ACEOF
  6436. /* end confdefs.h. */
  6437. /* System header to define __stub macros and hopefully few prototypes,
  6438. which can conflict with char $ac_func (); below.
  6439. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6440. <limits.h> exists even on freestanding compilers. */
  6441. #ifdef __STDC__
  6442. # include <limits.h>
  6443. #else
  6444. # include <assert.h>
  6445. #endif
  6446. /* Override any gcc2 internal prototype to avoid an error. */
  6447. #ifdef __cplusplus
  6448. extern "C"
  6449. {
  6450. #endif
  6451. /* We use char because int might match the return type of a gcc2
  6452. builtin and then its argument prototype would still apply. */
  6453. char $ac_func ();
  6454. /* The GNU C library defines this for functions which it implements
  6455. to always fail with ENOSYS. Some functions are actually named
  6456. something starting with __ and the normal name is an alias. */
  6457. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6458. choke me
  6459. #else
  6460. char (*f) () = $ac_func;
  6461. #endif
  6462. #ifdef __cplusplus
  6463. }
  6464. #endif
  6465. int
  6466. main ()
  6467. {
  6468. return f != $ac_func;
  6469. ;
  6470. return 0;
  6471. }
  6472. _ACEOF
  6473. rm -f conftest.$ac_objext conftest$ac_exeext
  6474. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6475. (eval $ac_link) 2>&5
  6476. ac_status=$?
  6477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6478. (exit $ac_status); } &&
  6479. { ac_try='test -s conftest$ac_exeext'
  6480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6481. (eval $ac_try) 2>&5
  6482. ac_status=$?
  6483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6484. (exit $ac_status); }; }; then
  6485. eval "$as_ac_var=yes"
  6486. else
  6487. echo "$as_me: failed program was:" >&5
  6488. sed 's/^/| /' conftest.$ac_ext >&5
  6489. eval "$as_ac_var=no"
  6490. fi
  6491. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6492. fi
  6493. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6494. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6495. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6496. cat >>confdefs.h <<_ACEOF
  6497. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6498. _ACEOF
  6499. fi
  6500. done
  6501. for ac_func in pselect
  6502. do
  6503. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6504. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6505. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6506. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6507. echo $ECHO_N "(cached) $ECHO_C" >&6
  6508. else
  6509. cat >conftest.$ac_ext <<_ACEOF
  6510. #line $LINENO "configure"
  6511. /* confdefs.h. */
  6512. _ACEOF
  6513. cat confdefs.h >>conftest.$ac_ext
  6514. cat >>conftest.$ac_ext <<_ACEOF
  6515. /* end confdefs.h. */
  6516. /* System header to define __stub macros and hopefully few prototypes,
  6517. which can conflict with char $ac_func (); below.
  6518. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6519. <limits.h> exists even on freestanding compilers. */
  6520. #ifdef __STDC__
  6521. # include <limits.h>
  6522. #else
  6523. # include <assert.h>
  6524. #endif
  6525. /* Override any gcc2 internal prototype to avoid an error. */
  6526. #ifdef __cplusplus
  6527. extern "C"
  6528. {
  6529. #endif
  6530. /* We use char because int might match the return type of a gcc2
  6531. builtin and then its argument prototype would still apply. */
  6532. char $ac_func ();
  6533. /* The GNU C library defines this for functions which it implements
  6534. to always fail with ENOSYS. Some functions are actually named
  6535. something starting with __ and the normal name is an alias. */
  6536. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6537. choke me
  6538. #else
  6539. char (*f) () = $ac_func;
  6540. #endif
  6541. #ifdef __cplusplus
  6542. }
  6543. #endif
  6544. int
  6545. main ()
  6546. {
  6547. return f != $ac_func;
  6548. ;
  6549. return 0;
  6550. }
  6551. _ACEOF
  6552. rm -f conftest.$ac_objext conftest$ac_exeext
  6553. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6554. (eval $ac_link) 2>&5
  6555. ac_status=$?
  6556. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6557. (exit $ac_status); } &&
  6558. { ac_try='test -s conftest$ac_exeext'
  6559. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6560. (eval $ac_try) 2>&5
  6561. ac_status=$?
  6562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6563. (exit $ac_status); }; }; then
  6564. eval "$as_ac_var=yes"
  6565. else
  6566. echo "$as_me: failed program was:" >&5
  6567. sed 's/^/| /' conftest.$ac_ext >&5
  6568. eval "$as_ac_var=no"
  6569. fi
  6570. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6571. fi
  6572. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6573. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6574. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6575. cat >>confdefs.h <<_ACEOF
  6576. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6577. _ACEOF
  6578. fi
  6579. done
  6580. for ac_func in snprintf
  6581. do
  6582. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6583. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6584. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6585. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6586. echo $ECHO_N "(cached) $ECHO_C" >&6
  6587. else
  6588. cat >conftest.$ac_ext <<_ACEOF
  6589. #line $LINENO "configure"
  6590. /* confdefs.h. */
  6591. _ACEOF
  6592. cat confdefs.h >>conftest.$ac_ext
  6593. cat >>conftest.$ac_ext <<_ACEOF
  6594. /* end confdefs.h. */
  6595. /* System header to define __stub macros and hopefully few prototypes,
  6596. which can conflict with char $ac_func (); below.
  6597. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6598. <limits.h> exists even on freestanding compilers. */
  6599. #ifdef __STDC__
  6600. # include <limits.h>
  6601. #else
  6602. # include <assert.h>
  6603. #endif
  6604. /* Override any gcc2 internal prototype to avoid an error. */
  6605. #ifdef __cplusplus
  6606. extern "C"
  6607. {
  6608. #endif
  6609. /* We use char because int might match the return type of a gcc2
  6610. builtin and then its argument prototype would still apply. */
  6611. char $ac_func ();
  6612. /* The GNU C library defines this for functions which it implements
  6613. to always fail with ENOSYS. Some functions are actually named
  6614. something starting with __ and the normal name is an alias. */
  6615. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6616. choke me
  6617. #else
  6618. char (*f) () = $ac_func;
  6619. #endif
  6620. #ifdef __cplusplus
  6621. }
  6622. #endif
  6623. int
  6624. main ()
  6625. {
  6626. return f != $ac_func;
  6627. ;
  6628. return 0;
  6629. }
  6630. _ACEOF
  6631. rm -f conftest.$ac_objext conftest$ac_exeext
  6632. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6633. (eval $ac_link) 2>&5
  6634. ac_status=$?
  6635. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6636. (exit $ac_status); } &&
  6637. { ac_try='test -s conftest$ac_exeext'
  6638. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6639. (eval $ac_try) 2>&5
  6640. ac_status=$?
  6641. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6642. (exit $ac_status); }; }; then
  6643. eval "$as_ac_var=yes"
  6644. else
  6645. echo "$as_me: failed program was:" >&5
  6646. sed 's/^/| /' conftest.$ac_ext >&5
  6647. eval "$as_ac_var=no"
  6648. fi
  6649. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6650. fi
  6651. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6652. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6653. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6654. cat >>confdefs.h <<_ACEOF
  6655. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6656. _ACEOF
  6657. fi
  6658. done
  6659. for ac_func in sockatmark
  6660. do
  6661. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6662. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6663. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6664. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6665. echo $ECHO_N "(cached) $ECHO_C" >&6
  6666. else
  6667. cat >conftest.$ac_ext <<_ACEOF
  6668. #line $LINENO "configure"
  6669. /* confdefs.h. */
  6670. _ACEOF
  6671. cat confdefs.h >>conftest.$ac_ext
  6672. cat >>conftest.$ac_ext <<_ACEOF
  6673. /* end confdefs.h. */
  6674. /* System header to define __stub macros and hopefully few prototypes,
  6675. which can conflict with char $ac_func (); below.
  6676. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6677. <limits.h> exists even on freestanding compilers. */
  6678. #ifdef __STDC__
  6679. # include <limits.h>
  6680. #else
  6681. # include <assert.h>
  6682. #endif
  6683. /* Override any gcc2 internal prototype to avoid an error. */
  6684. #ifdef __cplusplus
  6685. extern "C"
  6686. {
  6687. #endif
  6688. /* We use char because int might match the return type of a gcc2
  6689. builtin and then its argument prototype would still apply. */
  6690. char $ac_func ();
  6691. /* The GNU C library defines this for functions which it implements
  6692. to always fail with ENOSYS. Some functions are actually named
  6693. something starting with __ and the normal name is an alias. */
  6694. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6695. choke me
  6696. #else
  6697. char (*f) () = $ac_func;
  6698. #endif
  6699. #ifdef __cplusplus
  6700. }
  6701. #endif
  6702. int
  6703. main ()
  6704. {
  6705. return f != $ac_func;
  6706. ;
  6707. return 0;
  6708. }
  6709. _ACEOF
  6710. rm -f conftest.$ac_objext conftest$ac_exeext
  6711. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6712. (eval $ac_link) 2>&5
  6713. ac_status=$?
  6714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6715. (exit $ac_status); } &&
  6716. { ac_try='test -s conftest$ac_exeext'
  6717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6718. (eval $ac_try) 2>&5
  6719. ac_status=$?
  6720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6721. (exit $ac_status); }; }; then
  6722. eval "$as_ac_var=yes"
  6723. else
  6724. echo "$as_me: failed program was:" >&5
  6725. sed 's/^/| /' conftest.$ac_ext >&5
  6726. eval "$as_ac_var=no"
  6727. fi
  6728. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6729. fi
  6730. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6731. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6732. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6733. cat >>confdefs.h <<_ACEOF
  6734. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6735. _ACEOF
  6736. fi
  6737. done
  6738. for ac_func in vsnprintf
  6739. do
  6740. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  6741. echo "$as_me:$LINENO: checking for $ac_func" >&5
  6742. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  6743. if eval "test \"\${$as_ac_var+set}\" = set"; then
  6744. echo $ECHO_N "(cached) $ECHO_C" >&6
  6745. else
  6746. cat >conftest.$ac_ext <<_ACEOF
  6747. #line $LINENO "configure"
  6748. /* confdefs.h. */
  6749. _ACEOF
  6750. cat confdefs.h >>conftest.$ac_ext
  6751. cat >>conftest.$ac_ext <<_ACEOF
  6752. /* end confdefs.h. */
  6753. /* System header to define __stub macros and hopefully few prototypes,
  6754. which can conflict with char $ac_func (); below.
  6755. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6756. <limits.h> exists even on freestanding compilers. */
  6757. #ifdef __STDC__
  6758. # include <limits.h>
  6759. #else
  6760. # include <assert.h>
  6761. #endif
  6762. /* Override any gcc2 internal prototype to avoid an error. */
  6763. #ifdef __cplusplus
  6764. extern "C"
  6765. {
  6766. #endif
  6767. /* We use char because int might match the return type of a gcc2
  6768. builtin and then its argument prototype would still apply. */
  6769. char $ac_func ();
  6770. /* The GNU C library defines this for functions which it implements
  6771. to always fail with ENOSYS. Some functions are actually named
  6772. something starting with __ and the normal name is an alias. */
  6773. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  6774. choke me
  6775. #else
  6776. char (*f) () = $ac_func;
  6777. #endif
  6778. #ifdef __cplusplus
  6779. }
  6780. #endif
  6781. int
  6782. main ()
  6783. {
  6784. return f != $ac_func;
  6785. ;
  6786. return 0;
  6787. }
  6788. _ACEOF
  6789. rm -f conftest.$ac_objext conftest$ac_exeext
  6790. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6791. (eval $ac_link) 2>&5
  6792. ac_status=$?
  6793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6794. (exit $ac_status); } &&
  6795. { ac_try='test -s conftest$ac_exeext'
  6796. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6797. (eval $ac_try) 2>&5
  6798. ac_status=$?
  6799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6800. (exit $ac_status); }; }; then
  6801. eval "$as_ac_var=yes"
  6802. else
  6803. echo "$as_me: failed program was:" >&5
  6804. sed 's/^/| /' conftest.$ac_ext >&5
  6805. eval "$as_ac_var=no"
  6806. fi
  6807. rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  6808. fi
  6809. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  6810. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  6811. if test `eval echo '${'$as_ac_var'}'` = yes; then
  6812. cat >>confdefs.h <<_ACEOF
  6813. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  6814. _ACEOF
  6815. fi
  6816. done
  6817. echo "$as_me:$LINENO: checking for IPv4 support" >&5
  6818. echo $ECHO_N "checking for IPv4 support... $ECHO_C" >&6
  6819. if test "${ac_cv_ipv4+set}" = set; then
  6820. echo $ECHO_N "(cached) $ECHO_C" >&6
  6821. else
  6822. if test "$cross_compiling" = yes; then
  6823. ac_cv_ipv4=no
  6824. else
  6825. cat >conftest.$ac_ext <<_ACEOF
  6826. #line $LINENO "configure"
  6827. /* confdefs.h. */
  6828. _ACEOF
  6829. cat confdefs.h >>conftest.$ac_ext
  6830. cat >>conftest.$ac_ext <<_ACEOF
  6831. /* end confdefs.h. */
  6832. # include <sys/types.h>
  6833. # include <sys/socket.h>
  6834. # include <netinet/in.h>
  6835. /* Make sure the definitions for AF_INET and struct sockaddr_in
  6836. * are defined, and that we can actually create an IPv4 TCP socket.
  6837. */
  6838. main()
  6839. {
  6840. int fd;
  6841. struct sockaddr_in foo;
  6842. fd = socket(AF_INET, SOCK_STREAM, 0);
  6843. exit(fd >= 0 ? 0 : 1);
  6844. }
  6845. _ACEOF
  6846. rm -f conftest$ac_exeext
  6847. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6848. (eval $ac_link) 2>&5
  6849. ac_status=$?
  6850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6851. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6852. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6853. (eval $ac_try) 2>&5
  6854. ac_status=$?
  6855. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6856. (exit $ac_status); }; }; then
  6857. ac_cv_ipv4=yes
  6858. else
  6859. echo "$as_me: program exited with status $ac_status" >&5
  6860. echo "$as_me: failed program was:" >&5
  6861. sed 's/^/| /' conftest.$ac_ext >&5
  6862. (exit $ac_status )
  6863. ac_cv_ipv4=no
  6864. fi
  6865. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6866. fi
  6867. fi
  6868. echo "$as_me:$LINENO: result: $ac_cv_ipv4" >&5
  6869. echo "${ECHO_T}$ac_cv_ipv4" >&6
  6870. if test $ac_cv_ipv4 = yes ; then
  6871. cat >>confdefs.h <<\_ACEOF
  6872. #define IPV4 1
  6873. _ACEOF
  6874. cat >>confdefs.h <<\_ACEOF
  6875. #define IPv4 1
  6876. _ACEOF
  6877. fi
  6878. echo "$as_me:$LINENO: checking for IPv6 support" >&5
  6879. echo $ECHO_N "checking for IPv6 support... $ECHO_C" >&6
  6880. if test "${ac_cv_ipv6+set}" = set; then
  6881. echo $ECHO_N "(cached) $ECHO_C" >&6
  6882. else
  6883. if test "$cross_compiling" = yes; then
  6884. ac_cv_ipv6=no
  6885. else
  6886. cat >conftest.$ac_ext <<_ACEOF
  6887. #line $LINENO "configure"
  6888. /* confdefs.h. */
  6889. _ACEOF
  6890. cat confdefs.h >>conftest.$ac_ext
  6891. cat >>conftest.$ac_ext <<_ACEOF
  6892. /* end confdefs.h. */
  6893. # include <sys/types.h>
  6894. # include <sys/socket.h>
  6895. # include <netinet/in.h>
  6896. /* Make sure the definitions for AF_INET6 and struct sockaddr_in6
  6897. * are defined, and that we can actually create an IPv6 TCP socket.
  6898. */
  6899. main()
  6900. {
  6901. int fd;
  6902. struct sockaddr_in6 foo;
  6903. fd = socket(AF_INET6, SOCK_STREAM, 0);
  6904. exit(fd >= 0 ? 0 : 1);
  6905. }
  6906. _ACEOF
  6907. rm -f conftest$ac_exeext
  6908. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6909. (eval $ac_link) 2>&5
  6910. ac_status=$?
  6911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6912. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6914. (eval $ac_try) 2>&5
  6915. ac_status=$?
  6916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6917. (exit $ac_status); }; }; then
  6918. ac_cv_ipv6=yes
  6919. else
  6920. echo "$as_me: program exited with status $ac_status" >&5
  6921. echo "$as_me: failed program was:" >&5
  6922. sed 's/^/| /' conftest.$ac_ext >&5
  6923. (exit $ac_status )
  6924. ac_cv_ipv6=no
  6925. fi
  6926. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6927. fi
  6928. fi
  6929. echo "$as_me:$LINENO: result: $ac_cv_ipv6" >&5
  6930. echo "${ECHO_T}$ac_cv_ipv6" >&6
  6931. if test $ac_cv_ipv6 = yes ; then
  6932. cat >>confdefs.h <<\_ACEOF
  6933. #define IPV6 1
  6934. _ACEOF
  6935. cat >>confdefs.h <<\_ACEOF
  6936. #define IPv6 1
  6937. _ACEOF
  6938. fi
  6939. echo "$as_me:$LINENO: checking for Unix domain sockets" >&5
  6940. echo $ECHO_N "checking for Unix domain sockets... $ECHO_C" >&6
  6941. if test "${ac_cv_unixdomain+set}" = set; then
  6942. echo $ECHO_N "(cached) $ECHO_C" >&6
  6943. else
  6944. if test "$cross_compiling" = yes; then
  6945. ac_cv_unixdomain=no
  6946. else
  6947. cat >conftest.$ac_ext <<_ACEOF
  6948. #line $LINENO "configure"
  6949. /* confdefs.h. */
  6950. _ACEOF
  6951. cat confdefs.h >>conftest.$ac_ext
  6952. cat >>conftest.$ac_ext <<_ACEOF
  6953. /* end confdefs.h. */
  6954. # include <sys/types.h>
  6955. # include <sys/socket.h>
  6956. # include <sys/un.h>
  6957. /* Make sure the definitions for AF_UNIX and struct sockaddr_un
  6958. * are defined, and that we can actually create an IPv4 TCP socket.
  6959. */
  6960. main()
  6961. {
  6962. int fd;
  6963. struct sockaddr_un foo;
  6964. fd = socket(AF_UNIX, SOCK_STREAM, 0);
  6965. exit(fd >= 0 ? 0 : 1);
  6966. }
  6967. _ACEOF
  6968. rm -f conftest$ac_exeext
  6969. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6970. (eval $ac_link) 2>&5
  6971. ac_status=$?
  6972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6973. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6975. (eval $ac_try) 2>&5
  6976. ac_status=$?
  6977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6978. (exit $ac_status); }; }; then
  6979. ac_cv_unixdomain=yes
  6980. else
  6981. echo "$as_me: program exited with status $ac_status" >&5
  6982. echo "$as_me: failed program was:" >&5
  6983. sed 's/^/| /' conftest.$ac_ext >&5
  6984. (exit $ac_status )
  6985. ac_cv_unixdomain=no
  6986. fi
  6987. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6988. fi
  6989. fi
  6990. echo "$as_me:$LINENO: result: $ac_cv_unixdomain" >&5
  6991. echo "${ECHO_T}$ac_cv_unixdomain" >&6
  6992. if test $ac_cv_unixdomain = yes ; then
  6993. cat >>confdefs.h <<\_ACEOF
  6994. #define UNIXDOMAIN 1
  6995. _ACEOF
  6996. cat >>confdefs.h <<\_ACEOF
  6997. #define UNIXdomain 1
  6998. _ACEOF
  6999. fi
  7000. echo "$as_me:$LINENO: checking for multicast support" >&5
  7001. echo $ECHO_N "checking for multicast support... $ECHO_C" >&6
  7002. if test "${ac_cv_multicast+set}" = set; then
  7003. echo $ECHO_N "(cached) $ECHO_C" >&6
  7004. else
  7005. if test "$cross_compiling" = yes; then
  7006. ac_cv_multicast=no
  7007. else
  7008. cat >conftest.$ac_ext <<_ACEOF
  7009. #line $LINENO "configure"
  7010. /* confdefs.h. */
  7011. _ACEOF
  7012. cat confdefs.h >>conftest.$ac_ext
  7013. cat >>conftest.$ac_ext <<_ACEOF
  7014. /* end confdefs.h. */
  7015. # include <sys/types.h>
  7016. # include <sys/socket.h>
  7017. # include <netinet/in.h>
  7018. main()
  7019. {
  7020. int fd;
  7021. unsigned char flag = 1;
  7022. struct sockaddr_in foo;
  7023. struct ip_mreq mreq;
  7024. fd = socket(AF_INET, SOCK_DGRAM, 0);
  7025. if (fd < 0) exit(1);
  7026. if (setsockopt(fd, IPPROTO_IP, IP_MULTICAST_LOOP,
  7027. (void*)&flag, sizeof(flag)) < 0)
  7028. exit(1);
  7029. exit(0);
  7030. }
  7031. _ACEOF
  7032. rm -f conftest$ac_exeext
  7033. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7034. (eval $ac_link) 2>&5
  7035. ac_status=$?
  7036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7037. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7038. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7039. (eval $ac_try) 2>&5
  7040. ac_status=$?
  7041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7042. (exit $ac_status); }; }; then
  7043. ac_cv_multicast=yes
  7044. else
  7045. echo "$as_me: program exited with status $ac_status" >&5
  7046. echo "$as_me: failed program was:" >&5
  7047. sed 's/^/| /' conftest.$ac_ext >&5
  7048. (exit $ac_status )
  7049. ac_cv_multicast=no
  7050. fi
  7051. rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7052. fi
  7053. fi
  7054. echo "$as_me:$LINENO: result: $ac_cv_multicast" >&5
  7055. echo "${ECHO_T}$ac_cv_multicast" >&6
  7056. if test $ac_cv_multicast = yes ; then
  7057. cat >>confdefs.h <<\_ACEOF
  7058. #define MCAST 1
  7059. _ACEOF
  7060. fi
  7061. LIB_OBJS=
  7062. LIB_OBJS="$LIB_OBJS connect_nonb.o"
  7063. LIB_OBJS="$LIB_OBJS connect_timeo.o"
  7064. LIB_OBJS="$LIB_OBJS daemon_inetd.o"
  7065. LIB_OBJS="$LIB_OBJS daemon_init.o"
  7066. LIB_OBJS="$LIB_OBJS dg_cli.o"
  7067. LIB_OBJS="$LIB_OBJS dg_echo.o"
  7068. LIB_OBJS="$LIB_OBJS error.o"
  7069. LIB_OBJS="$LIB_OBJS get_ifi_info.o"
  7070. LIB_OBJS="$LIB_OBJS gf_time.o"
  7071. LIB_OBJS="$LIB_OBJS host_serv.o"
  7072. if test "$ac_cv_func_hstrerror" = no ; then
  7073. LIBFREE_OBJS="$LIBFREE_OBJS hstrerror.o"
  7074. fi
  7075. if test "$ac_cv_func_if_nametoindex" = no ; then
  7076. LIB_OBJS="$LIB_OBJS if_nametoindex.o if_indextoname.o if_nameindex.o"
  7077. fi
  7078. if test "$ac_cv_multicast" = yes ; then
  7079. LIB_OBJS="$LIB_OBJS family_to_level.o"
  7080. LIB_OBJS="$LIB_OBJS mcast_leave.o mcast_join.o"
  7081. LIB_OBJS="$LIB_OBJS mcast_get_if.o mcast_get_loop.o mcast_get_ttl.o"
  7082. LIB_OBJS="$LIB_OBJS mcast_set_if.o mcast_set_loop.o mcast_set_ttl.o"
  7083. fi
  7084. LIB_OBJS="$LIB_OBJS my_addrs.o"
  7085. if test "$ac_cv_func_pselect" = no ; then
  7086. LIB_OBJS="$LIB_OBJS pselect.o"
  7087. fi
  7088. LIB_OBJS="$LIB_OBJS read_fd.o"
  7089. LIB_OBJS="$LIB_OBJS readline.o"
  7090. LIB_OBJS="$LIB_OBJS readn.o"
  7091. LIB_OBJS="$LIB_OBJS readable_timeo.o"
  7092. LIB_OBJS="$LIB_OBJS rtt.o"
  7093. LIB_OBJS="$LIB_OBJS signal.o"
  7094. LIB_OBJS="$LIB_OBJS signal_intr.o"
  7095. if test "$ac_cv_func_snprintf" = no ; then
  7096. LIB_OBJS="$LIB_OBJS snprintf.o"
  7097. fi
  7098. if test "$ac_cv_func_sockatmark" = no ; then
  7099. LIB_OBJS="$LIB_OBJS sockatmark.o"
  7100. fi
  7101. LIB_OBJS="$LIB_OBJS sock_bind_wild.o"
  7102. LIB_OBJS="$LIB_OBJS sock_cmp_addr.o"
  7103. LIB_OBJS="$LIB_OBJS sock_cmp_port.o"
  7104. LIB_OBJS="$LIB_OBJS sock_ntop.o"
  7105. LIB_OBJS="$LIB_OBJS sock_ntop_host.o"
  7106. LIB_OBJS="$LIB_OBJS sock_get_port.o"
  7107. LIB_OBJS="$LIB_OBJS sock_set_addr.o"
  7108. LIB_OBJS="$LIB_OBJS sock_set_port.o"
  7109. LIB_OBJS="$LIB_OBJS sock_set_wild.o"
  7110. LIB_OBJS="$LIB_OBJS sockfd_to_family.o"
  7111. LIB_OBJS="$LIB_OBJS str_cli.o"
  7112. LIB_OBJS="$LIB_OBJS str_echo.o"
  7113. LIB_OBJS="$LIB_OBJS tcp_connect.o"
  7114. LIB_OBJS="$LIB_OBJS tcp_listen.o"
  7115. LIB_OBJS="$LIB_OBJS tv_sub.o"
  7116. LIB_OBJS="$LIB_OBJS udp_client.o"
  7117. LIB_OBJS="$LIB_OBJS udp_connect.o"
  7118. LIB_OBJS="$LIB_OBJS udp_server.o"
  7119. LIB_OBJS="$LIB_OBJS wraplib.o"
  7120. LIB_OBJS="$LIB_OBJS wrapsock.o"
  7121. LIB_OBJS="$LIB_OBJS wrapstdio.o"
  7122. if test "$ac_cv_header_pthread_h" = yes ; then
  7123. LIB_OBJS="$LIB_OBJS wrappthread.o"
  7124. fi
  7125. LIB_OBJS="$LIB_OBJS wrapunix.o"
  7126. LIB_OBJS="$LIB_OBJS write_fd.o"
  7127. LIB_OBJS="$LIB_OBJS writen.o"
  7128. LIB_OBJS="$LIB_OBJS writable_timeo.o"
  7129. LIBFREE_OBJS=
  7130. LIBFREE_OBJS="$LIBFREE_OBJS in_cksum.o"
  7131. if test "$ac_cv_func_inet_aton" = no ; then
  7132. LIBFREE_OBJS="$LIBFREE_OBJS inet_aton.o"
  7133. fi
  7134. # LIBFREE_OBJS="$LIBFREE_OBJS inet_ntop.o inet_pton.o"
  7135. LIBFREE_OBJS="$LIBFREE_OBJS inet_pton.o"
  7136. if test "$ac_cv_func_getaddrinfo" = no ; then
  7137. LIBGAI_OBJS="getaddrinfo.o getnameinfo.o freeaddrinfo.o gai_strerror.o"
  7138. LIBGAI_OBJS="$LIBGAI_OBJS ga_aistruct.o ga_clone.o ga_echeck.o ga_nsearch.o"
  7139. LIBGAI_OBJS="$LIBGAI_OBJS ga_port.o ga_serv.o ga_unix.o gn_ipv46.o"
  7140. else
  7141. LIBGAI_OBJS=""
  7142. fi
  7143. LIBROUTE_OBJS="get_rtaddrs.o"
  7144. LIBROUTE_OBJS="$LIBROUTE_OBJS if_indextoname.o if_nameindex.o if_nametoindex.o"
  7145. LIBROUTE_OBJS="$LIBROUTE_OBJS net_rt_iflist.o net_rt_dump.o"
  7146. LIBROUTE_OBJS="$LIBROUTE_OBJS sock_masktop.o"
  7147. LIBXTI_OBJS=
  7148. if test "$ac_cv_header_netdir_h" = yes ; then
  7149. LIBXTI_OBJS="$LIBXTI_OBJS tcp_connect.o"
  7150. LIBXTI_OBJS="$LIBXTI_OBJS tcp_listen.o"
  7151. LIBXTI_OBJS="$LIBXTI_OBJS udp_server.o"
  7152. LIBXTI_OBJS="$LIBXTI_OBJS udp_client.o"
  7153. fi
  7154. LIBXTI_OBJS="$LIBXTI_OBJS wrapxti.o"
  7155. LIBXTI_OBJS="$LIBXTI_OBJS xti_accept.o"
  7156. LIBXTI_OBJS="$LIBXTI_OBJS xti_flags_str.o"
  7157. LIBXTI_OBJS="$LIBXTI_OBJS xti_getopt.o"
  7158. LIBXTI_OBJS="$LIBXTI_OBJS xti_ntop.o"
  7159. LIBXTI_OBJS="$LIBXTI_OBJS xti_ntop_host.o"
  7160. LIBXTI_OBJS="$LIBXTI_OBJS xti_rdwr.o"
  7161. LIBXTI_OBJS="$LIBXTI_OBJS xti_setopt.o"
  7162. LIBXTI_OBJS="$LIBXTI_OBJS xti_str_opts.o"
  7163. LIBXTI_OBJS="$LIBXTI_OBJS xti_tlook_str.o"
  7164. LIBS_XTI=`echo $LIBS | sed 's/-lsocket//'`
  7165. LIBS=`echo $LIBS | sed 's/-lxti//'`
  7166. echo "$as_me:$LINENO: checking for -I$HOME/doc/unp2ev1/src/include" >&5
  7167. echo $ECHO_N "checking for -I$HOME/doc/unp2ev1/src/include... $ECHO_C" >&6
  7168. if test -d $HOME/doc/unp2ev1/src/include ; then
  7169. CFLAGS="$CFLAGS -I$HOME/doc/unp2ev1/src/include"
  7170. echo "$as_me:$LINENO: result: yes" >&5
  7171. echo "${ECHO_T}yes" >&6
  7172. else
  7173. echo "$as_me:$LINENO: result: no" >&5
  7174. echo "${ECHO_T}no" >&6
  7175. fi
  7176. if test "$ac_cv_c_compiler_gnu" = yes; then
  7177. CFLAGS="$CFLAGS -Wall"
  7178. fi
  7179. case "$host_os" in
  7180. *aix*) CFLAGS="$CFLAGS -D_ALL_SOURCE" ;;
  7181. *osf*) CFLAGS="$CFLAGS -D_SOCKADDR_LEN" ;;
  7182. *solaris*) if test "$ac_cv_c_compiler_gnu" = yes; then
  7183. CFLAGS="$CFLAGS -D__EXTENSIONS__"
  7184. else
  7185. CFLAGS="$CFLAGS -D__STDC__"
  7186. fi ;;
  7187. esac
  7188. ac_config_files="$ac_config_files Makefile Make.defines"
  7189. cat >confcache <<\_ACEOF
  7190. # This file is a shell script that caches the results of configure
  7191. # tests run on this system so they can be shared between configure
  7192. # scripts and configure runs, see configure's option --config-cache.
  7193. # It is not useful on other systems. If it contains results you don't
  7194. # want to keep, you may remove or edit it.
  7195. #
  7196. # config.status only pays attention to the cache file if you give it
  7197. # the --recheck option to rerun configure.
  7198. #
  7199. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7200. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7201. # following values.
  7202. _ACEOF
  7203. # The following way of writing the cache mishandles newlines in values,
  7204. # but we know of no workaround that is simple, portable, and efficient.
  7205. # So, don't put newlines in cache variables' values.
  7206. # Ultrix sh set writes to stderr and can't be redirected directly,
  7207. # and sets the high bit in the cache file unless we assign to the vars.
  7208. {
  7209. (set) 2>&1 |
  7210. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7211. *ac_space=\ *)
  7212. # `set' does not quote correctly, so add quotes (double-quote
  7213. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7214. sed -n \
  7215. "s/'/'\\\\''/g;
  7216. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7217. ;;
  7218. *)
  7219. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7220. sed -n \
  7221. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7222. ;;
  7223. esac;
  7224. } |
  7225. sed '
  7226. t clear
  7227. : clear
  7228. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7229. t end
  7230. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7231. : end' >>confcache
  7232. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7233. if test -w $cache_file; then
  7234. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  7235. cat confcache >$cache_file
  7236. else
  7237. echo "not updating unwritable cache $cache_file"
  7238. fi
  7239. fi
  7240. rm -f confcache
  7241. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  7242. # Let make expand exec_prefix.
  7243. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  7244. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  7245. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  7246. # trailing colons and then remove the whole line if VPATH becomes empty
  7247. # (actually we leave an empty line to preserve line numbers).
  7248. if test "x$srcdir" = x.; then
  7249. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  7250. s/:*\$(srcdir):*/:/;
  7251. s/:*\${srcdir}:*/:/;
  7252. s/:*@srcdir@:*/:/;
  7253. s/^\([^=]*=[ ]*\):*/\1/;
  7254. s/:*$//;
  7255. s/^[^=]*=[ ]*$//;
  7256. }'
  7257. fi
  7258. DEFS=-DHAVE_CONFIG_H
  7259. ac_libobjs=
  7260. ac_ltlibobjs=
  7261. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  7262. # 1. Remove the extension, and $U if already installed.
  7263. ac_i=`echo "$ac_i" |
  7264. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  7265. # 2. Add them.
  7266. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  7267. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  7268. done
  7269. LIBOBJS=$ac_libobjs
  7270. LTLIBOBJS=$ac_ltlibobjs
  7271. : ${CONFIG_STATUS=./config.status}
  7272. ac_clean_files_save=$ac_clean_files
  7273. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  7274. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  7275. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  7276. cat >$CONFIG_STATUS <<_ACEOF
  7277. #! $SHELL
  7278. # Generated by $as_me.
  7279. # Run this file to recreate the current configuration.
  7280. # Compiler output produced by configure, useful for debugging
  7281. # configure, is in config.log if it exists.
  7282. debug=false
  7283. ac_cs_recheck=false
  7284. ac_cs_silent=false
  7285. SHELL=\${CONFIG_SHELL-$SHELL}
  7286. _ACEOF
  7287. cat >>$CONFIG_STATUS <<\_ACEOF
  7288. ## --------------------- ##
  7289. ## M4sh Initialization. ##
  7290. ## --------------------- ##
  7291. # Be Bourne compatible
  7292. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  7293. emulate sh
  7294. NULLCMD=:
  7295. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  7296. # is contrary to our usage. Disable this feature.
  7297. alias -g '${1+"$@"}'='"$@"'
  7298. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  7299. set -o posix
  7300. fi
  7301. # Support unset when possible.
  7302. if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  7303. as_unset=unset
  7304. else
  7305. as_unset=false
  7306. fi
  7307. # Work around bugs in pre-3.0 UWIN ksh.
  7308. $as_unset ENV MAIL MAILPATH
  7309. PS1='$ '
  7310. PS2='> '
  7311. PS4='+ '
  7312. # NLS nuisances.
  7313. for as_var in \
  7314. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  7315. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  7316. LC_TELEPHONE LC_TIME
  7317. do
  7318. if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  7319. eval $as_var=C; export $as_var
  7320. else
  7321. $as_unset $as_var
  7322. fi
  7323. done
  7324. # Required to use basename.
  7325. if expr a : '\(a\)' >/dev/null 2>&1; then
  7326. as_expr=expr
  7327. else
  7328. as_expr=false
  7329. fi
  7330. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  7331. as_basename=basename
  7332. else
  7333. as_basename=false
  7334. fi
  7335. # Name of the executable.
  7336. as_me=`$as_basename "$0" ||
  7337. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  7338. X"$0" : 'X\(//\)$' \| \
  7339. X"$0" : 'X\(/\)$' \| \
  7340. . : '\(.\)' 2>/dev/null ||
  7341. echo X/"$0" |
  7342. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  7343. /^X\/\(\/\/\)$/{ s//\1/; q; }
  7344. /^X\/\(\/\).*/{ s//\1/; q; }
  7345. s/.*/./; q'`
  7346. # PATH needs CR, and LINENO needs CR and PATH.
  7347. # Avoid depending upon Character Ranges.
  7348. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  7349. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  7350. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  7351. as_cr_digits='0123456789'
  7352. as_cr_alnum=$as_cr_Letters$as_cr_digits
  7353. # The user is always right.
  7354. if test "${PATH_SEPARATOR+set}" != set; then
  7355. echo "#! /bin/sh" >conf$$.sh
  7356. echo "exit 0" >>conf$$.sh
  7357. chmod +x conf$$.sh
  7358. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  7359. PATH_SEPARATOR=';'
  7360. else
  7361. PATH_SEPARATOR=:
  7362. fi
  7363. rm -f conf$$.sh
  7364. fi
  7365. as_lineno_1=$LINENO
  7366. as_lineno_2=$LINENO
  7367. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  7368. test "x$as_lineno_1" != "x$as_lineno_2" &&
  7369. test "x$as_lineno_3" = "x$as_lineno_2" || {
  7370. # Find who we are. Look in the path if we contain no path at all
  7371. # relative or not.
  7372. case $0 in
  7373. *[\\/]* ) as_myself=$0 ;;
  7374. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7375. for as_dir in $PATH
  7376. do
  7377. IFS=$as_save_IFS
  7378. test -z "$as_dir" && as_dir=.
  7379. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  7380. done
  7381. ;;
  7382. esac
  7383. # We did not find ourselves, most probably we were run as `sh COMMAND'
  7384. # in which case we are not to be found in the path.
  7385. if test "x$as_myself" = x; then
  7386. as_myself=$0
  7387. fi
  7388. if test ! -f "$as_myself"; then
  7389. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  7390. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  7391. { (exit 1); exit 1; }; }
  7392. fi
  7393. case $CONFIG_SHELL in
  7394. '')
  7395. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7396. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  7397. do
  7398. IFS=$as_save_IFS
  7399. test -z "$as_dir" && as_dir=.
  7400. for as_base in sh bash ksh sh5; do
  7401. case $as_dir in
  7402. /*)
  7403. if ("$as_dir/$as_base" -c '
  7404. as_lineno_1=$LINENO
  7405. as_lineno_2=$LINENO
  7406. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  7407. test "x$as_lineno_1" != "x$as_lineno_2" &&
  7408. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  7409. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  7410. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  7411. CONFIG_SHELL=$as_dir/$as_base
  7412. export CONFIG_SHELL
  7413. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  7414. fi;;
  7415. esac
  7416. done
  7417. done
  7418. ;;
  7419. esac
  7420. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  7421. # uniformly replaced by the line number. The first 'sed' inserts a
  7422. # line-number line before each line; the second 'sed' does the real
  7423. # work. The second script uses 'N' to pair each line-number line
  7424. # with the numbered line, and appends trailing '-' during
  7425. # substitution so that $LINENO is not a special case at line end.
  7426. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  7427. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  7428. sed '=' <$as_myself |
  7429. sed '
  7430. N
  7431. s,$,-,
  7432. : loop
  7433. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  7434. t loop
  7435. s,-$,,
  7436. s,^['$as_cr_digits']*\n,,
  7437. ' >$as_me.lineno &&
  7438. chmod +x $as_me.lineno ||
  7439. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  7440. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  7441. { (exit 1); exit 1; }; }
  7442. # Don't try to exec as it changes $[0], causing all sort of problems
  7443. # (the dirname of $[0] is not the place where we might find the
  7444. # original and so on. Autoconf is especially sensible to this).
  7445. . ./$as_me.lineno
  7446. # Exit status is that of the last command.
  7447. exit
  7448. }
  7449. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  7450. *c*,-n*) ECHO_N= ECHO_C='
  7451. ' ECHO_T=' ' ;;
  7452. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  7453. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  7454. esac
  7455. if expr a : '\(a\)' >/dev/null 2>&1; then
  7456. as_expr=expr
  7457. else
  7458. as_expr=false
  7459. fi
  7460. rm -f conf$$ conf$$.exe conf$$.file
  7461. echo >conf$$.file
  7462. if ln -s conf$$.file conf$$ 2>/dev/null; then
  7463. # We could just check for DJGPP; but this test a) works b) is more generic
  7464. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  7465. if test -f conf$$.exe; then
  7466. # Don't use ln at all; we don't have any links
  7467. as_ln_s='cp -p'
  7468. else
  7469. as_ln_s='ln -s'
  7470. fi
  7471. elif ln conf$$.file conf$$ 2>/dev/null; then
  7472. as_ln_s=ln
  7473. else
  7474. as_ln_s='cp -p'
  7475. fi
  7476. rm -f conf$$ conf$$.exe conf$$.file
  7477. if mkdir -p . 2>/dev/null; then
  7478. as_mkdir_p=:
  7479. else
  7480. as_mkdir_p=false
  7481. fi
  7482. as_executable_p="test -f"
  7483. # Sed expression to map a string onto a valid CPP name.
  7484. as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  7485. # Sed expression to map a string onto a valid variable name.
  7486. as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  7487. # IFS
  7488. # We need space, tab and new line, in precisely that order.
  7489. as_nl='
  7490. '
  7491. IFS=" $as_nl"
  7492. # CDPATH.
  7493. $as_unset CDPATH
  7494. exec 6>&1
  7495. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  7496. # report actual input values of CONFIG_FILES etc. instead of their
  7497. # values after options handling. Logging --version etc. is OK.
  7498. exec 5>>config.log
  7499. {
  7500. echo
  7501. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  7502. ## Running $as_me. ##
  7503. _ASBOX
  7504. } >&5
  7505. cat >&5 <<_CSEOF
  7506. This file was extended by $as_me, which was
  7507. generated by GNU Autoconf 2.57. Invocation command line was
  7508. CONFIG_FILES = $CONFIG_FILES
  7509. CONFIG_HEADERS = $CONFIG_HEADERS
  7510. CONFIG_LINKS = $CONFIG_LINKS
  7511. CONFIG_COMMANDS = $CONFIG_COMMANDS
  7512. $ $0 $@
  7513. _CSEOF
  7514. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  7515. echo >&5
  7516. _ACEOF
  7517. # Files that config.status was made for.
  7518. if test -n "$ac_config_files"; then
  7519. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  7520. fi
  7521. if test -n "$ac_config_headers"; then
  7522. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  7523. fi
  7524. if test -n "$ac_config_links"; then
  7525. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  7526. fi
  7527. if test -n "$ac_config_commands"; then
  7528. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  7529. fi
  7530. cat >>$CONFIG_STATUS <<\_ACEOF
  7531. ac_cs_usage="\
  7532. \`$as_me' instantiates files from templates according to the
  7533. current configuration.
  7534. Usage: $0 [OPTIONS] [FILE]...
  7535. -h, --help print this help, then exit
  7536. -V, --version print version number, then exit
  7537. -q, --quiet do not print progress messages
  7538. -d, --debug don't remove temporary files
  7539. --recheck update $as_me by reconfiguring in the same conditions
  7540. --file=FILE[:TEMPLATE]
  7541. instantiate the configuration file FILE
  7542. --header=FILE[:TEMPLATE]
  7543. instantiate the configuration header FILE
  7544. Configuration files:
  7545. $config_files
  7546. Configuration headers:
  7547. $config_headers
  7548. Report bugs to <bug-autoconf@gnu.org>."
  7549. _ACEOF
  7550. cat >>$CONFIG_STATUS <<_ACEOF
  7551. ac_cs_version="\\
  7552. config.status
  7553. configured by $0, generated by GNU Autoconf 2.57,
  7554. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  7555. Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  7556. Free Software Foundation, Inc.
  7557. This config.status script is free software; the Free Software Foundation
  7558. gives unlimited permission to copy, distribute and modify it."
  7559. srcdir=$srcdir
  7560. _ACEOF
  7561. cat >>$CONFIG_STATUS <<\_ACEOF
  7562. # If no file are specified by the user, then we need to provide default
  7563. # value. By we need to know if files were specified by the user.
  7564. ac_need_defaults=:
  7565. while test $# != 0
  7566. do
  7567. case $1 in
  7568. --*=*)
  7569. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  7570. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  7571. ac_shift=:
  7572. ;;
  7573. -*)
  7574. ac_option=$1
  7575. ac_optarg=$2
  7576. ac_shift=shift
  7577. ;;
  7578. *) # This is not an option, so the user has probably given explicit
  7579. # arguments.
  7580. ac_option=$1
  7581. ac_need_defaults=false;;
  7582. esac
  7583. case $ac_option in
  7584. # Handling of the options.
  7585. _ACEOF
  7586. cat >>$CONFIG_STATUS <<\_ACEOF
  7587. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  7588. ac_cs_recheck=: ;;
  7589. --version | --vers* | -V )
  7590. echo "$ac_cs_version"; exit 0 ;;
  7591. --he | --h)
  7592. # Conflict between --help and --header
  7593. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  7594. Try \`$0 --help' for more information." >&5
  7595. echo "$as_me: error: ambiguous option: $1
  7596. Try \`$0 --help' for more information." >&2;}
  7597. { (exit 1); exit 1; }; };;
  7598. --help | --hel | -h )
  7599. echo "$ac_cs_usage"; exit 0 ;;
  7600. --debug | --d* | -d )
  7601. debug=: ;;
  7602. --file | --fil | --fi | --f )
  7603. $ac_shift
  7604. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  7605. ac_need_defaults=false;;
  7606. --header | --heade | --head | --hea )
  7607. $ac_shift
  7608. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  7609. ac_need_defaults=false;;
  7610. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  7611. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  7612. ac_cs_silent=: ;;
  7613. # This is an error.
  7614. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  7615. Try \`$0 --help' for more information." >&5
  7616. echo "$as_me: error: unrecognized option: $1
  7617. Try \`$0 --help' for more information." >&2;}
  7618. { (exit 1); exit 1; }; } ;;
  7619. *) ac_config_targets="$ac_config_targets $1" ;;
  7620. esac
  7621. shift
  7622. done
  7623. ac_configure_extra_args=
  7624. if $ac_cs_silent; then
  7625. exec 6>/dev/null
  7626. ac_configure_extra_args="$ac_configure_extra_args --silent"
  7627. fi
  7628. _ACEOF
  7629. cat >>$CONFIG_STATUS <<_ACEOF
  7630. if \$ac_cs_recheck; then
  7631. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  7632. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  7633. fi
  7634. _ACEOF
  7635. cat >>$CONFIG_STATUS <<\_ACEOF
  7636. for ac_config_target in $ac_config_targets
  7637. do
  7638. case "$ac_config_target" in
  7639. # Handling of arguments.
  7640. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  7641. "Make.defines" ) CONFIG_FILES="$CONFIG_FILES Make.defines" ;;
  7642. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  7643. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  7644. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  7645. { (exit 1); exit 1; }; };;
  7646. esac
  7647. done
  7648. # If the user did not use the arguments to specify the items to instantiate,
  7649. # then the envvar interface is used. Set only those that are not.
  7650. # We use the long form for the default assignment because of an extremely
  7651. # bizarre bug on SunOS 4.1.3.
  7652. if $ac_need_defaults; then
  7653. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  7654. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  7655. fi
  7656. # Have a temporary directory for convenience. Make it in the build tree
  7657. # simply because there is no reason to put it here, and in addition,
  7658. # creating and moving files from /tmp can sometimes cause problems.
  7659. # Create a temporary directory, and hook for its removal unless debugging.
  7660. $debug ||
  7661. {
  7662. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  7663. trap '{ (exit 1); exit 1; }' 1 2 13 15
  7664. }
  7665. # Create a (secure) tmp directory for tmp files.
  7666. {
  7667. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  7668. test -n "$tmp" && test -d "$tmp"
  7669. } ||
  7670. {
  7671. tmp=./confstat$$-$RANDOM
  7672. (umask 077 && mkdir $tmp)
  7673. } ||
  7674. {
  7675. echo "$me: cannot create a temporary directory in ." >&2
  7676. { (exit 1); exit 1; }
  7677. }
  7678. _ACEOF
  7679. cat >>$CONFIG_STATUS <<_ACEOF
  7680. #
  7681. # CONFIG_FILES section.
  7682. #
  7683. # No need to generate the scripts if there are no CONFIG_FILES.
  7684. # This happens for instance when ./config.status config.h
  7685. if test -n "\$CONFIG_FILES"; then
  7686. # Protect against being on the right side of a sed subst in config.status.
  7687. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  7688. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  7689. s,@SHELL@,$SHELL,;t t
  7690. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  7691. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  7692. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  7693. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  7694. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  7695. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  7696. s,@exec_prefix@,$exec_prefix,;t t
  7697. s,@prefix@,$prefix,;t t
  7698. s,@program_transform_name@,$program_transform_name,;t t
  7699. s,@bindir@,$bindir,;t t
  7700. s,@sbindir@,$sbindir,;t t
  7701. s,@libexecdir@,$libexecdir,;t t
  7702. s,@datadir@,$datadir,;t t
  7703. s,@sysconfdir@,$sysconfdir,;t t
  7704. s,@sharedstatedir@,$sharedstatedir,;t t
  7705. s,@localstatedir@,$localstatedir,;t t
  7706. s,@libdir@,$libdir,;t t
  7707. s,@includedir@,$includedir,;t t
  7708. s,@oldincludedir@,$oldincludedir,;t t
  7709. s,@infodir@,$infodir,;t t
  7710. s,@mandir@,$mandir,;t t
  7711. s,@build_alias@,$build_alias,;t t
  7712. s,@host_alias@,$host_alias,;t t
  7713. s,@target_alias@,$target_alias,;t t
  7714. s,@DEFS@,$DEFS,;t t
  7715. s,@ECHO_C@,$ECHO_C,;t t
  7716. s,@ECHO_N@,$ECHO_N,;t t
  7717. s,@ECHO_T@,$ECHO_T,;t t
  7718. s,@LIBS@,$LIBS,;t t
  7719. s,@build@,$build,;t t
  7720. s,@build_cpu@,$build_cpu,;t t
  7721. s,@build_vendor@,$build_vendor,;t t
  7722. s,@build_os@,$build_os,;t t
  7723. s,@host@,$host,;t t
  7724. s,@host_cpu@,$host_cpu,;t t
  7725. s,@host_vendor@,$host_vendor,;t t
  7726. s,@host_os@,$host_os,;t t
  7727. s,@CC@,$CC,;t t
  7728. s,@CFLAGS@,$CFLAGS,;t t
  7729. s,@LDFLAGS@,$LDFLAGS,;t t
  7730. s,@CPPFLAGS@,$CPPFLAGS,;t t
  7731. s,@ac_ct_CC@,$ac_ct_CC,;t t
  7732. s,@EXEEXT@,$EXEEXT,;t t
  7733. s,@OBJEXT@,$OBJEXT,;t t
  7734. s,@RANLIB@,$RANLIB,;t t
  7735. s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  7736. s,@CPP@,$CPP,;t t
  7737. s,@EGREP@,$EGREP,;t t
  7738. s,@LIB_OBJS@,$LIB_OBJS,;t t
  7739. s,@LIBFREE_OBJS@,$LIBFREE_OBJS,;t t
  7740. s,@LIBGAI_OBJS@,$LIBGAI_OBJS,;t t
  7741. s,@LIBROUTE_OBJS@,$LIBROUTE_OBJS,;t t
  7742. s,@LIBXTI_OBJS@,$LIBXTI_OBJS,;t t
  7743. s,@LIBS_XTI@,$LIBS_XTI,;t t
  7744. s,@LIBUNP@,$LIBUNP,;t t
  7745. s,@LIBUNPXTI@,$LIBUNPXTI,;t t
  7746. s,@LIBUNP_NAME@,$LIBUNP_NAME,;t t
  7747. s,@LIBUNPXTI_NAME@,$LIBUNPXTI_NAME,;t t
  7748. s,@LIBOBJS@,$LIBOBJS,;t t
  7749. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  7750. CEOF
  7751. _ACEOF
  7752. cat >>$CONFIG_STATUS <<\_ACEOF
  7753. # Split the substitutions into bite-sized pieces for seds with
  7754. # small command number limits, like on Digital OSF/1 and HP-UX.
  7755. ac_max_sed_lines=48
  7756. ac_sed_frag=1 # Number of current file.
  7757. ac_beg=1 # First line for current file.
  7758. ac_end=$ac_max_sed_lines # Line after last line for current file.
  7759. ac_more_lines=:
  7760. ac_sed_cmds=
  7761. while $ac_more_lines; do
  7762. if test $ac_beg -gt 1; then
  7763. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  7764. else
  7765. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  7766. fi
  7767. if test ! -s $tmp/subs.frag; then
  7768. ac_more_lines=false
  7769. else
  7770. # The purpose of the label and of the branching condition is to
  7771. # speed up the sed processing (if there are no `@' at all, there
  7772. # is no need to browse any of the substitutions).
  7773. # These are the two extra sed commands mentioned above.
  7774. (echo ':t
  7775. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  7776. if test -z "$ac_sed_cmds"; then
  7777. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  7778. else
  7779. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  7780. fi
  7781. ac_sed_frag=`expr $ac_sed_frag + 1`
  7782. ac_beg=$ac_end
  7783. ac_end=`expr $ac_end + $ac_max_sed_lines`
  7784. fi
  7785. done
  7786. if test -z "$ac_sed_cmds"; then
  7787. ac_sed_cmds=cat
  7788. fi
  7789. fi # test -n "$CONFIG_FILES"
  7790. _ACEOF
  7791. cat >>$CONFIG_STATUS <<\_ACEOF
  7792. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  7793. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  7794. case $ac_file in
  7795. - | *:- | *:-:* ) # input from stdin
  7796. cat >$tmp/stdin
  7797. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7798. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7799. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7800. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7801. * ) ac_file_in=$ac_file.in ;;
  7802. esac
  7803. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  7804. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  7805. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7806. X"$ac_file" : 'X\(//\)[^/]' \| \
  7807. X"$ac_file" : 'X\(//\)$' \| \
  7808. X"$ac_file" : 'X\(/\)' \| \
  7809. . : '\(.\)' 2>/dev/null ||
  7810. echo X"$ac_file" |
  7811. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  7812. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  7813. /^X\(\/\/\)$/{ s//\1/; q; }
  7814. /^X\(\/\).*/{ s//\1/; q; }
  7815. s/.*/./; q'`
  7816. { if $as_mkdir_p; then
  7817. mkdir -p "$ac_dir"
  7818. else
  7819. as_dir="$ac_dir"
  7820. as_dirs=
  7821. while test ! -d "$as_dir"; do
  7822. as_dirs="$as_dir $as_dirs"
  7823. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  7824. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  7825. X"$as_dir" : 'X\(//\)[^/]' \| \
  7826. X"$as_dir" : 'X\(//\)$' \| \
  7827. X"$as_dir" : 'X\(/\)' \| \
  7828. . : '\(.\)' 2>/dev/null ||
  7829. echo X"$as_dir" |
  7830. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  7831. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  7832. /^X\(\/\/\)$/{ s//\1/; q; }
  7833. /^X\(\/\).*/{ s//\1/; q; }
  7834. s/.*/./; q'`
  7835. done
  7836. test ! -n "$as_dirs" || mkdir $as_dirs
  7837. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  7838. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  7839. { (exit 1); exit 1; }; }; }
  7840. ac_builddir=.
  7841. if test "$ac_dir" != .; then
  7842. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  7843. # A "../" for each directory in $ac_dir_suffix.
  7844. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  7845. else
  7846. ac_dir_suffix= ac_top_builddir=
  7847. fi
  7848. case $srcdir in
  7849. .) # No --srcdir option. We are building in place.
  7850. ac_srcdir=.
  7851. if test -z "$ac_top_builddir"; then
  7852. ac_top_srcdir=.
  7853. else
  7854. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  7855. fi ;;
  7856. [\\/]* | ?:[\\/]* ) # Absolute path.
  7857. ac_srcdir=$srcdir$ac_dir_suffix;
  7858. ac_top_srcdir=$srcdir ;;
  7859. *) # Relative path.
  7860. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  7861. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  7862. esac
  7863. # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  7864. # absolute.
  7865. ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  7866. ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  7867. ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  7868. ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  7869. if test x"$ac_file" != x-; then
  7870. { echo "$as_me:$LINENO: creating $ac_file" >&5
  7871. echo "$as_me: creating $ac_file" >&6;}
  7872. rm -f "$ac_file"
  7873. fi
  7874. # Let's still pretend it is `configure' which instantiates (i.e., don't
  7875. # use $as_me), people would be surprised to read:
  7876. # /* config.h. Generated by config.status. */
  7877. if test x"$ac_file" = x-; then
  7878. configure_input=
  7879. else
  7880. configure_input="$ac_file. "
  7881. fi
  7882. configure_input=$configure_input"Generated from `echo $ac_file_in |
  7883. sed 's,.*/,,'` by configure."
  7884. # First look for the input files in the build tree, otherwise in the
  7885. # src tree.
  7886. ac_file_inputs=`IFS=:
  7887. for f in $ac_file_in; do
  7888. case $f in
  7889. -) echo $tmp/stdin ;;
  7890. [\\/$]*)
  7891. # Absolute (can't be DOS-style, as IFS=:)
  7892. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  7893. echo "$as_me: error: cannot find input file: $f" >&2;}
  7894. { (exit 1); exit 1; }; }
  7895. echo $f;;
  7896. *) # Relative
  7897. if test -f "$f"; then
  7898. # Build tree
  7899. echo $f
  7900. elif test -f "$srcdir/$f"; then
  7901. # Source tree
  7902. echo $srcdir/$f
  7903. else
  7904. # /dev/null tree
  7905. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  7906. echo "$as_me: error: cannot find input file: $f" >&2;}
  7907. { (exit 1); exit 1; }; }
  7908. fi;;
  7909. esac
  7910. done` || { (exit 1); exit 1; }
  7911. _ACEOF
  7912. cat >>$CONFIG_STATUS <<_ACEOF
  7913. sed "$ac_vpsub
  7914. $extrasub
  7915. _ACEOF
  7916. cat >>$CONFIG_STATUS <<\_ACEOF
  7917. :t
  7918. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  7919. s,@configure_input@,$configure_input,;t t
  7920. s,@srcdir@,$ac_srcdir,;t t
  7921. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  7922. s,@top_srcdir@,$ac_top_srcdir,;t t
  7923. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  7924. s,@builddir@,$ac_builddir,;t t
  7925. s,@abs_builddir@,$ac_abs_builddir,;t t
  7926. s,@top_builddir@,$ac_top_builddir,;t t
  7927. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  7928. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  7929. rm -f $tmp/stdin
  7930. if test x"$ac_file" != x-; then
  7931. mv $tmp/out $ac_file
  7932. else
  7933. cat $tmp/out
  7934. rm -f $tmp/out
  7935. fi
  7936. done
  7937. _ACEOF
  7938. cat >>$CONFIG_STATUS <<\_ACEOF
  7939. #
  7940. # CONFIG_HEADER section.
  7941. #
  7942. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  7943. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  7944. #
  7945. # ac_d sets the value in "#define NAME VALUE" lines.
  7946. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  7947. ac_dB='[ ].*$,\1#\2'
  7948. ac_dC=' '
  7949. ac_dD=',;t'
  7950. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  7951. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  7952. ac_uB='$,\1#\2define\3'
  7953. ac_uC=' '
  7954. ac_uD=',;t'
  7955. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  7956. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  7957. case $ac_file in
  7958. - | *:- | *:-:* ) # input from stdin
  7959. cat >$tmp/stdin
  7960. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7961. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7962. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  7963. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  7964. * ) ac_file_in=$ac_file.in ;;
  7965. esac
  7966. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  7967. echo "$as_me: creating $ac_file" >&6;}
  7968. # First look for the input files in the build tree, otherwise in the
  7969. # src tree.
  7970. ac_file_inputs=`IFS=:
  7971. for f in $ac_file_in; do
  7972. case $f in
  7973. -) echo $tmp/stdin ;;
  7974. [\\/$]*)
  7975. # Absolute (can't be DOS-style, as IFS=:)
  7976. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  7977. echo "$as_me: error: cannot find input file: $f" >&2;}
  7978. { (exit 1); exit 1; }; }
  7979. echo $f;;
  7980. *) # Relative
  7981. if test -f "$f"; then
  7982. # Build tree
  7983. echo $f
  7984. elif test -f "$srcdir/$f"; then
  7985. # Source tree
  7986. echo $srcdir/$f
  7987. else
  7988. # /dev/null tree
  7989. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  7990. echo "$as_me: error: cannot find input file: $f" >&2;}
  7991. { (exit 1); exit 1; }; }
  7992. fi;;
  7993. esac
  7994. done` || { (exit 1); exit 1; }
  7995. # Remove the trailing spaces.
  7996. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  7997. _ACEOF
  7998. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  7999. # `conftest.undefs', that substitutes the proper values into
  8000. # config.h.in to produce config.h. The first handles `#define'
  8001. # templates, and the second `#undef' templates.
  8002. # And first: Protect against being on the right side of a sed subst in
  8003. # config.status. Protect against being in an unquoted here document
  8004. # in config.status.
  8005. rm -f conftest.defines conftest.undefs
  8006. # Using a here document instead of a string reduces the quoting nightmare.
  8007. # Putting comments in sed scripts is not portable.
  8008. #
  8009. # `end' is used to avoid that the second main sed command (meant for
  8010. # 0-ary CPP macros) applies to n-ary macro definitions.
  8011. # See the Autoconf documentation for `clear'.
  8012. cat >confdef2sed.sed <<\_ACEOF
  8013. s/[\\&,]/\\&/g
  8014. s,[\\$`],\\&,g
  8015. t clear
  8016. : clear
  8017. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  8018. t end
  8019. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  8020. : end
  8021. _ACEOF
  8022. # If some macros were called several times there might be several times
  8023. # the same #defines, which is useless. Nevertheless, we may not want to
  8024. # sort them, since we want the *last* AC-DEFINE to be honored.
  8025. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  8026. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  8027. rm -f confdef2sed.sed
  8028. # This sed command replaces #undef with comments. This is necessary, for
  8029. # example, in the case of _POSIX_SOURCE, which is predefined and required
  8030. # on some systems where configure will not decide to define it.
  8031. cat >>conftest.undefs <<\_ACEOF
  8032. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  8033. _ACEOF
  8034. # Break up conftest.defines because some shells have a limit on the size
  8035. # of here documents, and old seds have small limits too (100 cmds).
  8036. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  8037. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  8038. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  8039. echo ' :' >>$CONFIG_STATUS
  8040. rm -f conftest.tail
  8041. while grep . conftest.defines >/dev/null
  8042. do
  8043. # Write a limited-size here document to $tmp/defines.sed.
  8044. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  8045. # Speed up: don't consider the non `#define' lines.
  8046. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  8047. # Work around the forget-to-reset-the-flag bug.
  8048. echo 't clr' >>$CONFIG_STATUS
  8049. echo ': clr' >>$CONFIG_STATUS
  8050. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  8051. echo 'CEOF
  8052. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  8053. rm -f $tmp/in
  8054. mv $tmp/out $tmp/in
  8055. ' >>$CONFIG_STATUS
  8056. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  8057. rm -f conftest.defines
  8058. mv conftest.tail conftest.defines
  8059. done
  8060. rm -f conftest.defines
  8061. echo ' fi # grep' >>$CONFIG_STATUS
  8062. echo >>$CONFIG_STATUS
  8063. # Break up conftest.undefs because some shells have a limit on the size
  8064. # of here documents, and old seds have small limits too (100 cmds).
  8065. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  8066. rm -f conftest.tail
  8067. while grep . conftest.undefs >/dev/null
  8068. do
  8069. # Write a limited-size here document to $tmp/undefs.sed.
  8070. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  8071. # Speed up: don't consider the non `#undef'
  8072. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  8073. # Work around the forget-to-reset-the-flag bug.
  8074. echo 't clr' >>$CONFIG_STATUS
  8075. echo ': clr' >>$CONFIG_STATUS
  8076. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  8077. echo 'CEOF
  8078. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  8079. rm -f $tmp/in
  8080. mv $tmp/out $tmp/in
  8081. ' >>$CONFIG_STATUS
  8082. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  8083. rm -f conftest.undefs
  8084. mv conftest.tail conftest.undefs
  8085. done
  8086. rm -f conftest.undefs
  8087. cat >>$CONFIG_STATUS <<\_ACEOF
  8088. # Let's still pretend it is `configure' which instantiates (i.e., don't
  8089. # use $as_me), people would be surprised to read:
  8090. # /* config.h. Generated by config.status. */
  8091. if test x"$ac_file" = x-; then
  8092. echo "/* Generated by configure. */" >$tmp/config.h
  8093. else
  8094. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  8095. fi
  8096. cat $tmp/in >>$tmp/config.h
  8097. rm -f $tmp/in
  8098. if test x"$ac_file" != x-; then
  8099. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  8100. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  8101. echo "$as_me: $ac_file is unchanged" >&6;}
  8102. else
  8103. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  8104. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8105. X"$ac_file" : 'X\(//\)[^/]' \| \
  8106. X"$ac_file" : 'X\(//\)$' \| \
  8107. X"$ac_file" : 'X\(/\)' \| \
  8108. . : '\(.\)' 2>/dev/null ||
  8109. echo X"$ac_file" |
  8110. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8111. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8112. /^X\(\/\/\)$/{ s//\1/; q; }
  8113. /^X\(\/\).*/{ s//\1/; q; }
  8114. s/.*/./; q'`
  8115. { if $as_mkdir_p; then
  8116. mkdir -p "$ac_dir"
  8117. else
  8118. as_dir="$ac_dir"
  8119. as_dirs=
  8120. while test ! -d "$as_dir"; do
  8121. as_dirs="$as_dir $as_dirs"
  8122. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  8123. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  8124. X"$as_dir" : 'X\(//\)[^/]' \| \
  8125. X"$as_dir" : 'X\(//\)$' \| \
  8126. X"$as_dir" : 'X\(/\)' \| \
  8127. . : '\(.\)' 2>/dev/null ||
  8128. echo X"$as_dir" |
  8129. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  8130. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  8131. /^X\(\/\/\)$/{ s//\1/; q; }
  8132. /^X\(\/\).*/{ s//\1/; q; }
  8133. s/.*/./; q'`
  8134. done
  8135. test ! -n "$as_dirs" || mkdir $as_dirs
  8136. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  8137. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  8138. { (exit 1); exit 1; }; }; }
  8139. rm -f $ac_file
  8140. mv $tmp/config.h $ac_file
  8141. fi
  8142. else
  8143. cat $tmp/config.h
  8144. rm -f $tmp/config.h
  8145. fi
  8146. done
  8147. _ACEOF
  8148. cat >>$CONFIG_STATUS <<\_ACEOF
  8149. { (exit 0); exit 0; }
  8150. _ACEOF
  8151. chmod +x $CONFIG_STATUS
  8152. ac_clean_files=$ac_clean_files_save
  8153. # configure is writing to config.log, and then calls config.status.
  8154. # config.status does its own redirection, appending to config.log.
  8155. # Unfortunately, on DOS this fails, as config.log is still kept open
  8156. # by configure, so config.status won't be able to write to it; its
  8157. # output is simply discarded. So we exec the FD to /dev/null,
  8158. # effectively closing config.log, so it can be properly (re)opened and
  8159. # appended to by config.status. When coming back to configure, we
  8160. # need to make the FD available again.
  8161. if test "$no_create" != yes; then
  8162. ac_cs_success=:
  8163. ac_config_status_args=
  8164. test "$silent" = yes &&
  8165. ac_config_status_args="$ac_config_status_args --quiet"
  8166. exec 5>/dev/null
  8167. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  8168. exec 5>>config.log
  8169. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  8170. # would make configure fail if this is the last instruction.
  8171. $ac_cs_success || { (exit 1); exit 1; }
  8172. fi
  8173. if test -d "$host" ; then
  8174. cp -p config.h config.cache config.status Makefile Make.defines $host
  8175. echo "saving copies in $host/"
  8176. fi