configure 243 KB

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