configure 232 KB

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