configure 244 KB

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