configure 235 KB

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