configure 243 KB

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