configure 236 KB

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