configure 237 KB

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