configure 236 KB

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