configure 217 KB

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