configure 222 KB

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