4
0

configure 237 KB

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