configure 246 KB

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