configure 259 KB

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