configure 236 KB

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