configure 219 KB

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