configure 376 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.26 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. #
  10. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. 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 egg_ac_parameters CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CCDEPMODE GCC3 CCDEBUG SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE ZLIB LIBOBJS VERSION NUMVER PACKNAME CFG MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CC_set=${CC+set}
  664. ac_env_CC_value=$CC
  665. ac_cv_env_CC_set=${CC+set}
  666. ac_cv_env_CC_value=$CC
  667. ac_env_CFLAGS_set=${CFLAGS+set}
  668. ac_env_CFLAGS_value=$CFLAGS
  669. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  670. ac_cv_env_CFLAGS_value=$CFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CPP_set=${CPP+set}
  680. ac_env_CPP_value=$CPP
  681. ac_cv_env_CPP_set=${CPP+set}
  682. ac_cv_env_CPP_value=$CPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  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. --disable-ipv6 disable IPv6 support
  740. Optional Packages:
  741. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  742. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  743. --with-cfg=PATH full path to pack.cfg
  744. Some influential environment variables:
  745. CC C compiler command
  746. CFLAGS C compiler flags
  747. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  748. nonstandard directory <lib dir>
  749. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  750. headers in a nonstandard directory <include dir>
  751. CPP C preprocessor
  752. Use these variables to override the choices made by `configure' or to help
  753. it to find libraries and programs with nonstandard names/locations.
  754. _ACEOF
  755. fi
  756. if test "$ac_init_help" = "recursive"; then
  757. # If there are subdirs, report their specific --help.
  758. ac_popdir=`pwd`
  759. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  760. test -d $ac_dir || continue
  761. ac_builddir=.
  762. if test "$ac_dir" != .; then
  763. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  764. # A "../" for each directory in $ac_dir_suffix.
  765. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  766. else
  767. ac_dir_suffix= ac_top_builddir=
  768. fi
  769. case $srcdir in
  770. .) # No --srcdir option. We are building in place.
  771. ac_srcdir=.
  772. if test -z "$ac_top_builddir"; then
  773. ac_top_srcdir=.
  774. else
  775. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  776. fi ;;
  777. [\\/]* | ?:[\\/]* ) # Absolute path.
  778. ac_srcdir=$srcdir$ac_dir_suffix;
  779. ac_top_srcdir=$srcdir ;;
  780. *) # Relative path.
  781. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  782. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  783. esac
  784. # Do not use `cd foo && pwd` to compute absolute paths, because
  785. # the directories may not exist.
  786. case `pwd` in
  787. .) ac_abs_builddir="$ac_dir";;
  788. *)
  789. case "$ac_dir" in
  790. .) ac_abs_builddir=`pwd`;;
  791. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  792. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  793. esac;;
  794. esac
  795. case $ac_abs_builddir in
  796. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *)
  798. case ${ac_top_builddir}. in
  799. .) ac_abs_top_builddir=$ac_abs_builddir;;
  800. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  801. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  802. esac;;
  803. esac
  804. case $ac_abs_builddir in
  805. .) ac_abs_srcdir=$ac_srcdir;;
  806. *)
  807. case $ac_srcdir in
  808. .) ac_abs_srcdir=$ac_abs_builddir;;
  809. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  810. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  811. esac;;
  812. esac
  813. case $ac_abs_builddir in
  814. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *)
  816. case $ac_top_srcdir in
  817. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  818. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  819. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  820. esac;;
  821. esac
  822. cd $ac_dir
  823. # Check for guested configure; otherwise get Cygnus style configure.
  824. if test -f $ac_srcdir/configure.gnu; then
  825. echo
  826. $SHELL $ac_srcdir/configure.gnu --help=recursive
  827. elif test -f $ac_srcdir/configure; then
  828. echo
  829. $SHELL $ac_srcdir/configure --help=recursive
  830. elif test -f $ac_srcdir/configure.ac ||
  831. test -f $ac_srcdir/configure.in; then
  832. echo
  833. $ac_configure --help
  834. else
  835. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  836. fi
  837. cd "$ac_popdir"
  838. done
  839. fi
  840. test -n "$ac_init_help" && exit 0
  841. if $ac_init_version; then
  842. cat <<\_ACEOF
  843. Copyright (C) 2003 Free Software Foundation, Inc.
  844. This configure script is free software; the Free Software Foundation
  845. gives unlimited permission to copy, distribute and modify it.
  846. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  847. _ACEOF
  848. exit 0
  849. fi
  850. exec 5>config.log
  851. cat >&5 <<_ACEOF
  852. This file contains any messages produced by compilers while
  853. running configure, to aid debugging if configure makes a mistake.
  854. It was created by $as_me, which was
  855. generated by GNU Autoconf 2.59. Invocation command line was
  856. $ $0 $@
  857. _ACEOF
  858. {
  859. cat <<_ASUNAME
  860. ## --------- ##
  861. ## Platform. ##
  862. ## --------- ##
  863. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  864. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  865. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  866. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  867. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  868. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  869. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  870. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  871. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  872. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  873. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  874. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  875. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  876. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  877. _ASUNAME
  878. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  879. for as_dir in $PATH
  880. do
  881. IFS=$as_save_IFS
  882. test -z "$as_dir" && as_dir=.
  883. echo "PATH: $as_dir"
  884. done
  885. } >&5
  886. cat >&5 <<_ACEOF
  887. ## ----------- ##
  888. ## Core tests. ##
  889. ## ----------- ##
  890. _ACEOF
  891. # Keep a trace of the command line.
  892. # Strip out --no-create and --no-recursion so they do not pile up.
  893. # Strip out --silent because we don't want to record it for future runs.
  894. # Also quote any args containing shell meta-characters.
  895. # Make two passes to allow for proper duplicate-argument suppression.
  896. ac_configure_args=
  897. ac_configure_args0=
  898. ac_configure_args1=
  899. ac_sep=
  900. ac_must_keep_next=false
  901. for ac_pass in 1 2
  902. do
  903. for ac_arg
  904. do
  905. case $ac_arg in
  906. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  907. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  908. | -silent | --silent | --silen | --sile | --sil)
  909. continue ;;
  910. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  911. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  912. esac
  913. case $ac_pass in
  914. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  915. 2)
  916. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  917. if test $ac_must_keep_next = true; then
  918. ac_must_keep_next=false # Got value, back to normal.
  919. else
  920. case $ac_arg in
  921. *=* | --config-cache | -C | -disable-* | --disable-* \
  922. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  923. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  924. | -with-* | --with-* | -without-* | --without-* | --x)
  925. case "$ac_configure_args0 " in
  926. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  927. esac
  928. ;;
  929. -* ) ac_must_keep_next=true ;;
  930. esac
  931. fi
  932. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  933. # Get rid of the leading space.
  934. ac_sep=" "
  935. ;;
  936. esac
  937. done
  938. done
  939. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  940. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  941. # When interrupted or exit'd, cleanup temporary files, and complete
  942. # config.log. We remove comments because anyway the quotes in there
  943. # would cause problems or look ugly.
  944. # WARNING: Be sure not to use single quotes in there, as some shells,
  945. # such as our DU 5.0 friend, will then `close' the trap.
  946. trap 'exit_status=$?
  947. # Save into config.log some information that might help in debugging.
  948. {
  949. echo
  950. cat <<\_ASBOX
  951. ## ---------------- ##
  952. ## Cache variables. ##
  953. ## ---------------- ##
  954. _ASBOX
  955. echo
  956. # The following way of writing the cache mishandles newlines in values,
  957. {
  958. (set) 2>&1 |
  959. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  960. *ac_space=\ *)
  961. sed -n \
  962. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  963. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  964. ;;
  965. *)
  966. sed -n \
  967. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  968. ;;
  969. esac;
  970. }
  971. echo
  972. cat <<\_ASBOX
  973. ## ----------------- ##
  974. ## Output variables. ##
  975. ## ----------------- ##
  976. _ASBOX
  977. echo
  978. for ac_var in $ac_subst_vars
  979. do
  980. eval ac_val=$`echo $ac_var`
  981. echo "$ac_var='"'"'$ac_val'"'"'"
  982. done | sort
  983. echo
  984. if test -n "$ac_subst_files"; then
  985. cat <<\_ASBOX
  986. ## ------------- ##
  987. ## Output files. ##
  988. ## ------------- ##
  989. _ASBOX
  990. echo
  991. for ac_var in $ac_subst_files
  992. do
  993. eval ac_val=$`echo $ac_var`
  994. echo "$ac_var='"'"'$ac_val'"'"'"
  995. done | sort
  996. echo
  997. fi
  998. if test -s confdefs.h; then
  999. cat <<\_ASBOX
  1000. ## ----------- ##
  1001. ## confdefs.h. ##
  1002. ## ----------- ##
  1003. _ASBOX
  1004. echo
  1005. sed "/^$/d" confdefs.h | sort
  1006. echo
  1007. fi
  1008. test "$ac_signal" != 0 &&
  1009. echo "$as_me: caught signal $ac_signal"
  1010. echo "$as_me: exit $exit_status"
  1011. } >&5
  1012. rm -f core *.core &&
  1013. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1014. exit $exit_status
  1015. ' 0
  1016. for ac_signal in 1 2 13 15; do
  1017. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1018. done
  1019. ac_signal=0
  1020. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1021. rm -rf conftest* confdefs.h
  1022. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1023. echo >confdefs.h
  1024. # Predefined preprocessor variables.
  1025. cat >>confdefs.h <<_ACEOF
  1026. #define PACKAGE_NAME "$PACKAGE_NAME"
  1027. _ACEOF
  1028. cat >>confdefs.h <<_ACEOF
  1029. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1030. _ACEOF
  1031. cat >>confdefs.h <<_ACEOF
  1032. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1033. _ACEOF
  1034. cat >>confdefs.h <<_ACEOF
  1035. #define PACKAGE_STRING "$PACKAGE_STRING"
  1036. _ACEOF
  1037. cat >>confdefs.h <<_ACEOF
  1038. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1039. _ACEOF
  1040. # Let the site file select an alternate cache file if it wants to.
  1041. # Prefer explicitly selected file to automatically selected ones.
  1042. if test -z "$CONFIG_SITE"; then
  1043. if test "x$prefix" != xNONE; then
  1044. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1045. else
  1046. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1047. fi
  1048. fi
  1049. for ac_site_file in $CONFIG_SITE; do
  1050. if test -r "$ac_site_file"; then
  1051. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1052. echo "$as_me: loading site script $ac_site_file" >&6;}
  1053. sed 's/^/| /' "$ac_site_file" >&5
  1054. . "$ac_site_file"
  1055. fi
  1056. done
  1057. if test -r "$cache_file"; then
  1058. # Some versions of bash will fail to source /dev/null (special
  1059. # files actually), so we avoid doing that.
  1060. if test -f "$cache_file"; then
  1061. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1062. echo "$as_me: loading cache $cache_file" >&6;}
  1063. case $cache_file in
  1064. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1065. *) . ./$cache_file;;
  1066. esac
  1067. fi
  1068. else
  1069. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1070. echo "$as_me: creating cache $cache_file" >&6;}
  1071. >$cache_file
  1072. fi
  1073. # Check that the precious variables saved in the cache have kept the same
  1074. # value.
  1075. ac_cache_corrupted=false
  1076. for ac_var in `(set) 2>&1 |
  1077. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1078. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1079. eval ac_new_set=\$ac_env_${ac_var}_set
  1080. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1081. eval ac_new_val="\$ac_env_${ac_var}_value"
  1082. case $ac_old_set,$ac_new_set in
  1083. set,)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,set)
  1088. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1089. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1090. ac_cache_corrupted=: ;;
  1091. ,);;
  1092. *)
  1093. if test "x$ac_old_val" != "x$ac_new_val"; then
  1094. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1095. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1096. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1097. echo "$as_me: former value: $ac_old_val" >&2;}
  1098. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1099. echo "$as_me: current value: $ac_new_val" >&2;}
  1100. ac_cache_corrupted=:
  1101. fi;;
  1102. esac
  1103. # Pass precious variables to config.status.
  1104. if test "$ac_new_set" = set; then
  1105. case $ac_new_val in
  1106. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1107. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1108. *) ac_arg=$ac_var=$ac_new_val ;;
  1109. esac
  1110. case " $ac_configure_args " in
  1111. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1112. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1113. esac
  1114. fi
  1115. done
  1116. if $ac_cache_corrupted; then
  1117. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1118. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1119. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1120. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1121. { (exit 1); exit 1; }; }
  1122. fi
  1123. ac_ext=c
  1124. ac_cpp='$CPP $CPPFLAGS'
  1125. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1126. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1127. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1128. ac_config_headers="$ac_config_headers config.h"
  1129. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1130. egg_ac_parameters=
  1131. ac_prev=
  1132. for ac_arg in $ac_configure_args; do
  1133. if test -n "$ac_prev"; then
  1134. ac_prev=
  1135. continue
  1136. fi
  1137. case $ac_arg in
  1138. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1139. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1140. ac_prev=cache_file ;;
  1141. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1142. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1143. | --c=*)
  1144. ;;
  1145. --config-cache | -C)
  1146. ;;
  1147. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1148. ac_prev=srcdir ;;
  1149. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1150. ;;
  1151. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1152. esac
  1153. done
  1154. cfg="pack/pack.cfg"
  1155. # Check whether --with-cfg or --without-cfg was given.
  1156. if test "${with_cfg+set}" = set; then
  1157. withval="$with_cfg"
  1158. cfg="$withval"
  1159. fi;
  1160. # Setup build environment
  1161. ac_ext=c
  1162. ac_cpp='$CPP $CPPFLAGS'
  1163. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1164. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1165. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1166. if test -n "$ac_tool_prefix"; then
  1167. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1168. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1169. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1170. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1171. if test "${ac_cv_prog_CC+set}" = set; then
  1172. echo $ECHO_N "(cached) $ECHO_C" >&6
  1173. else
  1174. if test -n "$CC"; then
  1175. ac_cv_prog_CC="$CC" # Let the user override the test.
  1176. else
  1177. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1178. for as_dir in $PATH
  1179. do
  1180. IFS=$as_save_IFS
  1181. test -z "$as_dir" && as_dir=.
  1182. for ac_exec_ext in '' $ac_executable_extensions; do
  1183. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1184. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1185. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1186. break 2
  1187. fi
  1188. done
  1189. done
  1190. fi
  1191. fi
  1192. CC=$ac_cv_prog_CC
  1193. if test -n "$CC"; then
  1194. echo "$as_me:$LINENO: result: $CC" >&5
  1195. echo "${ECHO_T}$CC" >&6
  1196. else
  1197. echo "$as_me:$LINENO: result: no" >&5
  1198. echo "${ECHO_T}no" >&6
  1199. fi
  1200. fi
  1201. if test -z "$ac_cv_prog_CC"; then
  1202. ac_ct_CC=$CC
  1203. # Extract the first word of "gcc", so it can be a program name with args.
  1204. set dummy gcc; ac_word=$2
  1205. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1206. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1207. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1208. echo $ECHO_N "(cached) $ECHO_C" >&6
  1209. else
  1210. if test -n "$ac_ct_CC"; then
  1211. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1212. else
  1213. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1214. for as_dir in $PATH
  1215. do
  1216. IFS=$as_save_IFS
  1217. test -z "$as_dir" && as_dir=.
  1218. for ac_exec_ext in '' $ac_executable_extensions; do
  1219. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1220. ac_cv_prog_ac_ct_CC="gcc"
  1221. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1222. break 2
  1223. fi
  1224. done
  1225. done
  1226. fi
  1227. fi
  1228. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1229. if test -n "$ac_ct_CC"; then
  1230. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1231. echo "${ECHO_T}$ac_ct_CC" >&6
  1232. else
  1233. echo "$as_me:$LINENO: result: no" >&5
  1234. echo "${ECHO_T}no" >&6
  1235. fi
  1236. CC=$ac_ct_CC
  1237. else
  1238. CC="$ac_cv_prog_CC"
  1239. fi
  1240. if test -z "$CC"; then
  1241. if test -n "$ac_tool_prefix"; then
  1242. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1243. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1244. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1245. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1246. if test "${ac_cv_prog_CC+set}" = set; then
  1247. echo $ECHO_N "(cached) $ECHO_C" >&6
  1248. else
  1249. if test -n "$CC"; then
  1250. ac_cv_prog_CC="$CC" # Let the user override the test.
  1251. else
  1252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1253. for as_dir in $PATH
  1254. do
  1255. IFS=$as_save_IFS
  1256. test -z "$as_dir" && as_dir=.
  1257. for ac_exec_ext in '' $ac_executable_extensions; do
  1258. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1259. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1260. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1261. break 2
  1262. fi
  1263. done
  1264. done
  1265. fi
  1266. fi
  1267. CC=$ac_cv_prog_CC
  1268. if test -n "$CC"; then
  1269. echo "$as_me:$LINENO: result: $CC" >&5
  1270. echo "${ECHO_T}$CC" >&6
  1271. else
  1272. echo "$as_me:$LINENO: result: no" >&5
  1273. echo "${ECHO_T}no" >&6
  1274. fi
  1275. fi
  1276. if test -z "$ac_cv_prog_CC"; then
  1277. ac_ct_CC=$CC
  1278. # Extract the first word of "cc", so it can be a program name with args.
  1279. set dummy cc; ac_word=$2
  1280. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1281. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1282. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1283. echo $ECHO_N "(cached) $ECHO_C" >&6
  1284. else
  1285. if test -n "$ac_ct_CC"; then
  1286. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1287. else
  1288. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1289. for as_dir in $PATH
  1290. do
  1291. IFS=$as_save_IFS
  1292. test -z "$as_dir" && as_dir=.
  1293. for ac_exec_ext in '' $ac_executable_extensions; do
  1294. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1295. ac_cv_prog_ac_ct_CC="cc"
  1296. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1297. break 2
  1298. fi
  1299. done
  1300. done
  1301. fi
  1302. fi
  1303. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1304. if test -n "$ac_ct_CC"; then
  1305. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1306. echo "${ECHO_T}$ac_ct_CC" >&6
  1307. else
  1308. echo "$as_me:$LINENO: result: no" >&5
  1309. echo "${ECHO_T}no" >&6
  1310. fi
  1311. CC=$ac_ct_CC
  1312. else
  1313. CC="$ac_cv_prog_CC"
  1314. fi
  1315. fi
  1316. if test -z "$CC"; then
  1317. # Extract the first word of "cc", so it can be a program name with args.
  1318. set dummy cc; ac_word=$2
  1319. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1320. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1321. if test "${ac_cv_prog_CC+set}" = set; then
  1322. echo $ECHO_N "(cached) $ECHO_C" >&6
  1323. else
  1324. if test -n "$CC"; then
  1325. ac_cv_prog_CC="$CC" # Let the user override the test.
  1326. else
  1327. ac_prog_rejected=no
  1328. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1329. for as_dir in $PATH
  1330. do
  1331. IFS=$as_save_IFS
  1332. test -z "$as_dir" && as_dir=.
  1333. for ac_exec_ext in '' $ac_executable_extensions; do
  1334. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1335. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1336. ac_prog_rejected=yes
  1337. continue
  1338. fi
  1339. ac_cv_prog_CC="cc"
  1340. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1341. break 2
  1342. fi
  1343. done
  1344. done
  1345. if test $ac_prog_rejected = yes; then
  1346. # We found a bogon in the path, so make sure we never use it.
  1347. set dummy $ac_cv_prog_CC
  1348. shift
  1349. if test $# != 0; then
  1350. # We chose a different compiler from the bogus one.
  1351. # However, it has the same basename, so the bogon will be chosen
  1352. # first if we set CC to just the basename; use the full file name.
  1353. shift
  1354. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1355. fi
  1356. fi
  1357. fi
  1358. fi
  1359. CC=$ac_cv_prog_CC
  1360. if test -n "$CC"; then
  1361. echo "$as_me:$LINENO: result: $CC" >&5
  1362. echo "${ECHO_T}$CC" >&6
  1363. else
  1364. echo "$as_me:$LINENO: result: no" >&5
  1365. echo "${ECHO_T}no" >&6
  1366. fi
  1367. fi
  1368. if test -z "$CC"; then
  1369. if test -n "$ac_tool_prefix"; then
  1370. for ac_prog in cl
  1371. do
  1372. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1373. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1374. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1375. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1376. if test "${ac_cv_prog_CC+set}" = set; then
  1377. echo $ECHO_N "(cached) $ECHO_C" >&6
  1378. else
  1379. if test -n "$CC"; then
  1380. ac_cv_prog_CC="$CC" # Let the user override the test.
  1381. else
  1382. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1383. for as_dir in $PATH
  1384. do
  1385. IFS=$as_save_IFS
  1386. test -z "$as_dir" && as_dir=.
  1387. for ac_exec_ext in '' $ac_executable_extensions; do
  1388. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1389. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1390. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1391. break 2
  1392. fi
  1393. done
  1394. done
  1395. fi
  1396. fi
  1397. CC=$ac_cv_prog_CC
  1398. if test -n "$CC"; then
  1399. echo "$as_me:$LINENO: result: $CC" >&5
  1400. echo "${ECHO_T}$CC" >&6
  1401. else
  1402. echo "$as_me:$LINENO: result: no" >&5
  1403. echo "${ECHO_T}no" >&6
  1404. fi
  1405. test -n "$CC" && break
  1406. done
  1407. fi
  1408. if test -z "$CC"; then
  1409. ac_ct_CC=$CC
  1410. for ac_prog in cl
  1411. do
  1412. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1413. set dummy $ac_prog; ac_word=$2
  1414. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1415. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1416. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1417. echo $ECHO_N "(cached) $ECHO_C" >&6
  1418. else
  1419. if test -n "$ac_ct_CC"; then
  1420. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1421. else
  1422. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1423. for as_dir in $PATH
  1424. do
  1425. IFS=$as_save_IFS
  1426. test -z "$as_dir" && as_dir=.
  1427. for ac_exec_ext in '' $ac_executable_extensions; do
  1428. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1429. ac_cv_prog_ac_ct_CC="$ac_prog"
  1430. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1431. break 2
  1432. fi
  1433. done
  1434. done
  1435. fi
  1436. fi
  1437. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1438. if test -n "$ac_ct_CC"; then
  1439. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1440. echo "${ECHO_T}$ac_ct_CC" >&6
  1441. else
  1442. echo "$as_me:$LINENO: result: no" >&5
  1443. echo "${ECHO_T}no" >&6
  1444. fi
  1445. test -n "$ac_ct_CC" && break
  1446. done
  1447. CC=$ac_ct_CC
  1448. fi
  1449. fi
  1450. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1451. See \`config.log' for more details." >&5
  1452. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1453. See \`config.log' for more details." >&2;}
  1454. { (exit 1); exit 1; }; }
  1455. # Provide some information about the compiler.
  1456. echo "$as_me:$LINENO:" \
  1457. "checking for C compiler version" >&5
  1458. ac_compiler=`set X $ac_compile; echo $2`
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1460. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1461. ac_status=$?
  1462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1463. (exit $ac_status); }
  1464. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1465. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1466. ac_status=$?
  1467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1468. (exit $ac_status); }
  1469. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1470. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1471. ac_status=$?
  1472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1473. (exit $ac_status); }
  1474. cat >conftest.$ac_ext <<_ACEOF
  1475. /* confdefs.h. */
  1476. _ACEOF
  1477. cat confdefs.h >>conftest.$ac_ext
  1478. cat >>conftest.$ac_ext <<_ACEOF
  1479. /* end confdefs.h. */
  1480. int
  1481. main ()
  1482. {
  1483. ;
  1484. return 0;
  1485. }
  1486. _ACEOF
  1487. ac_clean_files_save=$ac_clean_files
  1488. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1489. # Try to create an executable without -o first, disregard a.out.
  1490. # It will help us diagnose broken compilers, and finding out an intuition
  1491. # of exeext.
  1492. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1493. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1494. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1495. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1496. (eval $ac_link_default) 2>&5
  1497. ac_status=$?
  1498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1499. (exit $ac_status); }; then
  1500. # Find the output, starting from the most likely. This scheme is
  1501. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1502. # resort.
  1503. # Be careful to initialize this variable, since it used to be cached.
  1504. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1505. ac_cv_exeext=
  1506. # b.out is created by i960 compilers.
  1507. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1508. do
  1509. test -f "$ac_file" || continue
  1510. case $ac_file in
  1511. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1512. ;;
  1513. conftest.$ac_ext )
  1514. # This is the source file.
  1515. ;;
  1516. [ab].out )
  1517. # We found the default executable, but exeext='' is most
  1518. # certainly right.
  1519. break;;
  1520. *.* )
  1521. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1522. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1523. # but it would be cool to find out if it's true. Does anybody
  1524. # maintain Libtool? --akim.
  1525. export ac_cv_exeext
  1526. break;;
  1527. * )
  1528. break;;
  1529. esac
  1530. done
  1531. else
  1532. echo "$as_me: failed program was:" >&5
  1533. sed 's/^/| /' conftest.$ac_ext >&5
  1534. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1535. See \`config.log' for more details." >&5
  1536. echo "$as_me: error: C compiler cannot create executables
  1537. See \`config.log' for more details." >&2;}
  1538. { (exit 77); exit 77; }; }
  1539. fi
  1540. ac_exeext=$ac_cv_exeext
  1541. echo "$as_me:$LINENO: result: $ac_file" >&5
  1542. echo "${ECHO_T}$ac_file" >&6
  1543. # Check the compiler produces executables we can run. If not, either
  1544. # the compiler is broken, or we cross compile.
  1545. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1546. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1547. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1548. # If not cross compiling, check that we can run a simple program.
  1549. if test "$cross_compiling" != yes; then
  1550. if { ac_try='./$ac_file'
  1551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1552. (eval $ac_try) 2>&5
  1553. ac_status=$?
  1554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1555. (exit $ac_status); }; }; then
  1556. cross_compiling=no
  1557. else
  1558. if test "$cross_compiling" = maybe; then
  1559. cross_compiling=yes
  1560. else
  1561. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1562. If you meant to cross compile, use \`--host'.
  1563. See \`config.log' for more details." >&5
  1564. echo "$as_me: error: cannot run C compiled programs.
  1565. If you meant to cross compile, use \`--host'.
  1566. See \`config.log' for more details." >&2;}
  1567. { (exit 1); exit 1; }; }
  1568. fi
  1569. fi
  1570. fi
  1571. echo "$as_me:$LINENO: result: yes" >&5
  1572. echo "${ECHO_T}yes" >&6
  1573. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1574. ac_clean_files=$ac_clean_files_save
  1575. # Check the compiler produces executables we can run. If not, either
  1576. # the compiler is broken, or we cross compile.
  1577. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1578. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1579. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1580. echo "${ECHO_T}$cross_compiling" >&6
  1581. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1582. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1583. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1584. (eval $ac_link) 2>&5
  1585. ac_status=$?
  1586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1587. (exit $ac_status); }; then
  1588. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1589. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1590. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1591. # `rm'.
  1592. for ac_file in conftest.exe conftest conftest.*; do
  1593. test -f "$ac_file" || continue
  1594. case $ac_file in
  1595. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1596. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1597. export ac_cv_exeext
  1598. break;;
  1599. * ) break;;
  1600. esac
  1601. done
  1602. else
  1603. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1604. See \`config.log' for more details." >&5
  1605. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1606. See \`config.log' for more details." >&2;}
  1607. { (exit 1); exit 1; }; }
  1608. fi
  1609. rm -f conftest$ac_cv_exeext
  1610. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1611. echo "${ECHO_T}$ac_cv_exeext" >&6
  1612. rm -f conftest.$ac_ext
  1613. EXEEXT=$ac_cv_exeext
  1614. ac_exeext=$EXEEXT
  1615. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1616. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1617. if test "${ac_cv_objext+set}" = set; then
  1618. echo $ECHO_N "(cached) $ECHO_C" >&6
  1619. else
  1620. cat >conftest.$ac_ext <<_ACEOF
  1621. /* confdefs.h. */
  1622. _ACEOF
  1623. cat confdefs.h >>conftest.$ac_ext
  1624. cat >>conftest.$ac_ext <<_ACEOF
  1625. /* end confdefs.h. */
  1626. int
  1627. main ()
  1628. {
  1629. ;
  1630. return 0;
  1631. }
  1632. _ACEOF
  1633. rm -f conftest.o conftest.obj
  1634. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1635. (eval $ac_compile) 2>&5
  1636. ac_status=$?
  1637. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1638. (exit $ac_status); }; then
  1639. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1640. case $ac_file in
  1641. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1642. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1643. break;;
  1644. esac
  1645. done
  1646. else
  1647. echo "$as_me: failed program was:" >&5
  1648. sed 's/^/| /' conftest.$ac_ext >&5
  1649. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1650. See \`config.log' for more details." >&5
  1651. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1652. See \`config.log' for more details." >&2;}
  1653. { (exit 1); exit 1; }; }
  1654. fi
  1655. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1656. fi
  1657. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1658. echo "${ECHO_T}$ac_cv_objext" >&6
  1659. OBJEXT=$ac_cv_objext
  1660. ac_objext=$OBJEXT
  1661. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1662. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1663. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1664. echo $ECHO_N "(cached) $ECHO_C" >&6
  1665. else
  1666. cat >conftest.$ac_ext <<_ACEOF
  1667. /* confdefs.h. */
  1668. _ACEOF
  1669. cat confdefs.h >>conftest.$ac_ext
  1670. cat >>conftest.$ac_ext <<_ACEOF
  1671. /* end confdefs.h. */
  1672. int
  1673. main ()
  1674. {
  1675. #ifndef __GNUC__
  1676. choke me
  1677. #endif
  1678. ;
  1679. return 0;
  1680. }
  1681. _ACEOF
  1682. rm -f conftest.$ac_objext
  1683. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1684. (eval $ac_compile) 2>conftest.er1
  1685. ac_status=$?
  1686. grep -v '^ *+' conftest.er1 >conftest.err
  1687. rm -f conftest.er1
  1688. cat conftest.err >&5
  1689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1690. (exit $ac_status); } &&
  1691. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1693. (eval $ac_try) 2>&5
  1694. ac_status=$?
  1695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1696. (exit $ac_status); }; } &&
  1697. { ac_try='test -s conftest.$ac_objext'
  1698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1699. (eval $ac_try) 2>&5
  1700. ac_status=$?
  1701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1702. (exit $ac_status); }; }; then
  1703. ac_compiler_gnu=yes
  1704. else
  1705. echo "$as_me: failed program was:" >&5
  1706. sed 's/^/| /' conftest.$ac_ext >&5
  1707. ac_compiler_gnu=no
  1708. fi
  1709. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1710. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1711. fi
  1712. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1713. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1714. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1715. ac_test_CFLAGS=${CFLAGS+set}
  1716. ac_save_CFLAGS=$CFLAGS
  1717. CFLAGS="-g"
  1718. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1719. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1720. if test "${ac_cv_prog_cc_g+set}" = set; then
  1721. echo $ECHO_N "(cached) $ECHO_C" >&6
  1722. else
  1723. cat >conftest.$ac_ext <<_ACEOF
  1724. /* confdefs.h. */
  1725. _ACEOF
  1726. cat confdefs.h >>conftest.$ac_ext
  1727. cat >>conftest.$ac_ext <<_ACEOF
  1728. /* end confdefs.h. */
  1729. int
  1730. main ()
  1731. {
  1732. ;
  1733. return 0;
  1734. }
  1735. _ACEOF
  1736. rm -f conftest.$ac_objext
  1737. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1738. (eval $ac_compile) 2>conftest.er1
  1739. ac_status=$?
  1740. grep -v '^ *+' conftest.er1 >conftest.err
  1741. rm -f conftest.er1
  1742. cat conftest.err >&5
  1743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1744. (exit $ac_status); } &&
  1745. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1747. (eval $ac_try) 2>&5
  1748. ac_status=$?
  1749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1750. (exit $ac_status); }; } &&
  1751. { ac_try='test -s conftest.$ac_objext'
  1752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1753. (eval $ac_try) 2>&5
  1754. ac_status=$?
  1755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1756. (exit $ac_status); }; }; then
  1757. ac_cv_prog_cc_g=yes
  1758. else
  1759. echo "$as_me: failed program was:" >&5
  1760. sed 's/^/| /' conftest.$ac_ext >&5
  1761. ac_cv_prog_cc_g=no
  1762. fi
  1763. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1764. fi
  1765. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1766. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1767. if test "$ac_test_CFLAGS" = set; then
  1768. CFLAGS=$ac_save_CFLAGS
  1769. elif test $ac_cv_prog_cc_g = yes; then
  1770. if test "$GCC" = yes; then
  1771. CFLAGS="-g -O2"
  1772. else
  1773. CFLAGS="-g"
  1774. fi
  1775. else
  1776. if test "$GCC" = yes; then
  1777. CFLAGS="-O2"
  1778. else
  1779. CFLAGS=
  1780. fi
  1781. fi
  1782. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1783. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1784. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1785. echo $ECHO_N "(cached) $ECHO_C" >&6
  1786. else
  1787. ac_cv_prog_cc_stdc=no
  1788. ac_save_CC=$CC
  1789. cat >conftest.$ac_ext <<_ACEOF
  1790. /* confdefs.h. */
  1791. _ACEOF
  1792. cat confdefs.h >>conftest.$ac_ext
  1793. cat >>conftest.$ac_ext <<_ACEOF
  1794. /* end confdefs.h. */
  1795. #include <stdarg.h>
  1796. #include <stdio.h>
  1797. #include <sys/types.h>
  1798. #include <sys/stat.h>
  1799. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1800. struct buf { int x; };
  1801. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1802. static char *e (p, i)
  1803. char **p;
  1804. int i;
  1805. {
  1806. return p[i];
  1807. }
  1808. static char *f (char * (*g) (char **, int), char **p, ...)
  1809. {
  1810. char *s;
  1811. va_list v;
  1812. va_start (v,p);
  1813. s = g (p, va_arg (v,int));
  1814. va_end (v);
  1815. return s;
  1816. }
  1817. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1818. function prototypes and stuff, but not '\xHH' hex character constants.
  1819. These don't provoke an error unfortunately, instead are silently treated
  1820. as 'x'. The following induces an error, until -std1 is added to get
  1821. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1822. array size at least. It's necessary to write '\x00'==0 to get something
  1823. that's true only with -std1. */
  1824. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1825. int test (int i, double x);
  1826. struct s1 {int (*f) (int a);};
  1827. struct s2 {int (*f) (double a);};
  1828. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1829. int argc;
  1830. char **argv;
  1831. int
  1832. main ()
  1833. {
  1834. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1835. ;
  1836. return 0;
  1837. }
  1838. _ACEOF
  1839. # Don't try gcc -ansi; that turns off useful extensions and
  1840. # breaks some systems' header files.
  1841. # AIX -qlanglvl=ansi
  1842. # Ultrix and OSF/1 -std1
  1843. # HP-UX 10.20 and later -Ae
  1844. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1845. # SVR4 -Xc -D__EXTENSIONS__
  1846. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1847. do
  1848. CC="$ac_save_CC $ac_arg"
  1849. rm -f conftest.$ac_objext
  1850. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1851. (eval $ac_compile) 2>conftest.er1
  1852. ac_status=$?
  1853. grep -v '^ *+' conftest.er1 >conftest.err
  1854. rm -f conftest.er1
  1855. cat conftest.err >&5
  1856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1857. (exit $ac_status); } &&
  1858. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1860. (eval $ac_try) 2>&5
  1861. ac_status=$?
  1862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1863. (exit $ac_status); }; } &&
  1864. { ac_try='test -s conftest.$ac_objext'
  1865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1866. (eval $ac_try) 2>&5
  1867. ac_status=$?
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); }; }; then
  1870. ac_cv_prog_cc_stdc=$ac_arg
  1871. break
  1872. else
  1873. echo "$as_me: failed program was:" >&5
  1874. sed 's/^/| /' conftest.$ac_ext >&5
  1875. fi
  1876. rm -f conftest.err conftest.$ac_objext
  1877. done
  1878. rm -f conftest.$ac_ext conftest.$ac_objext
  1879. CC=$ac_save_CC
  1880. fi
  1881. case "x$ac_cv_prog_cc_stdc" in
  1882. x|xno)
  1883. echo "$as_me:$LINENO: result: none needed" >&5
  1884. echo "${ECHO_T}none needed" >&6 ;;
  1885. *)
  1886. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1887. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1888. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1889. esac
  1890. # Some people use a C++ compiler to compile C. Since we use `exit',
  1891. # in C++ we need to declare it. In case someone uses the same compiler
  1892. # for both compiling C and C++ we need to have the C++ compiler decide
  1893. # the declaration of exit, since it's the most demanding environment.
  1894. cat >conftest.$ac_ext <<_ACEOF
  1895. #ifndef __cplusplus
  1896. choke me
  1897. #endif
  1898. _ACEOF
  1899. rm -f conftest.$ac_objext
  1900. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1901. (eval $ac_compile) 2>conftest.er1
  1902. ac_status=$?
  1903. grep -v '^ *+' conftest.er1 >conftest.err
  1904. rm -f conftest.er1
  1905. cat conftest.err >&5
  1906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1907. (exit $ac_status); } &&
  1908. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1910. (eval $ac_try) 2>&5
  1911. ac_status=$?
  1912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1913. (exit $ac_status); }; } &&
  1914. { ac_try='test -s conftest.$ac_objext'
  1915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1916. (eval $ac_try) 2>&5
  1917. ac_status=$?
  1918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1919. (exit $ac_status); }; }; then
  1920. for ac_declaration in \
  1921. '' \
  1922. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1923. 'extern "C" void std::exit (int); using std::exit;' \
  1924. 'extern "C" void exit (int) throw ();' \
  1925. 'extern "C" void exit (int);' \
  1926. 'void exit (int);'
  1927. do
  1928. cat >conftest.$ac_ext <<_ACEOF
  1929. /* confdefs.h. */
  1930. _ACEOF
  1931. cat confdefs.h >>conftest.$ac_ext
  1932. cat >>conftest.$ac_ext <<_ACEOF
  1933. /* end confdefs.h. */
  1934. $ac_declaration
  1935. #include <stdlib.h>
  1936. int
  1937. main ()
  1938. {
  1939. exit (42);
  1940. ;
  1941. return 0;
  1942. }
  1943. _ACEOF
  1944. rm -f conftest.$ac_objext
  1945. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1946. (eval $ac_compile) 2>conftest.er1
  1947. ac_status=$?
  1948. grep -v '^ *+' conftest.er1 >conftest.err
  1949. rm -f conftest.er1
  1950. cat conftest.err >&5
  1951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1952. (exit $ac_status); } &&
  1953. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1955. (eval $ac_try) 2>&5
  1956. ac_status=$?
  1957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1958. (exit $ac_status); }; } &&
  1959. { ac_try='test -s conftest.$ac_objext'
  1960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1961. (eval $ac_try) 2>&5
  1962. ac_status=$?
  1963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1964. (exit $ac_status); }; }; then
  1965. :
  1966. else
  1967. echo "$as_me: failed program was:" >&5
  1968. sed 's/^/| /' conftest.$ac_ext >&5
  1969. continue
  1970. fi
  1971. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1972. cat >conftest.$ac_ext <<_ACEOF
  1973. /* confdefs.h. */
  1974. _ACEOF
  1975. cat confdefs.h >>conftest.$ac_ext
  1976. cat >>conftest.$ac_ext <<_ACEOF
  1977. /* end confdefs.h. */
  1978. $ac_declaration
  1979. int
  1980. main ()
  1981. {
  1982. exit (42);
  1983. ;
  1984. return 0;
  1985. }
  1986. _ACEOF
  1987. rm -f conftest.$ac_objext
  1988. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1989. (eval $ac_compile) 2>conftest.er1
  1990. ac_status=$?
  1991. grep -v '^ *+' conftest.er1 >conftest.err
  1992. rm -f conftest.er1
  1993. cat conftest.err >&5
  1994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1995. (exit $ac_status); } &&
  1996. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1997. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1998. (eval $ac_try) 2>&5
  1999. ac_status=$?
  2000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2001. (exit $ac_status); }; } &&
  2002. { ac_try='test -s conftest.$ac_objext'
  2003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2004. (eval $ac_try) 2>&5
  2005. ac_status=$?
  2006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2007. (exit $ac_status); }; }; then
  2008. break
  2009. else
  2010. echo "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. fi
  2013. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2014. done
  2015. rm -f conftest*
  2016. if test -n "$ac_declaration"; then
  2017. echo '#ifdef __cplusplus' >>confdefs.h
  2018. echo $ac_declaration >>confdefs.h
  2019. echo '#endif' >>confdefs.h
  2020. fi
  2021. else
  2022. echo "$as_me: failed program was:" >&5
  2023. sed 's/^/| /' conftest.$ac_ext >&5
  2024. fi
  2025. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2026. ac_ext=c
  2027. ac_cpp='$CPP $CPPFLAGS'
  2028. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2029. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2030. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2031. if test "${cross_compiling-x}" = "x"
  2032. then
  2033. cat << 'EOF' >&2
  2034. configure: error:
  2035. This system does not appear to have a working C compiler.
  2036. A working C compiler is required to compile Eggdrop.
  2037. EOF
  2038. exit 1
  2039. fi
  2040. # Crazy machines
  2041. ac_ext=c
  2042. ac_cpp='$CPP $CPPFLAGS'
  2043. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2044. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2045. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2046. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2047. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2048. # On Suns, sometimes $CPP names a directory.
  2049. if test -n "$CPP" && test -d "$CPP"; then
  2050. CPP=
  2051. fi
  2052. if test -z "$CPP"; then
  2053. if test "${ac_cv_prog_CPP+set}" = set; then
  2054. echo $ECHO_N "(cached) $ECHO_C" >&6
  2055. else
  2056. # Double quotes because CPP needs to be expanded
  2057. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2058. do
  2059. ac_preproc_ok=false
  2060. for ac_c_preproc_warn_flag in '' yes
  2061. do
  2062. # Use a header file that comes with gcc, so configuring glibc
  2063. # with a fresh cross-compiler works.
  2064. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2065. # <limits.h> exists even on freestanding compilers.
  2066. # On the NeXT, cc -E runs the code through the compiler's parser,
  2067. # not just through cpp. "Syntax error" is here to catch this case.
  2068. cat >conftest.$ac_ext <<_ACEOF
  2069. /* confdefs.h. */
  2070. _ACEOF
  2071. cat confdefs.h >>conftest.$ac_ext
  2072. cat >>conftest.$ac_ext <<_ACEOF
  2073. /* end confdefs.h. */
  2074. #ifdef __STDC__
  2075. # include <limits.h>
  2076. #else
  2077. # include <assert.h>
  2078. #endif
  2079. Syntax error
  2080. _ACEOF
  2081. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2082. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2083. ac_status=$?
  2084. grep -v '^ *+' conftest.er1 >conftest.err
  2085. rm -f conftest.er1
  2086. cat conftest.err >&5
  2087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2088. (exit $ac_status); } >/dev/null; then
  2089. if test -s conftest.err; then
  2090. ac_cpp_err=$ac_c_preproc_warn_flag
  2091. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2092. else
  2093. ac_cpp_err=
  2094. fi
  2095. else
  2096. ac_cpp_err=yes
  2097. fi
  2098. if test -z "$ac_cpp_err"; then
  2099. :
  2100. else
  2101. echo "$as_me: failed program was:" >&5
  2102. sed 's/^/| /' conftest.$ac_ext >&5
  2103. # Broken: fails on valid input.
  2104. continue
  2105. fi
  2106. rm -f conftest.err conftest.$ac_ext
  2107. # OK, works on sane cases. Now check whether non-existent headers
  2108. # can be detected and how.
  2109. cat >conftest.$ac_ext <<_ACEOF
  2110. /* confdefs.h. */
  2111. _ACEOF
  2112. cat confdefs.h >>conftest.$ac_ext
  2113. cat >>conftest.$ac_ext <<_ACEOF
  2114. /* end confdefs.h. */
  2115. #include <ac_nonexistent.h>
  2116. _ACEOF
  2117. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2118. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2119. ac_status=$?
  2120. grep -v '^ *+' conftest.er1 >conftest.err
  2121. rm -f conftest.er1
  2122. cat conftest.err >&5
  2123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2124. (exit $ac_status); } >/dev/null; then
  2125. if test -s conftest.err; then
  2126. ac_cpp_err=$ac_c_preproc_warn_flag
  2127. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2128. else
  2129. ac_cpp_err=
  2130. fi
  2131. else
  2132. ac_cpp_err=yes
  2133. fi
  2134. if test -z "$ac_cpp_err"; then
  2135. # Broken: success on invalid input.
  2136. continue
  2137. else
  2138. echo "$as_me: failed program was:" >&5
  2139. sed 's/^/| /' conftest.$ac_ext >&5
  2140. # Passes both tests.
  2141. ac_preproc_ok=:
  2142. break
  2143. fi
  2144. rm -f conftest.err conftest.$ac_ext
  2145. done
  2146. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2147. rm -f conftest.err conftest.$ac_ext
  2148. if $ac_preproc_ok; then
  2149. break
  2150. fi
  2151. done
  2152. ac_cv_prog_CPP=$CPP
  2153. fi
  2154. CPP=$ac_cv_prog_CPP
  2155. else
  2156. ac_cv_prog_CPP=$CPP
  2157. fi
  2158. echo "$as_me:$LINENO: result: $CPP" >&5
  2159. echo "${ECHO_T}$CPP" >&6
  2160. ac_preproc_ok=false
  2161. for ac_c_preproc_warn_flag in '' yes
  2162. do
  2163. # Use a header file that comes with gcc, so configuring glibc
  2164. # with a fresh cross-compiler works.
  2165. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2166. # <limits.h> exists even on freestanding compilers.
  2167. # On the NeXT, cc -E runs the code through the compiler's parser,
  2168. # not just through cpp. "Syntax error" is here to catch this case.
  2169. cat >conftest.$ac_ext <<_ACEOF
  2170. /* confdefs.h. */
  2171. _ACEOF
  2172. cat confdefs.h >>conftest.$ac_ext
  2173. cat >>conftest.$ac_ext <<_ACEOF
  2174. /* end confdefs.h. */
  2175. #ifdef __STDC__
  2176. # include <limits.h>
  2177. #else
  2178. # include <assert.h>
  2179. #endif
  2180. Syntax error
  2181. _ACEOF
  2182. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2183. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2184. ac_status=$?
  2185. grep -v '^ *+' conftest.er1 >conftest.err
  2186. rm -f conftest.er1
  2187. cat conftest.err >&5
  2188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2189. (exit $ac_status); } >/dev/null; then
  2190. if test -s conftest.err; then
  2191. ac_cpp_err=$ac_c_preproc_warn_flag
  2192. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2193. else
  2194. ac_cpp_err=
  2195. fi
  2196. else
  2197. ac_cpp_err=yes
  2198. fi
  2199. if test -z "$ac_cpp_err"; then
  2200. :
  2201. else
  2202. echo "$as_me: failed program was:" >&5
  2203. sed 's/^/| /' conftest.$ac_ext >&5
  2204. # Broken: fails on valid input.
  2205. continue
  2206. fi
  2207. rm -f conftest.err conftest.$ac_ext
  2208. # OK, works on sane cases. Now check whether non-existent headers
  2209. # can be detected and how.
  2210. cat >conftest.$ac_ext <<_ACEOF
  2211. /* confdefs.h. */
  2212. _ACEOF
  2213. cat confdefs.h >>conftest.$ac_ext
  2214. cat >>conftest.$ac_ext <<_ACEOF
  2215. /* end confdefs.h. */
  2216. #include <ac_nonexistent.h>
  2217. _ACEOF
  2218. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2219. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2220. ac_status=$?
  2221. grep -v '^ *+' conftest.er1 >conftest.err
  2222. rm -f conftest.er1
  2223. cat conftest.err >&5
  2224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2225. (exit $ac_status); } >/dev/null; then
  2226. if test -s conftest.err; then
  2227. ac_cpp_err=$ac_c_preproc_warn_flag
  2228. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2229. else
  2230. ac_cpp_err=
  2231. fi
  2232. else
  2233. ac_cpp_err=yes
  2234. fi
  2235. if test -z "$ac_cpp_err"; then
  2236. # Broken: success on invalid input.
  2237. continue
  2238. else
  2239. echo "$as_me: failed program was:" >&5
  2240. sed 's/^/| /' conftest.$ac_ext >&5
  2241. # Passes both tests.
  2242. ac_preproc_ok=:
  2243. break
  2244. fi
  2245. rm -f conftest.err conftest.$ac_ext
  2246. done
  2247. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2248. rm -f conftest.err conftest.$ac_ext
  2249. if $ac_preproc_ok; then
  2250. :
  2251. else
  2252. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2253. See \`config.log' for more details." >&5
  2254. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2255. See \`config.log' for more details." >&2;}
  2256. { (exit 1); exit 1; }; }
  2257. fi
  2258. ac_ext=c
  2259. ac_cpp='$CPP $CPPFLAGS'
  2260. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2261. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2262. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2263. echo "$as_me:$LINENO: checking for egrep" >&5
  2264. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2265. if test "${ac_cv_prog_egrep+set}" = set; then
  2266. echo $ECHO_N "(cached) $ECHO_C" >&6
  2267. else
  2268. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2269. then ac_cv_prog_egrep='grep -E'
  2270. else ac_cv_prog_egrep='egrep'
  2271. fi
  2272. fi
  2273. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2274. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2275. EGREP=$ac_cv_prog_egrep
  2276. echo "$as_me:$LINENO: checking for AIX" >&5
  2277. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2278. cat >conftest.$ac_ext <<_ACEOF
  2279. /* confdefs.h. */
  2280. _ACEOF
  2281. cat confdefs.h >>conftest.$ac_ext
  2282. cat >>conftest.$ac_ext <<_ACEOF
  2283. /* end confdefs.h. */
  2284. #ifdef _AIX
  2285. yes
  2286. #endif
  2287. _ACEOF
  2288. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2289. $EGREP "yes" >/dev/null 2>&1; then
  2290. echo "$as_me:$LINENO: result: yes" >&5
  2291. echo "${ECHO_T}yes" >&6
  2292. cat >>confdefs.h <<\_ACEOF
  2293. #define _ALL_SOURCE 1
  2294. _ACEOF
  2295. else
  2296. echo "$as_me:$LINENO: result: no" >&5
  2297. echo "${ECHO_T}no" >&6
  2298. fi
  2299. rm -f conftest*
  2300. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2301. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2302. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2303. echo $ECHO_N "(cached) $ECHO_C" >&6
  2304. else
  2305. ac_check_lib_save_LIBS=$LIBS
  2306. LIBS="-lcposix $LIBS"
  2307. cat >conftest.$ac_ext <<_ACEOF
  2308. /* confdefs.h. */
  2309. _ACEOF
  2310. cat confdefs.h >>conftest.$ac_ext
  2311. cat >>conftest.$ac_ext <<_ACEOF
  2312. /* end confdefs.h. */
  2313. /* Override any gcc2 internal prototype to avoid an error. */
  2314. #ifdef __cplusplus
  2315. extern "C"
  2316. #endif
  2317. /* We use char because int might match the return type of a gcc2
  2318. builtin and then its argument prototype would still apply. */
  2319. char strerror ();
  2320. int
  2321. main ()
  2322. {
  2323. strerror ();
  2324. ;
  2325. return 0;
  2326. }
  2327. _ACEOF
  2328. rm -f conftest.$ac_objext conftest$ac_exeext
  2329. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2330. (eval $ac_link) 2>conftest.er1
  2331. ac_status=$?
  2332. grep -v '^ *+' conftest.er1 >conftest.err
  2333. rm -f conftest.er1
  2334. cat conftest.err >&5
  2335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2336. (exit $ac_status); } &&
  2337. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2338. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2339. (eval $ac_try) 2>&5
  2340. ac_status=$?
  2341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2342. (exit $ac_status); }; } &&
  2343. { ac_try='test -s conftest$ac_exeext'
  2344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2345. (eval $ac_try) 2>&5
  2346. ac_status=$?
  2347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2348. (exit $ac_status); }; }; then
  2349. ac_cv_lib_cposix_strerror=yes
  2350. else
  2351. echo "$as_me: failed program was:" >&5
  2352. sed 's/^/| /' conftest.$ac_ext >&5
  2353. ac_cv_lib_cposix_strerror=no
  2354. fi
  2355. rm -f conftest.err conftest.$ac_objext \
  2356. conftest$ac_exeext conftest.$ac_ext
  2357. LIBS=$ac_check_lib_save_LIBS
  2358. fi
  2359. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2360. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2361. if test $ac_cv_lib_cposix_strerror = yes; then
  2362. LIBS="$LIBS -lcposix"
  2363. fi
  2364. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2365. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2366. if test "${ac_cv_header_stdc+set}" = set; then
  2367. echo $ECHO_N "(cached) $ECHO_C" >&6
  2368. else
  2369. cat >conftest.$ac_ext <<_ACEOF
  2370. /* confdefs.h. */
  2371. _ACEOF
  2372. cat confdefs.h >>conftest.$ac_ext
  2373. cat >>conftest.$ac_ext <<_ACEOF
  2374. /* end confdefs.h. */
  2375. #include <stdlib.h>
  2376. #include <stdarg.h>
  2377. #include <string.h>
  2378. #include <float.h>
  2379. int
  2380. main ()
  2381. {
  2382. ;
  2383. return 0;
  2384. }
  2385. _ACEOF
  2386. rm -f conftest.$ac_objext
  2387. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2388. (eval $ac_compile) 2>conftest.er1
  2389. ac_status=$?
  2390. grep -v '^ *+' conftest.er1 >conftest.err
  2391. rm -f conftest.er1
  2392. cat conftest.err >&5
  2393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2394. (exit $ac_status); } &&
  2395. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2397. (eval $ac_try) 2>&5
  2398. ac_status=$?
  2399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2400. (exit $ac_status); }; } &&
  2401. { ac_try='test -s conftest.$ac_objext'
  2402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2403. (eval $ac_try) 2>&5
  2404. ac_status=$?
  2405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2406. (exit $ac_status); }; }; then
  2407. ac_cv_header_stdc=yes
  2408. else
  2409. echo "$as_me: failed program was:" >&5
  2410. sed 's/^/| /' conftest.$ac_ext >&5
  2411. ac_cv_header_stdc=no
  2412. fi
  2413. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2414. if test $ac_cv_header_stdc = yes; then
  2415. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2416. cat >conftest.$ac_ext <<_ACEOF
  2417. /* confdefs.h. */
  2418. _ACEOF
  2419. cat confdefs.h >>conftest.$ac_ext
  2420. cat >>conftest.$ac_ext <<_ACEOF
  2421. /* end confdefs.h. */
  2422. #include <string.h>
  2423. _ACEOF
  2424. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2425. $EGREP "memchr" >/dev/null 2>&1; then
  2426. :
  2427. else
  2428. ac_cv_header_stdc=no
  2429. fi
  2430. rm -f conftest*
  2431. fi
  2432. if test $ac_cv_header_stdc = yes; then
  2433. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2434. cat >conftest.$ac_ext <<_ACEOF
  2435. /* confdefs.h. */
  2436. _ACEOF
  2437. cat confdefs.h >>conftest.$ac_ext
  2438. cat >>conftest.$ac_ext <<_ACEOF
  2439. /* end confdefs.h. */
  2440. #include <stdlib.h>
  2441. _ACEOF
  2442. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2443. $EGREP "free" >/dev/null 2>&1; then
  2444. :
  2445. else
  2446. ac_cv_header_stdc=no
  2447. fi
  2448. rm -f conftest*
  2449. fi
  2450. if test $ac_cv_header_stdc = yes; then
  2451. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2452. if test "$cross_compiling" = yes; then
  2453. :
  2454. else
  2455. cat >conftest.$ac_ext <<_ACEOF
  2456. /* confdefs.h. */
  2457. _ACEOF
  2458. cat confdefs.h >>conftest.$ac_ext
  2459. cat >>conftest.$ac_ext <<_ACEOF
  2460. /* end confdefs.h. */
  2461. #include <ctype.h>
  2462. #if ((' ' & 0x0FF) == 0x020)
  2463. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2464. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2465. #else
  2466. # define ISLOWER(c) \
  2467. (('a' <= (c) && (c) <= 'i') \
  2468. || ('j' <= (c) && (c) <= 'r') \
  2469. || ('s' <= (c) && (c) <= 'z'))
  2470. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2471. #endif
  2472. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2473. int
  2474. main ()
  2475. {
  2476. int i;
  2477. for (i = 0; i < 256; i++)
  2478. if (XOR (islower (i), ISLOWER (i))
  2479. || toupper (i) != TOUPPER (i))
  2480. exit(2);
  2481. exit (0);
  2482. }
  2483. _ACEOF
  2484. rm -f conftest$ac_exeext
  2485. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2486. (eval $ac_link) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2490. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2491. (eval $ac_try) 2>&5
  2492. ac_status=$?
  2493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2494. (exit $ac_status); }; }; then
  2495. :
  2496. else
  2497. echo "$as_me: program exited with status $ac_status" >&5
  2498. echo "$as_me: failed program was:" >&5
  2499. sed 's/^/| /' conftest.$ac_ext >&5
  2500. ( exit $ac_status )
  2501. ac_cv_header_stdc=no
  2502. fi
  2503. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2504. fi
  2505. fi
  2506. fi
  2507. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2508. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2509. if test $ac_cv_header_stdc = yes; then
  2510. cat >>confdefs.h <<\_ACEOF
  2511. #define STDC_HEADERS 1
  2512. _ACEOF
  2513. fi
  2514. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2515. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2516. inttypes.h stdint.h unistd.h
  2517. do
  2518. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2519. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2520. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2521. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2522. echo $ECHO_N "(cached) $ECHO_C" >&6
  2523. else
  2524. cat >conftest.$ac_ext <<_ACEOF
  2525. /* confdefs.h. */
  2526. _ACEOF
  2527. cat confdefs.h >>conftest.$ac_ext
  2528. cat >>conftest.$ac_ext <<_ACEOF
  2529. /* end confdefs.h. */
  2530. $ac_includes_default
  2531. #include <$ac_header>
  2532. _ACEOF
  2533. rm -f conftest.$ac_objext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2535. (eval $ac_compile) 2>conftest.er1
  2536. ac_status=$?
  2537. grep -v '^ *+' conftest.er1 >conftest.err
  2538. rm -f conftest.er1
  2539. cat conftest.err >&5
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); } &&
  2542. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2544. (eval $ac_try) 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }; } &&
  2548. { ac_try='test -s conftest.$ac_objext'
  2549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2550. (eval $ac_try) 2>&5
  2551. ac_status=$?
  2552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2553. (exit $ac_status); }; }; then
  2554. eval "$as_ac_Header=yes"
  2555. else
  2556. echo "$as_me: failed program was:" >&5
  2557. sed 's/^/| /' conftest.$ac_ext >&5
  2558. eval "$as_ac_Header=no"
  2559. fi
  2560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2561. fi
  2562. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2563. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2564. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2565. cat >>confdefs.h <<_ACEOF
  2566. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2567. _ACEOF
  2568. fi
  2569. done
  2570. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2571. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2572. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2573. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2574. echo $ECHO_N "(cached) $ECHO_C" >&6
  2575. fi
  2576. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2577. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2578. else
  2579. # Is the header compilable?
  2580. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2581. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2582. cat >conftest.$ac_ext <<_ACEOF
  2583. /* confdefs.h. */
  2584. _ACEOF
  2585. cat confdefs.h >>conftest.$ac_ext
  2586. cat >>conftest.$ac_ext <<_ACEOF
  2587. /* end confdefs.h. */
  2588. $ac_includes_default
  2589. #include <minix/config.h>
  2590. _ACEOF
  2591. rm -f conftest.$ac_objext
  2592. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2593. (eval $ac_compile) 2>conftest.er1
  2594. ac_status=$?
  2595. grep -v '^ *+' conftest.er1 >conftest.err
  2596. rm -f conftest.er1
  2597. cat conftest.err >&5
  2598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2599. (exit $ac_status); } &&
  2600. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2601. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2602. (eval $ac_try) 2>&5
  2603. ac_status=$?
  2604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2605. (exit $ac_status); }; } &&
  2606. { ac_try='test -s conftest.$ac_objext'
  2607. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2608. (eval $ac_try) 2>&5
  2609. ac_status=$?
  2610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2611. (exit $ac_status); }; }; then
  2612. ac_header_compiler=yes
  2613. else
  2614. echo "$as_me: failed program was:" >&5
  2615. sed 's/^/| /' conftest.$ac_ext >&5
  2616. ac_header_compiler=no
  2617. fi
  2618. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2619. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2620. echo "${ECHO_T}$ac_header_compiler" >&6
  2621. # Is the header present?
  2622. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2623. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2624. cat >conftest.$ac_ext <<_ACEOF
  2625. /* confdefs.h. */
  2626. _ACEOF
  2627. cat confdefs.h >>conftest.$ac_ext
  2628. cat >>conftest.$ac_ext <<_ACEOF
  2629. /* end confdefs.h. */
  2630. #include <minix/config.h>
  2631. _ACEOF
  2632. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2633. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2634. ac_status=$?
  2635. grep -v '^ *+' conftest.er1 >conftest.err
  2636. rm -f conftest.er1
  2637. cat conftest.err >&5
  2638. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2639. (exit $ac_status); } >/dev/null; then
  2640. if test -s conftest.err; then
  2641. ac_cpp_err=$ac_c_preproc_warn_flag
  2642. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2643. else
  2644. ac_cpp_err=
  2645. fi
  2646. else
  2647. ac_cpp_err=yes
  2648. fi
  2649. if test -z "$ac_cpp_err"; then
  2650. ac_header_preproc=yes
  2651. else
  2652. echo "$as_me: failed program was:" >&5
  2653. sed 's/^/| /' conftest.$ac_ext >&5
  2654. ac_header_preproc=no
  2655. fi
  2656. rm -f conftest.err conftest.$ac_ext
  2657. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2658. echo "${ECHO_T}$ac_header_preproc" >&6
  2659. # So? What about this header?
  2660. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2661. yes:no: )
  2662. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2663. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2665. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2666. ac_header_preproc=yes
  2667. ;;
  2668. no:yes:* )
  2669. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2670. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2671. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2672. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2673. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2674. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2675. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2676. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2677. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2678. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2679. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2680. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2681. (
  2682. cat <<\_ASBOX
  2683. ## ------------------------------------------ ##
  2684. ## Report this to the AC_PACKAGE_NAME lists. ##
  2685. ## ------------------------------------------ ##
  2686. _ASBOX
  2687. ) |
  2688. sed "s/^/$as_me: WARNING: /" >&2
  2689. ;;
  2690. esac
  2691. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2692. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2693. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2694. echo $ECHO_N "(cached) $ECHO_C" >&6
  2695. else
  2696. ac_cv_header_minix_config_h=$ac_header_preproc
  2697. fi
  2698. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2699. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2700. fi
  2701. if test $ac_cv_header_minix_config_h = yes; then
  2702. MINIX=yes
  2703. else
  2704. MINIX=
  2705. fi
  2706. if test "$MINIX" = yes; then
  2707. cat >>confdefs.h <<\_ACEOF
  2708. #define _POSIX_SOURCE 1
  2709. _ACEOF
  2710. cat >>confdefs.h <<\_ACEOF
  2711. #define _POSIX_1_SOURCE 2
  2712. _ACEOF
  2713. cat >>confdefs.h <<\_ACEOF
  2714. #define _MINIX 1
  2715. _ACEOF
  2716. fi
  2717. #checkpoint
  2718. cat >confcache <<\_ACEOF
  2719. # This file is a shell script that caches the results of configure
  2720. # tests run on this system so they can be shared between configure
  2721. # scripts and configure runs, see configure's option --config-cache.
  2722. # It is not useful on other systems. If it contains results you don't
  2723. # want to keep, you may remove or edit it.
  2724. #
  2725. # config.status only pays attention to the cache file if you give it
  2726. # the --recheck option to rerun configure.
  2727. #
  2728. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2729. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2730. # following values.
  2731. _ACEOF
  2732. # The following way of writing the cache mishandles newlines in values,
  2733. # but we know of no workaround that is simple, portable, and efficient.
  2734. # So, don't put newlines in cache variables' values.
  2735. # Ultrix sh set writes to stderr and can't be redirected directly,
  2736. # and sets the high bit in the cache file unless we assign to the vars.
  2737. {
  2738. (set) 2>&1 |
  2739. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2740. *ac_space=\ *)
  2741. # `set' does not quote correctly, so add quotes (double-quote
  2742. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2743. sed -n \
  2744. "s/'/'\\\\''/g;
  2745. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2746. ;;
  2747. *)
  2748. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2749. sed -n \
  2750. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2751. ;;
  2752. esac;
  2753. } |
  2754. sed '
  2755. t clear
  2756. : clear
  2757. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2758. t end
  2759. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2760. : end' >>confcache
  2761. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2762. if test -w $cache_file; then
  2763. test "x$cache_file" != "x/dev/null"
  2764. cat confcache >$cache_file
  2765. else
  2766. echo "not updating unwritable cache $cache_file"
  2767. fi
  2768. fi
  2769. rm -f confcache
  2770. # Speedup compile
  2771. if test -z "$no_pipe"
  2772. then
  2773. if test -n "$GCC"
  2774. then
  2775. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2776. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2777. if test "${egg_cv_var_ccpipe+set}" = set; then
  2778. echo $ECHO_N "(cached) $ECHO_C" >&6
  2779. else
  2780. ac_old_CC="$CC"
  2781. CC="$CC -pipe"
  2782. cat >conftest.$ac_ext <<_ACEOF
  2783. /* confdefs.h. */
  2784. _ACEOF
  2785. cat confdefs.h >>conftest.$ac_ext
  2786. cat >>conftest.$ac_ext <<_ACEOF
  2787. /* end confdefs.h. */
  2788. int
  2789. main ()
  2790. {
  2791. ;
  2792. return 0;
  2793. }
  2794. _ACEOF
  2795. rm -f conftest.$ac_objext
  2796. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2797. (eval $ac_compile) 2>conftest.er1
  2798. ac_status=$?
  2799. grep -v '^ *+' conftest.er1 >conftest.err
  2800. rm -f conftest.er1
  2801. cat conftest.err >&5
  2802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2803. (exit $ac_status); } &&
  2804. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2805. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2806. (eval $ac_try) 2>&5
  2807. ac_status=$?
  2808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2809. (exit $ac_status); }; } &&
  2810. { ac_try='test -s conftest.$ac_objext'
  2811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2812. (eval $ac_try) 2>&5
  2813. ac_status=$?
  2814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2815. (exit $ac_status); }; }; then
  2816. egg_cv_var_ccpipe="yes"
  2817. else
  2818. echo "$as_me: failed program was:" >&5
  2819. sed 's/^/| /' conftest.$ac_ext >&5
  2820. egg_cv_var_ccpipe="no"
  2821. fi
  2822. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2823. CC="$ac_old_CC"
  2824. fi
  2825. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2826. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2827. if test "$egg_cv_var_ccpipe" = "yes"
  2828. then
  2829. CC="$CC -pipe"
  2830. fi
  2831. fi
  2832. fi
  2833. CCDEPMODE=gcc
  2834. num=`$CC -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2835. if test $num = "3"; then
  2836. CCDEPMODE=gcc3
  2837. GCC3="-Wpacked -Wno-unused-parameter -Wmissing-format-attribute"
  2838. fi
  2839. # Create static binaries
  2840. if test -z "$no_static"
  2841. then
  2842. if test -n "$GCC"
  2843. then
  2844. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2845. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2846. if test "${egg_cv_var_ccstatic+set}" = set; then
  2847. echo $ECHO_N "(cached) $ECHO_C" >&6
  2848. else
  2849. ac_old_CC="$CC"
  2850. CC="$CC -static"
  2851. cat >conftest.$ac_ext <<_ACEOF
  2852. /* confdefs.h. */
  2853. _ACEOF
  2854. cat confdefs.h >>conftest.$ac_ext
  2855. cat >>conftest.$ac_ext <<_ACEOF
  2856. /* end confdefs.h. */
  2857. int
  2858. main ()
  2859. {
  2860. ;
  2861. return 0;
  2862. }
  2863. _ACEOF
  2864. rm -f conftest.$ac_objext
  2865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2866. (eval $ac_compile) 2>conftest.er1
  2867. ac_status=$?
  2868. grep -v '^ *+' conftest.er1 >conftest.err
  2869. rm -f conftest.er1
  2870. cat conftest.err >&5
  2871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2872. (exit $ac_status); } &&
  2873. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2875. (eval $ac_try) 2>&5
  2876. ac_status=$?
  2877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2878. (exit $ac_status); }; } &&
  2879. { ac_try='test -s conftest.$ac_objext'
  2880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2881. (eval $ac_try) 2>&5
  2882. ac_status=$?
  2883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2884. (exit $ac_status); }; }; then
  2885. egg_cv_var_ccstatic="yes"
  2886. else
  2887. echo "$as_me: failed program was:" >&5
  2888. sed 's/^/| /' conftest.$ac_ext >&5
  2889. egg_cv_var_ccstatic="no"
  2890. fi
  2891. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2892. CC="$ac_old_CC"
  2893. fi
  2894. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2895. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2896. if test "$egg_cv_var_ccstatic" = "yes"
  2897. then
  2898. CCDEBUG="$CC"
  2899. CC="$CC -static"
  2900. else
  2901. cat << 'EOF' >&2
  2902. configure: error:
  2903. Your C compiler does not support -static.
  2904. This compile flag is required for the botpack.
  2905. EOF
  2906. exit 1
  2907. fi
  2908. fi
  2909. fi
  2910. # Checks for programs
  2911. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2912. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2913. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2914. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2915. echo $ECHO_N "(cached) $ECHO_C" >&6
  2916. else
  2917. cat >conftest.make <<\_ACEOF
  2918. all:
  2919. @echo 'ac_maketemp="$(MAKE)"'
  2920. _ACEOF
  2921. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2922. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2923. if test -n "$ac_maketemp"; then
  2924. eval ac_cv_prog_make_${ac_make}_set=yes
  2925. else
  2926. eval ac_cv_prog_make_${ac_make}_set=no
  2927. fi
  2928. rm -f conftest.make
  2929. fi
  2930. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2931. echo "$as_me:$LINENO: result: yes" >&5
  2932. echo "${ECHO_T}yes" >&6
  2933. SET_MAKE=
  2934. else
  2935. echo "$as_me:$LINENO: result: no" >&5
  2936. echo "${ECHO_T}no" >&6
  2937. SET_MAKE="MAKE=${MAKE-make}"
  2938. fi
  2939. cat << 'EOF' > conftest.head
  2940. a
  2941. b
  2942. c
  2943. EOF
  2944. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2945. do
  2946. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2947. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2948. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2949. echo $ECHO_N "(cached) $ECHO_C" >&6
  2950. else
  2951. if test -n "$HEAD_1"
  2952. then
  2953. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2954. else
  2955. if test "`cat conftest.head | $ac_prog`" = "a";
  2956. then
  2957. echo "$as_me:$LINENO: result: yes" >&5
  2958. echo "${ECHO_T}yes" >&6
  2959. ac_cv_prog_HEAD_1=$ac_prog
  2960. else
  2961. echo "$as_me:$LINENO: result: no" >&5
  2962. echo "${ECHO_T}no" >&6
  2963. fi
  2964. fi
  2965. fi
  2966. test -n "$ac_cv_prog_HEAD_1" && break
  2967. done
  2968. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2969. then
  2970. cat << 'EOF' >&2
  2971. configure: error:
  2972. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2973. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2974. EOF
  2975. exit 1
  2976. fi
  2977. rm -f conftest.head
  2978. HEAD_1=$ac_cv_prog_HEAD_1
  2979. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2980. for ac_prog in gawk mawk nawk awk
  2981. do
  2982. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2983. set dummy $ac_prog; ac_word=$2
  2984. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2985. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2986. if test "${ac_cv_prog_AWK+set}" = set; then
  2987. echo $ECHO_N "(cached) $ECHO_C" >&6
  2988. else
  2989. if test -n "$AWK"; then
  2990. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2991. else
  2992. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2993. for as_dir in $PATH
  2994. do
  2995. IFS=$as_save_IFS
  2996. test -z "$as_dir" && as_dir=.
  2997. for ac_exec_ext in '' $ac_executable_extensions; do
  2998. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2999. ac_cv_prog_AWK="$ac_prog"
  3000. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3001. break 2
  3002. fi
  3003. done
  3004. done
  3005. fi
  3006. fi
  3007. AWK=$ac_cv_prog_AWK
  3008. if test -n "$AWK"; then
  3009. echo "$as_me:$LINENO: result: $AWK" >&5
  3010. echo "${ECHO_T}$AWK" >&6
  3011. else
  3012. echo "$as_me:$LINENO: result: no" >&5
  3013. echo "${ECHO_T}no" >&6
  3014. fi
  3015. test -n "$AWK" && break
  3016. done
  3017. if test "${AWK-x}" = "x"
  3018. then
  3019. cat << 'EOF' >&2
  3020. configure: error:
  3021. This system seems to lack a working 'awk' command.
  3022. A working 'awk' command is required to compile Eggdrop.
  3023. EOF
  3024. exit 1
  3025. fi
  3026. # basename is needed for Tcl library and header checks
  3027. # Extract the first word of "basename", so it can be a program name with args.
  3028. set dummy basename; ac_word=$2
  3029. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3030. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3031. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3032. echo $ECHO_N "(cached) $ECHO_C" >&6
  3033. else
  3034. if test -n "$BASENAME"; then
  3035. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3036. else
  3037. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3038. for as_dir in $PATH
  3039. do
  3040. IFS=$as_save_IFS
  3041. test -z "$as_dir" && as_dir=.
  3042. for ac_exec_ext in '' $ac_executable_extensions; do
  3043. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3044. ac_cv_prog_BASENAME="basename"
  3045. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3046. break 2
  3047. fi
  3048. done
  3049. done
  3050. fi
  3051. fi
  3052. BASENAME=$ac_cv_prog_BASENAME
  3053. if test -n "$BASENAME"; then
  3054. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3055. echo "${ECHO_T}$BASENAME" >&6
  3056. else
  3057. echo "$as_me:$LINENO: result: no" >&5
  3058. echo "${ECHO_T}no" >&6
  3059. fi
  3060. if test "${BASENAME-x}" = "x"
  3061. then
  3062. cat << 'EOF' >&2
  3063. configure: error:
  3064. This system seems to lack a working 'basename' command.
  3065. A working 'basename' command is required to compile Eggdrop.
  3066. EOF
  3067. exit 1
  3068. fi
  3069. # Extract the first word of "objcopy", so it can be a program name with args.
  3070. set dummy objcopy; ac_word=$2
  3071. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3072. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3073. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3074. echo $ECHO_N "(cached) $ECHO_C" >&6
  3075. else
  3076. if test -n "$OBJCOPY"; then
  3077. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3078. else
  3079. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3080. for as_dir in $PATH
  3081. do
  3082. IFS=$as_save_IFS
  3083. test -z "$as_dir" && as_dir=.
  3084. for ac_exec_ext in '' $ac_executable_extensions; do
  3085. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3086. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3087. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3088. break 2
  3089. fi
  3090. done
  3091. done
  3092. fi
  3093. fi
  3094. OBJCOPY=$ac_cv_prog_OBJCOPY
  3095. if test -n "$OBJCOPY"; then
  3096. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3097. echo "${ECHO_T}$OBJCOPY" >&6
  3098. else
  3099. echo "$as_me:$LINENO: result: no" >&5
  3100. echo "${ECHO_T}no" >&6
  3101. fi
  3102. # Extract the first word of "strip", so it can be a program name with args.
  3103. set dummy strip; ac_word=$2
  3104. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3105. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3106. if test "${ac_cv_prog_STRIP+set}" = set; then
  3107. echo $ECHO_N "(cached) $ECHO_C" >&6
  3108. else
  3109. if test -n "$STRIP"; then
  3110. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3111. else
  3112. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3113. for as_dir in $PATH
  3114. do
  3115. IFS=$as_save_IFS
  3116. test -z "$as_dir" && as_dir=.
  3117. for ac_exec_ext in '' $ac_executable_extensions; do
  3118. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3119. ac_cv_prog_STRIP="strip"
  3120. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3121. break 2
  3122. fi
  3123. done
  3124. done
  3125. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3126. fi
  3127. fi
  3128. STRIP=$ac_cv_prog_STRIP
  3129. if test -n "$STRIP"; then
  3130. echo "$as_me:$LINENO: result: $STRIP" >&5
  3131. echo "${ECHO_T}$STRIP" >&6
  3132. else
  3133. echo "$as_me:$LINENO: result: no" >&5
  3134. echo "${ECHO_T}no" >&6
  3135. fi
  3136. # Extract the first word of "uname", so it can be a program name with args.
  3137. set dummy uname; ac_word=$2
  3138. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3139. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3140. if test "${ac_cv_prog_UNAME+set}" = set; then
  3141. echo $ECHO_N "(cached) $ECHO_C" >&6
  3142. else
  3143. if test -n "$UNAME"; then
  3144. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3145. else
  3146. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3147. for as_dir in $PATH
  3148. do
  3149. IFS=$as_save_IFS
  3150. test -z "$as_dir" && as_dir=.
  3151. for ac_exec_ext in '' $ac_executable_extensions; do
  3152. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3153. ac_cv_prog_UNAME="uname"
  3154. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3155. break 2
  3156. fi
  3157. done
  3158. done
  3159. fi
  3160. fi
  3161. UNAME=$ac_cv_prog_UNAME
  3162. if test -n "$UNAME"; then
  3163. echo "$as_me:$LINENO: result: $UNAME" >&5
  3164. echo "${ECHO_T}$UNAME" >&6
  3165. else
  3166. echo "$as_me:$LINENO: result: no" >&5
  3167. echo "${ECHO_T}no" >&6
  3168. fi
  3169. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3170. # Extract the first word of "distcc", so it can be a program name with args.
  3171. set dummy distcc; ac_word=$2
  3172. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3173. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3174. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3175. echo $ECHO_N "(cached) $ECHO_C" >&6
  3176. else
  3177. if test -n "$DISTCC"; then
  3178. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3179. else
  3180. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3181. for as_dir in $PATH
  3182. do
  3183. IFS=$as_save_IFS
  3184. test -z "$as_dir" && as_dir=.
  3185. for ac_exec_ext in '' $ac_executable_extensions; do
  3186. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3187. ac_cv_prog_DISTCC="distcc"
  3188. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3189. break 2
  3190. fi
  3191. done
  3192. done
  3193. fi
  3194. fi
  3195. DISTCC=$ac_cv_prog_DISTCC
  3196. if test -n "$DISTCC"; then
  3197. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3198. echo "${ECHO_T}$DISTCC" >&6
  3199. else
  3200. echo "$as_me:$LINENO: result: no" >&5
  3201. echo "${ECHO_T}no" >&6
  3202. fi
  3203. # Test the os and set the module linking settings
  3204. LINUX=no
  3205. IRIX=no
  3206. SUNOS=no
  3207. EGG_CYGWIN=no
  3208. echo "$as_me:$LINENO: checking system type" >&5
  3209. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3210. if test "${egg_cv_var_system_type+set}" = set; then
  3211. echo $ECHO_N "(cached) $ECHO_C" >&6
  3212. else
  3213. egg_cv_var_system_type=`$UNAME -s`
  3214. fi
  3215. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3216. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3217. echo "$as_me:$LINENO: checking system release" >&5
  3218. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3219. if test "${egg_cv_var_system_release+set}" = set; then
  3220. echo $ECHO_N "(cached) $ECHO_C" >&6
  3221. else
  3222. egg_cv_var_system_release=`$UNAME -r`
  3223. fi
  3224. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3225. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3226. case "$egg_cv_var_system_type" in
  3227. BSD/OS)
  3228. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3229. 2)
  3230. ;;
  3231. *)
  3232. CFLAGS="$CFLAGS -Wall"
  3233. ;;
  3234. esac
  3235. ;;
  3236. CYGWI*)
  3237. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3238. 1.*)
  3239. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3240. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3241. WIN32FLAGS=
  3242. cat >conftest.$ac_ext <<_ACEOF
  3243. /* confdefs.h. */
  3244. _ACEOF
  3245. cat confdefs.h >>conftest.$ac_ext
  3246. cat >>conftest.$ac_ext <<_ACEOF
  3247. /* end confdefs.h. */
  3248. int
  3249. main ()
  3250. {
  3251. #ifndef WIN32
  3252. # ifndef _WIN32
  3253. # error WIN32 or _WIN32 not defined
  3254. # endif
  3255. #endif
  3256. ;
  3257. return 0;
  3258. }
  3259. _ACEOF
  3260. rm -f conftest.$ac_objext
  3261. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3262. (eval $ac_compile) 2>conftest.er1
  3263. ac_status=$?
  3264. grep -v '^ *+' conftest.er1 >conftest.err
  3265. rm -f conftest.er1
  3266. cat conftest.err >&5
  3267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3268. (exit $ac_status); } &&
  3269. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3271. (eval $ac_try) 2>&5
  3272. ac_status=$?
  3273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3274. (exit $ac_status); }; } &&
  3275. { ac_try='test -s conftest.$ac_objext'
  3276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3277. (eval $ac_try) 2>&5
  3278. ac_status=$?
  3279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3280. (exit $ac_status); }; }; then
  3281. echo "$as_me:$LINENO: result: present by default" >&5
  3282. echo "${ECHO_T}present by default" >&6
  3283. else
  3284. echo "$as_me: failed program was:" >&5
  3285. sed 's/^/| /' conftest.$ac_ext >&5
  3286. ac_compile_save="$ac_compile"
  3287. save_CC="$CC"
  3288. ac_compile="$ac_compile -mwin32"
  3289. CC="$CC -mwin32"
  3290. cat >conftest.$ac_ext <<_ACEOF
  3291. /* confdefs.h. */
  3292. _ACEOF
  3293. cat confdefs.h >>conftest.$ac_ext
  3294. cat >>conftest.$ac_ext <<_ACEOF
  3295. /* end confdefs.h. */
  3296. int
  3297. main ()
  3298. {
  3299. #ifndef WIN32
  3300. # ifndef _WIN32
  3301. # error WIN32 or _WIN32 not defined
  3302. # endif
  3303. #endif
  3304. ;
  3305. return 0;
  3306. }
  3307. _ACEOF
  3308. rm -f conftest.$ac_objext
  3309. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3310. (eval $ac_compile) 2>conftest.er1
  3311. ac_status=$?
  3312. grep -v '^ *+' conftest.er1 >conftest.err
  3313. rm -f conftest.er1
  3314. cat conftest.err >&5
  3315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3316. (exit $ac_status); } &&
  3317. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3319. (eval $ac_try) 2>&5
  3320. ac_status=$?
  3321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3322. (exit $ac_status); }; } &&
  3323. { ac_try='test -s conftest.$ac_objext'
  3324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3325. (eval $ac_try) 2>&5
  3326. ac_status=$?
  3327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3328. (exit $ac_status); }; }; then
  3329. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3330. echo "${ECHO_T}found via -mwin32" >&6
  3331. ac_compile="$ac_compile_save"
  3332. CC="$save_CC"
  3333. WIN32FLAGS="-mwin32"
  3334. else
  3335. echo "$as_me: failed program was:" >&5
  3336. sed 's/^/| /' conftest.$ac_ext >&5
  3337. ac_compile="$ac_compile_save"
  3338. CC="$save_CC"
  3339. echo "$as_me:$LINENO: result: not found" >&5
  3340. echo "${ECHO_T}not found" >&6
  3341. fi
  3342. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3343. fi
  3344. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3345. CC="$CC $WIN32FLAGS"
  3346. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3347. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3348. if test -r /usr/lib/binmode.o
  3349. then
  3350. echo "$as_me:$LINENO: result: yes" >&5
  3351. echo "${ECHO_T}yes" >&6
  3352. LIBS="$LIBS /usr/lib/binmode.o"
  3353. else
  3354. echo "$as_me:$LINENO: result: no" >&5
  3355. echo "${ECHO_T}no" >&6
  3356. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3357. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3358. fi
  3359. ;;
  3360. *)
  3361. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3362. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3363. ;;
  3364. esac
  3365. EGG_CYGWIN=yes
  3366. cat >>confdefs.h <<\_ACEOF
  3367. #define CYGWIN_HACKS 1
  3368. _ACEOF
  3369. ;;
  3370. IRIX)
  3371. IRIX=yes
  3372. ;;
  3373. Ultrix)
  3374. SHELL=/bin/sh5
  3375. ;;
  3376. SINIX*)
  3377. ;;
  3378. BeOS)
  3379. ;;
  3380. Linux)
  3381. LINUX=yes
  3382. CFLAGS="$CFLAGS -Wall"
  3383. ;;
  3384. Lynx)
  3385. ;;
  3386. QNX)
  3387. ;;
  3388. OSF1)
  3389. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3390. V*)
  3391. if test "$AWK" = "gawk"
  3392. then
  3393. AWK=awk
  3394. fi
  3395. ;;
  3396. 1.0|1.1|1.2)
  3397. cat >>confdefs.h <<\_ACEOF
  3398. #define OSF1_HACKS 1
  3399. _ACEOF
  3400. ;;
  3401. 1.*)
  3402. cat >>confdefs.h <<\_ACEOF
  3403. #define OSF1_HACKS 1
  3404. _ACEOF
  3405. ;;
  3406. *)
  3407. ;;
  3408. esac
  3409. cat >>confdefs.h <<\_ACEOF
  3410. #define STOP_UAC 1
  3411. _ACEOF
  3412. cat >>confdefs.h <<\_ACEOF
  3413. #define BROKEN_SNPRINTF 1
  3414. _ACEOF
  3415. ;;
  3416. SunOS)
  3417. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3418. then
  3419. # SunOS 4
  3420. SUNOS=yes
  3421. fi
  3422. ;;
  3423. *BSD)
  3424. # FreeBSD/OpenBSD/NetBSD
  3425. ;;
  3426. *)
  3427. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3428. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3429. if test -r /mach
  3430. then
  3431. echo "$as_me:$LINENO: result: yes" >&5
  3432. echo "${ECHO_T}yes" >&6
  3433. cat >>confdefs.h <<\_ACEOF
  3434. #define BORGCUBES 1
  3435. _ACEOF
  3436. else
  3437. echo "$as_me:$LINENO: result: no" >&5
  3438. echo "${ECHO_T}no" >&6
  3439. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3440. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3441. if test -r /cmds
  3442. then
  3443. echo "$as_me:$LINENO: result: yes" >&5
  3444. echo "${ECHO_T}yes" >&6
  3445. else
  3446. echo "$as_me:$LINENO: result: no" >&5
  3447. echo "${ECHO_T}no" >&6
  3448. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3449. echo "${ECHO_T}Something unknown!" >&6
  3450. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3451. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3452. fi
  3453. fi
  3454. ;;
  3455. esac
  3456. dns_reslib_avail="true"
  3457. echo "$as_me:$LINENO: checking for res_init" >&5
  3458. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3459. if test "${ac_cv_func_res_init+set}" = set; then
  3460. echo $ECHO_N "(cached) $ECHO_C" >&6
  3461. else
  3462. cat >conftest.$ac_ext <<_ACEOF
  3463. /* confdefs.h. */
  3464. _ACEOF
  3465. cat confdefs.h >>conftest.$ac_ext
  3466. cat >>conftest.$ac_ext <<_ACEOF
  3467. /* end confdefs.h. */
  3468. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3469. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3470. #define res_init innocuous_res_init
  3471. /* System header to define __stub macros and hopefully few prototypes,
  3472. which can conflict with char res_init (); below.
  3473. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3474. <limits.h> exists even on freestanding compilers. */
  3475. #ifdef __STDC__
  3476. # include <limits.h>
  3477. #else
  3478. # include <assert.h>
  3479. #endif
  3480. #undef res_init
  3481. /* Override any gcc2 internal prototype to avoid an error. */
  3482. #ifdef __cplusplus
  3483. extern "C"
  3484. {
  3485. #endif
  3486. /* We use char because int might match the return type of a gcc2
  3487. builtin and then its argument prototype would still apply. */
  3488. char res_init ();
  3489. /* The GNU C library defines this for functions which it implements
  3490. to always fail with ENOSYS. Some functions are actually named
  3491. something starting with __ and the normal name is an alias. */
  3492. #if defined (__stub_res_init) || defined (__stub___res_init)
  3493. choke me
  3494. #else
  3495. char (*f) () = res_init;
  3496. #endif
  3497. #ifdef __cplusplus
  3498. }
  3499. #endif
  3500. int
  3501. main ()
  3502. {
  3503. return f != res_init;
  3504. ;
  3505. return 0;
  3506. }
  3507. _ACEOF
  3508. rm -f conftest.$ac_objext conftest$ac_exeext
  3509. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3510. (eval $ac_link) 2>conftest.er1
  3511. ac_status=$?
  3512. grep -v '^ *+' conftest.er1 >conftest.err
  3513. rm -f conftest.er1
  3514. cat conftest.err >&5
  3515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3516. (exit $ac_status); } &&
  3517. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3518. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3519. (eval $ac_try) 2>&5
  3520. ac_status=$?
  3521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3522. (exit $ac_status); }; } &&
  3523. { ac_try='test -s conftest$ac_exeext'
  3524. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3525. (eval $ac_try) 2>&5
  3526. ac_status=$?
  3527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3528. (exit $ac_status); }; }; then
  3529. ac_cv_func_res_init=yes
  3530. else
  3531. echo "$as_me: failed program was:" >&5
  3532. sed 's/^/| /' conftest.$ac_ext >&5
  3533. ac_cv_func_res_init=no
  3534. fi
  3535. rm -f conftest.err conftest.$ac_objext \
  3536. conftest$ac_exeext conftest.$ac_ext
  3537. fi
  3538. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3539. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3540. if test $ac_cv_func_res_init = yes; then
  3541. :
  3542. else
  3543. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3544. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3545. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3546. echo $ECHO_N "(cached) $ECHO_C" >&6
  3547. else
  3548. ac_check_lib_save_LIBS=$LIBS
  3549. LIBS="-lresolv $LIBS"
  3550. cat >conftest.$ac_ext <<_ACEOF
  3551. /* confdefs.h. */
  3552. _ACEOF
  3553. cat confdefs.h >>conftest.$ac_ext
  3554. cat >>conftest.$ac_ext <<_ACEOF
  3555. /* end confdefs.h. */
  3556. /* Override any gcc2 internal prototype to avoid an error. */
  3557. #ifdef __cplusplus
  3558. extern "C"
  3559. #endif
  3560. /* We use char because int might match the return type of a gcc2
  3561. builtin and then its argument prototype would still apply. */
  3562. char res_init ();
  3563. int
  3564. main ()
  3565. {
  3566. res_init ();
  3567. ;
  3568. return 0;
  3569. }
  3570. _ACEOF
  3571. rm -f conftest.$ac_objext conftest$ac_exeext
  3572. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3573. (eval $ac_link) 2>conftest.er1
  3574. ac_status=$?
  3575. grep -v '^ *+' conftest.er1 >conftest.err
  3576. rm -f conftest.er1
  3577. cat conftest.err >&5
  3578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3579. (exit $ac_status); } &&
  3580. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3581. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3582. (eval $ac_try) 2>&5
  3583. ac_status=$?
  3584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3585. (exit $ac_status); }; } &&
  3586. { ac_try='test -s conftest$ac_exeext'
  3587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3588. (eval $ac_try) 2>&5
  3589. ac_status=$?
  3590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3591. (exit $ac_status); }; }; then
  3592. ac_cv_lib_resolv_res_init=yes
  3593. else
  3594. echo "$as_me: failed program was:" >&5
  3595. sed 's/^/| /' conftest.$ac_ext >&5
  3596. ac_cv_lib_resolv_res_init=no
  3597. fi
  3598. rm -f conftest.err conftest.$ac_objext \
  3599. conftest$ac_exeext conftest.$ac_ext
  3600. LIBS=$ac_check_lib_save_LIBS
  3601. fi
  3602. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3603. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3604. if test $ac_cv_lib_resolv_res_init = yes; then
  3605. RESLIB="-lresolv"
  3606. else
  3607. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3608. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3609. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3610. echo $ECHO_N "(cached) $ECHO_C" >&6
  3611. else
  3612. ac_check_lib_save_LIBS=$LIBS
  3613. LIBS="-lbind $LIBS"
  3614. cat >conftest.$ac_ext <<_ACEOF
  3615. /* confdefs.h. */
  3616. _ACEOF
  3617. cat confdefs.h >>conftest.$ac_ext
  3618. cat >>conftest.$ac_ext <<_ACEOF
  3619. /* end confdefs.h. */
  3620. /* Override any gcc2 internal prototype to avoid an error. */
  3621. #ifdef __cplusplus
  3622. extern "C"
  3623. #endif
  3624. /* We use char because int might match the return type of a gcc2
  3625. builtin and then its argument prototype would still apply. */
  3626. char res_init ();
  3627. int
  3628. main ()
  3629. {
  3630. res_init ();
  3631. ;
  3632. return 0;
  3633. }
  3634. _ACEOF
  3635. rm -f conftest.$ac_objext conftest$ac_exeext
  3636. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3637. (eval $ac_link) 2>conftest.er1
  3638. ac_status=$?
  3639. grep -v '^ *+' conftest.er1 >conftest.err
  3640. rm -f conftest.er1
  3641. cat conftest.err >&5
  3642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3643. (exit $ac_status); } &&
  3644. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3646. (eval $ac_try) 2>&5
  3647. ac_status=$?
  3648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3649. (exit $ac_status); }; } &&
  3650. { ac_try='test -s conftest$ac_exeext'
  3651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3652. (eval $ac_try) 2>&5
  3653. ac_status=$?
  3654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3655. (exit $ac_status); }; }; then
  3656. ac_cv_lib_bind_res_init=yes
  3657. else
  3658. echo "$as_me: failed program was:" >&5
  3659. sed 's/^/| /' conftest.$ac_ext >&5
  3660. ac_cv_lib_bind_res_init=no
  3661. fi
  3662. rm -f conftest.err conftest.$ac_objext \
  3663. conftest$ac_exeext conftest.$ac_ext
  3664. LIBS=$ac_check_lib_save_LIBS
  3665. fi
  3666. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3667. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3668. if test $ac_cv_lib_bind_res_init = yes; then
  3669. RESLIB="-lbind"
  3670. else
  3671. dns_reslib_avail="false";
  3672. fi
  3673. fi
  3674. fi
  3675. if test "${dns_reslib_avail}" = false; then
  3676. dns_reslib_avail="true"
  3677. echo "$as_me:$LINENO: checking for __res_init" >&5
  3678. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3679. if test "${ac_cv_func___res_init+set}" = set; then
  3680. echo $ECHO_N "(cached) $ECHO_C" >&6
  3681. else
  3682. cat >conftest.$ac_ext <<_ACEOF
  3683. /* confdefs.h. */
  3684. _ACEOF
  3685. cat confdefs.h >>conftest.$ac_ext
  3686. cat >>conftest.$ac_ext <<_ACEOF
  3687. /* end confdefs.h. */
  3688. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3689. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3690. #define __res_init innocuous___res_init
  3691. /* System header to define __stub macros and hopefully few prototypes,
  3692. which can conflict with char __res_init (); below.
  3693. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3694. <limits.h> exists even on freestanding compilers. */
  3695. #ifdef __STDC__
  3696. # include <limits.h>
  3697. #else
  3698. # include <assert.h>
  3699. #endif
  3700. #undef __res_init
  3701. /* Override any gcc2 internal prototype to avoid an error. */
  3702. #ifdef __cplusplus
  3703. extern "C"
  3704. {
  3705. #endif
  3706. /* We use char because int might match the return type of a gcc2
  3707. builtin and then its argument prototype would still apply. */
  3708. char __res_init ();
  3709. /* The GNU C library defines this for functions which it implements
  3710. to always fail with ENOSYS. Some functions are actually named
  3711. something starting with __ and the normal name is an alias. */
  3712. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3713. choke me
  3714. #else
  3715. char (*f) () = __res_init;
  3716. #endif
  3717. #ifdef __cplusplus
  3718. }
  3719. #endif
  3720. int
  3721. main ()
  3722. {
  3723. return f != __res_init;
  3724. ;
  3725. return 0;
  3726. }
  3727. _ACEOF
  3728. rm -f conftest.$ac_objext conftest$ac_exeext
  3729. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3730. (eval $ac_link) 2>conftest.er1
  3731. ac_status=$?
  3732. grep -v '^ *+' conftest.er1 >conftest.err
  3733. rm -f conftest.er1
  3734. cat conftest.err >&5
  3735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3736. (exit $ac_status); } &&
  3737. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3738. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3739. (eval $ac_try) 2>&5
  3740. ac_status=$?
  3741. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3742. (exit $ac_status); }; } &&
  3743. { ac_try='test -s conftest$ac_exeext'
  3744. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3745. (eval $ac_try) 2>&5
  3746. ac_status=$?
  3747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3748. (exit $ac_status); }; }; then
  3749. ac_cv_func___res_init=yes
  3750. else
  3751. echo "$as_me: failed program was:" >&5
  3752. sed 's/^/| /' conftest.$ac_ext >&5
  3753. ac_cv_func___res_init=no
  3754. fi
  3755. rm -f conftest.err conftest.$ac_objext \
  3756. conftest$ac_exeext conftest.$ac_ext
  3757. fi
  3758. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3759. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3760. if test $ac_cv_func___res_init = yes; then
  3761. :
  3762. else
  3763. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3764. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3765. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3766. echo $ECHO_N "(cached) $ECHO_C" >&6
  3767. else
  3768. ac_check_lib_save_LIBS=$LIBS
  3769. LIBS="-lresolv $LIBS"
  3770. cat >conftest.$ac_ext <<_ACEOF
  3771. /* confdefs.h. */
  3772. _ACEOF
  3773. cat confdefs.h >>conftest.$ac_ext
  3774. cat >>conftest.$ac_ext <<_ACEOF
  3775. /* end confdefs.h. */
  3776. /* Override any gcc2 internal prototype to avoid an error. */
  3777. #ifdef __cplusplus
  3778. extern "C"
  3779. #endif
  3780. /* We use char because int might match the return type of a gcc2
  3781. builtin and then its argument prototype would still apply. */
  3782. char __res_init ();
  3783. int
  3784. main ()
  3785. {
  3786. __res_init ();
  3787. ;
  3788. return 0;
  3789. }
  3790. _ACEOF
  3791. rm -f conftest.$ac_objext conftest$ac_exeext
  3792. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3793. (eval $ac_link) 2>conftest.er1
  3794. ac_status=$?
  3795. grep -v '^ *+' conftest.er1 >conftest.err
  3796. rm -f conftest.er1
  3797. cat conftest.err >&5
  3798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3799. (exit $ac_status); } &&
  3800. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3802. (eval $ac_try) 2>&5
  3803. ac_status=$?
  3804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3805. (exit $ac_status); }; } &&
  3806. { ac_try='test -s conftest$ac_exeext'
  3807. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3808. (eval $ac_try) 2>&5
  3809. ac_status=$?
  3810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3811. (exit $ac_status); }; }; then
  3812. ac_cv_lib_resolv___res_init=yes
  3813. else
  3814. echo "$as_me: failed program was:" >&5
  3815. sed 's/^/| /' conftest.$ac_ext >&5
  3816. ac_cv_lib_resolv___res_init=no
  3817. fi
  3818. rm -f conftest.err conftest.$ac_objext \
  3819. conftest$ac_exeext conftest.$ac_ext
  3820. LIBS=$ac_check_lib_save_LIBS
  3821. fi
  3822. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3823. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3824. if test $ac_cv_lib_resolv___res_init = yes; then
  3825. RESLIB="-lresolv"
  3826. else
  3827. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3828. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3829. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3830. echo $ECHO_N "(cached) $ECHO_C" >&6
  3831. else
  3832. ac_check_lib_save_LIBS=$LIBS
  3833. LIBS="-lbind $LIBS"
  3834. cat >conftest.$ac_ext <<_ACEOF
  3835. /* confdefs.h. */
  3836. _ACEOF
  3837. cat confdefs.h >>conftest.$ac_ext
  3838. cat >>conftest.$ac_ext <<_ACEOF
  3839. /* end confdefs.h. */
  3840. /* Override any gcc2 internal prototype to avoid an error. */
  3841. #ifdef __cplusplus
  3842. extern "C"
  3843. #endif
  3844. /* We use char because int might match the return type of a gcc2
  3845. builtin and then its argument prototype would still apply. */
  3846. char __res_init ();
  3847. int
  3848. main ()
  3849. {
  3850. __res_init ();
  3851. ;
  3852. return 0;
  3853. }
  3854. _ACEOF
  3855. rm -f conftest.$ac_objext conftest$ac_exeext
  3856. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3857. (eval $ac_link) 2>conftest.er1
  3858. ac_status=$?
  3859. grep -v '^ *+' conftest.er1 >conftest.err
  3860. rm -f conftest.er1
  3861. cat conftest.err >&5
  3862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3863. (exit $ac_status); } &&
  3864. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3865. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3866. (eval $ac_try) 2>&5
  3867. ac_status=$?
  3868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3869. (exit $ac_status); }; } &&
  3870. { ac_try='test -s conftest$ac_exeext'
  3871. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3872. (eval $ac_try) 2>&5
  3873. ac_status=$?
  3874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3875. (exit $ac_status); }; }; then
  3876. ac_cv_lib_bind___res_init=yes
  3877. else
  3878. echo "$as_me: failed program was:" >&5
  3879. sed 's/^/| /' conftest.$ac_ext >&5
  3880. ac_cv_lib_bind___res_init=no
  3881. fi
  3882. rm -f conftest.err conftest.$ac_objext \
  3883. conftest$ac_exeext conftest.$ac_ext
  3884. LIBS=$ac_check_lib_save_LIBS
  3885. fi
  3886. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3887. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3888. if test $ac_cv_lib_bind___res_init = yes; then
  3889. RESLIB="-lbind"
  3890. else
  3891. dns_reslib_avail="false";
  3892. fi
  3893. fi
  3894. fi
  3895. fi
  3896. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3897. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3898. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3899. echo $ECHO_N "(cached) $ECHO_C" >&6
  3900. else
  3901. cat >conftest.$ac_ext <<_ACEOF
  3902. /* confdefs.h. */
  3903. _ACEOF
  3904. cat confdefs.h >>conftest.$ac_ext
  3905. cat >>conftest.$ac_ext <<_ACEOF
  3906. /* end confdefs.h. */
  3907. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3908. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3909. #define res_mkquery innocuous_res_mkquery
  3910. /* System header to define __stub macros and hopefully few prototypes,
  3911. which can conflict with char res_mkquery (); below.
  3912. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3913. <limits.h> exists even on freestanding compilers. */
  3914. #ifdef __STDC__
  3915. # include <limits.h>
  3916. #else
  3917. # include <assert.h>
  3918. #endif
  3919. #undef res_mkquery
  3920. /* Override any gcc2 internal prototype to avoid an error. */
  3921. #ifdef __cplusplus
  3922. extern "C"
  3923. {
  3924. #endif
  3925. /* We use char because int might match the return type of a gcc2
  3926. builtin and then its argument prototype would still apply. */
  3927. char res_mkquery ();
  3928. /* The GNU C library defines this for functions which it implements
  3929. to always fail with ENOSYS. Some functions are actually named
  3930. something starting with __ and the normal name is an alias. */
  3931. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3932. choke me
  3933. #else
  3934. char (*f) () = res_mkquery;
  3935. #endif
  3936. #ifdef __cplusplus
  3937. }
  3938. #endif
  3939. int
  3940. main ()
  3941. {
  3942. return f != res_mkquery;
  3943. ;
  3944. return 0;
  3945. }
  3946. _ACEOF
  3947. rm -f conftest.$ac_objext conftest$ac_exeext
  3948. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3949. (eval $ac_link) 2>conftest.er1
  3950. ac_status=$?
  3951. grep -v '^ *+' conftest.er1 >conftest.err
  3952. rm -f conftest.er1
  3953. cat conftest.err >&5
  3954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3955. (exit $ac_status); } &&
  3956. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3957. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3958. (eval $ac_try) 2>&5
  3959. ac_status=$?
  3960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3961. (exit $ac_status); }; } &&
  3962. { ac_try='test -s conftest$ac_exeext'
  3963. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3964. (eval $ac_try) 2>&5
  3965. ac_status=$?
  3966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3967. (exit $ac_status); }; }; then
  3968. ac_cv_func_res_mkquery=yes
  3969. else
  3970. echo "$as_me: failed program was:" >&5
  3971. sed 's/^/| /' conftest.$ac_ext >&5
  3972. ac_cv_func_res_mkquery=no
  3973. fi
  3974. rm -f conftest.err conftest.$ac_objext \
  3975. conftest$ac_exeext conftest.$ac_ext
  3976. fi
  3977. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3978. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3979. if test $ac_cv_func_res_mkquery = yes; then
  3980. :
  3981. else
  3982. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3983. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3984. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3985. echo $ECHO_N "(cached) $ECHO_C" >&6
  3986. else
  3987. ac_check_lib_save_LIBS=$LIBS
  3988. LIBS="-lresolv $LIBS"
  3989. cat >conftest.$ac_ext <<_ACEOF
  3990. /* confdefs.h. */
  3991. _ACEOF
  3992. cat confdefs.h >>conftest.$ac_ext
  3993. cat >>conftest.$ac_ext <<_ACEOF
  3994. /* end confdefs.h. */
  3995. /* Override any gcc2 internal prototype to avoid an error. */
  3996. #ifdef __cplusplus
  3997. extern "C"
  3998. #endif
  3999. /* We use char because int might match the return type of a gcc2
  4000. builtin and then its argument prototype would still apply. */
  4001. char res_mkquery ();
  4002. int
  4003. main ()
  4004. {
  4005. res_mkquery ();
  4006. ;
  4007. return 0;
  4008. }
  4009. _ACEOF
  4010. rm -f conftest.$ac_objext conftest$ac_exeext
  4011. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4012. (eval $ac_link) 2>conftest.er1
  4013. ac_status=$?
  4014. grep -v '^ *+' conftest.er1 >conftest.err
  4015. rm -f conftest.er1
  4016. cat conftest.err >&5
  4017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4018. (exit $ac_status); } &&
  4019. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4021. (eval $ac_try) 2>&5
  4022. ac_status=$?
  4023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4024. (exit $ac_status); }; } &&
  4025. { ac_try='test -s conftest$ac_exeext'
  4026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4027. (eval $ac_try) 2>&5
  4028. ac_status=$?
  4029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4030. (exit $ac_status); }; }; then
  4031. ac_cv_lib_resolv_res_mkquery=yes
  4032. else
  4033. echo "$as_me: failed program was:" >&5
  4034. sed 's/^/| /' conftest.$ac_ext >&5
  4035. ac_cv_lib_resolv_res_mkquery=no
  4036. fi
  4037. rm -f conftest.err conftest.$ac_objext \
  4038. conftest$ac_exeext conftest.$ac_ext
  4039. LIBS=$ac_check_lib_save_LIBS
  4040. fi
  4041. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4042. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4043. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4044. if test "x${RESLIB}" != "x-lresolv"; then
  4045. RESLIB="${RESLIB} -lresolv"
  4046. fi
  4047. else
  4048. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4049. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4050. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4051. echo $ECHO_N "(cached) $ECHO_C" >&6
  4052. else
  4053. ac_check_lib_save_LIBS=$LIBS
  4054. LIBS="-lbind $LIBS"
  4055. cat >conftest.$ac_ext <<_ACEOF
  4056. /* confdefs.h. */
  4057. _ACEOF
  4058. cat confdefs.h >>conftest.$ac_ext
  4059. cat >>conftest.$ac_ext <<_ACEOF
  4060. /* end confdefs.h. */
  4061. /* Override any gcc2 internal prototype to avoid an error. */
  4062. #ifdef __cplusplus
  4063. extern "C"
  4064. #endif
  4065. /* We use char because int might match the return type of a gcc2
  4066. builtin and then its argument prototype would still apply. */
  4067. char res_mkquery ();
  4068. int
  4069. main ()
  4070. {
  4071. res_mkquery ();
  4072. ;
  4073. return 0;
  4074. }
  4075. _ACEOF
  4076. rm -f conftest.$ac_objext conftest$ac_exeext
  4077. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4078. (eval $ac_link) 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" || test ! -s conftest.err'
  4086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4087. (eval $ac_try) 2>&5
  4088. ac_status=$?
  4089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4090. (exit $ac_status); }; } &&
  4091. { ac_try='test -s conftest$ac_exeext'
  4092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4093. (eval $ac_try) 2>&5
  4094. ac_status=$?
  4095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4096. (exit $ac_status); }; }; then
  4097. ac_cv_lib_bind_res_mkquery=yes
  4098. else
  4099. echo "$as_me: failed program was:" >&5
  4100. sed 's/^/| /' conftest.$ac_ext >&5
  4101. ac_cv_lib_bind_res_mkquery=no
  4102. fi
  4103. rm -f conftest.err conftest.$ac_objext \
  4104. conftest$ac_exeext conftest.$ac_ext
  4105. LIBS=$ac_check_lib_save_LIBS
  4106. fi
  4107. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4108. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4109. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4110. if test "x${RESLIB}" != "x-lbind"; then
  4111. RESLIB="${RESLIB} -lbind"
  4112. fi
  4113. else
  4114. dns_reslib_avail="false";
  4115. fi
  4116. fi
  4117. fi
  4118. if test "${dns_reslib_avail}" = false; then
  4119. dns_reslib_avail="true"
  4120. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4121. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4122. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4123. echo $ECHO_N "(cached) $ECHO_C" >&6
  4124. else
  4125. cat >conftest.$ac_ext <<_ACEOF
  4126. /* confdefs.h. */
  4127. _ACEOF
  4128. cat confdefs.h >>conftest.$ac_ext
  4129. cat >>conftest.$ac_ext <<_ACEOF
  4130. /* end confdefs.h. */
  4131. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4132. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4133. #define __res_mkquery innocuous___res_mkquery
  4134. /* System header to define __stub macros and hopefully few prototypes,
  4135. which can conflict with char __res_mkquery (); below.
  4136. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4137. <limits.h> exists even on freestanding compilers. */
  4138. #ifdef __STDC__
  4139. # include <limits.h>
  4140. #else
  4141. # include <assert.h>
  4142. #endif
  4143. #undef __res_mkquery
  4144. /* Override any gcc2 internal prototype to avoid an error. */
  4145. #ifdef __cplusplus
  4146. extern "C"
  4147. {
  4148. #endif
  4149. /* We use char because int might match the return type of a gcc2
  4150. builtin and then its argument prototype would still apply. */
  4151. char __res_mkquery ();
  4152. /* The GNU C library defines this for functions which it implements
  4153. to always fail with ENOSYS. Some functions are actually named
  4154. something starting with __ and the normal name is an alias. */
  4155. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4156. choke me
  4157. #else
  4158. char (*f) () = __res_mkquery;
  4159. #endif
  4160. #ifdef __cplusplus
  4161. }
  4162. #endif
  4163. int
  4164. main ()
  4165. {
  4166. return f != __res_mkquery;
  4167. ;
  4168. return 0;
  4169. }
  4170. _ACEOF
  4171. rm -f conftest.$ac_objext conftest$ac_exeext
  4172. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4173. (eval $ac_link) 2>conftest.er1
  4174. ac_status=$?
  4175. grep -v '^ *+' conftest.er1 >conftest.err
  4176. rm -f conftest.er1
  4177. cat conftest.err >&5
  4178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4179. (exit $ac_status); } &&
  4180. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4182. (eval $ac_try) 2>&5
  4183. ac_status=$?
  4184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4185. (exit $ac_status); }; } &&
  4186. { ac_try='test -s conftest$ac_exeext'
  4187. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4188. (eval $ac_try) 2>&5
  4189. ac_status=$?
  4190. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4191. (exit $ac_status); }; }; then
  4192. ac_cv_func___res_mkquery=yes
  4193. else
  4194. echo "$as_me: failed program was:" >&5
  4195. sed 's/^/| /' conftest.$ac_ext >&5
  4196. ac_cv_func___res_mkquery=no
  4197. fi
  4198. rm -f conftest.err conftest.$ac_objext \
  4199. conftest$ac_exeext conftest.$ac_ext
  4200. fi
  4201. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4202. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4203. if test $ac_cv_func___res_mkquery = yes; then
  4204. :
  4205. else
  4206. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4207. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4208. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4209. echo $ECHO_N "(cached) $ECHO_C" >&6
  4210. else
  4211. ac_check_lib_save_LIBS=$LIBS
  4212. LIBS="-lresolv $LIBS"
  4213. cat >conftest.$ac_ext <<_ACEOF
  4214. /* confdefs.h. */
  4215. _ACEOF
  4216. cat confdefs.h >>conftest.$ac_ext
  4217. cat >>conftest.$ac_ext <<_ACEOF
  4218. /* end confdefs.h. */
  4219. /* Override any gcc2 internal prototype to avoid an error. */
  4220. #ifdef __cplusplus
  4221. extern "C"
  4222. #endif
  4223. /* We use char because int might match the return type of a gcc2
  4224. builtin and then its argument prototype would still apply. */
  4225. char __res_mkquery ();
  4226. int
  4227. main ()
  4228. {
  4229. __res_mkquery ();
  4230. ;
  4231. return 0;
  4232. }
  4233. _ACEOF
  4234. rm -f conftest.$ac_objext conftest$ac_exeext
  4235. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4236. (eval $ac_link) 2>conftest.er1
  4237. ac_status=$?
  4238. grep -v '^ *+' conftest.er1 >conftest.err
  4239. rm -f conftest.er1
  4240. cat conftest.err >&5
  4241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); } &&
  4243. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4244. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4245. (eval $ac_try) 2>&5
  4246. ac_status=$?
  4247. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4248. (exit $ac_status); }; } &&
  4249. { ac_try='test -s conftest$ac_exeext'
  4250. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4251. (eval $ac_try) 2>&5
  4252. ac_status=$?
  4253. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4254. (exit $ac_status); }; }; then
  4255. ac_cv_lib_resolv___res_mkquery=yes
  4256. else
  4257. echo "$as_me: failed program was:" >&5
  4258. sed 's/^/| /' conftest.$ac_ext >&5
  4259. ac_cv_lib_resolv___res_mkquery=no
  4260. fi
  4261. rm -f conftest.err conftest.$ac_objext \
  4262. conftest$ac_exeext conftest.$ac_ext
  4263. LIBS=$ac_check_lib_save_LIBS
  4264. fi
  4265. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4266. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4267. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4268. if test "x${RESLIB}" != "x-lresolv"; then
  4269. RESLIB="${RESLIB} -lresolv"
  4270. fi
  4271. else
  4272. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4273. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4274. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4275. echo $ECHO_N "(cached) $ECHO_C" >&6
  4276. else
  4277. ac_check_lib_save_LIBS=$LIBS
  4278. LIBS="-lbind $LIBS"
  4279. cat >conftest.$ac_ext <<_ACEOF
  4280. /* confdefs.h. */
  4281. _ACEOF
  4282. cat confdefs.h >>conftest.$ac_ext
  4283. cat >>conftest.$ac_ext <<_ACEOF
  4284. /* end confdefs.h. */
  4285. /* Override any gcc2 internal prototype to avoid an error. */
  4286. #ifdef __cplusplus
  4287. extern "C"
  4288. #endif
  4289. /* We use char because int might match the return type of a gcc2
  4290. builtin and then its argument prototype would still apply. */
  4291. char __res_mkquery ();
  4292. int
  4293. main ()
  4294. {
  4295. __res_mkquery ();
  4296. ;
  4297. return 0;
  4298. }
  4299. _ACEOF
  4300. rm -f conftest.$ac_objext conftest$ac_exeext
  4301. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4302. (eval $ac_link) 2>conftest.er1
  4303. ac_status=$?
  4304. grep -v '^ *+' conftest.er1 >conftest.err
  4305. rm -f conftest.er1
  4306. cat conftest.err >&5
  4307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4308. (exit $ac_status); } &&
  4309. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4310. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4311. (eval $ac_try) 2>&5
  4312. ac_status=$?
  4313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4314. (exit $ac_status); }; } &&
  4315. { ac_try='test -s conftest$ac_exeext'
  4316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4317. (eval $ac_try) 2>&5
  4318. ac_status=$?
  4319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4320. (exit $ac_status); }; }; then
  4321. ac_cv_lib_bind___res_mkquery=yes
  4322. else
  4323. echo "$as_me: failed program was:" >&5
  4324. sed 's/^/| /' conftest.$ac_ext >&5
  4325. ac_cv_lib_bind___res_mkquery=no
  4326. fi
  4327. rm -f conftest.err conftest.$ac_objext \
  4328. conftest$ac_exeext conftest.$ac_ext
  4329. LIBS=$ac_check_lib_save_LIBS
  4330. fi
  4331. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4332. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4333. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4334. if test "x${RESLIB}" != "x-lbind"; then
  4335. RESLIB="${RESLIB} -lbind"
  4336. fi
  4337. else
  4338. dns_reslib_avail="false";
  4339. fi
  4340. fi
  4341. fi
  4342. fi
  4343. if test "${dns_reslib_avail}" = false; then
  4344. if test "$ac_cv_cygwin" = "yes"; then
  4345. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4346. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4347. if test -r /usr/local/bind/lib/libbind.a; then
  4348. echo "$as_me:$LINENO: result: yes" >&5
  4349. echo "${ECHO_T}yes" >&6
  4350. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4351. RESINCLUDE="-I/usr/local/bind/include"
  4352. dns_reslib_avail="true"
  4353. else
  4354. echo "$as_me:$LINENO: result: no" >&5
  4355. echo "${ECHO_T}no" >&6
  4356. fi
  4357. fi
  4358. fi
  4359. if test "${dns_reslib_avail}" = false; then
  4360. cat >&2 <<EOF
  4361. configure: warning:
  4362. Your system provides no functional resolver library.
  4363. One is required for buld.
  4364. EOF
  4365. exit 1
  4366. fi
  4367. # Check for IPv6 support
  4368. #EGG_IPV6_SUPPORTED
  4369. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4370. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  4371. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4372. if test "${enable_ipv6+set}" = set; then
  4373. enableval="$enable_ipv6"
  4374. ac_cv_dipv6="yes"
  4375. echo "$as_me:$LINENO: result: yes" >&5
  4376. echo "${ECHO_T}yes" >&6
  4377. else
  4378. ac_cv_dipv6="no"
  4379. if test "$egg_cv_ipv6_supported" = "no"; then
  4380. ac_cv_dipv6="no"
  4381. fi
  4382. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4383. echo "${ECHO_T}$ac_cv_dipv6" >&6
  4384. fi;
  4385. if ! test "$EGG_CYGWIN" = "yes"; then
  4386. if test "$ac_cv_dipv6" = "no"; then
  4387. cat >>confdefs.h <<\_ACEOF
  4388. #define USE_IPV6 1
  4389. _ACEOF
  4390. fi
  4391. fi
  4392. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4393. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4394. if test "${egg_cv_socklen_t+set}" = set; then
  4395. echo $ECHO_N "(cached) $ECHO_C" >&6
  4396. else
  4397. if test "$cross_compiling" = yes; then
  4398. egg_cv_socklen_t=no
  4399. else
  4400. cat >conftest.$ac_ext <<_ACEOF
  4401. /* confdefs.h. */
  4402. _ACEOF
  4403. cat confdefs.h >>conftest.$ac_ext
  4404. cat >>conftest.$ac_ext <<_ACEOF
  4405. /* end confdefs.h. */
  4406. #include <unistd.h>
  4407. #include <sys/types.h>
  4408. #include <sys/socket.h>
  4409. #include <netinet/in.h>
  4410. #include <arpa/inet.h>
  4411. int main()
  4412. {
  4413. socklen_t test = sizeof(int);
  4414. return 0;
  4415. }
  4416. _ACEOF
  4417. rm -f conftest$ac_exeext
  4418. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4419. (eval $ac_link) 2>&5
  4420. ac_status=$?
  4421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4422. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4424. (eval $ac_try) 2>&5
  4425. ac_status=$?
  4426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4427. (exit $ac_status); }; }; then
  4428. egg_cv_socklen_t=yes
  4429. else
  4430. echo "$as_me: program exited with status $ac_status" >&5
  4431. echo "$as_me: failed program was:" >&5
  4432. sed 's/^/| /' conftest.$ac_ext >&5
  4433. ( exit $ac_status )
  4434. egg_cv_socklen_t=no
  4435. fi
  4436. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4437. fi
  4438. fi
  4439. if test "$egg_cv_socklen_t" = "yes"; then
  4440. cat >>confdefs.h <<\_ACEOF
  4441. #define HAVE_SOCKLEN_T 1
  4442. _ACEOF
  4443. echo "$as_me:$LINENO: result: yes" >&5
  4444. echo "${ECHO_T}yes" >&6
  4445. else
  4446. echo "$as_me:$LINENO: result: no" >&5
  4447. echo "${ECHO_T}no" >&6
  4448. fi
  4449. #checkpoint
  4450. cat >confcache <<\_ACEOF
  4451. # This file is a shell script that caches the results of configure
  4452. # tests run on this system so they can be shared between configure
  4453. # scripts and configure runs, see configure's option --config-cache.
  4454. # It is not useful on other systems. If it contains results you don't
  4455. # want to keep, you may remove or edit it.
  4456. #
  4457. # config.status only pays attention to the cache file if you give it
  4458. # the --recheck option to rerun configure.
  4459. #
  4460. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4461. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4462. # following values.
  4463. _ACEOF
  4464. # The following way of writing the cache mishandles newlines in values,
  4465. # but we know of no workaround that is simple, portable, and efficient.
  4466. # So, don't put newlines in cache variables' values.
  4467. # Ultrix sh set writes to stderr and can't be redirected directly,
  4468. # and sets the high bit in the cache file unless we assign to the vars.
  4469. {
  4470. (set) 2>&1 |
  4471. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4472. *ac_space=\ *)
  4473. # `set' does not quote correctly, so add quotes (double-quote
  4474. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4475. sed -n \
  4476. "s/'/'\\\\''/g;
  4477. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4478. ;;
  4479. *)
  4480. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4481. sed -n \
  4482. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4483. ;;
  4484. esac;
  4485. } |
  4486. sed '
  4487. t clear
  4488. : clear
  4489. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4490. t end
  4491. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4492. : end' >>confcache
  4493. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4494. if test -w $cache_file; then
  4495. test "x$cache_file" != "x/dev/null"
  4496. cat confcache >$cache_file
  4497. else
  4498. echo "not updating unwritable cache $cache_file"
  4499. fi
  4500. fi
  4501. rm -f confcache
  4502. # Checks for system libraries
  4503. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4504. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4505. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4506. echo $ECHO_N "(cached) $ECHO_C" >&6
  4507. else
  4508. ac_check_lib_save_LIBS=$LIBS
  4509. LIBS="-lsocket $LIBS"
  4510. cat >conftest.$ac_ext <<_ACEOF
  4511. /* confdefs.h. */
  4512. _ACEOF
  4513. cat confdefs.h >>conftest.$ac_ext
  4514. cat >>conftest.$ac_ext <<_ACEOF
  4515. /* end confdefs.h. */
  4516. /* Override any gcc2 internal prototype to avoid an error. */
  4517. #ifdef __cplusplus
  4518. extern "C"
  4519. #endif
  4520. /* We use char because int might match the return type of a gcc2
  4521. builtin and then its argument prototype would still apply. */
  4522. char socket ();
  4523. int
  4524. main ()
  4525. {
  4526. socket ();
  4527. ;
  4528. return 0;
  4529. }
  4530. _ACEOF
  4531. rm -f conftest.$ac_objext conftest$ac_exeext
  4532. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4533. (eval $ac_link) 2>conftest.er1
  4534. ac_status=$?
  4535. grep -v '^ *+' conftest.er1 >conftest.err
  4536. rm -f conftest.er1
  4537. cat conftest.err >&5
  4538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4539. (exit $ac_status); } &&
  4540. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4542. (eval $ac_try) 2>&5
  4543. ac_status=$?
  4544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4545. (exit $ac_status); }; } &&
  4546. { ac_try='test -s conftest$ac_exeext'
  4547. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4548. (eval $ac_try) 2>&5
  4549. ac_status=$?
  4550. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4551. (exit $ac_status); }; }; then
  4552. ac_cv_lib_socket_socket=yes
  4553. else
  4554. echo "$as_me: failed program was:" >&5
  4555. sed 's/^/| /' conftest.$ac_ext >&5
  4556. ac_cv_lib_socket_socket=no
  4557. fi
  4558. rm -f conftest.err conftest.$ac_objext \
  4559. conftest$ac_exeext conftest.$ac_ext
  4560. LIBS=$ac_check_lib_save_LIBS
  4561. fi
  4562. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4563. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4564. if test $ac_cv_lib_socket_socket = yes; then
  4565. cat >>confdefs.h <<_ACEOF
  4566. #define HAVE_LIBSOCKET 1
  4567. _ACEOF
  4568. LIBS="-lsocket $LIBS"
  4569. fi
  4570. # AC_CHECK_LIB(nsl, connect)
  4571. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4572. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4573. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4574. echo $ECHO_N "(cached) $ECHO_C" >&6
  4575. else
  4576. ac_check_lib_save_LIBS=$LIBS
  4577. LIBS="-ldns $LIBS"
  4578. cat >conftest.$ac_ext <<_ACEOF
  4579. /* confdefs.h. */
  4580. _ACEOF
  4581. cat confdefs.h >>conftest.$ac_ext
  4582. cat >>conftest.$ac_ext <<_ACEOF
  4583. /* end confdefs.h. */
  4584. /* Override any gcc2 internal prototype to avoid an error. */
  4585. #ifdef __cplusplus
  4586. extern "C"
  4587. #endif
  4588. /* We use char because int might match the return type of a gcc2
  4589. builtin and then its argument prototype would still apply. */
  4590. char gethostbyname ();
  4591. int
  4592. main ()
  4593. {
  4594. gethostbyname ();
  4595. ;
  4596. return 0;
  4597. }
  4598. _ACEOF
  4599. rm -f conftest.$ac_objext conftest$ac_exeext
  4600. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4601. (eval $ac_link) 2>conftest.er1
  4602. ac_status=$?
  4603. grep -v '^ *+' conftest.er1 >conftest.err
  4604. rm -f conftest.er1
  4605. cat conftest.err >&5
  4606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4607. (exit $ac_status); } &&
  4608. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4610. (eval $ac_try) 2>&5
  4611. ac_status=$?
  4612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4613. (exit $ac_status); }; } &&
  4614. { ac_try='test -s conftest$ac_exeext'
  4615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4616. (eval $ac_try) 2>&5
  4617. ac_status=$?
  4618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4619. (exit $ac_status); }; }; then
  4620. ac_cv_lib_dns_gethostbyname=yes
  4621. else
  4622. echo "$as_me: failed program was:" >&5
  4623. sed 's/^/| /' conftest.$ac_ext >&5
  4624. ac_cv_lib_dns_gethostbyname=no
  4625. fi
  4626. rm -f conftest.err conftest.$ac_objext \
  4627. conftest$ac_exeext conftest.$ac_ext
  4628. LIBS=$ac_check_lib_save_LIBS
  4629. fi
  4630. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4631. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4632. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4633. cat >>confdefs.h <<_ACEOF
  4634. #define HAVE_LIBDNS 1
  4635. _ACEOF
  4636. LIBS="-ldns $LIBS"
  4637. fi
  4638. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4639. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4640. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4641. # This is needed for Tcl libraries compiled with thread support
  4642. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4643. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4644. # ac_cv_lib_pthread="-lpthread"], [dnl
  4645. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4646. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4647. # ac_cv_lib_pthread="-lpthread"], [dnl
  4648. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4649. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4650. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4651. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4652. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4653. # ac_cv_lib_pthread=""],
  4654. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4655. # Checks for header files
  4656. ac_header_dirent=no
  4657. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4658. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4659. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4660. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4661. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4662. echo $ECHO_N "(cached) $ECHO_C" >&6
  4663. else
  4664. cat >conftest.$ac_ext <<_ACEOF
  4665. /* confdefs.h. */
  4666. _ACEOF
  4667. cat confdefs.h >>conftest.$ac_ext
  4668. cat >>conftest.$ac_ext <<_ACEOF
  4669. /* end confdefs.h. */
  4670. #include <sys/types.h>
  4671. #include <$ac_hdr>
  4672. int
  4673. main ()
  4674. {
  4675. if ((DIR *) 0)
  4676. return 0;
  4677. ;
  4678. return 0;
  4679. }
  4680. _ACEOF
  4681. rm -f conftest.$ac_objext
  4682. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4683. (eval $ac_compile) 2>conftest.er1
  4684. ac_status=$?
  4685. grep -v '^ *+' conftest.er1 >conftest.err
  4686. rm -f conftest.er1
  4687. cat conftest.err >&5
  4688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4689. (exit $ac_status); } &&
  4690. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4692. (eval $ac_try) 2>&5
  4693. ac_status=$?
  4694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4695. (exit $ac_status); }; } &&
  4696. { ac_try='test -s conftest.$ac_objext'
  4697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4698. (eval $ac_try) 2>&5
  4699. ac_status=$?
  4700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4701. (exit $ac_status); }; }; then
  4702. eval "$as_ac_Header=yes"
  4703. else
  4704. echo "$as_me: failed program was:" >&5
  4705. sed 's/^/| /' conftest.$ac_ext >&5
  4706. eval "$as_ac_Header=no"
  4707. fi
  4708. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4709. fi
  4710. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4711. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4712. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4713. cat >>confdefs.h <<_ACEOF
  4714. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4715. _ACEOF
  4716. ac_header_dirent=$ac_hdr; break
  4717. fi
  4718. done
  4719. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4720. if test $ac_header_dirent = dirent.h; then
  4721. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4722. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4723. if test "${ac_cv_search_opendir+set}" = set; then
  4724. echo $ECHO_N "(cached) $ECHO_C" >&6
  4725. else
  4726. ac_func_search_save_LIBS=$LIBS
  4727. ac_cv_search_opendir=no
  4728. cat >conftest.$ac_ext <<_ACEOF
  4729. /* confdefs.h. */
  4730. _ACEOF
  4731. cat confdefs.h >>conftest.$ac_ext
  4732. cat >>conftest.$ac_ext <<_ACEOF
  4733. /* end confdefs.h. */
  4734. /* Override any gcc2 internal prototype to avoid an error. */
  4735. #ifdef __cplusplus
  4736. extern "C"
  4737. #endif
  4738. /* We use char because int might match the return type of a gcc2
  4739. builtin and then its argument prototype would still apply. */
  4740. char opendir ();
  4741. int
  4742. main ()
  4743. {
  4744. opendir ();
  4745. ;
  4746. return 0;
  4747. }
  4748. _ACEOF
  4749. rm -f conftest.$ac_objext conftest$ac_exeext
  4750. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4751. (eval $ac_link) 2>conftest.er1
  4752. ac_status=$?
  4753. grep -v '^ *+' conftest.er1 >conftest.err
  4754. rm -f conftest.er1
  4755. cat conftest.err >&5
  4756. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4757. (exit $ac_status); } &&
  4758. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4760. (eval $ac_try) 2>&5
  4761. ac_status=$?
  4762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4763. (exit $ac_status); }; } &&
  4764. { ac_try='test -s conftest$ac_exeext'
  4765. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4766. (eval $ac_try) 2>&5
  4767. ac_status=$?
  4768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4769. (exit $ac_status); }; }; then
  4770. ac_cv_search_opendir="none required"
  4771. else
  4772. echo "$as_me: failed program was:" >&5
  4773. sed 's/^/| /' conftest.$ac_ext >&5
  4774. fi
  4775. rm -f conftest.err conftest.$ac_objext \
  4776. conftest$ac_exeext conftest.$ac_ext
  4777. if test "$ac_cv_search_opendir" = no; then
  4778. for ac_lib in dir; do
  4779. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4780. cat >conftest.$ac_ext <<_ACEOF
  4781. /* confdefs.h. */
  4782. _ACEOF
  4783. cat confdefs.h >>conftest.$ac_ext
  4784. cat >>conftest.$ac_ext <<_ACEOF
  4785. /* end confdefs.h. */
  4786. /* Override any gcc2 internal prototype to avoid an error. */
  4787. #ifdef __cplusplus
  4788. extern "C"
  4789. #endif
  4790. /* We use char because int might match the return type of a gcc2
  4791. builtin and then its argument prototype would still apply. */
  4792. char opendir ();
  4793. int
  4794. main ()
  4795. {
  4796. opendir ();
  4797. ;
  4798. return 0;
  4799. }
  4800. _ACEOF
  4801. rm -f conftest.$ac_objext conftest$ac_exeext
  4802. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4803. (eval $ac_link) 2>conftest.er1
  4804. ac_status=$?
  4805. grep -v '^ *+' conftest.er1 >conftest.err
  4806. rm -f conftest.er1
  4807. cat conftest.err >&5
  4808. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4809. (exit $ac_status); } &&
  4810. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4811. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4812. (eval $ac_try) 2>&5
  4813. ac_status=$?
  4814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4815. (exit $ac_status); }; } &&
  4816. { ac_try='test -s conftest$ac_exeext'
  4817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4818. (eval $ac_try) 2>&5
  4819. ac_status=$?
  4820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4821. (exit $ac_status); }; }; then
  4822. ac_cv_search_opendir="-l$ac_lib"
  4823. break
  4824. else
  4825. echo "$as_me: failed program was:" >&5
  4826. sed 's/^/| /' conftest.$ac_ext >&5
  4827. fi
  4828. rm -f conftest.err conftest.$ac_objext \
  4829. conftest$ac_exeext conftest.$ac_ext
  4830. done
  4831. fi
  4832. LIBS=$ac_func_search_save_LIBS
  4833. fi
  4834. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4835. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4836. if test "$ac_cv_search_opendir" != no; then
  4837. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4838. fi
  4839. else
  4840. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4841. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4842. if test "${ac_cv_search_opendir+set}" = set; then
  4843. echo $ECHO_N "(cached) $ECHO_C" >&6
  4844. else
  4845. ac_func_search_save_LIBS=$LIBS
  4846. ac_cv_search_opendir=no
  4847. cat >conftest.$ac_ext <<_ACEOF
  4848. /* confdefs.h. */
  4849. _ACEOF
  4850. cat confdefs.h >>conftest.$ac_ext
  4851. cat >>conftest.$ac_ext <<_ACEOF
  4852. /* end confdefs.h. */
  4853. /* Override any gcc2 internal prototype to avoid an error. */
  4854. #ifdef __cplusplus
  4855. extern "C"
  4856. #endif
  4857. /* We use char because int might match the return type of a gcc2
  4858. builtin and then its argument prototype would still apply. */
  4859. char opendir ();
  4860. int
  4861. main ()
  4862. {
  4863. opendir ();
  4864. ;
  4865. return 0;
  4866. }
  4867. _ACEOF
  4868. rm -f conftest.$ac_objext conftest$ac_exeext
  4869. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4870. (eval $ac_link) 2>conftest.er1
  4871. ac_status=$?
  4872. grep -v '^ *+' conftest.er1 >conftest.err
  4873. rm -f conftest.er1
  4874. cat conftest.err >&5
  4875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4876. (exit $ac_status); } &&
  4877. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4879. (eval $ac_try) 2>&5
  4880. ac_status=$?
  4881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4882. (exit $ac_status); }; } &&
  4883. { ac_try='test -s conftest$ac_exeext'
  4884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4885. (eval $ac_try) 2>&5
  4886. ac_status=$?
  4887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4888. (exit $ac_status); }; }; then
  4889. ac_cv_search_opendir="none required"
  4890. else
  4891. echo "$as_me: failed program was:" >&5
  4892. sed 's/^/| /' conftest.$ac_ext >&5
  4893. fi
  4894. rm -f conftest.err conftest.$ac_objext \
  4895. conftest$ac_exeext conftest.$ac_ext
  4896. if test "$ac_cv_search_opendir" = no; then
  4897. for ac_lib in x; do
  4898. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4899. cat >conftest.$ac_ext <<_ACEOF
  4900. /* confdefs.h. */
  4901. _ACEOF
  4902. cat confdefs.h >>conftest.$ac_ext
  4903. cat >>conftest.$ac_ext <<_ACEOF
  4904. /* end confdefs.h. */
  4905. /* Override any gcc2 internal prototype to avoid an error. */
  4906. #ifdef __cplusplus
  4907. extern "C"
  4908. #endif
  4909. /* We use char because int might match the return type of a gcc2
  4910. builtin and then its argument prototype would still apply. */
  4911. char opendir ();
  4912. int
  4913. main ()
  4914. {
  4915. opendir ();
  4916. ;
  4917. return 0;
  4918. }
  4919. _ACEOF
  4920. rm -f conftest.$ac_objext conftest$ac_exeext
  4921. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4922. (eval $ac_link) 2>conftest.er1
  4923. ac_status=$?
  4924. grep -v '^ *+' conftest.er1 >conftest.err
  4925. rm -f conftest.er1
  4926. cat conftest.err >&5
  4927. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4928. (exit $ac_status); } &&
  4929. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4930. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4931. (eval $ac_try) 2>&5
  4932. ac_status=$?
  4933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4934. (exit $ac_status); }; } &&
  4935. { ac_try='test -s conftest$ac_exeext'
  4936. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4937. (eval $ac_try) 2>&5
  4938. ac_status=$?
  4939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4940. (exit $ac_status); }; }; then
  4941. ac_cv_search_opendir="-l$ac_lib"
  4942. break
  4943. else
  4944. echo "$as_me: failed program was:" >&5
  4945. sed 's/^/| /' conftest.$ac_ext >&5
  4946. fi
  4947. rm -f conftest.err conftest.$ac_objext \
  4948. conftest$ac_exeext conftest.$ac_ext
  4949. done
  4950. fi
  4951. LIBS=$ac_func_search_save_LIBS
  4952. fi
  4953. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4954. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4955. if test "$ac_cv_search_opendir" != no; then
  4956. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4957. fi
  4958. fi
  4959. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4960. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4961. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4962. echo $ECHO_N "(cached) $ECHO_C" >&6
  4963. else
  4964. cat >conftest.$ac_ext <<_ACEOF
  4965. /* confdefs.h. */
  4966. _ACEOF
  4967. cat confdefs.h >>conftest.$ac_ext
  4968. cat >>conftest.$ac_ext <<_ACEOF
  4969. /* end confdefs.h. */
  4970. #include <sys/types.h>
  4971. #include <sys/wait.h>
  4972. #ifndef WEXITSTATUS
  4973. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4974. #endif
  4975. #ifndef WIFEXITED
  4976. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4977. #endif
  4978. int
  4979. main ()
  4980. {
  4981. int s;
  4982. wait (&s);
  4983. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4984. ;
  4985. return 0;
  4986. }
  4987. _ACEOF
  4988. rm -f conftest.$ac_objext
  4989. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4990. (eval $ac_compile) 2>conftest.er1
  4991. ac_status=$?
  4992. grep -v '^ *+' conftest.er1 >conftest.err
  4993. rm -f conftest.er1
  4994. cat conftest.err >&5
  4995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4996. (exit $ac_status); } &&
  4997. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4999. (eval $ac_try) 2>&5
  5000. ac_status=$?
  5001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5002. (exit $ac_status); }; } &&
  5003. { ac_try='test -s conftest.$ac_objext'
  5004. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5005. (eval $ac_try) 2>&5
  5006. ac_status=$?
  5007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5008. (exit $ac_status); }; }; then
  5009. ac_cv_header_sys_wait_h=yes
  5010. else
  5011. echo "$as_me: failed program was:" >&5
  5012. sed 's/^/| /' conftest.$ac_ext >&5
  5013. ac_cv_header_sys_wait_h=no
  5014. fi
  5015. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5016. fi
  5017. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5018. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5019. if test $ac_cv_header_sys_wait_h = yes; then
  5020. cat >>confdefs.h <<\_ACEOF
  5021. #define HAVE_SYS_WAIT_H 1
  5022. _ACEOF
  5023. fi
  5024. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5025. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5026. if test "${ac_cv_header_time+set}" = set; then
  5027. echo $ECHO_N "(cached) $ECHO_C" >&6
  5028. else
  5029. cat >conftest.$ac_ext <<_ACEOF
  5030. /* confdefs.h. */
  5031. _ACEOF
  5032. cat confdefs.h >>conftest.$ac_ext
  5033. cat >>conftest.$ac_ext <<_ACEOF
  5034. /* end confdefs.h. */
  5035. #include <sys/types.h>
  5036. #include <sys/time.h>
  5037. #include <time.h>
  5038. int
  5039. main ()
  5040. {
  5041. if ((struct tm *) 0)
  5042. return 0;
  5043. ;
  5044. return 0;
  5045. }
  5046. _ACEOF
  5047. rm -f conftest.$ac_objext
  5048. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5049. (eval $ac_compile) 2>conftest.er1
  5050. ac_status=$?
  5051. grep -v '^ *+' conftest.er1 >conftest.err
  5052. rm -f conftest.er1
  5053. cat conftest.err >&5
  5054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5055. (exit $ac_status); } &&
  5056. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5058. (eval $ac_try) 2>&5
  5059. ac_status=$?
  5060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5061. (exit $ac_status); }; } &&
  5062. { ac_try='test -s conftest.$ac_objext'
  5063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5064. (eval $ac_try) 2>&5
  5065. ac_status=$?
  5066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5067. (exit $ac_status); }; }; then
  5068. ac_cv_header_time=yes
  5069. else
  5070. echo "$as_me: failed program was:" >&5
  5071. sed 's/^/| /' conftest.$ac_ext >&5
  5072. ac_cv_header_time=no
  5073. fi
  5074. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5075. fi
  5076. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5077. echo "${ECHO_T}$ac_cv_header_time" >&6
  5078. if test $ac_cv_header_time = yes; then
  5079. cat >>confdefs.h <<\_ACEOF
  5080. #define TIME_WITH_SYS_TIME 1
  5081. _ACEOF
  5082. fi
  5083. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5084. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5085. if test "${ac_cv_header_stat_broken+set}" = set; then
  5086. echo $ECHO_N "(cached) $ECHO_C" >&6
  5087. else
  5088. cat >conftest.$ac_ext <<_ACEOF
  5089. /* confdefs.h. */
  5090. _ACEOF
  5091. cat confdefs.h >>conftest.$ac_ext
  5092. cat >>conftest.$ac_ext <<_ACEOF
  5093. /* end confdefs.h. */
  5094. #include <sys/types.h>
  5095. #include <sys/stat.h>
  5096. #if defined(S_ISBLK) && defined(S_IFDIR)
  5097. # if S_ISBLK (S_IFDIR)
  5098. You lose.
  5099. # endif
  5100. #endif
  5101. #if defined(S_ISBLK) && defined(S_IFCHR)
  5102. # if S_ISBLK (S_IFCHR)
  5103. You lose.
  5104. # endif
  5105. #endif
  5106. #if defined(S_ISLNK) && defined(S_IFREG)
  5107. # if S_ISLNK (S_IFREG)
  5108. You lose.
  5109. # endif
  5110. #endif
  5111. #if defined(S_ISSOCK) && defined(S_IFREG)
  5112. # if S_ISSOCK (S_IFREG)
  5113. You lose.
  5114. # endif
  5115. #endif
  5116. _ACEOF
  5117. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5118. $EGREP "You lose" >/dev/null 2>&1; then
  5119. ac_cv_header_stat_broken=yes
  5120. else
  5121. ac_cv_header_stat_broken=no
  5122. fi
  5123. rm -f conftest*
  5124. fi
  5125. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5126. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5127. if test $ac_cv_header_stat_broken = yes; then
  5128. cat >>confdefs.h <<\_ACEOF
  5129. #define STAT_MACROS_BROKEN 1
  5130. _ACEOF
  5131. fi
  5132. #checkpoint
  5133. cat >confcache <<\_ACEOF
  5134. # This file is a shell script that caches the results of configure
  5135. # tests run on this system so they can be shared between configure
  5136. # scripts and configure runs, see configure's option --config-cache.
  5137. # It is not useful on other systems. If it contains results you don't
  5138. # want to keep, you may remove or edit it.
  5139. #
  5140. # config.status only pays attention to the cache file if you give it
  5141. # the --recheck option to rerun configure.
  5142. #
  5143. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5144. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5145. # following values.
  5146. _ACEOF
  5147. # The following way of writing the cache mishandles newlines in values,
  5148. # but we know of no workaround that is simple, portable, and efficient.
  5149. # So, don't put newlines in cache variables' values.
  5150. # Ultrix sh set writes to stderr and can't be redirected directly,
  5151. # and sets the high bit in the cache file unless we assign to the vars.
  5152. {
  5153. (set) 2>&1 |
  5154. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5155. *ac_space=\ *)
  5156. # `set' does not quote correctly, so add quotes (double-quote
  5157. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5158. sed -n \
  5159. "s/'/'\\\\''/g;
  5160. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5161. ;;
  5162. *)
  5163. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5164. sed -n \
  5165. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5166. ;;
  5167. esac;
  5168. } |
  5169. sed '
  5170. t clear
  5171. : clear
  5172. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5173. t end
  5174. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5175. : end' >>confcache
  5176. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5177. if test -w $cache_file; then
  5178. test "x$cache_file" != "x/dev/null"
  5179. cat confcache >$cache_file
  5180. else
  5181. echo "not updating unwritable cache $cache_file"
  5182. fi
  5183. fi
  5184. rm -f confcache
  5185. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5186. do
  5187. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5188. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5189. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5190. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5191. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5192. echo $ECHO_N "(cached) $ECHO_C" >&6
  5193. fi
  5194. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5195. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5196. else
  5197. # Is the header compilable?
  5198. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5199. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5200. cat >conftest.$ac_ext <<_ACEOF
  5201. /* confdefs.h. */
  5202. _ACEOF
  5203. cat confdefs.h >>conftest.$ac_ext
  5204. cat >>conftest.$ac_ext <<_ACEOF
  5205. /* end confdefs.h. */
  5206. $ac_includes_default
  5207. #include <$ac_header>
  5208. _ACEOF
  5209. rm -f conftest.$ac_objext
  5210. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5211. (eval $ac_compile) 2>conftest.er1
  5212. ac_status=$?
  5213. grep -v '^ *+' conftest.er1 >conftest.err
  5214. rm -f conftest.er1
  5215. cat conftest.err >&5
  5216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5217. (exit $ac_status); } &&
  5218. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5220. (eval $ac_try) 2>&5
  5221. ac_status=$?
  5222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5223. (exit $ac_status); }; } &&
  5224. { ac_try='test -s conftest.$ac_objext'
  5225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5226. (eval $ac_try) 2>&5
  5227. ac_status=$?
  5228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5229. (exit $ac_status); }; }; then
  5230. ac_header_compiler=yes
  5231. else
  5232. echo "$as_me: failed program was:" >&5
  5233. sed 's/^/| /' conftest.$ac_ext >&5
  5234. ac_header_compiler=no
  5235. fi
  5236. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5237. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5238. echo "${ECHO_T}$ac_header_compiler" >&6
  5239. # Is the header present?
  5240. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5241. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5242. cat >conftest.$ac_ext <<_ACEOF
  5243. /* confdefs.h. */
  5244. _ACEOF
  5245. cat confdefs.h >>conftest.$ac_ext
  5246. cat >>conftest.$ac_ext <<_ACEOF
  5247. /* end confdefs.h. */
  5248. #include <$ac_header>
  5249. _ACEOF
  5250. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5251. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5252. ac_status=$?
  5253. grep -v '^ *+' conftest.er1 >conftest.err
  5254. rm -f conftest.er1
  5255. cat conftest.err >&5
  5256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5257. (exit $ac_status); } >/dev/null; then
  5258. if test -s conftest.err; then
  5259. ac_cpp_err=$ac_c_preproc_warn_flag
  5260. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5261. else
  5262. ac_cpp_err=
  5263. fi
  5264. else
  5265. ac_cpp_err=yes
  5266. fi
  5267. if test -z "$ac_cpp_err"; then
  5268. ac_header_preproc=yes
  5269. else
  5270. echo "$as_me: failed program was:" >&5
  5271. sed 's/^/| /' conftest.$ac_ext >&5
  5272. ac_header_preproc=no
  5273. fi
  5274. rm -f conftest.err conftest.$ac_ext
  5275. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5276. echo "${ECHO_T}$ac_header_preproc" >&6
  5277. # So? What about this header?
  5278. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5279. yes:no: )
  5280. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5281. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5282. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5283. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5284. ac_header_preproc=yes
  5285. ;;
  5286. no:yes:* )
  5287. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5288. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5289. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5290. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5291. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5292. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5293. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5294. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5295. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5296. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5297. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5298. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5299. (
  5300. cat <<\_ASBOX
  5301. ## ------------------------------------------ ##
  5302. ## Report this to the AC_PACKAGE_NAME lists. ##
  5303. ## ------------------------------------------ ##
  5304. _ASBOX
  5305. ) |
  5306. sed "s/^/$as_me: WARNING: /" >&2
  5307. ;;
  5308. esac
  5309. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5310. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5311. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5312. echo $ECHO_N "(cached) $ECHO_C" >&6
  5313. else
  5314. eval "$as_ac_Header=\$ac_header_preproc"
  5315. fi
  5316. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5317. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5318. fi
  5319. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5320. cat >>confdefs.h <<_ACEOF
  5321. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5322. _ACEOF
  5323. fi
  5324. done
  5325. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5326. do
  5327. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5328. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5329. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5330. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5331. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5332. echo $ECHO_N "(cached) $ECHO_C" >&6
  5333. fi
  5334. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5335. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5336. else
  5337. # Is the header compilable?
  5338. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5339. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5340. cat >conftest.$ac_ext <<_ACEOF
  5341. /* confdefs.h. */
  5342. _ACEOF
  5343. cat confdefs.h >>conftest.$ac_ext
  5344. cat >>conftest.$ac_ext <<_ACEOF
  5345. /* end confdefs.h. */
  5346. $ac_includes_default
  5347. #include <$ac_header>
  5348. _ACEOF
  5349. rm -f conftest.$ac_objext
  5350. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5351. (eval $ac_compile) 2>conftest.er1
  5352. ac_status=$?
  5353. grep -v '^ *+' conftest.er1 >conftest.err
  5354. rm -f conftest.er1
  5355. cat conftest.err >&5
  5356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5357. (exit $ac_status); } &&
  5358. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5360. (eval $ac_try) 2>&5
  5361. ac_status=$?
  5362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5363. (exit $ac_status); }; } &&
  5364. { ac_try='test -s conftest.$ac_objext'
  5365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5366. (eval $ac_try) 2>&5
  5367. ac_status=$?
  5368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5369. (exit $ac_status); }; }; then
  5370. ac_header_compiler=yes
  5371. else
  5372. echo "$as_me: failed program was:" >&5
  5373. sed 's/^/| /' conftest.$ac_ext >&5
  5374. ac_header_compiler=no
  5375. fi
  5376. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5377. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5378. echo "${ECHO_T}$ac_header_compiler" >&6
  5379. # Is the header present?
  5380. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5381. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5382. cat >conftest.$ac_ext <<_ACEOF
  5383. /* confdefs.h. */
  5384. _ACEOF
  5385. cat confdefs.h >>conftest.$ac_ext
  5386. cat >>conftest.$ac_ext <<_ACEOF
  5387. /* end confdefs.h. */
  5388. #include <$ac_header>
  5389. _ACEOF
  5390. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5391. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5392. ac_status=$?
  5393. grep -v '^ *+' conftest.er1 >conftest.err
  5394. rm -f conftest.er1
  5395. cat conftest.err >&5
  5396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5397. (exit $ac_status); } >/dev/null; then
  5398. if test -s conftest.err; then
  5399. ac_cpp_err=$ac_c_preproc_warn_flag
  5400. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5401. else
  5402. ac_cpp_err=
  5403. fi
  5404. else
  5405. ac_cpp_err=yes
  5406. fi
  5407. if test -z "$ac_cpp_err"; then
  5408. ac_header_preproc=yes
  5409. else
  5410. echo "$as_me: failed program was:" >&5
  5411. sed 's/^/| /' conftest.$ac_ext >&5
  5412. ac_header_preproc=no
  5413. fi
  5414. rm -f conftest.err conftest.$ac_ext
  5415. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5416. echo "${ECHO_T}$ac_header_preproc" >&6
  5417. # So? What about this header?
  5418. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5419. yes:no: )
  5420. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5421. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5422. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5423. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5424. ac_header_preproc=yes
  5425. ;;
  5426. no:yes:* )
  5427. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5428. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5429. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5430. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5431. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5432. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5433. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5434. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5435. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5436. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5437. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5438. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5439. (
  5440. cat <<\_ASBOX
  5441. ## ------------------------------------------ ##
  5442. ## Report this to the AC_PACKAGE_NAME lists. ##
  5443. ## ------------------------------------------ ##
  5444. _ASBOX
  5445. ) |
  5446. sed "s/^/$as_me: WARNING: /" >&2
  5447. ;;
  5448. esac
  5449. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5450. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5451. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5452. echo $ECHO_N "(cached) $ECHO_C" >&6
  5453. else
  5454. eval "$as_ac_Header=\$ac_header_preproc"
  5455. fi
  5456. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5457. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5458. fi
  5459. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5460. cat >>confdefs.h <<_ACEOF
  5461. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5462. _ACEOF
  5463. fi
  5464. done
  5465. #checkpoint
  5466. cat >confcache <<\_ACEOF
  5467. # This file is a shell script that caches the results of configure
  5468. # tests run on this system so they can be shared between configure
  5469. # scripts and configure runs, see configure's option --config-cache.
  5470. # It is not useful on other systems. If it contains results you don't
  5471. # want to keep, you may remove or edit it.
  5472. #
  5473. # config.status only pays attention to the cache file if you give it
  5474. # the --recheck option to rerun configure.
  5475. #
  5476. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5477. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5478. # following values.
  5479. _ACEOF
  5480. # The following way of writing the cache mishandles newlines in values,
  5481. # but we know of no workaround that is simple, portable, and efficient.
  5482. # So, don't put newlines in cache variables' values.
  5483. # Ultrix sh set writes to stderr and can't be redirected directly,
  5484. # and sets the high bit in the cache file unless we assign to the vars.
  5485. {
  5486. (set) 2>&1 |
  5487. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5488. *ac_space=\ *)
  5489. # `set' does not quote correctly, so add quotes (double-quote
  5490. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5491. sed -n \
  5492. "s/'/'\\\\''/g;
  5493. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5494. ;;
  5495. *)
  5496. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5497. sed -n \
  5498. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5499. ;;
  5500. esac;
  5501. } |
  5502. sed '
  5503. t clear
  5504. : clear
  5505. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5506. t end
  5507. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5508. : end' >>confcache
  5509. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5510. if test -w $cache_file; then
  5511. test "x$cache_file" != "x/dev/null"
  5512. cat confcache >$cache_file
  5513. else
  5514. echo "not updating unwritable cache $cache_file"
  5515. fi
  5516. fi
  5517. rm -f confcache
  5518. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5519. #AC_CHECK_HEADERS(zlib.h)
  5520. #EGG_CHECK_ZLIB
  5521. #EGG_CHECK_SSL
  5522. #AC_SUBST(SSL)dnl
  5523. # Checks for typedefs, structures, and compiler characteristics
  5524. echo "$as_me:$LINENO: checking for pid_t" >&5
  5525. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5526. if test "${ac_cv_type_pid_t+set}" = set; then
  5527. echo $ECHO_N "(cached) $ECHO_C" >&6
  5528. else
  5529. cat >conftest.$ac_ext <<_ACEOF
  5530. /* confdefs.h. */
  5531. _ACEOF
  5532. cat confdefs.h >>conftest.$ac_ext
  5533. cat >>conftest.$ac_ext <<_ACEOF
  5534. /* end confdefs.h. */
  5535. $ac_includes_default
  5536. int
  5537. main ()
  5538. {
  5539. if ((pid_t *) 0)
  5540. return 0;
  5541. if (sizeof (pid_t))
  5542. return 0;
  5543. ;
  5544. return 0;
  5545. }
  5546. _ACEOF
  5547. rm -f conftest.$ac_objext
  5548. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5549. (eval $ac_compile) 2>conftest.er1
  5550. ac_status=$?
  5551. grep -v '^ *+' conftest.er1 >conftest.err
  5552. rm -f conftest.er1
  5553. cat conftest.err >&5
  5554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5555. (exit $ac_status); } &&
  5556. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5558. (eval $ac_try) 2>&5
  5559. ac_status=$?
  5560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5561. (exit $ac_status); }; } &&
  5562. { ac_try='test -s conftest.$ac_objext'
  5563. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5564. (eval $ac_try) 2>&5
  5565. ac_status=$?
  5566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5567. (exit $ac_status); }; }; then
  5568. ac_cv_type_pid_t=yes
  5569. else
  5570. echo "$as_me: failed program was:" >&5
  5571. sed 's/^/| /' conftest.$ac_ext >&5
  5572. ac_cv_type_pid_t=no
  5573. fi
  5574. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5575. fi
  5576. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5577. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5578. if test $ac_cv_type_pid_t = yes; then
  5579. :
  5580. else
  5581. cat >>confdefs.h <<_ACEOF
  5582. #define pid_t int
  5583. _ACEOF
  5584. fi
  5585. echo "$as_me:$LINENO: checking for size_t" >&5
  5586. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5587. if test "${ac_cv_type_size_t+set}" = set; then
  5588. echo $ECHO_N "(cached) $ECHO_C" >&6
  5589. else
  5590. cat >conftest.$ac_ext <<_ACEOF
  5591. /* confdefs.h. */
  5592. _ACEOF
  5593. cat confdefs.h >>conftest.$ac_ext
  5594. cat >>conftest.$ac_ext <<_ACEOF
  5595. /* end confdefs.h. */
  5596. $ac_includes_default
  5597. int
  5598. main ()
  5599. {
  5600. if ((size_t *) 0)
  5601. return 0;
  5602. if (sizeof (size_t))
  5603. return 0;
  5604. ;
  5605. return 0;
  5606. }
  5607. _ACEOF
  5608. rm -f conftest.$ac_objext
  5609. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5610. (eval $ac_compile) 2>conftest.er1
  5611. ac_status=$?
  5612. grep -v '^ *+' conftest.er1 >conftest.err
  5613. rm -f conftest.er1
  5614. cat conftest.err >&5
  5615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5616. (exit $ac_status); } &&
  5617. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5619. (eval $ac_try) 2>&5
  5620. ac_status=$?
  5621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5622. (exit $ac_status); }; } &&
  5623. { ac_try='test -s conftest.$ac_objext'
  5624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5625. (eval $ac_try) 2>&5
  5626. ac_status=$?
  5627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5628. (exit $ac_status); }; }; then
  5629. ac_cv_type_size_t=yes
  5630. else
  5631. echo "$as_me: failed program was:" >&5
  5632. sed 's/^/| /' conftest.$ac_ext >&5
  5633. ac_cv_type_size_t=no
  5634. fi
  5635. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5636. fi
  5637. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5638. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5639. if test $ac_cv_type_size_t = yes; then
  5640. :
  5641. else
  5642. cat >>confdefs.h <<_ACEOF
  5643. #define size_t unsigned
  5644. _ACEOF
  5645. fi
  5646. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5647. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5648. if test "${ac_cv_type_uid_t+set}" = set; then
  5649. echo $ECHO_N "(cached) $ECHO_C" >&6
  5650. else
  5651. cat >conftest.$ac_ext <<_ACEOF
  5652. /* confdefs.h. */
  5653. _ACEOF
  5654. cat confdefs.h >>conftest.$ac_ext
  5655. cat >>conftest.$ac_ext <<_ACEOF
  5656. /* end confdefs.h. */
  5657. #include <sys/types.h>
  5658. _ACEOF
  5659. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5660. $EGREP "uid_t" >/dev/null 2>&1; then
  5661. ac_cv_type_uid_t=yes
  5662. else
  5663. ac_cv_type_uid_t=no
  5664. fi
  5665. rm -f conftest*
  5666. fi
  5667. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5668. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5669. if test $ac_cv_type_uid_t = no; then
  5670. cat >>confdefs.h <<\_ACEOF
  5671. #define uid_t int
  5672. _ACEOF
  5673. cat >>confdefs.h <<\_ACEOF
  5674. #define gid_t int
  5675. _ACEOF
  5676. fi
  5677. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5678. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5679. if test "${ac_cv_c_const+set}" = set; then
  5680. echo $ECHO_N "(cached) $ECHO_C" >&6
  5681. else
  5682. cat >conftest.$ac_ext <<_ACEOF
  5683. /* confdefs.h. */
  5684. _ACEOF
  5685. cat confdefs.h >>conftest.$ac_ext
  5686. cat >>conftest.$ac_ext <<_ACEOF
  5687. /* end confdefs.h. */
  5688. int
  5689. main ()
  5690. {
  5691. /* FIXME: Include the comments suggested by Paul. */
  5692. #ifndef __cplusplus
  5693. /* Ultrix mips cc rejects this. */
  5694. typedef int charset[2];
  5695. const charset x;
  5696. /* SunOS 4.1.1 cc rejects this. */
  5697. char const *const *ccp;
  5698. char **p;
  5699. /* NEC SVR4.0.2 mips cc rejects this. */
  5700. struct point {int x, y;};
  5701. static struct point const zero = {0,0};
  5702. /* AIX XL C 1.02.0.0 rejects this.
  5703. It does not let you subtract one const X* pointer from another in
  5704. an arm of an if-expression whose if-part is not a constant
  5705. expression */
  5706. const char *g = "string";
  5707. ccp = &g + (g ? g-g : 0);
  5708. /* HPUX 7.0 cc rejects these. */
  5709. ++ccp;
  5710. p = (char**) ccp;
  5711. ccp = (char const *const *) p;
  5712. { /* SCO 3.2v4 cc rejects this. */
  5713. char *t;
  5714. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5715. *t++ = 0;
  5716. }
  5717. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5718. int x[] = {25, 17};
  5719. const int *foo = &x[0];
  5720. ++foo;
  5721. }
  5722. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5723. typedef const int *iptr;
  5724. iptr p = 0;
  5725. ++p;
  5726. }
  5727. { /* AIX XL C 1.02.0.0 rejects this saying
  5728. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5729. struct s { int j; const int *ap[3]; };
  5730. struct s *b; b->j = 5;
  5731. }
  5732. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5733. const int foo = 10;
  5734. }
  5735. #endif
  5736. ;
  5737. return 0;
  5738. }
  5739. _ACEOF
  5740. rm -f conftest.$ac_objext
  5741. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5742. (eval $ac_compile) 2>conftest.er1
  5743. ac_status=$?
  5744. grep -v '^ *+' conftest.er1 >conftest.err
  5745. rm -f conftest.er1
  5746. cat conftest.err >&5
  5747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5748. (exit $ac_status); } &&
  5749. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5750. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5751. (eval $ac_try) 2>&5
  5752. ac_status=$?
  5753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5754. (exit $ac_status); }; } &&
  5755. { ac_try='test -s conftest.$ac_objext'
  5756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5757. (eval $ac_try) 2>&5
  5758. ac_status=$?
  5759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5760. (exit $ac_status); }; }; then
  5761. ac_cv_c_const=yes
  5762. else
  5763. echo "$as_me: failed program was:" >&5
  5764. sed 's/^/| /' conftest.$ac_ext >&5
  5765. ac_cv_c_const=no
  5766. fi
  5767. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5768. fi
  5769. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5770. echo "${ECHO_T}$ac_cv_c_const" >&6
  5771. if test $ac_cv_c_const = no; then
  5772. cat >>confdefs.h <<\_ACEOF
  5773. #define const
  5774. _ACEOF
  5775. fi
  5776. echo "$as_me:$LINENO: checking for working volatile" >&5
  5777. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5778. if test "${ac_cv_c_volatile+set}" = set; then
  5779. echo $ECHO_N "(cached) $ECHO_C" >&6
  5780. else
  5781. cat >conftest.$ac_ext <<_ACEOF
  5782. /* confdefs.h. */
  5783. _ACEOF
  5784. cat confdefs.h >>conftest.$ac_ext
  5785. cat >>conftest.$ac_ext <<_ACEOF
  5786. /* end confdefs.h. */
  5787. int
  5788. main ()
  5789. {
  5790. volatile int x;
  5791. int * volatile y;
  5792. ;
  5793. return 0;
  5794. }
  5795. _ACEOF
  5796. rm -f conftest.$ac_objext
  5797. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5798. (eval $ac_compile) 2>conftest.er1
  5799. ac_status=$?
  5800. grep -v '^ *+' conftest.er1 >conftest.err
  5801. rm -f conftest.er1
  5802. cat conftest.err >&5
  5803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5804. (exit $ac_status); } &&
  5805. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5807. (eval $ac_try) 2>&5
  5808. ac_status=$?
  5809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5810. (exit $ac_status); }; } &&
  5811. { ac_try='test -s conftest.$ac_objext'
  5812. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5813. (eval $ac_try) 2>&5
  5814. ac_status=$?
  5815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5816. (exit $ac_status); }; }; then
  5817. ac_cv_c_volatile=yes
  5818. else
  5819. echo "$as_me: failed program was:" >&5
  5820. sed 's/^/| /' conftest.$ac_ext >&5
  5821. ac_cv_c_volatile=no
  5822. fi
  5823. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5824. fi
  5825. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5826. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5827. if test $ac_cv_c_volatile = no; then
  5828. cat >>confdefs.h <<\_ACEOF
  5829. #define volatile
  5830. _ACEOF
  5831. fi
  5832. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5833. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5834. if test "${ac_cv_c_bigendian+set}" = set; then
  5835. echo $ECHO_N "(cached) $ECHO_C" >&6
  5836. else
  5837. # See if sys/param.h defines the BYTE_ORDER macro.
  5838. cat >conftest.$ac_ext <<_ACEOF
  5839. /* confdefs.h. */
  5840. _ACEOF
  5841. cat confdefs.h >>conftest.$ac_ext
  5842. cat >>conftest.$ac_ext <<_ACEOF
  5843. /* end confdefs.h. */
  5844. #include <sys/types.h>
  5845. #include <sys/param.h>
  5846. int
  5847. main ()
  5848. {
  5849. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5850. bogus endian macros
  5851. #endif
  5852. ;
  5853. return 0;
  5854. }
  5855. _ACEOF
  5856. rm -f conftest.$ac_objext
  5857. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5858. (eval $ac_compile) 2>conftest.er1
  5859. ac_status=$?
  5860. grep -v '^ *+' conftest.er1 >conftest.err
  5861. rm -f conftest.er1
  5862. cat conftest.err >&5
  5863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5864. (exit $ac_status); } &&
  5865. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5866. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5867. (eval $ac_try) 2>&5
  5868. ac_status=$?
  5869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5870. (exit $ac_status); }; } &&
  5871. { ac_try='test -s conftest.$ac_objext'
  5872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5873. (eval $ac_try) 2>&5
  5874. ac_status=$?
  5875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5876. (exit $ac_status); }; }; then
  5877. # It does; now see whether it defined to BIG_ENDIAN or not.
  5878. cat >conftest.$ac_ext <<_ACEOF
  5879. /* confdefs.h. */
  5880. _ACEOF
  5881. cat confdefs.h >>conftest.$ac_ext
  5882. cat >>conftest.$ac_ext <<_ACEOF
  5883. /* end confdefs.h. */
  5884. #include <sys/types.h>
  5885. #include <sys/param.h>
  5886. int
  5887. main ()
  5888. {
  5889. #if BYTE_ORDER != BIG_ENDIAN
  5890. not big endian
  5891. #endif
  5892. ;
  5893. return 0;
  5894. }
  5895. _ACEOF
  5896. rm -f conftest.$ac_objext
  5897. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5898. (eval $ac_compile) 2>conftest.er1
  5899. ac_status=$?
  5900. grep -v '^ *+' conftest.er1 >conftest.err
  5901. rm -f conftest.er1
  5902. cat conftest.err >&5
  5903. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5904. (exit $ac_status); } &&
  5905. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5907. (eval $ac_try) 2>&5
  5908. ac_status=$?
  5909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5910. (exit $ac_status); }; } &&
  5911. { ac_try='test -s conftest.$ac_objext'
  5912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5913. (eval $ac_try) 2>&5
  5914. ac_status=$?
  5915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5916. (exit $ac_status); }; }; then
  5917. ac_cv_c_bigendian=yes
  5918. else
  5919. echo "$as_me: failed program was:" >&5
  5920. sed 's/^/| /' conftest.$ac_ext >&5
  5921. ac_cv_c_bigendian=no
  5922. fi
  5923. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5924. else
  5925. echo "$as_me: failed program was:" >&5
  5926. sed 's/^/| /' conftest.$ac_ext >&5
  5927. # It does not; compile a test program.
  5928. if test "$cross_compiling" = yes; then
  5929. # try to guess the endianness by grepping values into an object file
  5930. ac_cv_c_bigendian=unknown
  5931. cat >conftest.$ac_ext <<_ACEOF
  5932. /* confdefs.h. */
  5933. _ACEOF
  5934. cat confdefs.h >>conftest.$ac_ext
  5935. cat >>conftest.$ac_ext <<_ACEOF
  5936. /* end confdefs.h. */
  5937. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5938. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5939. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5940. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5941. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5942. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5943. int
  5944. main ()
  5945. {
  5946. _ascii (); _ebcdic ();
  5947. ;
  5948. return 0;
  5949. }
  5950. _ACEOF
  5951. rm -f conftest.$ac_objext
  5952. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5953. (eval $ac_compile) 2>conftest.er1
  5954. ac_status=$?
  5955. grep -v '^ *+' conftest.er1 >conftest.err
  5956. rm -f conftest.er1
  5957. cat conftest.err >&5
  5958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5959. (exit $ac_status); } &&
  5960. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5962. (eval $ac_try) 2>&5
  5963. ac_status=$?
  5964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5965. (exit $ac_status); }; } &&
  5966. { ac_try='test -s conftest.$ac_objext'
  5967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5968. (eval $ac_try) 2>&5
  5969. ac_status=$?
  5970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5971. (exit $ac_status); }; }; then
  5972. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5973. ac_cv_c_bigendian=yes
  5974. fi
  5975. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5976. if test "$ac_cv_c_bigendian" = unknown; then
  5977. ac_cv_c_bigendian=no
  5978. else
  5979. # finding both strings is unlikely to happen, but who knows?
  5980. ac_cv_c_bigendian=unknown
  5981. fi
  5982. fi
  5983. else
  5984. echo "$as_me: failed program was:" >&5
  5985. sed 's/^/| /' conftest.$ac_ext >&5
  5986. fi
  5987. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5988. else
  5989. cat >conftest.$ac_ext <<_ACEOF
  5990. /* confdefs.h. */
  5991. _ACEOF
  5992. cat confdefs.h >>conftest.$ac_ext
  5993. cat >>conftest.$ac_ext <<_ACEOF
  5994. /* end confdefs.h. */
  5995. int
  5996. main ()
  5997. {
  5998. /* Are we little or big endian? From Harbison&Steele. */
  5999. union
  6000. {
  6001. long l;
  6002. char c[sizeof (long)];
  6003. } u;
  6004. u.l = 1;
  6005. exit (u.c[sizeof (long) - 1] == 1);
  6006. }
  6007. _ACEOF
  6008. rm -f conftest$ac_exeext
  6009. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6010. (eval $ac_link) 2>&5
  6011. ac_status=$?
  6012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6013. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6015. (eval $ac_try) 2>&5
  6016. ac_status=$?
  6017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6018. (exit $ac_status); }; }; then
  6019. ac_cv_c_bigendian=no
  6020. else
  6021. echo "$as_me: program exited with status $ac_status" >&5
  6022. echo "$as_me: failed program was:" >&5
  6023. sed 's/^/| /' conftest.$ac_ext >&5
  6024. ( exit $ac_status )
  6025. ac_cv_c_bigendian=yes
  6026. fi
  6027. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6028. fi
  6029. fi
  6030. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6031. fi
  6032. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6033. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6034. case $ac_cv_c_bigendian in
  6035. yes)
  6036. cat >>confdefs.h <<\_ACEOF
  6037. #define WORDS_BIGENDIAN 1
  6038. _ACEOF
  6039. ;;
  6040. no)
  6041. ;;
  6042. *)
  6043. { { echo "$as_me:$LINENO: error: unknown endianness
  6044. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6045. echo "$as_me: error: unknown endianness
  6046. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6047. { (exit 1); exit 1; }; } ;;
  6048. esac
  6049. echo "$as_me:$LINENO: checking for inline" >&5
  6050. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6051. if test "${ac_cv_c_inline+set}" = set; then
  6052. echo $ECHO_N "(cached) $ECHO_C" >&6
  6053. else
  6054. ac_cv_c_inline=no
  6055. for ac_kw in inline __inline__ __inline; do
  6056. cat >conftest.$ac_ext <<_ACEOF
  6057. /* confdefs.h. */
  6058. _ACEOF
  6059. cat confdefs.h >>conftest.$ac_ext
  6060. cat >>conftest.$ac_ext <<_ACEOF
  6061. /* end confdefs.h. */
  6062. #ifndef __cplusplus
  6063. typedef int foo_t;
  6064. static $ac_kw foo_t static_foo () {return 0; }
  6065. $ac_kw foo_t foo () {return 0; }
  6066. #endif
  6067. _ACEOF
  6068. rm -f conftest.$ac_objext
  6069. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6070. (eval $ac_compile) 2>conftest.er1
  6071. ac_status=$?
  6072. grep -v '^ *+' conftest.er1 >conftest.err
  6073. rm -f conftest.er1
  6074. cat conftest.err >&5
  6075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6076. (exit $ac_status); } &&
  6077. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6079. (eval $ac_try) 2>&5
  6080. ac_status=$?
  6081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6082. (exit $ac_status); }; } &&
  6083. { ac_try='test -s conftest.$ac_objext'
  6084. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6085. (eval $ac_try) 2>&5
  6086. ac_status=$?
  6087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6088. (exit $ac_status); }; }; then
  6089. ac_cv_c_inline=$ac_kw; break
  6090. else
  6091. echo "$as_me: failed program was:" >&5
  6092. sed 's/^/| /' conftest.$ac_ext >&5
  6093. fi
  6094. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6095. done
  6096. fi
  6097. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6098. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6099. case $ac_cv_c_inline in
  6100. inline | yes) ;;
  6101. *)
  6102. case $ac_cv_c_inline in
  6103. no) ac_val=;;
  6104. *) ac_val=$ac_cv_c_inline;;
  6105. esac
  6106. cat >>confdefs.h <<_ACEOF
  6107. #ifndef __cplusplus
  6108. #define inline $ac_val
  6109. #endif
  6110. _ACEOF
  6111. ;;
  6112. esac
  6113. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6114. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  6115. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6116. echo $ECHO_N "(cached) $ECHO_C" >&6
  6117. else
  6118. cat >conftest.$ac_ext <<_ACEOF
  6119. /* confdefs.h. */
  6120. _ACEOF
  6121. cat confdefs.h >>conftest.$ac_ext
  6122. cat >>conftest.$ac_ext <<_ACEOF
  6123. /* end confdefs.h. */
  6124. $ac_includes_default
  6125. int
  6126. main ()
  6127. {
  6128. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6129. test_array [0] = 0
  6130. ;
  6131. return 0;
  6132. }
  6133. _ACEOF
  6134. rm -f conftest.$ac_objext
  6135. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6136. (eval $ac_compile) 2>conftest.er1
  6137. ac_status=$?
  6138. grep -v '^ *+' conftest.er1 >conftest.err
  6139. rm -f conftest.er1
  6140. cat conftest.err >&5
  6141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6142. (exit $ac_status); } &&
  6143. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6145. (eval $ac_try) 2>&5
  6146. ac_status=$?
  6147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6148. (exit $ac_status); }; } &&
  6149. { ac_try='test -s conftest.$ac_objext'
  6150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6151. (eval $ac_try) 2>&5
  6152. ac_status=$?
  6153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6154. (exit $ac_status); }; }; then
  6155. ac_cv_c_char_unsigned=no
  6156. else
  6157. echo "$as_me: failed program was:" >&5
  6158. sed 's/^/| /' conftest.$ac_ext >&5
  6159. ac_cv_c_char_unsigned=yes
  6160. fi
  6161. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6162. fi
  6163. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6164. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  6165. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6166. cat >>confdefs.h <<\_ACEOF
  6167. #define __CHAR_UNSIGNED__ 1
  6168. _ACEOF
  6169. fi
  6170. echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
  6171. echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
  6172. if test "${ac_cv_c_stringize+set}" = set; then
  6173. echo $ECHO_N "(cached) $ECHO_C" >&6
  6174. else
  6175. cat >conftest.$ac_ext <<_ACEOF
  6176. /* confdefs.h. */
  6177. _ACEOF
  6178. cat confdefs.h >>conftest.$ac_ext
  6179. cat >>conftest.$ac_ext <<_ACEOF
  6180. /* end confdefs.h. */
  6181. #define x(y) #y
  6182. char *s = x(teststring);
  6183. _ACEOF
  6184. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6185. $EGREP "#teststring" >/dev/null 2>&1; then
  6186. ac_cv_c_stringize=no
  6187. else
  6188. ac_cv_c_stringize=yes
  6189. fi
  6190. rm -f conftest*
  6191. fi
  6192. echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
  6193. echo "${ECHO_T}$ac_cv_c_stringize" >&6
  6194. if test $ac_cv_c_stringize = yes; then
  6195. cat >>confdefs.h <<\_ACEOF
  6196. #define HAVE_STRINGIZE 1
  6197. _ACEOF
  6198. fi
  6199. #checkpoint
  6200. cat >confcache <<\_ACEOF
  6201. # This file is a shell script that caches the results of configure
  6202. # tests run on this system so they can be shared between configure
  6203. # scripts and configure runs, see configure's option --config-cache.
  6204. # It is not useful on other systems. If it contains results you don't
  6205. # want to keep, you may remove or edit it.
  6206. #
  6207. # config.status only pays attention to the cache file if you give it
  6208. # the --recheck option to rerun configure.
  6209. #
  6210. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6211. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6212. # following values.
  6213. _ACEOF
  6214. # The following way of writing the cache mishandles newlines in values,
  6215. # but we know of no workaround that is simple, portable, and efficient.
  6216. # So, don't put newlines in cache variables' values.
  6217. # Ultrix sh set writes to stderr and can't be redirected directly,
  6218. # and sets the high bit in the cache file unless we assign to the vars.
  6219. {
  6220. (set) 2>&1 |
  6221. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6222. *ac_space=\ *)
  6223. # `set' does not quote correctly, so add quotes (double-quote
  6224. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6225. sed -n \
  6226. "s/'/'\\\\''/g;
  6227. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6228. ;;
  6229. *)
  6230. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6231. sed -n \
  6232. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6233. ;;
  6234. esac;
  6235. } |
  6236. sed '
  6237. t clear
  6238. : clear
  6239. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6240. t end
  6241. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6242. : end' >>confcache
  6243. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6244. if test -w $cache_file; then
  6245. test "x$cache_file" != "x/dev/null"
  6246. cat confcache >$cache_file
  6247. else
  6248. echo "not updating unwritable cache $cache_file"
  6249. fi
  6250. fi
  6251. rm -f confcache
  6252. echo "$as_me:$LINENO: checking for int" >&5
  6253. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6254. if test "${ac_cv_type_int+set}" = set; then
  6255. echo $ECHO_N "(cached) $ECHO_C" >&6
  6256. else
  6257. cat >conftest.$ac_ext <<_ACEOF
  6258. /* confdefs.h. */
  6259. _ACEOF
  6260. cat confdefs.h >>conftest.$ac_ext
  6261. cat >>conftest.$ac_ext <<_ACEOF
  6262. /* end confdefs.h. */
  6263. $ac_includes_default
  6264. int
  6265. main ()
  6266. {
  6267. if ((int *) 0)
  6268. return 0;
  6269. if (sizeof (int))
  6270. return 0;
  6271. ;
  6272. return 0;
  6273. }
  6274. _ACEOF
  6275. rm -f conftest.$ac_objext
  6276. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6277. (eval $ac_compile) 2>conftest.er1
  6278. ac_status=$?
  6279. grep -v '^ *+' conftest.er1 >conftest.err
  6280. rm -f conftest.er1
  6281. cat conftest.err >&5
  6282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6283. (exit $ac_status); } &&
  6284. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6286. (eval $ac_try) 2>&5
  6287. ac_status=$?
  6288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6289. (exit $ac_status); }; } &&
  6290. { ac_try='test -s conftest.$ac_objext'
  6291. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6292. (eval $ac_try) 2>&5
  6293. ac_status=$?
  6294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6295. (exit $ac_status); }; }; then
  6296. ac_cv_type_int=yes
  6297. else
  6298. echo "$as_me: failed program was:" >&5
  6299. sed 's/^/| /' conftest.$ac_ext >&5
  6300. ac_cv_type_int=no
  6301. fi
  6302. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6303. fi
  6304. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6305. echo "${ECHO_T}$ac_cv_type_int" >&6
  6306. echo "$as_me:$LINENO: checking size of int" >&5
  6307. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6308. if test "${ac_cv_sizeof_int+set}" = set; then
  6309. echo $ECHO_N "(cached) $ECHO_C" >&6
  6310. else
  6311. if test "$ac_cv_type_int" = yes; then
  6312. # The cast to unsigned long works around a bug in the HP C Compiler
  6313. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6314. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6315. # This bug is HP SR number 8606223364.
  6316. if test "$cross_compiling" = yes; then
  6317. # Depending upon the size, compute the lo and hi bounds.
  6318. cat >conftest.$ac_ext <<_ACEOF
  6319. /* confdefs.h. */
  6320. _ACEOF
  6321. cat confdefs.h >>conftest.$ac_ext
  6322. cat >>conftest.$ac_ext <<_ACEOF
  6323. /* end confdefs.h. */
  6324. $ac_includes_default
  6325. int
  6326. main ()
  6327. {
  6328. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6329. test_array [0] = 0
  6330. ;
  6331. return 0;
  6332. }
  6333. _ACEOF
  6334. rm -f conftest.$ac_objext
  6335. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6336. (eval $ac_compile) 2>conftest.er1
  6337. ac_status=$?
  6338. grep -v '^ *+' conftest.er1 >conftest.err
  6339. rm -f conftest.er1
  6340. cat conftest.err >&5
  6341. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6342. (exit $ac_status); } &&
  6343. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6344. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6345. (eval $ac_try) 2>&5
  6346. ac_status=$?
  6347. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6348. (exit $ac_status); }; } &&
  6349. { ac_try='test -s conftest.$ac_objext'
  6350. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6351. (eval $ac_try) 2>&5
  6352. ac_status=$?
  6353. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6354. (exit $ac_status); }; }; then
  6355. ac_lo=0 ac_mid=0
  6356. while :; do
  6357. cat >conftest.$ac_ext <<_ACEOF
  6358. /* confdefs.h. */
  6359. _ACEOF
  6360. cat confdefs.h >>conftest.$ac_ext
  6361. cat >>conftest.$ac_ext <<_ACEOF
  6362. /* end confdefs.h. */
  6363. $ac_includes_default
  6364. int
  6365. main ()
  6366. {
  6367. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6368. test_array [0] = 0
  6369. ;
  6370. return 0;
  6371. }
  6372. _ACEOF
  6373. rm -f conftest.$ac_objext
  6374. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6375. (eval $ac_compile) 2>conftest.er1
  6376. ac_status=$?
  6377. grep -v '^ *+' conftest.er1 >conftest.err
  6378. rm -f conftest.er1
  6379. cat conftest.err >&5
  6380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6381. (exit $ac_status); } &&
  6382. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6383. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6384. (eval $ac_try) 2>&5
  6385. ac_status=$?
  6386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6387. (exit $ac_status); }; } &&
  6388. { ac_try='test -s conftest.$ac_objext'
  6389. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6390. (eval $ac_try) 2>&5
  6391. ac_status=$?
  6392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6393. (exit $ac_status); }; }; then
  6394. ac_hi=$ac_mid; break
  6395. else
  6396. echo "$as_me: failed program was:" >&5
  6397. sed 's/^/| /' conftest.$ac_ext >&5
  6398. ac_lo=`expr $ac_mid + 1`
  6399. if test $ac_lo -le $ac_mid; then
  6400. ac_lo= ac_hi=
  6401. break
  6402. fi
  6403. ac_mid=`expr 2 '*' $ac_mid + 1`
  6404. fi
  6405. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6406. done
  6407. else
  6408. echo "$as_me: failed program was:" >&5
  6409. sed 's/^/| /' conftest.$ac_ext >&5
  6410. cat >conftest.$ac_ext <<_ACEOF
  6411. /* confdefs.h. */
  6412. _ACEOF
  6413. cat confdefs.h >>conftest.$ac_ext
  6414. cat >>conftest.$ac_ext <<_ACEOF
  6415. /* end confdefs.h. */
  6416. $ac_includes_default
  6417. int
  6418. main ()
  6419. {
  6420. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6421. test_array [0] = 0
  6422. ;
  6423. return 0;
  6424. }
  6425. _ACEOF
  6426. rm -f conftest.$ac_objext
  6427. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6428. (eval $ac_compile) 2>conftest.er1
  6429. ac_status=$?
  6430. grep -v '^ *+' conftest.er1 >conftest.err
  6431. rm -f conftest.er1
  6432. cat conftest.err >&5
  6433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6434. (exit $ac_status); } &&
  6435. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6436. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6437. (eval $ac_try) 2>&5
  6438. ac_status=$?
  6439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6440. (exit $ac_status); }; } &&
  6441. { ac_try='test -s conftest.$ac_objext'
  6442. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6443. (eval $ac_try) 2>&5
  6444. ac_status=$?
  6445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6446. (exit $ac_status); }; }; then
  6447. ac_hi=-1 ac_mid=-1
  6448. while :; do
  6449. cat >conftest.$ac_ext <<_ACEOF
  6450. /* confdefs.h. */
  6451. _ACEOF
  6452. cat confdefs.h >>conftest.$ac_ext
  6453. cat >>conftest.$ac_ext <<_ACEOF
  6454. /* end confdefs.h. */
  6455. $ac_includes_default
  6456. int
  6457. main ()
  6458. {
  6459. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6460. test_array [0] = 0
  6461. ;
  6462. return 0;
  6463. }
  6464. _ACEOF
  6465. rm -f conftest.$ac_objext
  6466. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6467. (eval $ac_compile) 2>conftest.er1
  6468. ac_status=$?
  6469. grep -v '^ *+' conftest.er1 >conftest.err
  6470. rm -f conftest.er1
  6471. cat conftest.err >&5
  6472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6473. (exit $ac_status); } &&
  6474. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6476. (eval $ac_try) 2>&5
  6477. ac_status=$?
  6478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6479. (exit $ac_status); }; } &&
  6480. { ac_try='test -s conftest.$ac_objext'
  6481. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6482. (eval $ac_try) 2>&5
  6483. ac_status=$?
  6484. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6485. (exit $ac_status); }; }; then
  6486. ac_lo=$ac_mid; break
  6487. else
  6488. echo "$as_me: failed program was:" >&5
  6489. sed 's/^/| /' conftest.$ac_ext >&5
  6490. ac_hi=`expr '(' $ac_mid ')' - 1`
  6491. if test $ac_mid -le $ac_hi; then
  6492. ac_lo= ac_hi=
  6493. break
  6494. fi
  6495. ac_mid=`expr 2 '*' $ac_mid`
  6496. fi
  6497. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6498. done
  6499. else
  6500. echo "$as_me: failed program was:" >&5
  6501. sed 's/^/| /' conftest.$ac_ext >&5
  6502. ac_lo= ac_hi=
  6503. fi
  6504. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6505. fi
  6506. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6507. # Binary search between lo and hi bounds.
  6508. while test "x$ac_lo" != "x$ac_hi"; do
  6509. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6510. cat >conftest.$ac_ext <<_ACEOF
  6511. /* confdefs.h. */
  6512. _ACEOF
  6513. cat confdefs.h >>conftest.$ac_ext
  6514. cat >>conftest.$ac_ext <<_ACEOF
  6515. /* end confdefs.h. */
  6516. $ac_includes_default
  6517. int
  6518. main ()
  6519. {
  6520. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6521. test_array [0] = 0
  6522. ;
  6523. return 0;
  6524. }
  6525. _ACEOF
  6526. rm -f conftest.$ac_objext
  6527. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6528. (eval $ac_compile) 2>conftest.er1
  6529. ac_status=$?
  6530. grep -v '^ *+' conftest.er1 >conftest.err
  6531. rm -f conftest.er1
  6532. cat conftest.err >&5
  6533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6534. (exit $ac_status); } &&
  6535. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6536. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6537. (eval $ac_try) 2>&5
  6538. ac_status=$?
  6539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6540. (exit $ac_status); }; } &&
  6541. { ac_try='test -s conftest.$ac_objext'
  6542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6543. (eval $ac_try) 2>&5
  6544. ac_status=$?
  6545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6546. (exit $ac_status); }; }; then
  6547. ac_hi=$ac_mid
  6548. else
  6549. echo "$as_me: failed program was:" >&5
  6550. sed 's/^/| /' conftest.$ac_ext >&5
  6551. ac_lo=`expr '(' $ac_mid ')' + 1`
  6552. fi
  6553. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6554. done
  6555. case $ac_lo in
  6556. ?*) ac_cv_sizeof_int=$ac_lo;;
  6557. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6558. See \`config.log' for more details." >&5
  6559. echo "$as_me: error: cannot compute sizeof (int), 77
  6560. See \`config.log' for more details." >&2;}
  6561. { (exit 1); exit 1; }; } ;;
  6562. esac
  6563. else
  6564. if test "$cross_compiling" = yes; then
  6565. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6566. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6567. { (exit 1); exit 1; }; }
  6568. else
  6569. cat >conftest.$ac_ext <<_ACEOF
  6570. /* confdefs.h. */
  6571. _ACEOF
  6572. cat confdefs.h >>conftest.$ac_ext
  6573. cat >>conftest.$ac_ext <<_ACEOF
  6574. /* end confdefs.h. */
  6575. $ac_includes_default
  6576. long longval () { return (long) (sizeof (int)); }
  6577. unsigned long ulongval () { return (long) (sizeof (int)); }
  6578. #include <stdio.h>
  6579. #include <stdlib.h>
  6580. int
  6581. main ()
  6582. {
  6583. FILE *f = fopen ("conftest.val", "w");
  6584. if (! f)
  6585. exit (1);
  6586. if (((long) (sizeof (int))) < 0)
  6587. {
  6588. long i = longval ();
  6589. if (i != ((long) (sizeof (int))))
  6590. exit (1);
  6591. fprintf (f, "%ld\n", i);
  6592. }
  6593. else
  6594. {
  6595. unsigned long i = ulongval ();
  6596. if (i != ((long) (sizeof (int))))
  6597. exit (1);
  6598. fprintf (f, "%lu\n", i);
  6599. }
  6600. exit (ferror (f) || fclose (f) != 0);
  6601. ;
  6602. return 0;
  6603. }
  6604. _ACEOF
  6605. rm -f conftest$ac_exeext
  6606. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6607. (eval $ac_link) 2>&5
  6608. ac_status=$?
  6609. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6610. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6612. (eval $ac_try) 2>&5
  6613. ac_status=$?
  6614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6615. (exit $ac_status); }; }; then
  6616. ac_cv_sizeof_int=`cat conftest.val`
  6617. else
  6618. echo "$as_me: program exited with status $ac_status" >&5
  6619. echo "$as_me: failed program was:" >&5
  6620. sed 's/^/| /' conftest.$ac_ext >&5
  6621. ( exit $ac_status )
  6622. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6623. See \`config.log' for more details." >&5
  6624. echo "$as_me: error: cannot compute sizeof (int), 77
  6625. See \`config.log' for more details." >&2;}
  6626. { (exit 1); exit 1; }; }
  6627. fi
  6628. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6629. fi
  6630. fi
  6631. rm -f conftest.val
  6632. else
  6633. ac_cv_sizeof_int=0
  6634. fi
  6635. fi
  6636. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6637. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6638. cat >>confdefs.h <<_ACEOF
  6639. #define SIZEOF_INT $ac_cv_sizeof_int
  6640. _ACEOF
  6641. echo "$as_me:$LINENO: checking for short" >&5
  6642. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6643. if test "${ac_cv_type_short+set}" = set; then
  6644. echo $ECHO_N "(cached) $ECHO_C" >&6
  6645. else
  6646. cat >conftest.$ac_ext <<_ACEOF
  6647. /* confdefs.h. */
  6648. _ACEOF
  6649. cat confdefs.h >>conftest.$ac_ext
  6650. cat >>conftest.$ac_ext <<_ACEOF
  6651. /* end confdefs.h. */
  6652. $ac_includes_default
  6653. int
  6654. main ()
  6655. {
  6656. if ((short *) 0)
  6657. return 0;
  6658. if (sizeof (short))
  6659. return 0;
  6660. ;
  6661. return 0;
  6662. }
  6663. _ACEOF
  6664. rm -f conftest.$ac_objext
  6665. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6666. (eval $ac_compile) 2>conftest.er1
  6667. ac_status=$?
  6668. grep -v '^ *+' conftest.er1 >conftest.err
  6669. rm -f conftest.er1
  6670. cat conftest.err >&5
  6671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6672. (exit $ac_status); } &&
  6673. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6674. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6675. (eval $ac_try) 2>&5
  6676. ac_status=$?
  6677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6678. (exit $ac_status); }; } &&
  6679. { ac_try='test -s conftest.$ac_objext'
  6680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6681. (eval $ac_try) 2>&5
  6682. ac_status=$?
  6683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6684. (exit $ac_status); }; }; then
  6685. ac_cv_type_short=yes
  6686. else
  6687. echo "$as_me: failed program was:" >&5
  6688. sed 's/^/| /' conftest.$ac_ext >&5
  6689. ac_cv_type_short=no
  6690. fi
  6691. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6692. fi
  6693. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6694. echo "${ECHO_T}$ac_cv_type_short" >&6
  6695. echo "$as_me:$LINENO: checking size of short" >&5
  6696. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6697. if test "${ac_cv_sizeof_short+set}" = set; then
  6698. echo $ECHO_N "(cached) $ECHO_C" >&6
  6699. else
  6700. if test "$ac_cv_type_short" = yes; then
  6701. # The cast to unsigned long works around a bug in the HP C Compiler
  6702. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6703. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6704. # This bug is HP SR number 8606223364.
  6705. if test "$cross_compiling" = yes; then
  6706. # Depending upon the size, compute the lo and hi bounds.
  6707. cat >conftest.$ac_ext <<_ACEOF
  6708. /* confdefs.h. */
  6709. _ACEOF
  6710. cat confdefs.h >>conftest.$ac_ext
  6711. cat >>conftest.$ac_ext <<_ACEOF
  6712. /* end confdefs.h. */
  6713. $ac_includes_default
  6714. int
  6715. main ()
  6716. {
  6717. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6718. test_array [0] = 0
  6719. ;
  6720. return 0;
  6721. }
  6722. _ACEOF
  6723. rm -f conftest.$ac_objext
  6724. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6725. (eval $ac_compile) 2>conftest.er1
  6726. ac_status=$?
  6727. grep -v '^ *+' conftest.er1 >conftest.err
  6728. rm -f conftest.er1
  6729. cat conftest.err >&5
  6730. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6731. (exit $ac_status); } &&
  6732. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6733. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6734. (eval $ac_try) 2>&5
  6735. ac_status=$?
  6736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6737. (exit $ac_status); }; } &&
  6738. { ac_try='test -s conftest.$ac_objext'
  6739. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6740. (eval $ac_try) 2>&5
  6741. ac_status=$?
  6742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6743. (exit $ac_status); }; }; then
  6744. ac_lo=0 ac_mid=0
  6745. while :; do
  6746. cat >conftest.$ac_ext <<_ACEOF
  6747. /* confdefs.h. */
  6748. _ACEOF
  6749. cat confdefs.h >>conftest.$ac_ext
  6750. cat >>conftest.$ac_ext <<_ACEOF
  6751. /* end confdefs.h. */
  6752. $ac_includes_default
  6753. int
  6754. main ()
  6755. {
  6756. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6757. test_array [0] = 0
  6758. ;
  6759. return 0;
  6760. }
  6761. _ACEOF
  6762. rm -f conftest.$ac_objext
  6763. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6764. (eval $ac_compile) 2>conftest.er1
  6765. ac_status=$?
  6766. grep -v '^ *+' conftest.er1 >conftest.err
  6767. rm -f conftest.er1
  6768. cat conftest.err >&5
  6769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6770. (exit $ac_status); } &&
  6771. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6773. (eval $ac_try) 2>&5
  6774. ac_status=$?
  6775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6776. (exit $ac_status); }; } &&
  6777. { ac_try='test -s conftest.$ac_objext'
  6778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6779. (eval $ac_try) 2>&5
  6780. ac_status=$?
  6781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6782. (exit $ac_status); }; }; then
  6783. ac_hi=$ac_mid; break
  6784. else
  6785. echo "$as_me: failed program was:" >&5
  6786. sed 's/^/| /' conftest.$ac_ext >&5
  6787. ac_lo=`expr $ac_mid + 1`
  6788. if test $ac_lo -le $ac_mid; then
  6789. ac_lo= ac_hi=
  6790. break
  6791. fi
  6792. ac_mid=`expr 2 '*' $ac_mid + 1`
  6793. fi
  6794. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6795. done
  6796. else
  6797. echo "$as_me: failed program was:" >&5
  6798. sed 's/^/| /' conftest.$ac_ext >&5
  6799. cat >conftest.$ac_ext <<_ACEOF
  6800. /* confdefs.h. */
  6801. _ACEOF
  6802. cat confdefs.h >>conftest.$ac_ext
  6803. cat >>conftest.$ac_ext <<_ACEOF
  6804. /* end confdefs.h. */
  6805. $ac_includes_default
  6806. int
  6807. main ()
  6808. {
  6809. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6810. test_array [0] = 0
  6811. ;
  6812. return 0;
  6813. }
  6814. _ACEOF
  6815. rm -f conftest.$ac_objext
  6816. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6817. (eval $ac_compile) 2>conftest.er1
  6818. ac_status=$?
  6819. grep -v '^ *+' conftest.er1 >conftest.err
  6820. rm -f conftest.er1
  6821. cat conftest.err >&5
  6822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6823. (exit $ac_status); } &&
  6824. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6826. (eval $ac_try) 2>&5
  6827. ac_status=$?
  6828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6829. (exit $ac_status); }; } &&
  6830. { ac_try='test -s conftest.$ac_objext'
  6831. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6832. (eval $ac_try) 2>&5
  6833. ac_status=$?
  6834. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6835. (exit $ac_status); }; }; then
  6836. ac_hi=-1 ac_mid=-1
  6837. while :; do
  6838. cat >conftest.$ac_ext <<_ACEOF
  6839. /* confdefs.h. */
  6840. _ACEOF
  6841. cat confdefs.h >>conftest.$ac_ext
  6842. cat >>conftest.$ac_ext <<_ACEOF
  6843. /* end confdefs.h. */
  6844. $ac_includes_default
  6845. int
  6846. main ()
  6847. {
  6848. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  6849. test_array [0] = 0
  6850. ;
  6851. return 0;
  6852. }
  6853. _ACEOF
  6854. rm -f conftest.$ac_objext
  6855. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6856. (eval $ac_compile) 2>conftest.er1
  6857. ac_status=$?
  6858. grep -v '^ *+' conftest.er1 >conftest.err
  6859. rm -f conftest.er1
  6860. cat conftest.err >&5
  6861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6862. (exit $ac_status); } &&
  6863. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6865. (eval $ac_try) 2>&5
  6866. ac_status=$?
  6867. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6868. (exit $ac_status); }; } &&
  6869. { ac_try='test -s conftest.$ac_objext'
  6870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6871. (eval $ac_try) 2>&5
  6872. ac_status=$?
  6873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6874. (exit $ac_status); }; }; then
  6875. ac_lo=$ac_mid; break
  6876. else
  6877. echo "$as_me: failed program was:" >&5
  6878. sed 's/^/| /' conftest.$ac_ext >&5
  6879. ac_hi=`expr '(' $ac_mid ')' - 1`
  6880. if test $ac_mid -le $ac_hi; then
  6881. ac_lo= ac_hi=
  6882. break
  6883. fi
  6884. ac_mid=`expr 2 '*' $ac_mid`
  6885. fi
  6886. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6887. done
  6888. else
  6889. echo "$as_me: failed program was:" >&5
  6890. sed 's/^/| /' conftest.$ac_ext >&5
  6891. ac_lo= ac_hi=
  6892. fi
  6893. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6894. fi
  6895. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6896. # Binary search between lo and hi bounds.
  6897. while test "x$ac_lo" != "x$ac_hi"; do
  6898. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6899. cat >conftest.$ac_ext <<_ACEOF
  6900. /* confdefs.h. */
  6901. _ACEOF
  6902. cat confdefs.h >>conftest.$ac_ext
  6903. cat >>conftest.$ac_ext <<_ACEOF
  6904. /* end confdefs.h. */
  6905. $ac_includes_default
  6906. int
  6907. main ()
  6908. {
  6909. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6910. test_array [0] = 0
  6911. ;
  6912. return 0;
  6913. }
  6914. _ACEOF
  6915. rm -f conftest.$ac_objext
  6916. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6917. (eval $ac_compile) 2>conftest.er1
  6918. ac_status=$?
  6919. grep -v '^ *+' conftest.er1 >conftest.err
  6920. rm -f conftest.er1
  6921. cat conftest.err >&5
  6922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6923. (exit $ac_status); } &&
  6924. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6926. (eval $ac_try) 2>&5
  6927. ac_status=$?
  6928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6929. (exit $ac_status); }; } &&
  6930. { ac_try='test -s conftest.$ac_objext'
  6931. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6932. (eval $ac_try) 2>&5
  6933. ac_status=$?
  6934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6935. (exit $ac_status); }; }; then
  6936. ac_hi=$ac_mid
  6937. else
  6938. echo "$as_me: failed program was:" >&5
  6939. sed 's/^/| /' conftest.$ac_ext >&5
  6940. ac_lo=`expr '(' $ac_mid ')' + 1`
  6941. fi
  6942. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6943. done
  6944. case $ac_lo in
  6945. ?*) ac_cv_sizeof_short=$ac_lo;;
  6946. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6947. See \`config.log' for more details." >&5
  6948. echo "$as_me: error: cannot compute sizeof (short), 77
  6949. See \`config.log' for more details." >&2;}
  6950. { (exit 1); exit 1; }; } ;;
  6951. esac
  6952. else
  6953. if test "$cross_compiling" = yes; then
  6954. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6955. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6956. { (exit 1); exit 1; }; }
  6957. else
  6958. cat >conftest.$ac_ext <<_ACEOF
  6959. /* confdefs.h. */
  6960. _ACEOF
  6961. cat confdefs.h >>conftest.$ac_ext
  6962. cat >>conftest.$ac_ext <<_ACEOF
  6963. /* end confdefs.h. */
  6964. $ac_includes_default
  6965. long longval () { return (long) (sizeof (short)); }
  6966. unsigned long ulongval () { return (long) (sizeof (short)); }
  6967. #include <stdio.h>
  6968. #include <stdlib.h>
  6969. int
  6970. main ()
  6971. {
  6972. FILE *f = fopen ("conftest.val", "w");
  6973. if (! f)
  6974. exit (1);
  6975. if (((long) (sizeof (short))) < 0)
  6976. {
  6977. long i = longval ();
  6978. if (i != ((long) (sizeof (short))))
  6979. exit (1);
  6980. fprintf (f, "%ld\n", i);
  6981. }
  6982. else
  6983. {
  6984. unsigned long i = ulongval ();
  6985. if (i != ((long) (sizeof (short))))
  6986. exit (1);
  6987. fprintf (f, "%lu\n", i);
  6988. }
  6989. exit (ferror (f) || fclose (f) != 0);
  6990. ;
  6991. return 0;
  6992. }
  6993. _ACEOF
  6994. rm -f conftest$ac_exeext
  6995. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6996. (eval $ac_link) 2>&5
  6997. ac_status=$?
  6998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6999. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7000. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7001. (eval $ac_try) 2>&5
  7002. ac_status=$?
  7003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7004. (exit $ac_status); }; }; then
  7005. ac_cv_sizeof_short=`cat conftest.val`
  7006. else
  7007. echo "$as_me: program exited with status $ac_status" >&5
  7008. echo "$as_me: failed program was:" >&5
  7009. sed 's/^/| /' conftest.$ac_ext >&5
  7010. ( exit $ac_status )
  7011. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7012. See \`config.log' for more details." >&5
  7013. echo "$as_me: error: cannot compute sizeof (short), 77
  7014. See \`config.log' for more details." >&2;}
  7015. { (exit 1); exit 1; }; }
  7016. fi
  7017. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7018. fi
  7019. fi
  7020. rm -f conftest.val
  7021. else
  7022. ac_cv_sizeof_short=0
  7023. fi
  7024. fi
  7025. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  7026. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  7027. cat >>confdefs.h <<_ACEOF
  7028. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7029. _ACEOF
  7030. echo "$as_me:$LINENO: checking for long" >&5
  7031. echo $ECHO_N "checking for long... $ECHO_C" >&6
  7032. if test "${ac_cv_type_long+set}" = set; then
  7033. echo $ECHO_N "(cached) $ECHO_C" >&6
  7034. else
  7035. cat >conftest.$ac_ext <<_ACEOF
  7036. /* confdefs.h. */
  7037. _ACEOF
  7038. cat confdefs.h >>conftest.$ac_ext
  7039. cat >>conftest.$ac_ext <<_ACEOF
  7040. /* end confdefs.h. */
  7041. $ac_includes_default
  7042. int
  7043. main ()
  7044. {
  7045. if ((long *) 0)
  7046. return 0;
  7047. if (sizeof (long))
  7048. return 0;
  7049. ;
  7050. return 0;
  7051. }
  7052. _ACEOF
  7053. rm -f conftest.$ac_objext
  7054. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7055. (eval $ac_compile) 2>conftest.er1
  7056. ac_status=$?
  7057. grep -v '^ *+' conftest.er1 >conftest.err
  7058. rm -f conftest.er1
  7059. cat conftest.err >&5
  7060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7061. (exit $ac_status); } &&
  7062. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7064. (eval $ac_try) 2>&5
  7065. ac_status=$?
  7066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7067. (exit $ac_status); }; } &&
  7068. { ac_try='test -s conftest.$ac_objext'
  7069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7070. (eval $ac_try) 2>&5
  7071. ac_status=$?
  7072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7073. (exit $ac_status); }; }; then
  7074. ac_cv_type_long=yes
  7075. else
  7076. echo "$as_me: failed program was:" >&5
  7077. sed 's/^/| /' conftest.$ac_ext >&5
  7078. ac_cv_type_long=no
  7079. fi
  7080. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7081. fi
  7082. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  7083. echo "${ECHO_T}$ac_cv_type_long" >&6
  7084. echo "$as_me:$LINENO: checking size of long" >&5
  7085. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  7086. if test "${ac_cv_sizeof_long+set}" = set; then
  7087. echo $ECHO_N "(cached) $ECHO_C" >&6
  7088. else
  7089. if test "$ac_cv_type_long" = yes; then
  7090. # The cast to unsigned long works around a bug in the HP C Compiler
  7091. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7092. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7093. # This bug is HP SR number 8606223364.
  7094. if test "$cross_compiling" = yes; then
  7095. # Depending upon the size, compute the lo and hi bounds.
  7096. cat >conftest.$ac_ext <<_ACEOF
  7097. /* confdefs.h. */
  7098. _ACEOF
  7099. cat confdefs.h >>conftest.$ac_ext
  7100. cat >>conftest.$ac_ext <<_ACEOF
  7101. /* end confdefs.h. */
  7102. $ac_includes_default
  7103. int
  7104. main ()
  7105. {
  7106. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  7107. test_array [0] = 0
  7108. ;
  7109. return 0;
  7110. }
  7111. _ACEOF
  7112. rm -f conftest.$ac_objext
  7113. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7114. (eval $ac_compile) 2>conftest.er1
  7115. ac_status=$?
  7116. grep -v '^ *+' conftest.er1 >conftest.err
  7117. rm -f conftest.er1
  7118. cat conftest.err >&5
  7119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7120. (exit $ac_status); } &&
  7121. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7123. (eval $ac_try) 2>&5
  7124. ac_status=$?
  7125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7126. (exit $ac_status); }; } &&
  7127. { ac_try='test -s conftest.$ac_objext'
  7128. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7129. (eval $ac_try) 2>&5
  7130. ac_status=$?
  7131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7132. (exit $ac_status); }; }; then
  7133. ac_lo=0 ac_mid=0
  7134. while :; do
  7135. cat >conftest.$ac_ext <<_ACEOF
  7136. /* confdefs.h. */
  7137. _ACEOF
  7138. cat confdefs.h >>conftest.$ac_ext
  7139. cat >>conftest.$ac_ext <<_ACEOF
  7140. /* end confdefs.h. */
  7141. $ac_includes_default
  7142. int
  7143. main ()
  7144. {
  7145. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7146. test_array [0] = 0
  7147. ;
  7148. return 0;
  7149. }
  7150. _ACEOF
  7151. rm -f conftest.$ac_objext
  7152. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7153. (eval $ac_compile) 2>conftest.er1
  7154. ac_status=$?
  7155. grep -v '^ *+' conftest.er1 >conftest.err
  7156. rm -f conftest.er1
  7157. cat conftest.err >&5
  7158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7159. (exit $ac_status); } &&
  7160. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7161. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7162. (eval $ac_try) 2>&5
  7163. ac_status=$?
  7164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7165. (exit $ac_status); }; } &&
  7166. { ac_try='test -s conftest.$ac_objext'
  7167. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7168. (eval $ac_try) 2>&5
  7169. ac_status=$?
  7170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7171. (exit $ac_status); }; }; then
  7172. ac_hi=$ac_mid; break
  7173. else
  7174. echo "$as_me: failed program was:" >&5
  7175. sed 's/^/| /' conftest.$ac_ext >&5
  7176. ac_lo=`expr $ac_mid + 1`
  7177. if test $ac_lo -le $ac_mid; then
  7178. ac_lo= ac_hi=
  7179. break
  7180. fi
  7181. ac_mid=`expr 2 '*' $ac_mid + 1`
  7182. fi
  7183. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7184. done
  7185. else
  7186. echo "$as_me: failed program was:" >&5
  7187. sed 's/^/| /' conftest.$ac_ext >&5
  7188. cat >conftest.$ac_ext <<_ACEOF
  7189. /* confdefs.h. */
  7190. _ACEOF
  7191. cat confdefs.h >>conftest.$ac_ext
  7192. cat >>conftest.$ac_ext <<_ACEOF
  7193. /* end confdefs.h. */
  7194. $ac_includes_default
  7195. int
  7196. main ()
  7197. {
  7198. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7199. test_array [0] = 0
  7200. ;
  7201. return 0;
  7202. }
  7203. _ACEOF
  7204. rm -f conftest.$ac_objext
  7205. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7206. (eval $ac_compile) 2>conftest.er1
  7207. ac_status=$?
  7208. grep -v '^ *+' conftest.er1 >conftest.err
  7209. rm -f conftest.er1
  7210. cat conftest.err >&5
  7211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7212. (exit $ac_status); } &&
  7213. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7215. (eval $ac_try) 2>&5
  7216. ac_status=$?
  7217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7218. (exit $ac_status); }; } &&
  7219. { ac_try='test -s conftest.$ac_objext'
  7220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7221. (eval $ac_try) 2>&5
  7222. ac_status=$?
  7223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7224. (exit $ac_status); }; }; then
  7225. ac_hi=-1 ac_mid=-1
  7226. while :; do
  7227. cat >conftest.$ac_ext <<_ACEOF
  7228. /* confdefs.h. */
  7229. _ACEOF
  7230. cat confdefs.h >>conftest.$ac_ext
  7231. cat >>conftest.$ac_ext <<_ACEOF
  7232. /* end confdefs.h. */
  7233. $ac_includes_default
  7234. int
  7235. main ()
  7236. {
  7237. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7238. test_array [0] = 0
  7239. ;
  7240. return 0;
  7241. }
  7242. _ACEOF
  7243. rm -f conftest.$ac_objext
  7244. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7245. (eval $ac_compile) 2>conftest.er1
  7246. ac_status=$?
  7247. grep -v '^ *+' conftest.er1 >conftest.err
  7248. rm -f conftest.er1
  7249. cat conftest.err >&5
  7250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7251. (exit $ac_status); } &&
  7252. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7253. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7254. (eval $ac_try) 2>&5
  7255. ac_status=$?
  7256. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7257. (exit $ac_status); }; } &&
  7258. { ac_try='test -s conftest.$ac_objext'
  7259. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7260. (eval $ac_try) 2>&5
  7261. ac_status=$?
  7262. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7263. (exit $ac_status); }; }; then
  7264. ac_lo=$ac_mid; break
  7265. else
  7266. echo "$as_me: failed program was:" >&5
  7267. sed 's/^/| /' conftest.$ac_ext >&5
  7268. ac_hi=`expr '(' $ac_mid ')' - 1`
  7269. if test $ac_mid -le $ac_hi; then
  7270. ac_lo= ac_hi=
  7271. break
  7272. fi
  7273. ac_mid=`expr 2 '*' $ac_mid`
  7274. fi
  7275. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7276. done
  7277. else
  7278. echo "$as_me: failed program was:" >&5
  7279. sed 's/^/| /' conftest.$ac_ext >&5
  7280. ac_lo= ac_hi=
  7281. fi
  7282. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7283. fi
  7284. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7285. # Binary search between lo and hi bounds.
  7286. while test "x$ac_lo" != "x$ac_hi"; do
  7287. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7288. cat >conftest.$ac_ext <<_ACEOF
  7289. /* confdefs.h. */
  7290. _ACEOF
  7291. cat confdefs.h >>conftest.$ac_ext
  7292. cat >>conftest.$ac_ext <<_ACEOF
  7293. /* end confdefs.h. */
  7294. $ac_includes_default
  7295. int
  7296. main ()
  7297. {
  7298. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7299. test_array [0] = 0
  7300. ;
  7301. return 0;
  7302. }
  7303. _ACEOF
  7304. rm -f conftest.$ac_objext
  7305. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7306. (eval $ac_compile) 2>conftest.er1
  7307. ac_status=$?
  7308. grep -v '^ *+' conftest.er1 >conftest.err
  7309. rm -f conftest.er1
  7310. cat conftest.err >&5
  7311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7312. (exit $ac_status); } &&
  7313. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7314. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7315. (eval $ac_try) 2>&5
  7316. ac_status=$?
  7317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7318. (exit $ac_status); }; } &&
  7319. { ac_try='test -s conftest.$ac_objext'
  7320. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7321. (eval $ac_try) 2>&5
  7322. ac_status=$?
  7323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7324. (exit $ac_status); }; }; then
  7325. ac_hi=$ac_mid
  7326. else
  7327. echo "$as_me: failed program was:" >&5
  7328. sed 's/^/| /' conftest.$ac_ext >&5
  7329. ac_lo=`expr '(' $ac_mid ')' + 1`
  7330. fi
  7331. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7332. done
  7333. case $ac_lo in
  7334. ?*) ac_cv_sizeof_long=$ac_lo;;
  7335. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7336. See \`config.log' for more details." >&5
  7337. echo "$as_me: error: cannot compute sizeof (long), 77
  7338. See \`config.log' for more details." >&2;}
  7339. { (exit 1); exit 1; }; } ;;
  7340. esac
  7341. else
  7342. if test "$cross_compiling" = yes; then
  7343. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7344. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7345. { (exit 1); exit 1; }; }
  7346. else
  7347. cat >conftest.$ac_ext <<_ACEOF
  7348. /* confdefs.h. */
  7349. _ACEOF
  7350. cat confdefs.h >>conftest.$ac_ext
  7351. cat >>conftest.$ac_ext <<_ACEOF
  7352. /* end confdefs.h. */
  7353. $ac_includes_default
  7354. long longval () { return (long) (sizeof (long)); }
  7355. unsigned long ulongval () { return (long) (sizeof (long)); }
  7356. #include <stdio.h>
  7357. #include <stdlib.h>
  7358. int
  7359. main ()
  7360. {
  7361. FILE *f = fopen ("conftest.val", "w");
  7362. if (! f)
  7363. exit (1);
  7364. if (((long) (sizeof (long))) < 0)
  7365. {
  7366. long i = longval ();
  7367. if (i != ((long) (sizeof (long))))
  7368. exit (1);
  7369. fprintf (f, "%ld\n", i);
  7370. }
  7371. else
  7372. {
  7373. unsigned long i = ulongval ();
  7374. if (i != ((long) (sizeof (long))))
  7375. exit (1);
  7376. fprintf (f, "%lu\n", i);
  7377. }
  7378. exit (ferror (f) || fclose (f) != 0);
  7379. ;
  7380. return 0;
  7381. }
  7382. _ACEOF
  7383. rm -f conftest$ac_exeext
  7384. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7385. (eval $ac_link) 2>&5
  7386. ac_status=$?
  7387. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7388. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7389. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7390. (eval $ac_try) 2>&5
  7391. ac_status=$?
  7392. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7393. (exit $ac_status); }; }; then
  7394. ac_cv_sizeof_long=`cat conftest.val`
  7395. else
  7396. echo "$as_me: program exited with status $ac_status" >&5
  7397. echo "$as_me: failed program was:" >&5
  7398. sed 's/^/| /' conftest.$ac_ext >&5
  7399. ( exit $ac_status )
  7400. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7401. See \`config.log' for more details." >&5
  7402. echo "$as_me: error: cannot compute sizeof (long), 77
  7403. See \`config.log' for more details." >&2;}
  7404. { (exit 1); exit 1; }; }
  7405. fi
  7406. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7407. fi
  7408. fi
  7409. rm -f conftest.val
  7410. else
  7411. ac_cv_sizeof_long=0
  7412. fi
  7413. fi
  7414. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7415. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7416. cat >>confdefs.h <<_ACEOF
  7417. #define SIZEOF_LONG $ac_cv_sizeof_long
  7418. _ACEOF
  7419. echo "$as_me:$LINENO: checking for long long" >&5
  7420. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  7421. if test "${ac_cv_type_long_long+set}" = set; then
  7422. echo $ECHO_N "(cached) $ECHO_C" >&6
  7423. else
  7424. cat >conftest.$ac_ext <<_ACEOF
  7425. /* confdefs.h. */
  7426. _ACEOF
  7427. cat confdefs.h >>conftest.$ac_ext
  7428. cat >>conftest.$ac_ext <<_ACEOF
  7429. /* end confdefs.h. */
  7430. $ac_includes_default
  7431. int
  7432. main ()
  7433. {
  7434. if ((long long *) 0)
  7435. return 0;
  7436. if (sizeof (long long))
  7437. return 0;
  7438. ;
  7439. return 0;
  7440. }
  7441. _ACEOF
  7442. rm -f conftest.$ac_objext
  7443. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7444. (eval $ac_compile) 2>conftest.er1
  7445. ac_status=$?
  7446. grep -v '^ *+' conftest.er1 >conftest.err
  7447. rm -f conftest.er1
  7448. cat conftest.err >&5
  7449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7450. (exit $ac_status); } &&
  7451. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7453. (eval $ac_try) 2>&5
  7454. ac_status=$?
  7455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7456. (exit $ac_status); }; } &&
  7457. { ac_try='test -s conftest.$ac_objext'
  7458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7459. (eval $ac_try) 2>&5
  7460. ac_status=$?
  7461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7462. (exit $ac_status); }; }; then
  7463. ac_cv_type_long_long=yes
  7464. else
  7465. echo "$as_me: failed program was:" >&5
  7466. sed 's/^/| /' conftest.$ac_ext >&5
  7467. ac_cv_type_long_long=no
  7468. fi
  7469. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7470. fi
  7471. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  7472. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  7473. echo "$as_me:$LINENO: checking size of long long" >&5
  7474. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  7475. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7476. echo $ECHO_N "(cached) $ECHO_C" >&6
  7477. else
  7478. if test "$ac_cv_type_long_long" = yes; then
  7479. # The cast to unsigned long works around a bug in the HP C Compiler
  7480. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7481. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7482. # This bug is HP SR number 8606223364.
  7483. if test "$cross_compiling" = yes; then
  7484. # Depending upon the size, compute the lo and hi bounds.
  7485. cat >conftest.$ac_ext <<_ACEOF
  7486. /* confdefs.h. */
  7487. _ACEOF
  7488. cat confdefs.h >>conftest.$ac_ext
  7489. cat >>conftest.$ac_ext <<_ACEOF
  7490. /* end confdefs.h. */
  7491. $ac_includes_default
  7492. int
  7493. main ()
  7494. {
  7495. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  7496. test_array [0] = 0
  7497. ;
  7498. return 0;
  7499. }
  7500. _ACEOF
  7501. rm -f conftest.$ac_objext
  7502. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7503. (eval $ac_compile) 2>conftest.er1
  7504. ac_status=$?
  7505. grep -v '^ *+' conftest.er1 >conftest.err
  7506. rm -f conftest.er1
  7507. cat conftest.err >&5
  7508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7509. (exit $ac_status); } &&
  7510. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7512. (eval $ac_try) 2>&5
  7513. ac_status=$?
  7514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7515. (exit $ac_status); }; } &&
  7516. { ac_try='test -s conftest.$ac_objext'
  7517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7518. (eval $ac_try) 2>&5
  7519. ac_status=$?
  7520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7521. (exit $ac_status); }; }; then
  7522. ac_lo=0 ac_mid=0
  7523. while :; do
  7524. cat >conftest.$ac_ext <<_ACEOF
  7525. /* confdefs.h. */
  7526. _ACEOF
  7527. cat confdefs.h >>conftest.$ac_ext
  7528. cat >>conftest.$ac_ext <<_ACEOF
  7529. /* end confdefs.h. */
  7530. $ac_includes_default
  7531. int
  7532. main ()
  7533. {
  7534. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7535. test_array [0] = 0
  7536. ;
  7537. return 0;
  7538. }
  7539. _ACEOF
  7540. rm -f conftest.$ac_objext
  7541. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7542. (eval $ac_compile) 2>conftest.er1
  7543. ac_status=$?
  7544. grep -v '^ *+' conftest.er1 >conftest.err
  7545. rm -f conftest.er1
  7546. cat conftest.err >&5
  7547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7548. (exit $ac_status); } &&
  7549. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7550. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7551. (eval $ac_try) 2>&5
  7552. ac_status=$?
  7553. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7554. (exit $ac_status); }; } &&
  7555. { ac_try='test -s conftest.$ac_objext'
  7556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7557. (eval $ac_try) 2>&5
  7558. ac_status=$?
  7559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7560. (exit $ac_status); }; }; then
  7561. ac_hi=$ac_mid; break
  7562. else
  7563. echo "$as_me: failed program was:" >&5
  7564. sed 's/^/| /' conftest.$ac_ext >&5
  7565. ac_lo=`expr $ac_mid + 1`
  7566. if test $ac_lo -le $ac_mid; then
  7567. ac_lo= ac_hi=
  7568. break
  7569. fi
  7570. ac_mid=`expr 2 '*' $ac_mid + 1`
  7571. fi
  7572. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7573. done
  7574. else
  7575. echo "$as_me: failed program was:" >&5
  7576. sed 's/^/| /' conftest.$ac_ext >&5
  7577. cat >conftest.$ac_ext <<_ACEOF
  7578. /* confdefs.h. */
  7579. _ACEOF
  7580. cat confdefs.h >>conftest.$ac_ext
  7581. cat >>conftest.$ac_ext <<_ACEOF
  7582. /* end confdefs.h. */
  7583. $ac_includes_default
  7584. int
  7585. main ()
  7586. {
  7587. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  7588. test_array [0] = 0
  7589. ;
  7590. return 0;
  7591. }
  7592. _ACEOF
  7593. rm -f conftest.$ac_objext
  7594. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7595. (eval $ac_compile) 2>conftest.er1
  7596. ac_status=$?
  7597. grep -v '^ *+' conftest.er1 >conftest.err
  7598. rm -f conftest.er1
  7599. cat conftest.err >&5
  7600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7601. (exit $ac_status); } &&
  7602. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7603. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7604. (eval $ac_try) 2>&5
  7605. ac_status=$?
  7606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7607. (exit $ac_status); }; } &&
  7608. { ac_try='test -s conftest.$ac_objext'
  7609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7610. (eval $ac_try) 2>&5
  7611. ac_status=$?
  7612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7613. (exit $ac_status); }; }; then
  7614. ac_hi=-1 ac_mid=-1
  7615. while :; do
  7616. cat >conftest.$ac_ext <<_ACEOF
  7617. /* confdefs.h. */
  7618. _ACEOF
  7619. cat confdefs.h >>conftest.$ac_ext
  7620. cat >>conftest.$ac_ext <<_ACEOF
  7621. /* end confdefs.h. */
  7622. $ac_includes_default
  7623. int
  7624. main ()
  7625. {
  7626. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  7627. test_array [0] = 0
  7628. ;
  7629. return 0;
  7630. }
  7631. _ACEOF
  7632. rm -f conftest.$ac_objext
  7633. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7634. (eval $ac_compile) 2>conftest.er1
  7635. ac_status=$?
  7636. grep -v '^ *+' conftest.er1 >conftest.err
  7637. rm -f conftest.er1
  7638. cat conftest.err >&5
  7639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7640. (exit $ac_status); } &&
  7641. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7643. (eval $ac_try) 2>&5
  7644. ac_status=$?
  7645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7646. (exit $ac_status); }; } &&
  7647. { ac_try='test -s conftest.$ac_objext'
  7648. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7649. (eval $ac_try) 2>&5
  7650. ac_status=$?
  7651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7652. (exit $ac_status); }; }; then
  7653. ac_lo=$ac_mid; break
  7654. else
  7655. echo "$as_me: failed program was:" >&5
  7656. sed 's/^/| /' conftest.$ac_ext >&5
  7657. ac_hi=`expr '(' $ac_mid ')' - 1`
  7658. if test $ac_mid -le $ac_hi; then
  7659. ac_lo= ac_hi=
  7660. break
  7661. fi
  7662. ac_mid=`expr 2 '*' $ac_mid`
  7663. fi
  7664. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7665. done
  7666. else
  7667. echo "$as_me: failed program was:" >&5
  7668. sed 's/^/| /' conftest.$ac_ext >&5
  7669. ac_lo= ac_hi=
  7670. fi
  7671. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7672. fi
  7673. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7674. # Binary search between lo and hi bounds.
  7675. while test "x$ac_lo" != "x$ac_hi"; do
  7676. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7677. cat >conftest.$ac_ext <<_ACEOF
  7678. /* confdefs.h. */
  7679. _ACEOF
  7680. cat confdefs.h >>conftest.$ac_ext
  7681. cat >>conftest.$ac_ext <<_ACEOF
  7682. /* end confdefs.h. */
  7683. $ac_includes_default
  7684. int
  7685. main ()
  7686. {
  7687. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7688. test_array [0] = 0
  7689. ;
  7690. return 0;
  7691. }
  7692. _ACEOF
  7693. rm -f conftest.$ac_objext
  7694. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7695. (eval $ac_compile) 2>conftest.er1
  7696. ac_status=$?
  7697. grep -v '^ *+' conftest.er1 >conftest.err
  7698. rm -f conftest.er1
  7699. cat conftest.err >&5
  7700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7701. (exit $ac_status); } &&
  7702. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7704. (eval $ac_try) 2>&5
  7705. ac_status=$?
  7706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7707. (exit $ac_status); }; } &&
  7708. { ac_try='test -s conftest.$ac_objext'
  7709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7710. (eval $ac_try) 2>&5
  7711. ac_status=$?
  7712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7713. (exit $ac_status); }; }; then
  7714. ac_hi=$ac_mid
  7715. else
  7716. echo "$as_me: failed program was:" >&5
  7717. sed 's/^/| /' conftest.$ac_ext >&5
  7718. ac_lo=`expr '(' $ac_mid ')' + 1`
  7719. fi
  7720. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7721. done
  7722. case $ac_lo in
  7723. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7724. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7725. See \`config.log' for more details." >&5
  7726. echo "$as_me: error: cannot compute sizeof (long long), 77
  7727. See \`config.log' for more details." >&2;}
  7728. { (exit 1); exit 1; }; } ;;
  7729. esac
  7730. else
  7731. if test "$cross_compiling" = yes; then
  7732. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7733. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7734. { (exit 1); exit 1; }; }
  7735. else
  7736. cat >conftest.$ac_ext <<_ACEOF
  7737. /* confdefs.h. */
  7738. _ACEOF
  7739. cat confdefs.h >>conftest.$ac_ext
  7740. cat >>conftest.$ac_ext <<_ACEOF
  7741. /* end confdefs.h. */
  7742. $ac_includes_default
  7743. long longval () { return (long) (sizeof (long long)); }
  7744. unsigned long ulongval () { return (long) (sizeof (long long)); }
  7745. #include <stdio.h>
  7746. #include <stdlib.h>
  7747. int
  7748. main ()
  7749. {
  7750. FILE *f = fopen ("conftest.val", "w");
  7751. if (! f)
  7752. exit (1);
  7753. if (((long) (sizeof (long long))) < 0)
  7754. {
  7755. long i = longval ();
  7756. if (i != ((long) (sizeof (long long))))
  7757. exit (1);
  7758. fprintf (f, "%ld\n", i);
  7759. }
  7760. else
  7761. {
  7762. unsigned long i = ulongval ();
  7763. if (i != ((long) (sizeof (long long))))
  7764. exit (1);
  7765. fprintf (f, "%lu\n", i);
  7766. }
  7767. exit (ferror (f) || fclose (f) != 0);
  7768. ;
  7769. return 0;
  7770. }
  7771. _ACEOF
  7772. rm -f conftest$ac_exeext
  7773. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7774. (eval $ac_link) 2>&5
  7775. ac_status=$?
  7776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7777. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7779. (eval $ac_try) 2>&5
  7780. ac_status=$?
  7781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7782. (exit $ac_status); }; }; then
  7783. ac_cv_sizeof_long_long=`cat conftest.val`
  7784. else
  7785. echo "$as_me: program exited with status $ac_status" >&5
  7786. echo "$as_me: failed program was:" >&5
  7787. sed 's/^/| /' conftest.$ac_ext >&5
  7788. ( exit $ac_status )
  7789. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7790. See \`config.log' for more details." >&5
  7791. echo "$as_me: error: cannot compute sizeof (long long), 77
  7792. See \`config.log' for more details." >&2;}
  7793. { (exit 1); exit 1; }; }
  7794. fi
  7795. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7796. fi
  7797. fi
  7798. rm -f conftest.val
  7799. else
  7800. ac_cv_sizeof_long_long=0
  7801. fi
  7802. fi
  7803. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7804. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  7805. cat >>confdefs.h <<_ACEOF
  7806. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7807. _ACEOF
  7808. if test $ac_cv_c_compiler_gnu = yes; then
  7809. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7810. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7811. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7812. echo $ECHO_N "(cached) $ECHO_C" >&6
  7813. else
  7814. ac_pattern="Autoconf.*'x'"
  7815. cat >conftest.$ac_ext <<_ACEOF
  7816. /* confdefs.h. */
  7817. _ACEOF
  7818. cat confdefs.h >>conftest.$ac_ext
  7819. cat >>conftest.$ac_ext <<_ACEOF
  7820. /* end confdefs.h. */
  7821. #include <sgtty.h>
  7822. Autoconf TIOCGETP
  7823. _ACEOF
  7824. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7825. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7826. ac_cv_prog_gcc_traditional=yes
  7827. else
  7828. ac_cv_prog_gcc_traditional=no
  7829. fi
  7830. rm -f conftest*
  7831. if test $ac_cv_prog_gcc_traditional = no; then
  7832. cat >conftest.$ac_ext <<_ACEOF
  7833. /* confdefs.h. */
  7834. _ACEOF
  7835. cat confdefs.h >>conftest.$ac_ext
  7836. cat >>conftest.$ac_ext <<_ACEOF
  7837. /* end confdefs.h. */
  7838. #include <termio.h>
  7839. Autoconf TCGETA
  7840. _ACEOF
  7841. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7842. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7843. ac_cv_prog_gcc_traditional=yes
  7844. fi
  7845. rm -f conftest*
  7846. fi
  7847. fi
  7848. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7849. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7850. if test $ac_cv_prog_gcc_traditional = yes; then
  7851. CC="$CC -traditional"
  7852. fi
  7853. fi
  7854. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7855. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7856. if test "${ac_cv_struct_tm+set}" = set; then
  7857. echo $ECHO_N "(cached) $ECHO_C" >&6
  7858. else
  7859. cat >conftest.$ac_ext <<_ACEOF
  7860. /* confdefs.h. */
  7861. _ACEOF
  7862. cat confdefs.h >>conftest.$ac_ext
  7863. cat >>conftest.$ac_ext <<_ACEOF
  7864. /* end confdefs.h. */
  7865. #include <sys/types.h>
  7866. #include <time.h>
  7867. int
  7868. main ()
  7869. {
  7870. struct tm *tp; tp->tm_sec;
  7871. ;
  7872. return 0;
  7873. }
  7874. _ACEOF
  7875. rm -f conftest.$ac_objext
  7876. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7877. (eval $ac_compile) 2>conftest.er1
  7878. ac_status=$?
  7879. grep -v '^ *+' conftest.er1 >conftest.err
  7880. rm -f conftest.er1
  7881. cat conftest.err >&5
  7882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7883. (exit $ac_status); } &&
  7884. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7886. (eval $ac_try) 2>&5
  7887. ac_status=$?
  7888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7889. (exit $ac_status); }; } &&
  7890. { ac_try='test -s conftest.$ac_objext'
  7891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7892. (eval $ac_try) 2>&5
  7893. ac_status=$?
  7894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7895. (exit $ac_status); }; }; then
  7896. ac_cv_struct_tm=time.h
  7897. else
  7898. echo "$as_me: failed program was:" >&5
  7899. sed 's/^/| /' conftest.$ac_ext >&5
  7900. ac_cv_struct_tm=sys/time.h
  7901. fi
  7902. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7903. fi
  7904. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7905. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7906. if test $ac_cv_struct_tm = sys/time.h; then
  7907. cat >>confdefs.h <<\_ACEOF
  7908. #define TM_IN_SYS_TIME 1
  7909. _ACEOF
  7910. fi
  7911. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7912. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7913. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7914. echo $ECHO_N "(cached) $ECHO_C" >&6
  7915. else
  7916. cat >conftest.$ac_ext <<_ACEOF
  7917. /* confdefs.h. */
  7918. _ACEOF
  7919. cat confdefs.h >>conftest.$ac_ext
  7920. cat >>conftest.$ac_ext <<_ACEOF
  7921. /* end confdefs.h. */
  7922. #include <sys/types.h>
  7923. #include <$ac_cv_struct_tm>
  7924. int
  7925. main ()
  7926. {
  7927. static struct tm ac_aggr;
  7928. if (ac_aggr.tm_zone)
  7929. return 0;
  7930. ;
  7931. return 0;
  7932. }
  7933. _ACEOF
  7934. rm -f conftest.$ac_objext
  7935. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7936. (eval $ac_compile) 2>conftest.er1
  7937. ac_status=$?
  7938. grep -v '^ *+' conftest.er1 >conftest.err
  7939. rm -f conftest.er1
  7940. cat conftest.err >&5
  7941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7942. (exit $ac_status); } &&
  7943. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7944. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7945. (eval $ac_try) 2>&5
  7946. ac_status=$?
  7947. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7948. (exit $ac_status); }; } &&
  7949. { ac_try='test -s conftest.$ac_objext'
  7950. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7951. (eval $ac_try) 2>&5
  7952. ac_status=$?
  7953. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7954. (exit $ac_status); }; }; then
  7955. ac_cv_member_struct_tm_tm_zone=yes
  7956. else
  7957. echo "$as_me: failed program was:" >&5
  7958. sed 's/^/| /' conftest.$ac_ext >&5
  7959. cat >conftest.$ac_ext <<_ACEOF
  7960. /* confdefs.h. */
  7961. _ACEOF
  7962. cat confdefs.h >>conftest.$ac_ext
  7963. cat >>conftest.$ac_ext <<_ACEOF
  7964. /* end confdefs.h. */
  7965. #include <sys/types.h>
  7966. #include <$ac_cv_struct_tm>
  7967. int
  7968. main ()
  7969. {
  7970. static struct tm ac_aggr;
  7971. if (sizeof ac_aggr.tm_zone)
  7972. return 0;
  7973. ;
  7974. return 0;
  7975. }
  7976. _ACEOF
  7977. rm -f conftest.$ac_objext
  7978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7979. (eval $ac_compile) 2>conftest.er1
  7980. ac_status=$?
  7981. grep -v '^ *+' conftest.er1 >conftest.err
  7982. rm -f conftest.er1
  7983. cat conftest.err >&5
  7984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7985. (exit $ac_status); } &&
  7986. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7988. (eval $ac_try) 2>&5
  7989. ac_status=$?
  7990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7991. (exit $ac_status); }; } &&
  7992. { ac_try='test -s conftest.$ac_objext'
  7993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7994. (eval $ac_try) 2>&5
  7995. ac_status=$?
  7996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7997. (exit $ac_status); }; }; then
  7998. ac_cv_member_struct_tm_tm_zone=yes
  7999. else
  8000. echo "$as_me: failed program was:" >&5
  8001. sed 's/^/| /' conftest.$ac_ext >&5
  8002. ac_cv_member_struct_tm_tm_zone=no
  8003. fi
  8004. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8005. fi
  8006. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8007. fi
  8008. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8009. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  8010. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8011. cat >>confdefs.h <<_ACEOF
  8012. #define HAVE_STRUCT_TM_TM_ZONE 1
  8013. _ACEOF
  8014. fi
  8015. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8016. cat >>confdefs.h <<\_ACEOF
  8017. #define HAVE_TM_ZONE 1
  8018. _ACEOF
  8019. else
  8020. echo "$as_me:$LINENO: checking for tzname" >&5
  8021. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  8022. if test "${ac_cv_var_tzname+set}" = set; then
  8023. echo $ECHO_N "(cached) $ECHO_C" >&6
  8024. else
  8025. cat >conftest.$ac_ext <<_ACEOF
  8026. /* confdefs.h. */
  8027. _ACEOF
  8028. cat confdefs.h >>conftest.$ac_ext
  8029. cat >>conftest.$ac_ext <<_ACEOF
  8030. /* end confdefs.h. */
  8031. #include <time.h>
  8032. #ifndef tzname /* For SGI. */
  8033. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  8034. #endif
  8035. int
  8036. main ()
  8037. {
  8038. atoi(*tzname);
  8039. ;
  8040. return 0;
  8041. }
  8042. _ACEOF
  8043. rm -f conftest.$ac_objext conftest$ac_exeext
  8044. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8045. (eval $ac_link) 2>conftest.er1
  8046. ac_status=$?
  8047. grep -v '^ *+' conftest.er1 >conftest.err
  8048. rm -f conftest.er1
  8049. cat conftest.err >&5
  8050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8051. (exit $ac_status); } &&
  8052. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8053. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8054. (eval $ac_try) 2>&5
  8055. ac_status=$?
  8056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8057. (exit $ac_status); }; } &&
  8058. { ac_try='test -s conftest$ac_exeext'
  8059. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8060. (eval $ac_try) 2>&5
  8061. ac_status=$?
  8062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8063. (exit $ac_status); }; }; then
  8064. ac_cv_var_tzname=yes
  8065. else
  8066. echo "$as_me: failed program was:" >&5
  8067. sed 's/^/| /' conftest.$ac_ext >&5
  8068. ac_cv_var_tzname=no
  8069. fi
  8070. rm -f conftest.err conftest.$ac_objext \
  8071. conftest$ac_exeext conftest.$ac_ext
  8072. fi
  8073. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8074. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  8075. if test $ac_cv_var_tzname = yes; then
  8076. cat >>confdefs.h <<\_ACEOF
  8077. #define HAVE_TZNAME 1
  8078. _ACEOF
  8079. fi
  8080. fi
  8081. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8082. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  8083. if test "${ac_cv_struct_tm+set}" = set; then
  8084. echo $ECHO_N "(cached) $ECHO_C" >&6
  8085. else
  8086. cat >conftest.$ac_ext <<_ACEOF
  8087. /* confdefs.h. */
  8088. _ACEOF
  8089. cat confdefs.h >>conftest.$ac_ext
  8090. cat >>conftest.$ac_ext <<_ACEOF
  8091. /* end confdefs.h. */
  8092. #include <sys/types.h>
  8093. #include <time.h>
  8094. int
  8095. main ()
  8096. {
  8097. struct tm *tp; tp->tm_sec;
  8098. ;
  8099. return 0;
  8100. }
  8101. _ACEOF
  8102. rm -f conftest.$ac_objext
  8103. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8104. (eval $ac_compile) 2>conftest.er1
  8105. ac_status=$?
  8106. grep -v '^ *+' conftest.er1 >conftest.err
  8107. rm -f conftest.er1
  8108. cat conftest.err >&5
  8109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8110. (exit $ac_status); } &&
  8111. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8113. (eval $ac_try) 2>&5
  8114. ac_status=$?
  8115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8116. (exit $ac_status); }; } &&
  8117. { ac_try='test -s conftest.$ac_objext'
  8118. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8119. (eval $ac_try) 2>&5
  8120. ac_status=$?
  8121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8122. (exit $ac_status); }; }; then
  8123. ac_cv_struct_tm=time.h
  8124. else
  8125. echo "$as_me: failed program was:" >&5
  8126. sed 's/^/| /' conftest.$ac_ext >&5
  8127. ac_cv_struct_tm=sys/time.h
  8128. fi
  8129. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8130. fi
  8131. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8132. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8133. if test $ac_cv_struct_tm = sys/time.h; then
  8134. cat >>confdefs.h <<\_ACEOF
  8135. #define TM_IN_SYS_TIME 1
  8136. _ACEOF
  8137. fi
  8138. #checkpoint
  8139. cat >confcache <<\_ACEOF
  8140. # This file is a shell script that caches the results of configure
  8141. # tests run on this system so they can be shared between configure
  8142. # scripts and configure runs, see configure's option --config-cache.
  8143. # It is not useful on other systems. If it contains results you don't
  8144. # want to keep, you may remove or edit it.
  8145. #
  8146. # config.status only pays attention to the cache file if you give it
  8147. # the --recheck option to rerun configure.
  8148. #
  8149. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8150. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8151. # following values.
  8152. _ACEOF
  8153. # The following way of writing the cache mishandles newlines in values,
  8154. # but we know of no workaround that is simple, portable, and efficient.
  8155. # So, don't put newlines in cache variables' values.
  8156. # Ultrix sh set writes to stderr and can't be redirected directly,
  8157. # and sets the high bit in the cache file unless we assign to the vars.
  8158. {
  8159. (set) 2>&1 |
  8160. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8161. *ac_space=\ *)
  8162. # `set' does not quote correctly, so add quotes (double-quote
  8163. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8164. sed -n \
  8165. "s/'/'\\\\''/g;
  8166. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8167. ;;
  8168. *)
  8169. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8170. sed -n \
  8171. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8172. ;;
  8173. esac;
  8174. } |
  8175. sed '
  8176. t clear
  8177. : clear
  8178. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8179. t end
  8180. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8181. : end' >>confcache
  8182. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8183. if test -w $cache_file; then
  8184. test "x$cache_file" != "x/dev/null"
  8185. cat confcache >$cache_file
  8186. else
  8187. echo "not updating unwritable cache $cache_file"
  8188. fi
  8189. fi
  8190. rm -f confcache
  8191. # Checks for library functions
  8192. for ac_header in unistd.h vfork.h
  8193. do
  8194. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8195. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8196. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8197. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8198. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8199. echo $ECHO_N "(cached) $ECHO_C" >&6
  8200. fi
  8201. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8202. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8203. else
  8204. # Is the header compilable?
  8205. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8206. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8207. cat >conftest.$ac_ext <<_ACEOF
  8208. /* confdefs.h. */
  8209. _ACEOF
  8210. cat confdefs.h >>conftest.$ac_ext
  8211. cat >>conftest.$ac_ext <<_ACEOF
  8212. /* end confdefs.h. */
  8213. $ac_includes_default
  8214. #include <$ac_header>
  8215. _ACEOF
  8216. rm -f conftest.$ac_objext
  8217. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8218. (eval $ac_compile) 2>conftest.er1
  8219. ac_status=$?
  8220. grep -v '^ *+' conftest.er1 >conftest.err
  8221. rm -f conftest.er1
  8222. cat conftest.err >&5
  8223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8224. (exit $ac_status); } &&
  8225. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8227. (eval $ac_try) 2>&5
  8228. ac_status=$?
  8229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8230. (exit $ac_status); }; } &&
  8231. { ac_try='test -s conftest.$ac_objext'
  8232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8233. (eval $ac_try) 2>&5
  8234. ac_status=$?
  8235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8236. (exit $ac_status); }; }; then
  8237. ac_header_compiler=yes
  8238. else
  8239. echo "$as_me: failed program was:" >&5
  8240. sed 's/^/| /' conftest.$ac_ext >&5
  8241. ac_header_compiler=no
  8242. fi
  8243. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8244. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8245. echo "${ECHO_T}$ac_header_compiler" >&6
  8246. # Is the header present?
  8247. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8248. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8249. cat >conftest.$ac_ext <<_ACEOF
  8250. /* confdefs.h. */
  8251. _ACEOF
  8252. cat confdefs.h >>conftest.$ac_ext
  8253. cat >>conftest.$ac_ext <<_ACEOF
  8254. /* end confdefs.h. */
  8255. #include <$ac_header>
  8256. _ACEOF
  8257. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8258. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8259. ac_status=$?
  8260. grep -v '^ *+' conftest.er1 >conftest.err
  8261. rm -f conftest.er1
  8262. cat conftest.err >&5
  8263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8264. (exit $ac_status); } >/dev/null; then
  8265. if test -s conftest.err; then
  8266. ac_cpp_err=$ac_c_preproc_warn_flag
  8267. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8268. else
  8269. ac_cpp_err=
  8270. fi
  8271. else
  8272. ac_cpp_err=yes
  8273. fi
  8274. if test -z "$ac_cpp_err"; then
  8275. ac_header_preproc=yes
  8276. else
  8277. echo "$as_me: failed program was:" >&5
  8278. sed 's/^/| /' conftest.$ac_ext >&5
  8279. ac_header_preproc=no
  8280. fi
  8281. rm -f conftest.err conftest.$ac_ext
  8282. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8283. echo "${ECHO_T}$ac_header_preproc" >&6
  8284. # So? What about this header?
  8285. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8286. yes:no: )
  8287. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8288. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8289. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8290. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8291. ac_header_preproc=yes
  8292. ;;
  8293. no:yes:* )
  8294. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8295. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8296. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8297. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8298. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8299. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8300. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8301. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8302. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8303. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8304. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8305. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8306. (
  8307. cat <<\_ASBOX
  8308. ## ------------------------------------------ ##
  8309. ## Report this to the AC_PACKAGE_NAME lists. ##
  8310. ## ------------------------------------------ ##
  8311. _ASBOX
  8312. ) |
  8313. sed "s/^/$as_me: WARNING: /" >&2
  8314. ;;
  8315. esac
  8316. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8317. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8318. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8319. echo $ECHO_N "(cached) $ECHO_C" >&6
  8320. else
  8321. eval "$as_ac_Header=\$ac_header_preproc"
  8322. fi
  8323. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8324. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8325. fi
  8326. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8327. cat >>confdefs.h <<_ACEOF
  8328. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8329. _ACEOF
  8330. fi
  8331. done
  8332. for ac_func in fork vfork
  8333. do
  8334. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8335. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8336. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8337. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8338. echo $ECHO_N "(cached) $ECHO_C" >&6
  8339. else
  8340. cat >conftest.$ac_ext <<_ACEOF
  8341. /* confdefs.h. */
  8342. _ACEOF
  8343. cat confdefs.h >>conftest.$ac_ext
  8344. cat >>conftest.$ac_ext <<_ACEOF
  8345. /* end confdefs.h. */
  8346. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8347. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8348. #define $ac_func innocuous_$ac_func
  8349. /* System header to define __stub macros and hopefully few prototypes,
  8350. which can conflict with char $ac_func (); below.
  8351. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8352. <limits.h> exists even on freestanding compilers. */
  8353. #ifdef __STDC__
  8354. # include <limits.h>
  8355. #else
  8356. # include <assert.h>
  8357. #endif
  8358. #undef $ac_func
  8359. /* Override any gcc2 internal prototype to avoid an error. */
  8360. #ifdef __cplusplus
  8361. extern "C"
  8362. {
  8363. #endif
  8364. /* We use char because int might match the return type of a gcc2
  8365. builtin and then its argument prototype would still apply. */
  8366. char $ac_func ();
  8367. /* The GNU C library defines this for functions which it implements
  8368. to always fail with ENOSYS. Some functions are actually named
  8369. something starting with __ and the normal name is an alias. */
  8370. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8371. choke me
  8372. #else
  8373. char (*f) () = $ac_func;
  8374. #endif
  8375. #ifdef __cplusplus
  8376. }
  8377. #endif
  8378. int
  8379. main ()
  8380. {
  8381. return f != $ac_func;
  8382. ;
  8383. return 0;
  8384. }
  8385. _ACEOF
  8386. rm -f conftest.$ac_objext conftest$ac_exeext
  8387. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8388. (eval $ac_link) 2>conftest.er1
  8389. ac_status=$?
  8390. grep -v '^ *+' conftest.er1 >conftest.err
  8391. rm -f conftest.er1
  8392. cat conftest.err >&5
  8393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8394. (exit $ac_status); } &&
  8395. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8397. (eval $ac_try) 2>&5
  8398. ac_status=$?
  8399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8400. (exit $ac_status); }; } &&
  8401. { ac_try='test -s conftest$ac_exeext'
  8402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8403. (eval $ac_try) 2>&5
  8404. ac_status=$?
  8405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8406. (exit $ac_status); }; }; then
  8407. eval "$as_ac_var=yes"
  8408. else
  8409. echo "$as_me: failed program was:" >&5
  8410. sed 's/^/| /' conftest.$ac_ext >&5
  8411. eval "$as_ac_var=no"
  8412. fi
  8413. rm -f conftest.err conftest.$ac_objext \
  8414. conftest$ac_exeext conftest.$ac_ext
  8415. fi
  8416. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8417. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8418. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8419. cat >>confdefs.h <<_ACEOF
  8420. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8421. _ACEOF
  8422. fi
  8423. done
  8424. if test "x$ac_cv_func_fork" = xyes; then
  8425. echo "$as_me:$LINENO: checking for working fork" >&5
  8426. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8427. if test "${ac_cv_func_fork_works+set}" = set; then
  8428. echo $ECHO_N "(cached) $ECHO_C" >&6
  8429. else
  8430. if test "$cross_compiling" = yes; then
  8431. ac_cv_func_fork_works=cross
  8432. else
  8433. cat >conftest.$ac_ext <<_ACEOF
  8434. /* By Ruediger Kuhlmann. */
  8435. #include <sys/types.h>
  8436. #if HAVE_UNISTD_H
  8437. # include <unistd.h>
  8438. #endif
  8439. /* Some systems only have a dummy stub for fork() */
  8440. int main ()
  8441. {
  8442. if (fork() < 0)
  8443. exit (1);
  8444. exit (0);
  8445. }
  8446. _ACEOF
  8447. rm -f conftest$ac_exeext
  8448. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8449. (eval $ac_link) 2>&5
  8450. ac_status=$?
  8451. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8452. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8453. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8454. (eval $ac_try) 2>&5
  8455. ac_status=$?
  8456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8457. (exit $ac_status); }; }; then
  8458. ac_cv_func_fork_works=yes
  8459. else
  8460. echo "$as_me: program exited with status $ac_status" >&5
  8461. echo "$as_me: failed program was:" >&5
  8462. sed 's/^/| /' conftest.$ac_ext >&5
  8463. ( exit $ac_status )
  8464. ac_cv_func_fork_works=no
  8465. fi
  8466. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8467. fi
  8468. fi
  8469. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8470. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8471. else
  8472. ac_cv_func_fork_works=$ac_cv_func_fork
  8473. fi
  8474. if test "x$ac_cv_func_fork_works" = xcross; then
  8475. case $host in
  8476. *-*-amigaos* | *-*-msdosdjgpp*)
  8477. # Override, as these systems have only a dummy fork() stub
  8478. ac_cv_func_fork_works=no
  8479. ;;
  8480. *)
  8481. ac_cv_func_fork_works=yes
  8482. ;;
  8483. esac
  8484. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8485. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8486. fi
  8487. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8488. if test "x$ac_cv_func_vfork" = xyes; then
  8489. echo "$as_me:$LINENO: checking for working vfork" >&5
  8490. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8491. if test "${ac_cv_func_vfork_works+set}" = set; then
  8492. echo $ECHO_N "(cached) $ECHO_C" >&6
  8493. else
  8494. if test "$cross_compiling" = yes; then
  8495. ac_cv_func_vfork_works=cross
  8496. else
  8497. cat >conftest.$ac_ext <<_ACEOF
  8498. /* confdefs.h. */
  8499. _ACEOF
  8500. cat confdefs.h >>conftest.$ac_ext
  8501. cat >>conftest.$ac_ext <<_ACEOF
  8502. /* end confdefs.h. */
  8503. /* Thanks to Paul Eggert for this test. */
  8504. #include <stdio.h>
  8505. #include <stdlib.h>
  8506. #include <sys/types.h>
  8507. #include <sys/stat.h>
  8508. #include <sys/wait.h>
  8509. #if HAVE_UNISTD_H
  8510. # include <unistd.h>
  8511. #endif
  8512. #if HAVE_VFORK_H
  8513. # include <vfork.h>
  8514. #endif
  8515. /* On some sparc systems, changes by the child to local and incoming
  8516. argument registers are propagated back to the parent. The compiler
  8517. is told about this with #include <vfork.h>, but some compilers
  8518. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8519. static variable whose address is put into a register that is
  8520. clobbered by the vfork. */
  8521. static void
  8522. #ifdef __cplusplus
  8523. sparc_address_test (int arg)
  8524. # else
  8525. sparc_address_test (arg) int arg;
  8526. #endif
  8527. {
  8528. static pid_t child;
  8529. if (!child) {
  8530. child = vfork ();
  8531. if (child < 0) {
  8532. perror ("vfork");
  8533. _exit(2);
  8534. }
  8535. if (!child) {
  8536. arg = getpid();
  8537. write(-1, "", 0);
  8538. _exit (arg);
  8539. }
  8540. }
  8541. }
  8542. int
  8543. main ()
  8544. {
  8545. pid_t parent = getpid ();
  8546. pid_t child;
  8547. sparc_address_test (0);
  8548. child = vfork ();
  8549. if (child == 0) {
  8550. /* Here is another test for sparc vfork register problems. This
  8551. test uses lots of local variables, at least as many local
  8552. variables as main has allocated so far including compiler
  8553. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8554. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8555. reuse the register of parent for one of the local variables,
  8556. since it will think that parent can't possibly be used any more
  8557. in this routine. Assigning to the local variable will thus
  8558. munge parent in the parent process. */
  8559. pid_t
  8560. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8561. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8562. /* Convince the compiler that p..p7 are live; otherwise, it might
  8563. use the same hardware register for all 8 local variables. */
  8564. if (p != p1 || p != p2 || p != p3 || p != p4
  8565. || p != p5 || p != p6 || p != p7)
  8566. _exit(1);
  8567. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8568. from child file descriptors. If the child closes a descriptor
  8569. before it execs or exits, this munges the parent's descriptor
  8570. as well. Test for this by closing stdout in the child. */
  8571. _exit(close(fileno(stdout)) != 0);
  8572. } else {
  8573. int status;
  8574. struct stat st;
  8575. while (wait(&status) != child)
  8576. ;
  8577. exit(
  8578. /* Was there some problem with vforking? */
  8579. child < 0
  8580. /* Did the child fail? (This shouldn't happen.) */
  8581. || status
  8582. /* Did the vfork/compiler bug occur? */
  8583. || parent != getpid()
  8584. /* Did the file descriptor bug occur? */
  8585. || fstat(fileno(stdout), &st) != 0
  8586. );
  8587. }
  8588. }
  8589. _ACEOF
  8590. rm -f conftest$ac_exeext
  8591. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8592. (eval $ac_link) 2>&5
  8593. ac_status=$?
  8594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8595. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8597. (eval $ac_try) 2>&5
  8598. ac_status=$?
  8599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8600. (exit $ac_status); }; }; then
  8601. ac_cv_func_vfork_works=yes
  8602. else
  8603. echo "$as_me: program exited with status $ac_status" >&5
  8604. echo "$as_me: failed program was:" >&5
  8605. sed 's/^/| /' conftest.$ac_ext >&5
  8606. ( exit $ac_status )
  8607. ac_cv_func_vfork_works=no
  8608. fi
  8609. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8610. fi
  8611. fi
  8612. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8613. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8614. fi;
  8615. if test "x$ac_cv_func_fork_works" = xcross; then
  8616. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8617. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8618. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8619. fi
  8620. if test "x$ac_cv_func_vfork_works" = xyes; then
  8621. cat >>confdefs.h <<\_ACEOF
  8622. #define HAVE_WORKING_VFORK 1
  8623. _ACEOF
  8624. else
  8625. cat >>confdefs.h <<\_ACEOF
  8626. #define vfork fork
  8627. _ACEOF
  8628. fi
  8629. if test "x$ac_cv_func_fork_works" = xyes; then
  8630. cat >>confdefs.h <<\_ACEOF
  8631. #define HAVE_WORKING_FORK 1
  8632. _ACEOF
  8633. fi
  8634. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8635. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8636. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8637. echo $ECHO_N "(cached) $ECHO_C" >&6
  8638. else
  8639. rm -f conftest.sym conftest.file
  8640. echo >conftest.file
  8641. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8642. if test "$cross_compiling" = yes; then
  8643. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8644. else
  8645. cat >conftest.$ac_ext <<_ACEOF
  8646. /* confdefs.h. */
  8647. _ACEOF
  8648. cat confdefs.h >>conftest.$ac_ext
  8649. cat >>conftest.$ac_ext <<_ACEOF
  8650. /* end confdefs.h. */
  8651. $ac_includes_default
  8652. int
  8653. main ()
  8654. {
  8655. struct stat sbuf;
  8656. /* Linux will dereference the symlink and fail.
  8657. That is better in the sense that it means we will not
  8658. have to compile and use the lstat wrapper. */
  8659. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8660. ;
  8661. return 0;
  8662. }
  8663. _ACEOF
  8664. rm -f conftest$ac_exeext
  8665. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8666. (eval $ac_link) 2>&5
  8667. ac_status=$?
  8668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8669. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8671. (eval $ac_try) 2>&5
  8672. ac_status=$?
  8673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8674. (exit $ac_status); }; }; then
  8675. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8676. else
  8677. echo "$as_me: program exited with status $ac_status" >&5
  8678. echo "$as_me: failed program was:" >&5
  8679. sed 's/^/| /' conftest.$ac_ext >&5
  8680. ( exit $ac_status )
  8681. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8682. fi
  8683. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8684. fi
  8685. else
  8686. # If the `ln -s' command failed, then we probably don't even
  8687. # have an lstat function.
  8688. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8689. fi
  8690. rm -f conftest.sym conftest.file
  8691. fi
  8692. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8693. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8694. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8695. cat >>confdefs.h <<_ACEOF
  8696. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8697. _ACEOF
  8698. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8699. case $LIBOBJS in
  8700. "lstat.$ac_objext" | \
  8701. *" lstat.$ac_objext" | \
  8702. "lstat.$ac_objext "* | \
  8703. *" lstat.$ac_objext "* ) ;;
  8704. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8705. esac
  8706. fi
  8707. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8708. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8709. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8710. echo $ECHO_N "(cached) $ECHO_C" >&6
  8711. else
  8712. if test "$cross_compiling" = yes; then
  8713. ac_cv_func_lstat_empty_string_bug=yes
  8714. else
  8715. cat >conftest.$ac_ext <<_ACEOF
  8716. /* confdefs.h. */
  8717. _ACEOF
  8718. cat confdefs.h >>conftest.$ac_ext
  8719. cat >>conftest.$ac_ext <<_ACEOF
  8720. /* end confdefs.h. */
  8721. $ac_includes_default
  8722. int
  8723. main ()
  8724. {
  8725. struct stat sbuf;
  8726. exit (lstat ("", &sbuf) ? 1 : 0);
  8727. ;
  8728. return 0;
  8729. }
  8730. _ACEOF
  8731. rm -f conftest$ac_exeext
  8732. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8733. (eval $ac_link) 2>&5
  8734. ac_status=$?
  8735. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8736. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8737. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8738. (eval $ac_try) 2>&5
  8739. ac_status=$?
  8740. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8741. (exit $ac_status); }; }; then
  8742. ac_cv_func_lstat_empty_string_bug=yes
  8743. else
  8744. echo "$as_me: program exited with status $ac_status" >&5
  8745. echo "$as_me: failed program was:" >&5
  8746. sed 's/^/| /' conftest.$ac_ext >&5
  8747. ( exit $ac_status )
  8748. ac_cv_func_lstat_empty_string_bug=no
  8749. fi
  8750. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8751. fi
  8752. fi
  8753. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8754. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8755. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8756. case $LIBOBJS in
  8757. "lstat.$ac_objext" | \
  8758. *" lstat.$ac_objext" | \
  8759. "lstat.$ac_objext "* | \
  8760. *" lstat.$ac_objext "* ) ;;
  8761. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8762. esac
  8763. cat >>confdefs.h <<_ACEOF
  8764. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8765. _ACEOF
  8766. fi
  8767. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8768. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8769. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8770. echo $ECHO_N "(cached) $ECHO_C" >&6
  8771. else
  8772. rm -f conftest.sym conftest.file
  8773. echo >conftest.file
  8774. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8775. if test "$cross_compiling" = yes; then
  8776. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8777. else
  8778. cat >conftest.$ac_ext <<_ACEOF
  8779. /* confdefs.h. */
  8780. _ACEOF
  8781. cat confdefs.h >>conftest.$ac_ext
  8782. cat >>conftest.$ac_ext <<_ACEOF
  8783. /* end confdefs.h. */
  8784. $ac_includes_default
  8785. int
  8786. main ()
  8787. {
  8788. struct stat sbuf;
  8789. /* Linux will dereference the symlink and fail.
  8790. That is better in the sense that it means we will not
  8791. have to compile and use the lstat wrapper. */
  8792. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8793. ;
  8794. return 0;
  8795. }
  8796. _ACEOF
  8797. rm -f conftest$ac_exeext
  8798. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8799. (eval $ac_link) 2>&5
  8800. ac_status=$?
  8801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8802. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8804. (eval $ac_try) 2>&5
  8805. ac_status=$?
  8806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8807. (exit $ac_status); }; }; then
  8808. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8809. else
  8810. echo "$as_me: program exited with status $ac_status" >&5
  8811. echo "$as_me: failed program was:" >&5
  8812. sed 's/^/| /' conftest.$ac_ext >&5
  8813. ( exit $ac_status )
  8814. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8815. fi
  8816. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8817. fi
  8818. else
  8819. # If the `ln -s' command failed, then we probably don't even
  8820. # have an lstat function.
  8821. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8822. fi
  8823. rm -f conftest.sym conftest.file
  8824. fi
  8825. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8826. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8827. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8828. cat >>confdefs.h <<_ACEOF
  8829. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8830. _ACEOF
  8831. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8832. case $LIBOBJS in
  8833. "lstat.$ac_objext" | \
  8834. *" lstat.$ac_objext" | \
  8835. "lstat.$ac_objext "* | \
  8836. *" lstat.$ac_objext "* ) ;;
  8837. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8838. esac
  8839. fi
  8840. for ac_header in stdlib.h
  8841. do
  8842. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8843. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8844. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8845. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8846. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8847. echo $ECHO_N "(cached) $ECHO_C" >&6
  8848. fi
  8849. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8850. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8851. else
  8852. # Is the header compilable?
  8853. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8854. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8855. cat >conftest.$ac_ext <<_ACEOF
  8856. /* confdefs.h. */
  8857. _ACEOF
  8858. cat confdefs.h >>conftest.$ac_ext
  8859. cat >>conftest.$ac_ext <<_ACEOF
  8860. /* end confdefs.h. */
  8861. $ac_includes_default
  8862. #include <$ac_header>
  8863. _ACEOF
  8864. rm -f conftest.$ac_objext
  8865. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8866. (eval $ac_compile) 2>conftest.er1
  8867. ac_status=$?
  8868. grep -v '^ *+' conftest.er1 >conftest.err
  8869. rm -f conftest.er1
  8870. cat conftest.err >&5
  8871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8872. (exit $ac_status); } &&
  8873. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8875. (eval $ac_try) 2>&5
  8876. ac_status=$?
  8877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8878. (exit $ac_status); }; } &&
  8879. { ac_try='test -s conftest.$ac_objext'
  8880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8881. (eval $ac_try) 2>&5
  8882. ac_status=$?
  8883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8884. (exit $ac_status); }; }; then
  8885. ac_header_compiler=yes
  8886. else
  8887. echo "$as_me: failed program was:" >&5
  8888. sed 's/^/| /' conftest.$ac_ext >&5
  8889. ac_header_compiler=no
  8890. fi
  8891. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8892. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8893. echo "${ECHO_T}$ac_header_compiler" >&6
  8894. # Is the header present?
  8895. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8896. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8897. cat >conftest.$ac_ext <<_ACEOF
  8898. /* confdefs.h. */
  8899. _ACEOF
  8900. cat confdefs.h >>conftest.$ac_ext
  8901. cat >>conftest.$ac_ext <<_ACEOF
  8902. /* end confdefs.h. */
  8903. #include <$ac_header>
  8904. _ACEOF
  8905. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8906. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8907. ac_status=$?
  8908. grep -v '^ *+' conftest.er1 >conftest.err
  8909. rm -f conftest.er1
  8910. cat conftest.err >&5
  8911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8912. (exit $ac_status); } >/dev/null; then
  8913. if test -s conftest.err; then
  8914. ac_cpp_err=$ac_c_preproc_warn_flag
  8915. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8916. else
  8917. ac_cpp_err=
  8918. fi
  8919. else
  8920. ac_cpp_err=yes
  8921. fi
  8922. if test -z "$ac_cpp_err"; then
  8923. ac_header_preproc=yes
  8924. else
  8925. echo "$as_me: failed program was:" >&5
  8926. sed 's/^/| /' conftest.$ac_ext >&5
  8927. ac_header_preproc=no
  8928. fi
  8929. rm -f conftest.err conftest.$ac_ext
  8930. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8931. echo "${ECHO_T}$ac_header_preproc" >&6
  8932. # So? What about this header?
  8933. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8934. yes:no: )
  8935. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8936. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8937. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8938. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8939. ac_header_preproc=yes
  8940. ;;
  8941. no:yes:* )
  8942. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8943. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8944. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8945. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8946. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8947. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8948. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8949. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8950. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8951. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8952. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8953. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8954. (
  8955. cat <<\_ASBOX
  8956. ## ------------------------------------------ ##
  8957. ## Report this to the AC_PACKAGE_NAME lists. ##
  8958. ## ------------------------------------------ ##
  8959. _ASBOX
  8960. ) |
  8961. sed "s/^/$as_me: WARNING: /" >&2
  8962. ;;
  8963. esac
  8964. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8965. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8966. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8967. echo $ECHO_N "(cached) $ECHO_C" >&6
  8968. else
  8969. eval "$as_ac_Header=\$ac_header_preproc"
  8970. fi
  8971. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8972. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8973. fi
  8974. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8975. cat >>confdefs.h <<_ACEOF
  8976. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8977. _ACEOF
  8978. fi
  8979. done
  8980. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8981. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8982. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8983. echo $ECHO_N "(cached) $ECHO_C" >&6
  8984. else
  8985. if test "$cross_compiling" = yes; then
  8986. ac_cv_func_malloc_0_nonnull=no
  8987. else
  8988. cat >conftest.$ac_ext <<_ACEOF
  8989. /* confdefs.h. */
  8990. _ACEOF
  8991. cat confdefs.h >>conftest.$ac_ext
  8992. cat >>conftest.$ac_ext <<_ACEOF
  8993. /* end confdefs.h. */
  8994. #if STDC_HEADERS || HAVE_STDLIB_H
  8995. # include <stdlib.h>
  8996. #else
  8997. char *malloc ();
  8998. #endif
  8999. int
  9000. main ()
  9001. {
  9002. exit (malloc (0) ? 0 : 1);
  9003. ;
  9004. return 0;
  9005. }
  9006. _ACEOF
  9007. rm -f conftest$ac_exeext
  9008. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9009. (eval $ac_link) 2>&5
  9010. ac_status=$?
  9011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9012. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9013. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9014. (eval $ac_try) 2>&5
  9015. ac_status=$?
  9016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9017. (exit $ac_status); }; }; then
  9018. ac_cv_func_malloc_0_nonnull=yes
  9019. else
  9020. echo "$as_me: program exited with status $ac_status" >&5
  9021. echo "$as_me: failed program was:" >&5
  9022. sed 's/^/| /' conftest.$ac_ext >&5
  9023. ( exit $ac_status )
  9024. ac_cv_func_malloc_0_nonnull=no
  9025. fi
  9026. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9027. fi
  9028. fi
  9029. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9030. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9031. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9032. cat >>confdefs.h <<\_ACEOF
  9033. #define HAVE_MALLOC 1
  9034. _ACEOF
  9035. else
  9036. cat >>confdefs.h <<\_ACEOF
  9037. #define HAVE_MALLOC 0
  9038. _ACEOF
  9039. case $LIBOBJS in
  9040. "malloc.$ac_objext" | \
  9041. *" malloc.$ac_objext" | \
  9042. "malloc.$ac_objext "* | \
  9043. *" malloc.$ac_objext "* ) ;;
  9044. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9045. esac
  9046. cat >>confdefs.h <<\_ACEOF
  9047. #define malloc rpl_malloc
  9048. _ACEOF
  9049. fi
  9050. for ac_header in stdlib.h sys/time.h unistd.h
  9051. do
  9052. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9053. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9054. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9055. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9056. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9057. echo $ECHO_N "(cached) $ECHO_C" >&6
  9058. fi
  9059. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9060. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9061. else
  9062. # Is the header compilable?
  9063. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9064. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9065. cat >conftest.$ac_ext <<_ACEOF
  9066. /* confdefs.h. */
  9067. _ACEOF
  9068. cat confdefs.h >>conftest.$ac_ext
  9069. cat >>conftest.$ac_ext <<_ACEOF
  9070. /* end confdefs.h. */
  9071. $ac_includes_default
  9072. #include <$ac_header>
  9073. _ACEOF
  9074. rm -f conftest.$ac_objext
  9075. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9076. (eval $ac_compile) 2>conftest.er1
  9077. ac_status=$?
  9078. grep -v '^ *+' conftest.er1 >conftest.err
  9079. rm -f conftest.er1
  9080. cat conftest.err >&5
  9081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9082. (exit $ac_status); } &&
  9083. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9084. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9085. (eval $ac_try) 2>&5
  9086. ac_status=$?
  9087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9088. (exit $ac_status); }; } &&
  9089. { ac_try='test -s conftest.$ac_objext'
  9090. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9091. (eval $ac_try) 2>&5
  9092. ac_status=$?
  9093. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9094. (exit $ac_status); }; }; then
  9095. ac_header_compiler=yes
  9096. else
  9097. echo "$as_me: failed program was:" >&5
  9098. sed 's/^/| /' conftest.$ac_ext >&5
  9099. ac_header_compiler=no
  9100. fi
  9101. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9102. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9103. echo "${ECHO_T}$ac_header_compiler" >&6
  9104. # Is the header present?
  9105. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9106. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9107. cat >conftest.$ac_ext <<_ACEOF
  9108. /* confdefs.h. */
  9109. _ACEOF
  9110. cat confdefs.h >>conftest.$ac_ext
  9111. cat >>conftest.$ac_ext <<_ACEOF
  9112. /* end confdefs.h. */
  9113. #include <$ac_header>
  9114. _ACEOF
  9115. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9116. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9117. ac_status=$?
  9118. grep -v '^ *+' conftest.er1 >conftest.err
  9119. rm -f conftest.er1
  9120. cat conftest.err >&5
  9121. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9122. (exit $ac_status); } >/dev/null; then
  9123. if test -s conftest.err; then
  9124. ac_cpp_err=$ac_c_preproc_warn_flag
  9125. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9126. else
  9127. ac_cpp_err=
  9128. fi
  9129. else
  9130. ac_cpp_err=yes
  9131. fi
  9132. if test -z "$ac_cpp_err"; then
  9133. ac_header_preproc=yes
  9134. else
  9135. echo "$as_me: failed program was:" >&5
  9136. sed 's/^/| /' conftest.$ac_ext >&5
  9137. ac_header_preproc=no
  9138. fi
  9139. rm -f conftest.err conftest.$ac_ext
  9140. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9141. echo "${ECHO_T}$ac_header_preproc" >&6
  9142. # So? What about this header?
  9143. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9144. yes:no: )
  9145. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9146. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9147. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9148. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9149. ac_header_preproc=yes
  9150. ;;
  9151. no:yes:* )
  9152. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9153. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9154. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9155. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9156. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9157. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9158. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9159. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9160. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9161. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9162. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9163. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9164. (
  9165. cat <<\_ASBOX
  9166. ## ------------------------------------------ ##
  9167. ## Report this to the AC_PACKAGE_NAME lists. ##
  9168. ## ------------------------------------------ ##
  9169. _ASBOX
  9170. ) |
  9171. sed "s/^/$as_me: WARNING: /" >&2
  9172. ;;
  9173. esac
  9174. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9175. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9176. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9177. echo $ECHO_N "(cached) $ECHO_C" >&6
  9178. else
  9179. eval "$as_ac_Header=\$ac_header_preproc"
  9180. fi
  9181. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9182. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9183. fi
  9184. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9185. cat >>confdefs.h <<_ACEOF
  9186. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9187. _ACEOF
  9188. fi
  9189. done
  9190. for ac_func in alarm
  9191. do
  9192. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9193. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9194. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9195. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9196. echo $ECHO_N "(cached) $ECHO_C" >&6
  9197. else
  9198. cat >conftest.$ac_ext <<_ACEOF
  9199. /* confdefs.h. */
  9200. _ACEOF
  9201. cat confdefs.h >>conftest.$ac_ext
  9202. cat >>conftest.$ac_ext <<_ACEOF
  9203. /* end confdefs.h. */
  9204. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9205. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9206. #define $ac_func innocuous_$ac_func
  9207. /* System header to define __stub macros and hopefully few prototypes,
  9208. which can conflict with char $ac_func (); below.
  9209. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9210. <limits.h> exists even on freestanding compilers. */
  9211. #ifdef __STDC__
  9212. # include <limits.h>
  9213. #else
  9214. # include <assert.h>
  9215. #endif
  9216. #undef $ac_func
  9217. /* Override any gcc2 internal prototype to avoid an error. */
  9218. #ifdef __cplusplus
  9219. extern "C"
  9220. {
  9221. #endif
  9222. /* We use char because int might match the return type of a gcc2
  9223. builtin and then its argument prototype would still apply. */
  9224. char $ac_func ();
  9225. /* The GNU C library defines this for functions which it implements
  9226. to always fail with ENOSYS. Some functions are actually named
  9227. something starting with __ and the normal name is an alias. */
  9228. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9229. choke me
  9230. #else
  9231. char (*f) () = $ac_func;
  9232. #endif
  9233. #ifdef __cplusplus
  9234. }
  9235. #endif
  9236. int
  9237. main ()
  9238. {
  9239. return f != $ac_func;
  9240. ;
  9241. return 0;
  9242. }
  9243. _ACEOF
  9244. rm -f conftest.$ac_objext conftest$ac_exeext
  9245. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9246. (eval $ac_link) 2>conftest.er1
  9247. ac_status=$?
  9248. grep -v '^ *+' conftest.er1 >conftest.err
  9249. rm -f conftest.er1
  9250. cat conftest.err >&5
  9251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9252. (exit $ac_status); } &&
  9253. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9254. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9255. (eval $ac_try) 2>&5
  9256. ac_status=$?
  9257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9258. (exit $ac_status); }; } &&
  9259. { ac_try='test -s conftest$ac_exeext'
  9260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9261. (eval $ac_try) 2>&5
  9262. ac_status=$?
  9263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9264. (exit $ac_status); }; }; then
  9265. eval "$as_ac_var=yes"
  9266. else
  9267. echo "$as_me: failed program was:" >&5
  9268. sed 's/^/| /' conftest.$ac_ext >&5
  9269. eval "$as_ac_var=no"
  9270. fi
  9271. rm -f conftest.err conftest.$ac_objext \
  9272. conftest$ac_exeext conftest.$ac_ext
  9273. fi
  9274. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9275. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9276. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9277. cat >>confdefs.h <<_ACEOF
  9278. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9279. _ACEOF
  9280. fi
  9281. done
  9282. echo "$as_me:$LINENO: checking for working mktime" >&5
  9283. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9284. if test "${ac_cv_func_working_mktime+set}" = set; then
  9285. echo $ECHO_N "(cached) $ECHO_C" >&6
  9286. else
  9287. if test "$cross_compiling" = yes; then
  9288. ac_cv_func_working_mktime=no
  9289. else
  9290. cat >conftest.$ac_ext <<_ACEOF
  9291. /* confdefs.h. */
  9292. _ACEOF
  9293. cat confdefs.h >>conftest.$ac_ext
  9294. cat >>conftest.$ac_ext <<_ACEOF
  9295. /* end confdefs.h. */
  9296. /* Test program from Paul Eggert and Tony Leneis. */
  9297. #if TIME_WITH_SYS_TIME
  9298. # include <sys/time.h>
  9299. # include <time.h>
  9300. #else
  9301. # if HAVE_SYS_TIME_H
  9302. # include <sys/time.h>
  9303. # else
  9304. # include <time.h>
  9305. # endif
  9306. #endif
  9307. #if HAVE_STDLIB_H
  9308. # include <stdlib.h>
  9309. #endif
  9310. #if HAVE_UNISTD_H
  9311. # include <unistd.h>
  9312. #endif
  9313. #if !HAVE_ALARM
  9314. # define alarm(X) /* empty */
  9315. #endif
  9316. /* Work around redefinition to rpl_putenv by other config tests. */
  9317. #undef putenv
  9318. static time_t time_t_max;
  9319. static time_t time_t_min;
  9320. /* Values we'll use to set the TZ environment variable. */
  9321. static char *tz_strings[] = {
  9322. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9323. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9324. };
  9325. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9326. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9327. Based on a problem report from Andreas Jaeger. */
  9328. static void
  9329. spring_forward_gap ()
  9330. {
  9331. /* glibc (up to about 1998-10-07) failed this test. */
  9332. struct tm tm;
  9333. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9334. instead of "TZ=America/Vancouver" in order to detect the bug even
  9335. on systems that don't support the Olson extension, or don't have the
  9336. full zoneinfo tables installed. */
  9337. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9338. tm.tm_year = 98;
  9339. tm.tm_mon = 3;
  9340. tm.tm_mday = 5;
  9341. tm.tm_hour = 2;
  9342. tm.tm_min = 0;
  9343. tm.tm_sec = 0;
  9344. tm.tm_isdst = -1;
  9345. if (mktime (&tm) == (time_t)-1)
  9346. exit (1);
  9347. }
  9348. static void
  9349. mktime_test1 (now)
  9350. time_t now;
  9351. {
  9352. struct tm *lt;
  9353. if ((lt = localtime (&now)) && mktime (lt) != now)
  9354. exit (1);
  9355. }
  9356. static void
  9357. mktime_test (now)
  9358. time_t now;
  9359. {
  9360. mktime_test1 (now);
  9361. mktime_test1 ((time_t) (time_t_max - now));
  9362. mktime_test1 ((time_t) (time_t_min + now));
  9363. }
  9364. static void
  9365. irix_6_4_bug ()
  9366. {
  9367. /* Based on code from Ariel Faigon. */
  9368. struct tm tm;
  9369. tm.tm_year = 96;
  9370. tm.tm_mon = 3;
  9371. tm.tm_mday = 0;
  9372. tm.tm_hour = 0;
  9373. tm.tm_min = 0;
  9374. tm.tm_sec = 0;
  9375. tm.tm_isdst = -1;
  9376. mktime (&tm);
  9377. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9378. exit (1);
  9379. }
  9380. static void
  9381. bigtime_test (j)
  9382. int j;
  9383. {
  9384. struct tm tm;
  9385. time_t now;
  9386. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9387. now = mktime (&tm);
  9388. if (now != (time_t) -1)
  9389. {
  9390. struct tm *lt = localtime (&now);
  9391. if (! (lt
  9392. && lt->tm_year == tm.tm_year
  9393. && lt->tm_mon == tm.tm_mon
  9394. && lt->tm_mday == tm.tm_mday
  9395. && lt->tm_hour == tm.tm_hour
  9396. && lt->tm_min == tm.tm_min
  9397. && lt->tm_sec == tm.tm_sec
  9398. && lt->tm_yday == tm.tm_yday
  9399. && lt->tm_wday == tm.tm_wday
  9400. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9401. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9402. exit (1);
  9403. }
  9404. }
  9405. int
  9406. main ()
  9407. {
  9408. time_t t, delta;
  9409. int i, j;
  9410. /* This test makes some buggy mktime implementations loop.
  9411. Give up after 60 seconds; a mktime slower than that
  9412. isn't worth using anyway. */
  9413. alarm (60);
  9414. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9415. continue;
  9416. time_t_max--;
  9417. if ((time_t) -1 < 0)
  9418. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9419. continue;
  9420. delta = time_t_max / 997; /* a suitable prime number */
  9421. for (i = 0; i < N_STRINGS; i++)
  9422. {
  9423. if (tz_strings[i])
  9424. putenv (tz_strings[i]);
  9425. for (t = 0; t <= time_t_max - delta; t += delta)
  9426. mktime_test (t);
  9427. mktime_test ((time_t) 1);
  9428. mktime_test ((time_t) (60 * 60));
  9429. mktime_test ((time_t) (60 * 60 * 24));
  9430. for (j = 1; 0 < j; j *= 2)
  9431. bigtime_test (j);
  9432. bigtime_test (j - 1);
  9433. }
  9434. irix_6_4_bug ();
  9435. spring_forward_gap ();
  9436. exit (0);
  9437. }
  9438. _ACEOF
  9439. rm -f conftest$ac_exeext
  9440. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9441. (eval $ac_link) 2>&5
  9442. ac_status=$?
  9443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9444. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9446. (eval $ac_try) 2>&5
  9447. ac_status=$?
  9448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9449. (exit $ac_status); }; }; then
  9450. ac_cv_func_working_mktime=yes
  9451. else
  9452. echo "$as_me: program exited with status $ac_status" >&5
  9453. echo "$as_me: failed program was:" >&5
  9454. sed 's/^/| /' conftest.$ac_ext >&5
  9455. ( exit $ac_status )
  9456. ac_cv_func_working_mktime=no
  9457. fi
  9458. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9459. fi
  9460. fi
  9461. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9462. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9463. if test $ac_cv_func_working_mktime = no; then
  9464. case $LIBOBJS in
  9465. "mktime.$ac_objext" | \
  9466. *" mktime.$ac_objext" | \
  9467. "mktime.$ac_objext "* | \
  9468. *" mktime.$ac_objext "* ) ;;
  9469. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9470. esac
  9471. fi
  9472. for ac_header in stdlib.h unistd.h
  9473. do
  9474. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9475. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9476. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9477. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9478. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9479. echo $ECHO_N "(cached) $ECHO_C" >&6
  9480. fi
  9481. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9482. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9483. else
  9484. # Is the header compilable?
  9485. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9486. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9487. cat >conftest.$ac_ext <<_ACEOF
  9488. /* confdefs.h. */
  9489. _ACEOF
  9490. cat confdefs.h >>conftest.$ac_ext
  9491. cat >>conftest.$ac_ext <<_ACEOF
  9492. /* end confdefs.h. */
  9493. $ac_includes_default
  9494. #include <$ac_header>
  9495. _ACEOF
  9496. rm -f conftest.$ac_objext
  9497. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9498. (eval $ac_compile) 2>conftest.er1
  9499. ac_status=$?
  9500. grep -v '^ *+' conftest.er1 >conftest.err
  9501. rm -f conftest.er1
  9502. cat conftest.err >&5
  9503. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9504. (exit $ac_status); } &&
  9505. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9506. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9507. (eval $ac_try) 2>&5
  9508. ac_status=$?
  9509. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9510. (exit $ac_status); }; } &&
  9511. { ac_try='test -s conftest.$ac_objext'
  9512. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9513. (eval $ac_try) 2>&5
  9514. ac_status=$?
  9515. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9516. (exit $ac_status); }; }; then
  9517. ac_header_compiler=yes
  9518. else
  9519. echo "$as_me: failed program was:" >&5
  9520. sed 's/^/| /' conftest.$ac_ext >&5
  9521. ac_header_compiler=no
  9522. fi
  9523. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9524. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9525. echo "${ECHO_T}$ac_header_compiler" >&6
  9526. # Is the header present?
  9527. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9528. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9529. cat >conftest.$ac_ext <<_ACEOF
  9530. /* confdefs.h. */
  9531. _ACEOF
  9532. cat confdefs.h >>conftest.$ac_ext
  9533. cat >>conftest.$ac_ext <<_ACEOF
  9534. /* end confdefs.h. */
  9535. #include <$ac_header>
  9536. _ACEOF
  9537. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9538. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9539. ac_status=$?
  9540. grep -v '^ *+' conftest.er1 >conftest.err
  9541. rm -f conftest.er1
  9542. cat conftest.err >&5
  9543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9544. (exit $ac_status); } >/dev/null; then
  9545. if test -s conftest.err; then
  9546. ac_cpp_err=$ac_c_preproc_warn_flag
  9547. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9548. else
  9549. ac_cpp_err=
  9550. fi
  9551. else
  9552. ac_cpp_err=yes
  9553. fi
  9554. if test -z "$ac_cpp_err"; then
  9555. ac_header_preproc=yes
  9556. else
  9557. echo "$as_me: failed program was:" >&5
  9558. sed 's/^/| /' conftest.$ac_ext >&5
  9559. ac_header_preproc=no
  9560. fi
  9561. rm -f conftest.err conftest.$ac_ext
  9562. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9563. echo "${ECHO_T}$ac_header_preproc" >&6
  9564. # So? What about this header?
  9565. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9566. yes:no: )
  9567. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9568. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9569. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9570. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9571. ac_header_preproc=yes
  9572. ;;
  9573. no:yes:* )
  9574. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9575. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9576. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9577. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9578. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9579. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9580. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9581. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9582. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9583. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9584. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9585. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9586. (
  9587. cat <<\_ASBOX
  9588. ## ------------------------------------------ ##
  9589. ## Report this to the AC_PACKAGE_NAME lists. ##
  9590. ## ------------------------------------------ ##
  9591. _ASBOX
  9592. ) |
  9593. sed "s/^/$as_me: WARNING: /" >&2
  9594. ;;
  9595. esac
  9596. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9597. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9598. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9599. echo $ECHO_N "(cached) $ECHO_C" >&6
  9600. else
  9601. eval "$as_ac_Header=\$ac_header_preproc"
  9602. fi
  9603. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9604. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9605. fi
  9606. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9607. cat >>confdefs.h <<_ACEOF
  9608. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9609. _ACEOF
  9610. fi
  9611. done
  9612. for ac_func in getpagesize
  9613. do
  9614. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9615. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9616. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9617. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9618. echo $ECHO_N "(cached) $ECHO_C" >&6
  9619. else
  9620. cat >conftest.$ac_ext <<_ACEOF
  9621. /* confdefs.h. */
  9622. _ACEOF
  9623. cat confdefs.h >>conftest.$ac_ext
  9624. cat >>conftest.$ac_ext <<_ACEOF
  9625. /* end confdefs.h. */
  9626. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9627. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9628. #define $ac_func innocuous_$ac_func
  9629. /* System header to define __stub macros and hopefully few prototypes,
  9630. which can conflict with char $ac_func (); below.
  9631. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9632. <limits.h> exists even on freestanding compilers. */
  9633. #ifdef __STDC__
  9634. # include <limits.h>
  9635. #else
  9636. # include <assert.h>
  9637. #endif
  9638. #undef $ac_func
  9639. /* Override any gcc2 internal prototype to avoid an error. */
  9640. #ifdef __cplusplus
  9641. extern "C"
  9642. {
  9643. #endif
  9644. /* We use char because int might match the return type of a gcc2
  9645. builtin and then its argument prototype would still apply. */
  9646. char $ac_func ();
  9647. /* The GNU C library defines this for functions which it implements
  9648. to always fail with ENOSYS. Some functions are actually named
  9649. something starting with __ and the normal name is an alias. */
  9650. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9651. choke me
  9652. #else
  9653. char (*f) () = $ac_func;
  9654. #endif
  9655. #ifdef __cplusplus
  9656. }
  9657. #endif
  9658. int
  9659. main ()
  9660. {
  9661. return f != $ac_func;
  9662. ;
  9663. return 0;
  9664. }
  9665. _ACEOF
  9666. rm -f conftest.$ac_objext conftest$ac_exeext
  9667. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9668. (eval $ac_link) 2>conftest.er1
  9669. ac_status=$?
  9670. grep -v '^ *+' conftest.er1 >conftest.err
  9671. rm -f conftest.er1
  9672. cat conftest.err >&5
  9673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9674. (exit $ac_status); } &&
  9675. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9677. (eval $ac_try) 2>&5
  9678. ac_status=$?
  9679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9680. (exit $ac_status); }; } &&
  9681. { ac_try='test -s conftest$ac_exeext'
  9682. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9683. (eval $ac_try) 2>&5
  9684. ac_status=$?
  9685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9686. (exit $ac_status); }; }; then
  9687. eval "$as_ac_var=yes"
  9688. else
  9689. echo "$as_me: failed program was:" >&5
  9690. sed 's/^/| /' conftest.$ac_ext >&5
  9691. eval "$as_ac_var=no"
  9692. fi
  9693. rm -f conftest.err conftest.$ac_objext \
  9694. conftest$ac_exeext conftest.$ac_ext
  9695. fi
  9696. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9697. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9698. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9699. cat >>confdefs.h <<_ACEOF
  9700. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9701. _ACEOF
  9702. fi
  9703. done
  9704. echo "$as_me:$LINENO: checking for working mmap" >&5
  9705. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9706. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9707. echo $ECHO_N "(cached) $ECHO_C" >&6
  9708. else
  9709. if test "$cross_compiling" = yes; then
  9710. ac_cv_func_mmap_fixed_mapped=no
  9711. else
  9712. cat >conftest.$ac_ext <<_ACEOF
  9713. /* confdefs.h. */
  9714. _ACEOF
  9715. cat confdefs.h >>conftest.$ac_ext
  9716. cat >>conftest.$ac_ext <<_ACEOF
  9717. /* end confdefs.h. */
  9718. $ac_includes_default
  9719. /* malloc might have been renamed as rpl_malloc. */
  9720. #undef malloc
  9721. /* Thanks to Mike Haertel and Jim Avera for this test.
  9722. Here is a matrix of mmap possibilities:
  9723. mmap private not fixed
  9724. mmap private fixed at somewhere currently unmapped
  9725. mmap private fixed at somewhere already mapped
  9726. mmap shared not fixed
  9727. mmap shared fixed at somewhere currently unmapped
  9728. mmap shared fixed at somewhere already mapped
  9729. For private mappings, we should verify that changes cannot be read()
  9730. back from the file, nor mmap's back from the file at a different
  9731. address. (There have been systems where private was not correctly
  9732. implemented like the infamous i386 svr4.0, and systems where the
  9733. VM page cache was not coherent with the file system buffer cache
  9734. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9735. For shared mappings, we should conversely verify that changes get
  9736. propagated back to all the places they're supposed to be.
  9737. Grep wants private fixed already mapped.
  9738. The main things grep needs to know about mmap are:
  9739. * does it exist and is it safe to write into the mmap'd area
  9740. * how to use it (BSD variants) */
  9741. #include <fcntl.h>
  9742. #include <sys/mman.h>
  9743. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9744. char *malloc ();
  9745. #endif
  9746. /* This mess was copied from the GNU getpagesize.h. */
  9747. #if !HAVE_GETPAGESIZE
  9748. /* Assume that all systems that can run configure have sys/param.h. */
  9749. # if !HAVE_SYS_PARAM_H
  9750. # define HAVE_SYS_PARAM_H 1
  9751. # endif
  9752. # ifdef _SC_PAGESIZE
  9753. # define getpagesize() sysconf(_SC_PAGESIZE)
  9754. # else /* no _SC_PAGESIZE */
  9755. # if HAVE_SYS_PARAM_H
  9756. # include <sys/param.h>
  9757. # ifdef EXEC_PAGESIZE
  9758. # define getpagesize() EXEC_PAGESIZE
  9759. # else /* no EXEC_PAGESIZE */
  9760. # ifdef NBPG
  9761. # define getpagesize() NBPG * CLSIZE
  9762. # ifndef CLSIZE
  9763. # define CLSIZE 1
  9764. # endif /* no CLSIZE */
  9765. # else /* no NBPG */
  9766. # ifdef NBPC
  9767. # define getpagesize() NBPC
  9768. # else /* no NBPC */
  9769. # ifdef PAGESIZE
  9770. # define getpagesize() PAGESIZE
  9771. # endif /* PAGESIZE */
  9772. # endif /* no NBPC */
  9773. # endif /* no NBPG */
  9774. # endif /* no EXEC_PAGESIZE */
  9775. # else /* no HAVE_SYS_PARAM_H */
  9776. # define getpagesize() 8192 /* punt totally */
  9777. # endif /* no HAVE_SYS_PARAM_H */
  9778. # endif /* no _SC_PAGESIZE */
  9779. #endif /* no HAVE_GETPAGESIZE */
  9780. int
  9781. main ()
  9782. {
  9783. char *data, *data2, *data3;
  9784. int i, pagesize;
  9785. int fd;
  9786. pagesize = getpagesize ();
  9787. /* First, make a file with some known garbage in it. */
  9788. data = (char *) malloc (pagesize);
  9789. if (!data)
  9790. exit (1);
  9791. for (i = 0; i < pagesize; ++i)
  9792. *(data + i) = rand ();
  9793. umask (0);
  9794. fd = creat ("conftest.mmap", 0600);
  9795. if (fd < 0)
  9796. exit (1);
  9797. if (write (fd, data, pagesize) != pagesize)
  9798. exit (1);
  9799. close (fd);
  9800. /* Next, try to mmap the file at a fixed address which already has
  9801. something else allocated at it. If we can, also make sure that
  9802. we see the same garbage. */
  9803. fd = open ("conftest.mmap", O_RDWR);
  9804. if (fd < 0)
  9805. exit (1);
  9806. data2 = (char *) malloc (2 * pagesize);
  9807. if (!data2)
  9808. exit (1);
  9809. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9810. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9811. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9812. exit (1);
  9813. for (i = 0; i < pagesize; ++i)
  9814. if (*(data + i) != *(data2 + i))
  9815. exit (1);
  9816. /* Finally, make sure that changes to the mapped area do not
  9817. percolate back to the file as seen by read(). (This is a bug on
  9818. some variants of i386 svr4.0.) */
  9819. for (i = 0; i < pagesize; ++i)
  9820. *(data2 + i) = *(data2 + i) + 1;
  9821. data3 = (char *) malloc (pagesize);
  9822. if (!data3)
  9823. exit (1);
  9824. if (read (fd, data3, pagesize) != pagesize)
  9825. exit (1);
  9826. for (i = 0; i < pagesize; ++i)
  9827. if (*(data + i) != *(data3 + i))
  9828. exit (1);
  9829. close (fd);
  9830. exit (0);
  9831. }
  9832. _ACEOF
  9833. rm -f conftest$ac_exeext
  9834. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9835. (eval $ac_link) 2>&5
  9836. ac_status=$?
  9837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9838. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9839. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9840. (eval $ac_try) 2>&5
  9841. ac_status=$?
  9842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9843. (exit $ac_status); }; }; then
  9844. ac_cv_func_mmap_fixed_mapped=yes
  9845. else
  9846. echo "$as_me: program exited with status $ac_status" >&5
  9847. echo "$as_me: failed program was:" >&5
  9848. sed 's/^/| /' conftest.$ac_ext >&5
  9849. ( exit $ac_status )
  9850. ac_cv_func_mmap_fixed_mapped=no
  9851. fi
  9852. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9853. fi
  9854. fi
  9855. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9856. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9857. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9858. cat >>confdefs.h <<\_ACEOF
  9859. #define HAVE_MMAP 1
  9860. _ACEOF
  9861. fi
  9862. rm -f conftest.mmap
  9863. for ac_header in stdlib.h
  9864. do
  9865. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9866. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9867. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9868. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9869. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9870. echo $ECHO_N "(cached) $ECHO_C" >&6
  9871. fi
  9872. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9873. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9874. else
  9875. # Is the header compilable?
  9876. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9877. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9878. cat >conftest.$ac_ext <<_ACEOF
  9879. /* confdefs.h. */
  9880. _ACEOF
  9881. cat confdefs.h >>conftest.$ac_ext
  9882. cat >>conftest.$ac_ext <<_ACEOF
  9883. /* end confdefs.h. */
  9884. $ac_includes_default
  9885. #include <$ac_header>
  9886. _ACEOF
  9887. rm -f conftest.$ac_objext
  9888. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9889. (eval $ac_compile) 2>conftest.er1
  9890. ac_status=$?
  9891. grep -v '^ *+' conftest.er1 >conftest.err
  9892. rm -f conftest.er1
  9893. cat conftest.err >&5
  9894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9895. (exit $ac_status); } &&
  9896. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9897. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9898. (eval $ac_try) 2>&5
  9899. ac_status=$?
  9900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9901. (exit $ac_status); }; } &&
  9902. { ac_try='test -s conftest.$ac_objext'
  9903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9904. (eval $ac_try) 2>&5
  9905. ac_status=$?
  9906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9907. (exit $ac_status); }; }; then
  9908. ac_header_compiler=yes
  9909. else
  9910. echo "$as_me: failed program was:" >&5
  9911. sed 's/^/| /' conftest.$ac_ext >&5
  9912. ac_header_compiler=no
  9913. fi
  9914. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9915. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9916. echo "${ECHO_T}$ac_header_compiler" >&6
  9917. # Is the header present?
  9918. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9919. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9920. cat >conftest.$ac_ext <<_ACEOF
  9921. /* confdefs.h. */
  9922. _ACEOF
  9923. cat confdefs.h >>conftest.$ac_ext
  9924. cat >>conftest.$ac_ext <<_ACEOF
  9925. /* end confdefs.h. */
  9926. #include <$ac_header>
  9927. _ACEOF
  9928. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9929. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9930. ac_status=$?
  9931. grep -v '^ *+' conftest.er1 >conftest.err
  9932. rm -f conftest.er1
  9933. cat conftest.err >&5
  9934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9935. (exit $ac_status); } >/dev/null; then
  9936. if test -s conftest.err; then
  9937. ac_cpp_err=$ac_c_preproc_warn_flag
  9938. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9939. else
  9940. ac_cpp_err=
  9941. fi
  9942. else
  9943. ac_cpp_err=yes
  9944. fi
  9945. if test -z "$ac_cpp_err"; then
  9946. ac_header_preproc=yes
  9947. else
  9948. echo "$as_me: failed program was:" >&5
  9949. sed 's/^/| /' conftest.$ac_ext >&5
  9950. ac_header_preproc=no
  9951. fi
  9952. rm -f conftest.err conftest.$ac_ext
  9953. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9954. echo "${ECHO_T}$ac_header_preproc" >&6
  9955. # So? What about this header?
  9956. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9957. yes:no: )
  9958. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9959. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9960. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9961. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9962. ac_header_preproc=yes
  9963. ;;
  9964. no:yes:* )
  9965. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9966. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9967. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9968. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9969. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9970. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9971. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9972. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9973. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9974. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9975. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9976. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9977. (
  9978. cat <<\_ASBOX
  9979. ## ------------------------------------------ ##
  9980. ## Report this to the AC_PACKAGE_NAME lists. ##
  9981. ## ------------------------------------------ ##
  9982. _ASBOX
  9983. ) |
  9984. sed "s/^/$as_me: WARNING: /" >&2
  9985. ;;
  9986. esac
  9987. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9988. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9989. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9990. echo $ECHO_N "(cached) $ECHO_C" >&6
  9991. else
  9992. eval "$as_ac_Header=\$ac_header_preproc"
  9993. fi
  9994. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9995. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9996. fi
  9997. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9998. cat >>confdefs.h <<_ACEOF
  9999. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10000. _ACEOF
  10001. fi
  10002. done
  10003. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10004. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  10005. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10006. echo $ECHO_N "(cached) $ECHO_C" >&6
  10007. else
  10008. if test "$cross_compiling" = yes; then
  10009. ac_cv_func_realloc_0_nonnull=no
  10010. else
  10011. cat >conftest.$ac_ext <<_ACEOF
  10012. /* confdefs.h. */
  10013. _ACEOF
  10014. cat confdefs.h >>conftest.$ac_ext
  10015. cat >>conftest.$ac_ext <<_ACEOF
  10016. /* end confdefs.h. */
  10017. #if STDC_HEADERS || HAVE_STDLIB_H
  10018. # include <stdlib.h>
  10019. #else
  10020. char *realloc ();
  10021. #endif
  10022. int
  10023. main ()
  10024. {
  10025. exit (realloc (0, 0) ? 0 : 1);
  10026. ;
  10027. return 0;
  10028. }
  10029. _ACEOF
  10030. rm -f conftest$ac_exeext
  10031. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10032. (eval $ac_link) 2>&5
  10033. ac_status=$?
  10034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10035. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10036. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10037. (eval $ac_try) 2>&5
  10038. ac_status=$?
  10039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10040. (exit $ac_status); }; }; then
  10041. ac_cv_func_realloc_0_nonnull=yes
  10042. else
  10043. echo "$as_me: program exited with status $ac_status" >&5
  10044. echo "$as_me: failed program was:" >&5
  10045. sed 's/^/| /' conftest.$ac_ext >&5
  10046. ( exit $ac_status )
  10047. ac_cv_func_realloc_0_nonnull=no
  10048. fi
  10049. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10050. fi
  10051. fi
  10052. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10053. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  10054. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10055. cat >>confdefs.h <<\_ACEOF
  10056. #define HAVE_REALLOC 1
  10057. _ACEOF
  10058. else
  10059. cat >>confdefs.h <<\_ACEOF
  10060. #define HAVE_REALLOC 0
  10061. _ACEOF
  10062. case $LIBOBJS in
  10063. "realloc.$ac_objext" | \
  10064. *" realloc.$ac_objext" | \
  10065. "realloc.$ac_objext "* | \
  10066. *" realloc.$ac_objext "* ) ;;
  10067. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  10068. esac
  10069. cat >>confdefs.h <<\_ACEOF
  10070. #define realloc rpl_realloc
  10071. _ACEOF
  10072. fi
  10073. for ac_header in sys/select.h sys/socket.h
  10074. do
  10075. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  10076. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10077. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10078. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10079. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10080. echo $ECHO_N "(cached) $ECHO_C" >&6
  10081. fi
  10082. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10083. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10084. else
  10085. # Is the header compilable?
  10086. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  10087. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  10088. cat >conftest.$ac_ext <<_ACEOF
  10089. /* confdefs.h. */
  10090. _ACEOF
  10091. cat confdefs.h >>conftest.$ac_ext
  10092. cat >>conftest.$ac_ext <<_ACEOF
  10093. /* end confdefs.h. */
  10094. $ac_includes_default
  10095. #include <$ac_header>
  10096. _ACEOF
  10097. rm -f conftest.$ac_objext
  10098. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10099. (eval $ac_compile) 2>conftest.er1
  10100. ac_status=$?
  10101. grep -v '^ *+' conftest.er1 >conftest.err
  10102. rm -f conftest.er1
  10103. cat conftest.err >&5
  10104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10105. (exit $ac_status); } &&
  10106. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10107. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10108. (eval $ac_try) 2>&5
  10109. ac_status=$?
  10110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10111. (exit $ac_status); }; } &&
  10112. { ac_try='test -s conftest.$ac_objext'
  10113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10114. (eval $ac_try) 2>&5
  10115. ac_status=$?
  10116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10117. (exit $ac_status); }; }; then
  10118. ac_header_compiler=yes
  10119. else
  10120. echo "$as_me: failed program was:" >&5
  10121. sed 's/^/| /' conftest.$ac_ext >&5
  10122. ac_header_compiler=no
  10123. fi
  10124. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10125. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10126. echo "${ECHO_T}$ac_header_compiler" >&6
  10127. # Is the header present?
  10128. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10129. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10130. cat >conftest.$ac_ext <<_ACEOF
  10131. /* confdefs.h. */
  10132. _ACEOF
  10133. cat confdefs.h >>conftest.$ac_ext
  10134. cat >>conftest.$ac_ext <<_ACEOF
  10135. /* end confdefs.h. */
  10136. #include <$ac_header>
  10137. _ACEOF
  10138. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  10139. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  10140. ac_status=$?
  10141. grep -v '^ *+' conftest.er1 >conftest.err
  10142. rm -f conftest.er1
  10143. cat conftest.err >&5
  10144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10145. (exit $ac_status); } >/dev/null; then
  10146. if test -s conftest.err; then
  10147. ac_cpp_err=$ac_c_preproc_warn_flag
  10148. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10149. else
  10150. ac_cpp_err=
  10151. fi
  10152. else
  10153. ac_cpp_err=yes
  10154. fi
  10155. if test -z "$ac_cpp_err"; then
  10156. ac_header_preproc=yes
  10157. else
  10158. echo "$as_me: failed program was:" >&5
  10159. sed 's/^/| /' conftest.$ac_ext >&5
  10160. ac_header_preproc=no
  10161. fi
  10162. rm -f conftest.err conftest.$ac_ext
  10163. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  10164. echo "${ECHO_T}$ac_header_preproc" >&6
  10165. # So? What about this header?
  10166. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10167. yes:no: )
  10168. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10169. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10170. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10171. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10172. ac_header_preproc=yes
  10173. ;;
  10174. no:yes:* )
  10175. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10176. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10177. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10178. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10179. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10180. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10181. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10182. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10183. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10184. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10185. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10186. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10187. (
  10188. cat <<\_ASBOX
  10189. ## ------------------------------------------ ##
  10190. ## Report this to the AC_PACKAGE_NAME lists. ##
  10191. ## ------------------------------------------ ##
  10192. _ASBOX
  10193. ) |
  10194. sed "s/^/$as_me: WARNING: /" >&2
  10195. ;;
  10196. esac
  10197. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10198. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10199. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10200. echo $ECHO_N "(cached) $ECHO_C" >&6
  10201. else
  10202. eval "$as_ac_Header=\$ac_header_preproc"
  10203. fi
  10204. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10205. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10206. fi
  10207. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10208. cat >>confdefs.h <<_ACEOF
  10209. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10210. _ACEOF
  10211. fi
  10212. done
  10213. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  10214. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  10215. if test "${ac_cv_func_select_args+set}" = set; then
  10216. echo $ECHO_N "(cached) $ECHO_C" >&6
  10217. else
  10218. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  10219. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  10220. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  10221. cat >conftest.$ac_ext <<_ACEOF
  10222. /* confdefs.h. */
  10223. _ACEOF
  10224. cat confdefs.h >>conftest.$ac_ext
  10225. cat >>conftest.$ac_ext <<_ACEOF
  10226. /* end confdefs.h. */
  10227. $ac_includes_default
  10228. #if HAVE_SYS_SELECT_H
  10229. # include <sys/select.h>
  10230. #endif
  10231. #if HAVE_SYS_SOCKET_H
  10232. # include <sys/socket.h>
  10233. #endif
  10234. int
  10235. main ()
  10236. {
  10237. extern int select ($ac_arg1,
  10238. $ac_arg234, $ac_arg234, $ac_arg234,
  10239. $ac_arg5);
  10240. ;
  10241. return 0;
  10242. }
  10243. _ACEOF
  10244. rm -f conftest.$ac_objext
  10245. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10246. (eval $ac_compile) 2>conftest.er1
  10247. ac_status=$?
  10248. grep -v '^ *+' conftest.er1 >conftest.err
  10249. rm -f conftest.er1
  10250. cat conftest.err >&5
  10251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10252. (exit $ac_status); } &&
  10253. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10254. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10255. (eval $ac_try) 2>&5
  10256. ac_status=$?
  10257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10258. (exit $ac_status); }; } &&
  10259. { ac_try='test -s conftest.$ac_objext'
  10260. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10261. (eval $ac_try) 2>&5
  10262. ac_status=$?
  10263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10264. (exit $ac_status); }; }; then
  10265. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  10266. else
  10267. echo "$as_me: failed program was:" >&5
  10268. sed 's/^/| /' conftest.$ac_ext >&5
  10269. fi
  10270. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10271. done
  10272. done
  10273. done
  10274. # Provide a safe default value.
  10275. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  10276. fi
  10277. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  10278. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  10279. ac_save_IFS=$IFS; IFS=','
  10280. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  10281. IFS=$ac_save_IFS
  10282. shift
  10283. cat >>confdefs.h <<_ACEOF
  10284. #define SELECT_TYPE_ARG1 $1
  10285. _ACEOF
  10286. cat >>confdefs.h <<_ACEOF
  10287. #define SELECT_TYPE_ARG234 ($2)
  10288. _ACEOF
  10289. cat >>confdefs.h <<_ACEOF
  10290. #define SELECT_TYPE_ARG5 ($3)
  10291. _ACEOF
  10292. rm -f conftest*
  10293. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10294. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10295. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10296. echo $ECHO_N "(cached) $ECHO_C" >&6
  10297. else
  10298. if test "$cross_compiling" = yes; then
  10299. ac_cv_func_stat_empty_string_bug=yes
  10300. else
  10301. cat >conftest.$ac_ext <<_ACEOF
  10302. /* confdefs.h. */
  10303. _ACEOF
  10304. cat confdefs.h >>conftest.$ac_ext
  10305. cat >>conftest.$ac_ext <<_ACEOF
  10306. /* end confdefs.h. */
  10307. $ac_includes_default
  10308. int
  10309. main ()
  10310. {
  10311. struct stat sbuf;
  10312. exit (stat ("", &sbuf) ? 1 : 0);
  10313. ;
  10314. return 0;
  10315. }
  10316. _ACEOF
  10317. rm -f conftest$ac_exeext
  10318. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10319. (eval $ac_link) 2>&5
  10320. ac_status=$?
  10321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10322. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10324. (eval $ac_try) 2>&5
  10325. ac_status=$?
  10326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10327. (exit $ac_status); }; }; then
  10328. ac_cv_func_stat_empty_string_bug=yes
  10329. else
  10330. echo "$as_me: program exited with status $ac_status" >&5
  10331. echo "$as_me: failed program was:" >&5
  10332. sed 's/^/| /' conftest.$ac_ext >&5
  10333. ( exit $ac_status )
  10334. ac_cv_func_stat_empty_string_bug=no
  10335. fi
  10336. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10337. fi
  10338. fi
  10339. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10340. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10341. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10342. case $LIBOBJS in
  10343. "stat.$ac_objext" | \
  10344. *" stat.$ac_objext" | \
  10345. "stat.$ac_objext "* | \
  10346. *" stat.$ac_objext "* ) ;;
  10347. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10348. esac
  10349. cat >>confdefs.h <<_ACEOF
  10350. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10351. _ACEOF
  10352. fi
  10353. for ac_func in strftime
  10354. do
  10355. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10356. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10357. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10358. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10359. echo $ECHO_N "(cached) $ECHO_C" >&6
  10360. else
  10361. cat >conftest.$ac_ext <<_ACEOF
  10362. /* confdefs.h. */
  10363. _ACEOF
  10364. cat confdefs.h >>conftest.$ac_ext
  10365. cat >>conftest.$ac_ext <<_ACEOF
  10366. /* end confdefs.h. */
  10367. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10368. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10369. #define $ac_func innocuous_$ac_func
  10370. /* System header to define __stub macros and hopefully few prototypes,
  10371. which can conflict with char $ac_func (); below.
  10372. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10373. <limits.h> exists even on freestanding compilers. */
  10374. #ifdef __STDC__
  10375. # include <limits.h>
  10376. #else
  10377. # include <assert.h>
  10378. #endif
  10379. #undef $ac_func
  10380. /* Override any gcc2 internal prototype to avoid an error. */
  10381. #ifdef __cplusplus
  10382. extern "C"
  10383. {
  10384. #endif
  10385. /* We use char because int might match the return type of a gcc2
  10386. builtin and then its argument prototype would still apply. */
  10387. char $ac_func ();
  10388. /* The GNU C library defines this for functions which it implements
  10389. to always fail with ENOSYS. Some functions are actually named
  10390. something starting with __ and the normal name is an alias. */
  10391. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10392. choke me
  10393. #else
  10394. char (*f) () = $ac_func;
  10395. #endif
  10396. #ifdef __cplusplus
  10397. }
  10398. #endif
  10399. int
  10400. main ()
  10401. {
  10402. return f != $ac_func;
  10403. ;
  10404. return 0;
  10405. }
  10406. _ACEOF
  10407. rm -f conftest.$ac_objext conftest$ac_exeext
  10408. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10409. (eval $ac_link) 2>conftest.er1
  10410. ac_status=$?
  10411. grep -v '^ *+' conftest.er1 >conftest.err
  10412. rm -f conftest.er1
  10413. cat conftest.err >&5
  10414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10415. (exit $ac_status); } &&
  10416. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10417. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10418. (eval $ac_try) 2>&5
  10419. ac_status=$?
  10420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10421. (exit $ac_status); }; } &&
  10422. { ac_try='test -s conftest$ac_exeext'
  10423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10424. (eval $ac_try) 2>&5
  10425. ac_status=$?
  10426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10427. (exit $ac_status); }; }; then
  10428. eval "$as_ac_var=yes"
  10429. else
  10430. echo "$as_me: failed program was:" >&5
  10431. sed 's/^/| /' conftest.$ac_ext >&5
  10432. eval "$as_ac_var=no"
  10433. fi
  10434. rm -f conftest.err conftest.$ac_objext \
  10435. conftest$ac_exeext conftest.$ac_ext
  10436. fi
  10437. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10438. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10439. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10440. cat >>confdefs.h <<_ACEOF
  10441. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10442. _ACEOF
  10443. else
  10444. # strftime is in -lintl on SCO UNIX.
  10445. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10446. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10447. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10448. echo $ECHO_N "(cached) $ECHO_C" >&6
  10449. else
  10450. ac_check_lib_save_LIBS=$LIBS
  10451. LIBS="-lintl $LIBS"
  10452. cat >conftest.$ac_ext <<_ACEOF
  10453. /* confdefs.h. */
  10454. _ACEOF
  10455. cat confdefs.h >>conftest.$ac_ext
  10456. cat >>conftest.$ac_ext <<_ACEOF
  10457. /* end confdefs.h. */
  10458. /* Override any gcc2 internal prototype to avoid an error. */
  10459. #ifdef __cplusplus
  10460. extern "C"
  10461. #endif
  10462. /* We use char because int might match the return type of a gcc2
  10463. builtin and then its argument prototype would still apply. */
  10464. char strftime ();
  10465. int
  10466. main ()
  10467. {
  10468. strftime ();
  10469. ;
  10470. return 0;
  10471. }
  10472. _ACEOF
  10473. rm -f conftest.$ac_objext conftest$ac_exeext
  10474. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10475. (eval $ac_link) 2>conftest.er1
  10476. ac_status=$?
  10477. grep -v '^ *+' conftest.er1 >conftest.err
  10478. rm -f conftest.er1
  10479. cat conftest.err >&5
  10480. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10481. (exit $ac_status); } &&
  10482. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10483. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10484. (eval $ac_try) 2>&5
  10485. ac_status=$?
  10486. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10487. (exit $ac_status); }; } &&
  10488. { ac_try='test -s conftest$ac_exeext'
  10489. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10490. (eval $ac_try) 2>&5
  10491. ac_status=$?
  10492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10493. (exit $ac_status); }; }; then
  10494. ac_cv_lib_intl_strftime=yes
  10495. else
  10496. echo "$as_me: failed program was:" >&5
  10497. sed 's/^/| /' conftest.$ac_ext >&5
  10498. ac_cv_lib_intl_strftime=no
  10499. fi
  10500. rm -f conftest.err conftest.$ac_objext \
  10501. conftest$ac_exeext conftest.$ac_ext
  10502. LIBS=$ac_check_lib_save_LIBS
  10503. fi
  10504. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10505. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10506. if test $ac_cv_lib_intl_strftime = yes; then
  10507. cat >>confdefs.h <<\_ACEOF
  10508. #define HAVE_STRFTIME 1
  10509. _ACEOF
  10510. LIBS="-lintl $LIBS"
  10511. fi
  10512. fi
  10513. done
  10514. #checkpoint
  10515. cat >confcache <<\_ACEOF
  10516. # This file is a shell script that caches the results of configure
  10517. # tests run on this system so they can be shared between configure
  10518. # scripts and configure runs, see configure's option --config-cache.
  10519. # It is not useful on other systems. If it contains results you don't
  10520. # want to keep, you may remove or edit it.
  10521. #
  10522. # config.status only pays attention to the cache file if you give it
  10523. # the --recheck option to rerun configure.
  10524. #
  10525. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10526. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10527. # following values.
  10528. _ACEOF
  10529. # The following way of writing the cache mishandles newlines in values,
  10530. # but we know of no workaround that is simple, portable, and efficient.
  10531. # So, don't put newlines in cache variables' values.
  10532. # Ultrix sh set writes to stderr and can't be redirected directly,
  10533. # and sets the high bit in the cache file unless we assign to the vars.
  10534. {
  10535. (set) 2>&1 |
  10536. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10537. *ac_space=\ *)
  10538. # `set' does not quote correctly, so add quotes (double-quote
  10539. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10540. sed -n \
  10541. "s/'/'\\\\''/g;
  10542. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10543. ;;
  10544. *)
  10545. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10546. sed -n \
  10547. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10548. ;;
  10549. esac;
  10550. } |
  10551. sed '
  10552. t clear
  10553. : clear
  10554. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10555. t end
  10556. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10557. : end' >>confcache
  10558. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10559. if test -w $cache_file; then
  10560. test "x$cache_file" != "x/dev/null"
  10561. cat confcache >$cache_file
  10562. else
  10563. echo "not updating unwritable cache $cache_file"
  10564. fi
  10565. fi
  10566. rm -f confcache
  10567. for ac_func in clock fsync getrusage inet_aton isascii gethostbyname2
  10568. do
  10569. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10570. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10571. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10572. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10573. echo $ECHO_N "(cached) $ECHO_C" >&6
  10574. else
  10575. cat >conftest.$ac_ext <<_ACEOF
  10576. /* confdefs.h. */
  10577. _ACEOF
  10578. cat confdefs.h >>conftest.$ac_ext
  10579. cat >>conftest.$ac_ext <<_ACEOF
  10580. /* end confdefs.h. */
  10581. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10582. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10583. #define $ac_func innocuous_$ac_func
  10584. /* System header to define __stub macros and hopefully few prototypes,
  10585. which can conflict with char $ac_func (); below.
  10586. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10587. <limits.h> exists even on freestanding compilers. */
  10588. #ifdef __STDC__
  10589. # include <limits.h>
  10590. #else
  10591. # include <assert.h>
  10592. #endif
  10593. #undef $ac_func
  10594. /* Override any gcc2 internal prototype to avoid an error. */
  10595. #ifdef __cplusplus
  10596. extern "C"
  10597. {
  10598. #endif
  10599. /* We use char because int might match the return type of a gcc2
  10600. builtin and then its argument prototype would still apply. */
  10601. char $ac_func ();
  10602. /* The GNU C library defines this for functions which it implements
  10603. to always fail with ENOSYS. Some functions are actually named
  10604. something starting with __ and the normal name is an alias. */
  10605. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10606. choke me
  10607. #else
  10608. char (*f) () = $ac_func;
  10609. #endif
  10610. #ifdef __cplusplus
  10611. }
  10612. #endif
  10613. int
  10614. main ()
  10615. {
  10616. return f != $ac_func;
  10617. ;
  10618. return 0;
  10619. }
  10620. _ACEOF
  10621. rm -f conftest.$ac_objext conftest$ac_exeext
  10622. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10623. (eval $ac_link) 2>conftest.er1
  10624. ac_status=$?
  10625. grep -v '^ *+' conftest.er1 >conftest.err
  10626. rm -f conftest.er1
  10627. cat conftest.err >&5
  10628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10629. (exit $ac_status); } &&
  10630. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10632. (eval $ac_try) 2>&5
  10633. ac_status=$?
  10634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10635. (exit $ac_status); }; } &&
  10636. { ac_try='test -s conftest$ac_exeext'
  10637. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10638. (eval $ac_try) 2>&5
  10639. ac_status=$?
  10640. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10641. (exit $ac_status); }; }; then
  10642. eval "$as_ac_var=yes"
  10643. else
  10644. echo "$as_me: failed program was:" >&5
  10645. sed 's/^/| /' conftest.$ac_ext >&5
  10646. eval "$as_ac_var=no"
  10647. fi
  10648. rm -f conftest.err conftest.$ac_objext \
  10649. conftest$ac_exeext conftest.$ac_ext
  10650. fi
  10651. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10652. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10653. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10654. cat >>confdefs.h <<_ACEOF
  10655. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10656. _ACEOF
  10657. fi
  10658. done
  10659. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10660. do
  10661. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10662. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10663. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10664. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10665. echo $ECHO_N "(cached) $ECHO_C" >&6
  10666. else
  10667. cat >conftest.$ac_ext <<_ACEOF
  10668. /* confdefs.h. */
  10669. _ACEOF
  10670. cat confdefs.h >>conftest.$ac_ext
  10671. cat >>conftest.$ac_ext <<_ACEOF
  10672. /* end confdefs.h. */
  10673. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10674. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10675. #define $ac_func innocuous_$ac_func
  10676. /* System header to define __stub macros and hopefully few prototypes,
  10677. which can conflict with char $ac_func (); below.
  10678. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10679. <limits.h> exists even on freestanding compilers. */
  10680. #ifdef __STDC__
  10681. # include <limits.h>
  10682. #else
  10683. # include <assert.h>
  10684. #endif
  10685. #undef $ac_func
  10686. /* Override any gcc2 internal prototype to avoid an error. */
  10687. #ifdef __cplusplus
  10688. extern "C"
  10689. {
  10690. #endif
  10691. /* We use char because int might match the return type of a gcc2
  10692. builtin and then its argument prototype would still apply. */
  10693. char $ac_func ();
  10694. /* The GNU C library defines this for functions which it implements
  10695. to always fail with ENOSYS. Some functions are actually named
  10696. something starting with __ and the normal name is an alias. */
  10697. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10698. choke me
  10699. #else
  10700. char (*f) () = $ac_func;
  10701. #endif
  10702. #ifdef __cplusplus
  10703. }
  10704. #endif
  10705. int
  10706. main ()
  10707. {
  10708. return f != $ac_func;
  10709. ;
  10710. return 0;
  10711. }
  10712. _ACEOF
  10713. rm -f conftest.$ac_objext conftest$ac_exeext
  10714. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10715. (eval $ac_link) 2>conftest.er1
  10716. ac_status=$?
  10717. grep -v '^ *+' conftest.er1 >conftest.err
  10718. rm -f conftest.er1
  10719. cat conftest.err >&5
  10720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10721. (exit $ac_status); } &&
  10722. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10724. (eval $ac_try) 2>&5
  10725. ac_status=$?
  10726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10727. (exit $ac_status); }; } &&
  10728. { ac_try='test -s conftest$ac_exeext'
  10729. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10730. (eval $ac_try) 2>&5
  10731. ac_status=$?
  10732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10733. (exit $ac_status); }; }; then
  10734. eval "$as_ac_var=yes"
  10735. else
  10736. echo "$as_me: failed program was:" >&5
  10737. sed 's/^/| /' conftest.$ac_ext >&5
  10738. eval "$as_ac_var=no"
  10739. fi
  10740. rm -f conftest.err conftest.$ac_objext \
  10741. conftest$ac_exeext conftest.$ac_ext
  10742. fi
  10743. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10744. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10745. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10746. cat >>confdefs.h <<_ACEOF
  10747. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10748. _ACEOF
  10749. fi
  10750. done
  10751. #checkpoint
  10752. cat >confcache <<\_ACEOF
  10753. # This file is a shell script that caches the results of configure
  10754. # tests run on this system so they can be shared between configure
  10755. # scripts and configure runs, see configure's option --config-cache.
  10756. # It is not useful on other systems. If it contains results you don't
  10757. # want to keep, you may remove or edit it.
  10758. #
  10759. # config.status only pays attention to the cache file if you give it
  10760. # the --recheck option to rerun configure.
  10761. #
  10762. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10763. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10764. # following values.
  10765. _ACEOF
  10766. # The following way of writing the cache mishandles newlines in values,
  10767. # but we know of no workaround that is simple, portable, and efficient.
  10768. # So, don't put newlines in cache variables' values.
  10769. # Ultrix sh set writes to stderr and can't be redirected directly,
  10770. # and sets the high bit in the cache file unless we assign to the vars.
  10771. {
  10772. (set) 2>&1 |
  10773. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10774. *ac_space=\ *)
  10775. # `set' does not quote correctly, so add quotes (double-quote
  10776. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10777. sed -n \
  10778. "s/'/'\\\\''/g;
  10779. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10780. ;;
  10781. *)
  10782. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10783. sed -n \
  10784. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10785. ;;
  10786. esac;
  10787. } |
  10788. sed '
  10789. t clear
  10790. : clear
  10791. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10792. t end
  10793. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10794. : end' >>confcache
  10795. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10796. if test -w $cache_file; then
  10797. test "x$cache_file" != "x/dev/null"
  10798. cat confcache >$cache_file
  10799. else
  10800. echo "not updating unwritable cache $cache_file"
  10801. fi
  10802. fi
  10803. rm -f confcache
  10804. for ac_func in strcasecmp strncasecmp vsnprintf
  10805. do
  10806. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10807. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10808. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10809. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10810. echo $ECHO_N "(cached) $ECHO_C" >&6
  10811. else
  10812. cat >conftest.$ac_ext <<_ACEOF
  10813. /* confdefs.h. */
  10814. _ACEOF
  10815. cat confdefs.h >>conftest.$ac_ext
  10816. cat >>conftest.$ac_ext <<_ACEOF
  10817. /* end confdefs.h. */
  10818. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10819. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10820. #define $ac_func innocuous_$ac_func
  10821. /* System header to define __stub macros and hopefully few prototypes,
  10822. which can conflict with char $ac_func (); below.
  10823. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10824. <limits.h> exists even on freestanding compilers. */
  10825. #ifdef __STDC__
  10826. # include <limits.h>
  10827. #else
  10828. # include <assert.h>
  10829. #endif
  10830. #undef $ac_func
  10831. /* Override any gcc2 internal prototype to avoid an error. */
  10832. #ifdef __cplusplus
  10833. extern "C"
  10834. {
  10835. #endif
  10836. /* We use char because int might match the return type of a gcc2
  10837. builtin and then its argument prototype would still apply. */
  10838. char $ac_func ();
  10839. /* The GNU C library defines this for functions which it implements
  10840. to always fail with ENOSYS. Some functions are actually named
  10841. something starting with __ and the normal name is an alias. */
  10842. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10843. choke me
  10844. #else
  10845. char (*f) () = $ac_func;
  10846. #endif
  10847. #ifdef __cplusplus
  10848. }
  10849. #endif
  10850. int
  10851. main ()
  10852. {
  10853. return f != $ac_func;
  10854. ;
  10855. return 0;
  10856. }
  10857. _ACEOF
  10858. rm -f conftest.$ac_objext conftest$ac_exeext
  10859. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10860. (eval $ac_link) 2>conftest.er1
  10861. ac_status=$?
  10862. grep -v '^ *+' conftest.er1 >conftest.err
  10863. rm -f conftest.er1
  10864. cat conftest.err >&5
  10865. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10866. (exit $ac_status); } &&
  10867. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10868. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10869. (eval $ac_try) 2>&5
  10870. ac_status=$?
  10871. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10872. (exit $ac_status); }; } &&
  10873. { ac_try='test -s conftest$ac_exeext'
  10874. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10875. (eval $ac_try) 2>&5
  10876. ac_status=$?
  10877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10878. (exit $ac_status); }; }; then
  10879. eval "$as_ac_var=yes"
  10880. else
  10881. echo "$as_me: failed program was:" >&5
  10882. sed 's/^/| /' conftest.$ac_ext >&5
  10883. eval "$as_ac_var=no"
  10884. fi
  10885. rm -f conftest.err conftest.$ac_objext \
  10886. conftest$ac_exeext conftest.$ac_ext
  10887. fi
  10888. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10889. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10890. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10891. cat >>confdefs.h <<_ACEOF
  10892. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10893. _ACEOF
  10894. fi
  10895. done
  10896. #autoscan suggested this....
  10897. #These are recommended by autoscan, but no code supports it currently
  10898. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10899. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10900. for ac_func in vsprintf
  10901. do
  10902. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10903. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10904. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10905. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10906. echo $ECHO_N "(cached) $ECHO_C" >&6
  10907. else
  10908. cat >conftest.$ac_ext <<_ACEOF
  10909. /* confdefs.h. */
  10910. _ACEOF
  10911. cat confdefs.h >>conftest.$ac_ext
  10912. cat >>conftest.$ac_ext <<_ACEOF
  10913. /* end confdefs.h. */
  10914. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10915. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10916. #define $ac_func innocuous_$ac_func
  10917. /* System header to define __stub macros and hopefully few prototypes,
  10918. which can conflict with char $ac_func (); below.
  10919. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10920. <limits.h> exists even on freestanding compilers. */
  10921. #ifdef __STDC__
  10922. # include <limits.h>
  10923. #else
  10924. # include <assert.h>
  10925. #endif
  10926. #undef $ac_func
  10927. /* Override any gcc2 internal prototype to avoid an error. */
  10928. #ifdef __cplusplus
  10929. extern "C"
  10930. {
  10931. #endif
  10932. /* We use char because int might match the return type of a gcc2
  10933. builtin and then its argument prototype would still apply. */
  10934. char $ac_func ();
  10935. /* The GNU C library defines this for functions which it implements
  10936. to always fail with ENOSYS. Some functions are actually named
  10937. something starting with __ and the normal name is an alias. */
  10938. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10939. choke me
  10940. #else
  10941. char (*f) () = $ac_func;
  10942. #endif
  10943. #ifdef __cplusplus
  10944. }
  10945. #endif
  10946. int
  10947. main ()
  10948. {
  10949. return f != $ac_func;
  10950. ;
  10951. return 0;
  10952. }
  10953. _ACEOF
  10954. rm -f conftest.$ac_objext conftest$ac_exeext
  10955. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10956. (eval $ac_link) 2>conftest.er1
  10957. ac_status=$?
  10958. grep -v '^ *+' conftest.er1 >conftest.err
  10959. rm -f conftest.er1
  10960. cat conftest.err >&5
  10961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10962. (exit $ac_status); } &&
  10963. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10965. (eval $ac_try) 2>&5
  10966. ac_status=$?
  10967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10968. (exit $ac_status); }; } &&
  10969. { ac_try='test -s conftest$ac_exeext'
  10970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10971. (eval $ac_try) 2>&5
  10972. ac_status=$?
  10973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10974. (exit $ac_status); }; }; then
  10975. eval "$as_ac_var=yes"
  10976. else
  10977. echo "$as_me: failed program was:" >&5
  10978. sed 's/^/| /' conftest.$ac_ext >&5
  10979. eval "$as_ac_var=no"
  10980. fi
  10981. rm -f conftest.err conftest.$ac_objext \
  10982. conftest$ac_exeext conftest.$ac_ext
  10983. fi
  10984. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10985. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10986. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10987. cat >>confdefs.h <<_ACEOF
  10988. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10989. _ACEOF
  10990. fi
  10991. done
  10992. if test "$ac_cv_func_vsprintf" = "no"
  10993. then
  10994. cat << 'EOF' >&2
  10995. configure: error:
  10996. Your system does not have the sprintf/vsprintf libraries.
  10997. These are required to compile almost anything. Sorry.
  10998. EOF
  10999. exit 1
  11000. fi
  11001. for ac_func in uname
  11002. do
  11003. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  11004. echo "$as_me:$LINENO: checking for $ac_func" >&5
  11005. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  11006. if eval "test \"\${$as_ac_var+set}\" = set"; then
  11007. echo $ECHO_N "(cached) $ECHO_C" >&6
  11008. else
  11009. cat >conftest.$ac_ext <<_ACEOF
  11010. /* confdefs.h. */
  11011. _ACEOF
  11012. cat confdefs.h >>conftest.$ac_ext
  11013. cat >>conftest.$ac_ext <<_ACEOF
  11014. /* end confdefs.h. */
  11015. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  11016. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  11017. #define $ac_func innocuous_$ac_func
  11018. /* System header to define __stub macros and hopefully few prototypes,
  11019. which can conflict with char $ac_func (); below.
  11020. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  11021. <limits.h> exists even on freestanding compilers. */
  11022. #ifdef __STDC__
  11023. # include <limits.h>
  11024. #else
  11025. # include <assert.h>
  11026. #endif
  11027. #undef $ac_func
  11028. /* Override any gcc2 internal prototype to avoid an error. */
  11029. #ifdef __cplusplus
  11030. extern "C"
  11031. {
  11032. #endif
  11033. /* We use char because int might match the return type of a gcc2
  11034. builtin and then its argument prototype would still apply. */
  11035. char $ac_func ();
  11036. /* The GNU C library defines this for functions which it implements
  11037. to always fail with ENOSYS. Some functions are actually named
  11038. something starting with __ and the normal name is an alias. */
  11039. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11040. choke me
  11041. #else
  11042. char (*f) () = $ac_func;
  11043. #endif
  11044. #ifdef __cplusplus
  11045. }
  11046. #endif
  11047. int
  11048. main ()
  11049. {
  11050. return f != $ac_func;
  11051. ;
  11052. return 0;
  11053. }
  11054. _ACEOF
  11055. rm -f conftest.$ac_objext conftest$ac_exeext
  11056. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11057. (eval $ac_link) 2>conftest.er1
  11058. ac_status=$?
  11059. grep -v '^ *+' conftest.er1 >conftest.err
  11060. rm -f conftest.er1
  11061. cat conftest.err >&5
  11062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11063. (exit $ac_status); } &&
  11064. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11065. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11066. (eval $ac_try) 2>&5
  11067. ac_status=$?
  11068. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11069. (exit $ac_status); }; } &&
  11070. { ac_try='test -s conftest$ac_exeext'
  11071. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11072. (eval $ac_try) 2>&5
  11073. ac_status=$?
  11074. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11075. (exit $ac_status); }; }; then
  11076. eval "$as_ac_var=yes"
  11077. else
  11078. echo "$as_me: failed program was:" >&5
  11079. sed 's/^/| /' conftest.$ac_ext >&5
  11080. eval "$as_ac_var=no"
  11081. fi
  11082. rm -f conftest.err conftest.$ac_objext \
  11083. conftest$ac_exeext conftest.$ac_ext
  11084. fi
  11085. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  11086. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  11087. if test `eval echo '${'$as_ac_var'}'` = yes; then
  11088. cat >>confdefs.h <<_ACEOF
  11089. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  11090. _ACEOF
  11091. fi
  11092. done
  11093. if test "$ac_cv_func_uname" = "no"
  11094. then
  11095. cat << 'EOF' >&2
  11096. configure: error:
  11097. Your system does not have the uname() function.
  11098. This is required for the botpack.
  11099. EOF
  11100. exit 1
  11101. fi
  11102. # Make sure we have stdc headers, since we can't compile without them
  11103. if test "$ac_cv_header_stdc" = "no"
  11104. then
  11105. cat << 'EOF' >&2
  11106. configure: error:
  11107. Your system must support ANSI C Header files.
  11108. These are required for the language support. Sorry.
  11109. EOF
  11110. exit 1
  11111. fi
  11112. #checkpoint
  11113. cat >confcache <<\_ACEOF
  11114. # This file is a shell script that caches the results of configure
  11115. # tests run on this system so they can be shared between configure
  11116. # scripts and configure runs, see configure's option --config-cache.
  11117. # It is not useful on other systems. If it contains results you don't
  11118. # want to keep, you may remove or edit it.
  11119. #
  11120. # config.status only pays attention to the cache file if you give it
  11121. # the --recheck option to rerun configure.
  11122. #
  11123. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11124. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11125. # following values.
  11126. _ACEOF
  11127. # The following way of writing the cache mishandles newlines in values,
  11128. # but we know of no workaround that is simple, portable, and efficient.
  11129. # So, don't put newlines in cache variables' values.
  11130. # Ultrix sh set writes to stderr and can't be redirected directly,
  11131. # and sets the high bit in the cache file unless we assign to the vars.
  11132. {
  11133. (set) 2>&1 |
  11134. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11135. *ac_space=\ *)
  11136. # `set' does not quote correctly, so add quotes (double-quote
  11137. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11138. sed -n \
  11139. "s/'/'\\\\''/g;
  11140. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11141. ;;
  11142. *)
  11143. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11144. sed -n \
  11145. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11146. ;;
  11147. esac;
  11148. } |
  11149. sed '
  11150. t clear
  11151. : clear
  11152. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11153. t end
  11154. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11155. : end' >>confcache
  11156. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11157. if test -w $cache_file; then
  11158. test "x$cache_file" != "x/dev/null"
  11159. cat confcache >$cache_file
  11160. else
  11161. echo "not updating unwritable cache $cache_file"
  11162. fi
  11163. fi
  11164. rm -f confcache
  11165. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  11166. if ! test -f $cfg; then
  11167. cat << EOF >&2
  11168. configure: error:
  11169. Your pack cfg is missing, please copy it to $srcdir/$cfg
  11170. Or specify the path to it with: --with-cfg=
  11171. EOF
  11172. exit 1
  11173. fi
  11174. PACKNAME=`grep "PACKNAME " $cfg | $AWK '/PACKNAME/ {print $2}'`
  11175. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  11176. cat >>confdefs.h <<_ACEOF
  11177. #define EGG_VERSION $version_num
  11178. _ACEOF
  11179. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' $cfg`; do
  11180. u_define="S_$define"
  11181. cat >>confdefs.h <<_ACEOF
  11182. #define $u_define 1
  11183. _ACEOF
  11184. CFG="$cfg"
  11185. done
  11186. case "$srcdir" in
  11187. [\\/]* | ?:[\\/]*)
  11188. MOD_UPDIR=""
  11189. ;;
  11190. *)
  11191. MOD_UPDIR="../"
  11192. ;;
  11193. esac
  11194. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/dns.mod/Makefile.in src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  11195. for mf in $files; do
  11196. # Strip MF so we end up with the name of the file.
  11197. # echo "MF: $mf"
  11198. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11199. dirpart=`(dirname "$mf") 2>/dev/null ||
  11200. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11201. X"$mf" : 'X\(//\)[^/]' \| \
  11202. X"$mf" : 'X\(//\)$' \| \
  11203. X"$mf" : 'X\(/\)' \| \
  11204. . : '\(.\)' 2>/dev/null ||
  11205. echo X"$mf" |
  11206. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11207. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11208. /^X\(\/\/\)$/{ s//\1/; q; }
  11209. /^X\(\/\).*/{ s//\1/; q; }
  11210. s/.*/./; q'`
  11211. # echo "dirpart: $dirpart mf: $mf"
  11212. # rm -rf "$dirpart/.deps/"
  11213. rm -f "$dirpart/.deps/includes"
  11214. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11215. for file in `sed -n -e '
  11216. /^OBJS = .*\\\\$/ {
  11217. s/^OBJS = //
  11218. :loop
  11219. s/\\\\$//
  11220. p
  11221. n
  11222. /\\\\$/ b loop
  11223. p
  11224. }
  11225. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11226. do
  11227. base=`basename $file .o`
  11228. test -f "$dirpart/$base.c" || continue
  11229. if ! test -f "$dirpart/.deps/$base.Po"; then
  11230. echo '# dummy' > "$dirpart/.deps/$base.Po"
  11231. #Remove the .o file, because it needs to be recompiled for its dependancies.
  11232. if test -f "$dirpart/$base.o"; then
  11233. rm -f "$dirpart/$base.o"
  11234. fi
  11235. fi
  11236. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  11237. echo "_$base.c:" >> "$dirpart/.deps/includes"
  11238. done
  11239. done
  11240. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  11241. cat >confcache <<\_ACEOF
  11242. # This file is a shell script that caches the results of configure
  11243. # tests run on this system so they can be shared between configure
  11244. # scripts and configure runs, see configure's option --config-cache.
  11245. # It is not useful on other systems. If it contains results you don't
  11246. # want to keep, you may remove or edit it.
  11247. #
  11248. # config.status only pays attention to the cache file if you give it
  11249. # the --recheck option to rerun configure.
  11250. #
  11251. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11252. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11253. # following values.
  11254. _ACEOF
  11255. # The following way of writing the cache mishandles newlines in values,
  11256. # but we know of no workaround that is simple, portable, and efficient.
  11257. # So, don't put newlines in cache variables' values.
  11258. # Ultrix sh set writes to stderr and can't be redirected directly,
  11259. # and sets the high bit in the cache file unless we assign to the vars.
  11260. {
  11261. (set) 2>&1 |
  11262. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11263. *ac_space=\ *)
  11264. # `set' does not quote correctly, so add quotes (double-quote
  11265. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11266. sed -n \
  11267. "s/'/'\\\\''/g;
  11268. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11269. ;;
  11270. *)
  11271. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11272. sed -n \
  11273. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11274. ;;
  11275. esac;
  11276. } |
  11277. sed '
  11278. t clear
  11279. : clear
  11280. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11281. t end
  11282. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11283. : end' >>confcache
  11284. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11285. if test -w $cache_file; then
  11286. test "x$cache_file" != "x/dev/null"
  11287. cat confcache >$cache_file
  11288. else
  11289. echo "not updating unwritable cache $cache_file"
  11290. fi
  11291. fi
  11292. rm -f confcache
  11293. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11294. # Let make expand exec_prefix.
  11295. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11296. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11297. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11298. # trailing colons and then remove the whole line if VPATH becomes empty
  11299. # (actually we leave an empty line to preserve line numbers).
  11300. if test "x$srcdir" = x.; then
  11301. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11302. s/:*\$(srcdir):*/:/;
  11303. s/:*\${srcdir}:*/:/;
  11304. s/:*@srcdir@:*/:/;
  11305. s/^\([^=]*=[ ]*\):*/\1/;
  11306. s/:*$//;
  11307. s/^[^=]*=[ ]*$//;
  11308. }'
  11309. fi
  11310. DEFS=-DHAVE_CONFIG_H
  11311. ac_libobjs=
  11312. ac_ltlibobjs=
  11313. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11314. # 1. Remove the extension, and $U if already installed.
  11315. ac_i=`echo "$ac_i" |
  11316. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11317. # 2. Add them.
  11318. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11319. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11320. done
  11321. LIBOBJS=$ac_libobjs
  11322. LTLIBOBJS=$ac_ltlibobjs
  11323. : ${CONFIG_STATUS=./config.status}
  11324. ac_clean_files_save=$ac_clean_files
  11325. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11326. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11327. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11328. cat >$CONFIG_STATUS <<_ACEOF
  11329. #! $SHELL
  11330. # Generated by $as_me.
  11331. # Run this file to recreate the current configuration.
  11332. # Compiler output produced by configure, useful for debugging
  11333. # configure, is in config.log if it exists.
  11334. debug=false
  11335. ac_cs_recheck=false
  11336. ac_cs_silent=false
  11337. SHELL=\${CONFIG_SHELL-$SHELL}
  11338. _ACEOF
  11339. cat >>$CONFIG_STATUS <<\_ACEOF
  11340. ## --------------------- ##
  11341. ## M4sh Initialization. ##
  11342. ## --------------------- ##
  11343. # Be Bourne compatible
  11344. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11345. emulate sh
  11346. NULLCMD=:
  11347. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11348. # is contrary to our usage. Disable this feature.
  11349. alias -g '${1+"$@"}'='"$@"'
  11350. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11351. set -o posix
  11352. fi
  11353. DUALCASE=1; export DUALCASE # for MKS sh
  11354. # Support unset when possible.
  11355. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11356. as_unset=unset
  11357. else
  11358. as_unset=false
  11359. fi
  11360. # Work around bugs in pre-3.0 UWIN ksh.
  11361. $as_unset ENV MAIL MAILPATH
  11362. PS1='$ '
  11363. PS2='> '
  11364. PS4='+ '
  11365. # NLS nuisances.
  11366. for as_var in \
  11367. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11368. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11369. LC_TELEPHONE LC_TIME
  11370. do
  11371. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11372. eval $as_var=C; export $as_var
  11373. else
  11374. $as_unset $as_var
  11375. fi
  11376. done
  11377. # Required to use basename.
  11378. if expr a : '\(a\)' >/dev/null 2>&1; then
  11379. as_expr=expr
  11380. else
  11381. as_expr=false
  11382. fi
  11383. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11384. as_basename=basename
  11385. else
  11386. as_basename=false
  11387. fi
  11388. # Name of the executable.
  11389. as_me=`$as_basename "$0" ||
  11390. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11391. X"$0" : 'X\(//\)$' \| \
  11392. X"$0" : 'X\(/\)$' \| \
  11393. . : '\(.\)' 2>/dev/null ||
  11394. echo X/"$0" |
  11395. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11396. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11397. /^X\/\(\/\).*/{ s//\1/; q; }
  11398. s/.*/./; q'`
  11399. # PATH needs CR, and LINENO needs CR and PATH.
  11400. # Avoid depending upon Character Ranges.
  11401. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11402. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11403. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11404. as_cr_digits='0123456789'
  11405. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11406. # The user is always right.
  11407. if test "${PATH_SEPARATOR+set}" != set; then
  11408. echo "#! /bin/sh" >conf$$.sh
  11409. echo "exit 0" >>conf$$.sh
  11410. chmod +x conf$$.sh
  11411. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11412. PATH_SEPARATOR=';'
  11413. else
  11414. PATH_SEPARATOR=:
  11415. fi
  11416. rm -f conf$$.sh
  11417. fi
  11418. as_lineno_1=$LINENO
  11419. as_lineno_2=$LINENO
  11420. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11421. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11422. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11423. # Find who we are. Look in the path if we contain no path at all
  11424. # relative or not.
  11425. case $0 in
  11426. *[\\/]* ) as_myself=$0 ;;
  11427. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11428. for as_dir in $PATH
  11429. do
  11430. IFS=$as_save_IFS
  11431. test -z "$as_dir" && as_dir=.
  11432. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11433. done
  11434. ;;
  11435. esac
  11436. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11437. # in which case we are not to be found in the path.
  11438. if test "x$as_myself" = x; then
  11439. as_myself=$0
  11440. fi
  11441. if test ! -f "$as_myself"; then
  11442. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11443. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11444. { (exit 1); exit 1; }; }
  11445. fi
  11446. case $CONFIG_SHELL in
  11447. '')
  11448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11449. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11450. do
  11451. IFS=$as_save_IFS
  11452. test -z "$as_dir" && as_dir=.
  11453. for as_base in sh bash ksh sh5; do
  11454. case $as_dir in
  11455. /*)
  11456. if ("$as_dir/$as_base" -c '
  11457. as_lineno_1=$LINENO
  11458. as_lineno_2=$LINENO
  11459. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11460. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11461. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11462. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11463. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11464. CONFIG_SHELL=$as_dir/$as_base
  11465. export CONFIG_SHELL
  11466. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11467. fi;;
  11468. esac
  11469. done
  11470. done
  11471. ;;
  11472. esac
  11473. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11474. # uniformly replaced by the line number. The first 'sed' inserts a
  11475. # line-number line before each line; the second 'sed' does the real
  11476. # work. The second script uses 'N' to pair each line-number line
  11477. # with the numbered line, and appends trailing '-' during
  11478. # substitution so that $LINENO is not a special case at line end.
  11479. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11480. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11481. sed '=' <$as_myself |
  11482. sed '
  11483. N
  11484. s,$,-,
  11485. : loop
  11486. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11487. t loop
  11488. s,-$,,
  11489. s,^['$as_cr_digits']*\n,,
  11490. ' >$as_me.lineno &&
  11491. chmod +x $as_me.lineno ||
  11492. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11493. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11494. { (exit 1); exit 1; }; }
  11495. # Don't try to exec as it changes $[0], causing all sort of problems
  11496. # (the dirname of $[0] is not the place where we might find the
  11497. # original and so on. Autoconf is especially sensible to this).
  11498. . ./$as_me.lineno
  11499. # Exit status is that of the last command.
  11500. exit
  11501. }
  11502. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11503. *c*,-n*) ECHO_N= ECHO_C='
  11504. ' ECHO_T=' ' ;;
  11505. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11506. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11507. esac
  11508. if expr a : '\(a\)' >/dev/null 2>&1; then
  11509. as_expr=expr
  11510. else
  11511. as_expr=false
  11512. fi
  11513. rm -f conf$$ conf$$.exe conf$$.file
  11514. echo >conf$$.file
  11515. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11516. # We could just check for DJGPP; but this test a) works b) is more generic
  11517. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11518. if test -f conf$$.exe; then
  11519. # Don't use ln at all; we don't have any links
  11520. as_ln_s='cp -p'
  11521. else
  11522. as_ln_s='ln -s'
  11523. fi
  11524. elif ln conf$$.file conf$$ 2>/dev/null; then
  11525. as_ln_s=ln
  11526. else
  11527. as_ln_s='cp -p'
  11528. fi
  11529. rm -f conf$$ conf$$.exe conf$$.file
  11530. if mkdir -p . 2>/dev/null; then
  11531. as_mkdir_p=:
  11532. else
  11533. test -d ./-p && rmdir ./-p
  11534. as_mkdir_p=false
  11535. fi
  11536. as_executable_p="test -f"
  11537. # Sed expression to map a string onto a valid CPP name.
  11538. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11539. # Sed expression to map a string onto a valid variable name.
  11540. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11541. # IFS
  11542. # We need space, tab and new line, in precisely that order.
  11543. as_nl='
  11544. '
  11545. IFS=" $as_nl"
  11546. # CDPATH.
  11547. $as_unset CDPATH
  11548. exec 6>&1
  11549. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11550. # report actual input values of CONFIG_FILES etc. instead of their
  11551. # values after options handling. Logging --version etc. is OK.
  11552. exec 5>>config.log
  11553. {
  11554. echo
  11555. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11556. ## Running $as_me. ##
  11557. _ASBOX
  11558. } >&5
  11559. cat >&5 <<_CSEOF
  11560. This file was extended by $as_me, which was
  11561. generated by GNU Autoconf 2.59. Invocation command line was
  11562. CONFIG_FILES = $CONFIG_FILES
  11563. CONFIG_HEADERS = $CONFIG_HEADERS
  11564. CONFIG_LINKS = $CONFIG_LINKS
  11565. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11566. $ $0 $@
  11567. _CSEOF
  11568. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11569. echo >&5
  11570. _ACEOF
  11571. # Files that config.status was made for.
  11572. if test -n "$ac_config_files"; then
  11573. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11574. fi
  11575. if test -n "$ac_config_headers"; then
  11576. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11577. fi
  11578. if test -n "$ac_config_links"; then
  11579. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11580. fi
  11581. if test -n "$ac_config_commands"; then
  11582. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11583. fi
  11584. cat >>$CONFIG_STATUS <<\_ACEOF
  11585. ac_cs_usage="\
  11586. \`$as_me' instantiates files from templates according to the
  11587. current configuration.
  11588. Usage: $0 [OPTIONS] [FILE]...
  11589. -h, --help print this help, then exit
  11590. -V, --version print version number, then exit
  11591. -q, --quiet do not print progress messages
  11592. -d, --debug don't remove temporary files
  11593. --recheck update $as_me by reconfiguring in the same conditions
  11594. --file=FILE[:TEMPLATE]
  11595. instantiate the configuration file FILE
  11596. --header=FILE[:TEMPLATE]
  11597. instantiate the configuration header FILE
  11598. Configuration files:
  11599. $config_files
  11600. Configuration headers:
  11601. $config_headers
  11602. Report bugs to <bug-autoconf@gnu.org>."
  11603. _ACEOF
  11604. cat >>$CONFIG_STATUS <<_ACEOF
  11605. ac_cs_version="\\
  11606. config.status
  11607. configured by $0, generated by GNU Autoconf 2.59,
  11608. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11609. Copyright (C) 2003 Free Software Foundation, Inc.
  11610. This config.status script is free software; the Free Software Foundation
  11611. gives unlimited permission to copy, distribute and modify it."
  11612. srcdir=$srcdir
  11613. _ACEOF
  11614. cat >>$CONFIG_STATUS <<\_ACEOF
  11615. # If no file are specified by the user, then we need to provide default
  11616. # value. By we need to know if files were specified by the user.
  11617. ac_need_defaults=:
  11618. while test $# != 0
  11619. do
  11620. case $1 in
  11621. --*=*)
  11622. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11623. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11624. ac_shift=:
  11625. ;;
  11626. -*)
  11627. ac_option=$1
  11628. ac_optarg=$2
  11629. ac_shift=shift
  11630. ;;
  11631. *) # This is not an option, so the user has probably given explicit
  11632. # arguments.
  11633. ac_option=$1
  11634. ac_need_defaults=false;;
  11635. esac
  11636. case $ac_option in
  11637. # Handling of the options.
  11638. _ACEOF
  11639. cat >>$CONFIG_STATUS <<\_ACEOF
  11640. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11641. ac_cs_recheck=: ;;
  11642. --version | --vers* | -V )
  11643. echo "$ac_cs_version"; exit 0 ;;
  11644. --he | --h)
  11645. # Conflict between --help and --header
  11646. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11647. Try \`$0 --help' for more information." >&5
  11648. echo "$as_me: error: ambiguous option: $1
  11649. Try \`$0 --help' for more information." >&2;}
  11650. { (exit 1); exit 1; }; };;
  11651. --help | --hel | -h )
  11652. echo "$ac_cs_usage"; exit 0 ;;
  11653. --debug | --d* | -d )
  11654. debug=: ;;
  11655. --file | --fil | --fi | --f )
  11656. $ac_shift
  11657. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11658. ac_need_defaults=false;;
  11659. --header | --heade | --head | --hea )
  11660. $ac_shift
  11661. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11662. ac_need_defaults=false;;
  11663. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11664. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11665. ac_cs_silent=: ;;
  11666. # This is an error.
  11667. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11668. Try \`$0 --help' for more information." >&5
  11669. echo "$as_me: error: unrecognized option: $1
  11670. Try \`$0 --help' for more information." >&2;}
  11671. { (exit 1); exit 1; }; } ;;
  11672. *) ac_config_targets="$ac_config_targets $1" ;;
  11673. esac
  11674. shift
  11675. done
  11676. ac_configure_extra_args=
  11677. if $ac_cs_silent; then
  11678. exec 6>/dev/null
  11679. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11680. fi
  11681. _ACEOF
  11682. cat >>$CONFIG_STATUS <<_ACEOF
  11683. if \$ac_cs_recheck; then
  11684. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11685. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11686. fi
  11687. _ACEOF
  11688. cat >>$CONFIG_STATUS <<\_ACEOF
  11689. for ac_config_target in $ac_config_targets
  11690. do
  11691. case "$ac_config_target" in
  11692. # Handling of arguments.
  11693. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11694. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11695. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11696. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11697. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11698. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11699. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11700. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11701. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11702. { (exit 1); exit 1; }; };;
  11703. esac
  11704. done
  11705. # If the user did not use the arguments to specify the items to instantiate,
  11706. # then the envvar interface is used. Set only those that are not.
  11707. # We use the long form for the default assignment because of an extremely
  11708. # bizarre bug on SunOS 4.1.3.
  11709. if $ac_need_defaults; then
  11710. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11711. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11712. fi
  11713. # Have a temporary directory for convenience. Make it in the build tree
  11714. # simply because there is no reason to put it here, and in addition,
  11715. # creating and moving files from /tmp can sometimes cause problems.
  11716. # Create a temporary directory, and hook for its removal unless debugging.
  11717. $debug ||
  11718. {
  11719. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11720. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11721. }
  11722. # Create a (secure) tmp directory for tmp files.
  11723. {
  11724. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11725. test -n "$tmp" && test -d "$tmp"
  11726. } ||
  11727. {
  11728. tmp=./confstat$$-$RANDOM
  11729. (umask 077 && mkdir $tmp)
  11730. } ||
  11731. {
  11732. echo "$me: cannot create a temporary directory in ." >&2
  11733. { (exit 1); exit 1; }
  11734. }
  11735. _ACEOF
  11736. cat >>$CONFIG_STATUS <<_ACEOF
  11737. #
  11738. # CONFIG_FILES section.
  11739. #
  11740. # No need to generate the scripts if there are no CONFIG_FILES.
  11741. # This happens for instance when ./config.status config.h
  11742. if test -n "\$CONFIG_FILES"; then
  11743. # Protect against being on the right side of a sed subst in config.status.
  11744. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11745. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11746. s,@SHELL@,$SHELL,;t t
  11747. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11748. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11749. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11750. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11751. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11752. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11753. s,@exec_prefix@,$exec_prefix,;t t
  11754. s,@prefix@,$prefix,;t t
  11755. s,@program_transform_name@,$program_transform_name,;t t
  11756. s,@bindir@,$bindir,;t t
  11757. s,@sbindir@,$sbindir,;t t
  11758. s,@libexecdir@,$libexecdir,;t t
  11759. s,@datadir@,$datadir,;t t
  11760. s,@sysconfdir@,$sysconfdir,;t t
  11761. s,@sharedstatedir@,$sharedstatedir,;t t
  11762. s,@localstatedir@,$localstatedir,;t t
  11763. s,@libdir@,$libdir,;t t
  11764. s,@includedir@,$includedir,;t t
  11765. s,@oldincludedir@,$oldincludedir,;t t
  11766. s,@infodir@,$infodir,;t t
  11767. s,@mandir@,$mandir,;t t
  11768. s,@build_alias@,$build_alias,;t t
  11769. s,@host_alias@,$host_alias,;t t
  11770. s,@target_alias@,$target_alias,;t t
  11771. s,@DEFS@,$DEFS,;t t
  11772. s,@ECHO_C@,$ECHO_C,;t t
  11773. s,@ECHO_N@,$ECHO_N,;t t
  11774. s,@ECHO_T@,$ECHO_T,;t t
  11775. s,@LIBS@,$LIBS,;t t
  11776. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11777. s,@CC@,$CC,;t t
  11778. s,@CFLAGS@,$CFLAGS,;t t
  11779. s,@LDFLAGS@,$LDFLAGS,;t t
  11780. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11781. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11782. s,@EXEEXT@,$EXEEXT,;t t
  11783. s,@OBJEXT@,$OBJEXT,;t t
  11784. s,@CPP@,$CPP,;t t
  11785. s,@EGREP@,$EGREP,;t t
  11786. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11787. s,@GCC3@,$GCC3,;t t
  11788. s,@CCDEBUG@,$CCDEBUG,;t t
  11789. s,@SET_MAKE@,$SET_MAKE,;t t
  11790. s,@HEAD_1@,$HEAD_1,;t t
  11791. s,@AWK@,$AWK,;t t
  11792. s,@BASENAME@,$BASENAME,;t t
  11793. s,@OBJCOPY@,$OBJCOPY,;t t
  11794. s,@STRIP@,$STRIP,;t t
  11795. s,@UNAME@,$UNAME,;t t
  11796. s,@DISTCC@,$DISTCC,;t t
  11797. s,@RESLIB@,$RESLIB,;t t
  11798. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11799. s,@ZLIB@,$ZLIB,;t t
  11800. s,@LIBOBJS@,$LIBOBJS,;t t
  11801. s,@VERSION@,$VERSION,;t t
  11802. s,@NUMVER@,$NUMVER,;t t
  11803. s,@PACKNAME@,$PACKNAME,;t t
  11804. s,@CFG@,$CFG,;t t
  11805. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11806. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11807. CEOF
  11808. _ACEOF
  11809. cat >>$CONFIG_STATUS <<\_ACEOF
  11810. # Split the substitutions into bite-sized pieces for seds with
  11811. # small command number limits, like on Digital OSF/1 and HP-UX.
  11812. ac_max_sed_lines=48
  11813. ac_sed_frag=1 # Number of current file.
  11814. ac_beg=1 # First line for current file.
  11815. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11816. ac_more_lines=:
  11817. ac_sed_cmds=
  11818. while $ac_more_lines; do
  11819. if test $ac_beg -gt 1; then
  11820. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11821. else
  11822. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11823. fi
  11824. if test ! -s $tmp/subs.frag; then
  11825. ac_more_lines=false
  11826. else
  11827. # The purpose of the label and of the branching condition is to
  11828. # speed up the sed processing (if there are no `@' at all, there
  11829. # is no need to browse any of the substitutions).
  11830. # These are the two extra sed commands mentioned above.
  11831. (echo ':t
  11832. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11833. if test -z "$ac_sed_cmds"; then
  11834. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11835. else
  11836. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11837. fi
  11838. ac_sed_frag=`expr $ac_sed_frag + 1`
  11839. ac_beg=$ac_end
  11840. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11841. fi
  11842. done
  11843. if test -z "$ac_sed_cmds"; then
  11844. ac_sed_cmds=cat
  11845. fi
  11846. fi # test -n "$CONFIG_FILES"
  11847. _ACEOF
  11848. cat >>$CONFIG_STATUS <<\_ACEOF
  11849. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11850. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11851. case $ac_file in
  11852. - | *:- | *:-:* ) # input from stdin
  11853. cat >$tmp/stdin
  11854. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11855. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11856. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11857. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11858. * ) ac_file_in=$ac_file.in ;;
  11859. esac
  11860. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11861. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11862. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11863. X"$ac_file" : 'X\(//\)[^/]' \| \
  11864. X"$ac_file" : 'X\(//\)$' \| \
  11865. X"$ac_file" : 'X\(/\)' \| \
  11866. . : '\(.\)' 2>/dev/null ||
  11867. echo X"$ac_file" |
  11868. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11869. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11870. /^X\(\/\/\)$/{ s//\1/; q; }
  11871. /^X\(\/\).*/{ s//\1/; q; }
  11872. s/.*/./; q'`
  11873. { if $as_mkdir_p; then
  11874. mkdir -p "$ac_dir"
  11875. else
  11876. as_dir="$ac_dir"
  11877. as_dirs=
  11878. while test ! -d "$as_dir"; do
  11879. as_dirs="$as_dir $as_dirs"
  11880. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11881. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11882. X"$as_dir" : 'X\(//\)[^/]' \| \
  11883. X"$as_dir" : 'X\(//\)$' \| \
  11884. X"$as_dir" : 'X\(/\)' \| \
  11885. . : '\(.\)' 2>/dev/null ||
  11886. echo X"$as_dir" |
  11887. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11888. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11889. /^X\(\/\/\)$/{ s//\1/; q; }
  11890. /^X\(\/\).*/{ s//\1/; q; }
  11891. s/.*/./; q'`
  11892. done
  11893. test ! -n "$as_dirs" || mkdir $as_dirs
  11894. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11895. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11896. { (exit 1); exit 1; }; }; }
  11897. ac_builddir=.
  11898. if test "$ac_dir" != .; then
  11899. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11900. # A "../" for each directory in $ac_dir_suffix.
  11901. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11902. else
  11903. ac_dir_suffix= ac_top_builddir=
  11904. fi
  11905. case $srcdir in
  11906. .) # No --srcdir option. We are building in place.
  11907. ac_srcdir=.
  11908. if test -z "$ac_top_builddir"; then
  11909. ac_top_srcdir=.
  11910. else
  11911. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11912. fi ;;
  11913. [\\/]* | ?:[\\/]* ) # Absolute path.
  11914. ac_srcdir=$srcdir$ac_dir_suffix;
  11915. ac_top_srcdir=$srcdir ;;
  11916. *) # Relative path.
  11917. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11918. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11919. esac
  11920. # Do not use `cd foo && pwd` to compute absolute paths, because
  11921. # the directories may not exist.
  11922. case `pwd` in
  11923. .) ac_abs_builddir="$ac_dir";;
  11924. *)
  11925. case "$ac_dir" in
  11926. .) ac_abs_builddir=`pwd`;;
  11927. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11928. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11929. esac;;
  11930. esac
  11931. case $ac_abs_builddir in
  11932. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11933. *)
  11934. case ${ac_top_builddir}. in
  11935. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11936. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11937. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11938. esac;;
  11939. esac
  11940. case $ac_abs_builddir in
  11941. .) ac_abs_srcdir=$ac_srcdir;;
  11942. *)
  11943. case $ac_srcdir in
  11944. .) ac_abs_srcdir=$ac_abs_builddir;;
  11945. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11946. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11947. esac;;
  11948. esac
  11949. case $ac_abs_builddir in
  11950. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11951. *)
  11952. case $ac_top_srcdir in
  11953. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11954. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11955. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11956. esac;;
  11957. esac
  11958. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11959. # use $as_me), people would be surprised to read:
  11960. # /* config.h. Generated by config.status. */
  11961. if test x"$ac_file" = x-; then
  11962. configure_input=
  11963. else
  11964. configure_input="$ac_file. "
  11965. fi
  11966. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11967. sed 's,.*/,,'` by configure."
  11968. # First look for the input files in the build tree, otherwise in the
  11969. # src tree.
  11970. ac_file_inputs=`IFS=:
  11971. for f in $ac_file_in; do
  11972. case $f in
  11973. -) echo $tmp/stdin ;;
  11974. [\\/$]*)
  11975. # Absolute (can't be DOS-style, as IFS=:)
  11976. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11977. echo "$as_me: error: cannot find input file: $f" >&2;}
  11978. { (exit 1); exit 1; }; }
  11979. echo "$f";;
  11980. *) # Relative
  11981. if test -f "$f"; then
  11982. # Build tree
  11983. echo "$f"
  11984. elif test -f "$srcdir/$f"; then
  11985. # Source tree
  11986. echo "$srcdir/$f"
  11987. else
  11988. # /dev/null tree
  11989. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11990. echo "$as_me: error: cannot find input file: $f" >&2;}
  11991. { (exit 1); exit 1; }; }
  11992. fi;;
  11993. esac
  11994. done` || { (exit 1); exit 1; }
  11995. if test x"$ac_file" != x-; then
  11996. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11997. echo "$as_me: creating $ac_file" >&6;}
  11998. rm -f "$ac_file"
  11999. fi
  12000. _ACEOF
  12001. cat >>$CONFIG_STATUS <<_ACEOF
  12002. sed "$ac_vpsub
  12003. $extrasub
  12004. _ACEOF
  12005. cat >>$CONFIG_STATUS <<\_ACEOF
  12006. :t
  12007. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12008. s,@configure_input@,$configure_input,;t t
  12009. s,@srcdir@,$ac_srcdir,;t t
  12010. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12011. s,@top_srcdir@,$ac_top_srcdir,;t t
  12012. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12013. s,@builddir@,$ac_builddir,;t t
  12014. s,@abs_builddir@,$ac_abs_builddir,;t t
  12015. s,@top_builddir@,$ac_top_builddir,;t t
  12016. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12017. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12018. rm -f $tmp/stdin
  12019. if test x"$ac_file" != x-; then
  12020. mv $tmp/out $ac_file
  12021. else
  12022. cat $tmp/out
  12023. rm -f $tmp/out
  12024. fi
  12025. done
  12026. _ACEOF
  12027. cat >>$CONFIG_STATUS <<\_ACEOF
  12028. #
  12029. # CONFIG_HEADER section.
  12030. #
  12031. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12032. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12033. #
  12034. # ac_d sets the value in "#define NAME VALUE" lines.
  12035. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12036. ac_dB='[ ].*$,\1#\2'
  12037. ac_dC=' '
  12038. ac_dD=',;t'
  12039. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12040. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12041. ac_uB='$,\1#\2define\3'
  12042. ac_uC=' '
  12043. ac_uD=',;t'
  12044. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12045. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12046. case $ac_file in
  12047. - | *:- | *:-:* ) # input from stdin
  12048. cat >$tmp/stdin
  12049. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12050. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12051. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12052. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12053. * ) ac_file_in=$ac_file.in ;;
  12054. esac
  12055. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12056. echo "$as_me: creating $ac_file" >&6;}
  12057. # First look for the input files in the build tree, otherwise in the
  12058. # src tree.
  12059. ac_file_inputs=`IFS=:
  12060. for f in $ac_file_in; do
  12061. case $f in
  12062. -) echo $tmp/stdin ;;
  12063. [\\/$]*)
  12064. # Absolute (can't be DOS-style, as IFS=:)
  12065. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12066. echo "$as_me: error: cannot find input file: $f" >&2;}
  12067. { (exit 1); exit 1; }; }
  12068. # Do quote $f, to prevent DOS paths from being IFS'd.
  12069. echo "$f";;
  12070. *) # Relative
  12071. if test -f "$f"; then
  12072. # Build tree
  12073. echo "$f"
  12074. elif test -f "$srcdir/$f"; then
  12075. # Source tree
  12076. echo "$srcdir/$f"
  12077. else
  12078. # /dev/null tree
  12079. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12080. echo "$as_me: error: cannot find input file: $f" >&2;}
  12081. { (exit 1); exit 1; }; }
  12082. fi;;
  12083. esac
  12084. done` || { (exit 1); exit 1; }
  12085. # Remove the trailing spaces.
  12086. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12087. _ACEOF
  12088. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  12089. # `conftest.undefs', that substitutes the proper values into
  12090. # config.h.in to produce config.h. The first handles `#define'
  12091. # templates, and the second `#undef' templates.
  12092. # And first: Protect against being on the right side of a sed subst in
  12093. # config.status. Protect against being in an unquoted here document
  12094. # in config.status.
  12095. rm -f conftest.defines conftest.undefs
  12096. # Using a here document instead of a string reduces the quoting nightmare.
  12097. # Putting comments in sed scripts is not portable.
  12098. #
  12099. # `end' is used to avoid that the second main sed command (meant for
  12100. # 0-ary CPP macros) applies to n-ary macro definitions.
  12101. # See the Autoconf documentation for `clear'.
  12102. cat >confdef2sed.sed <<\_ACEOF
  12103. s/[\\&,]/\\&/g
  12104. s,[\\$`],\\&,g
  12105. t clear
  12106. : clear
  12107. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12108. t end
  12109. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12110. : end
  12111. _ACEOF
  12112. # If some macros were called several times there might be several times
  12113. # the same #defines, which is useless. Nevertheless, we may not want to
  12114. # sort them, since we want the *last* AC-DEFINE to be honored.
  12115. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12116. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12117. rm -f confdef2sed.sed
  12118. # This sed command replaces #undef with comments. This is necessary, for
  12119. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12120. # on some systems where configure will not decide to define it.
  12121. cat >>conftest.undefs <<\_ACEOF
  12122. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12123. _ACEOF
  12124. # Break up conftest.defines because some shells have a limit on the size
  12125. # of here documents, and old seds have small limits too (100 cmds).
  12126. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12127. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12128. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12129. echo ' :' >>$CONFIG_STATUS
  12130. rm -f conftest.tail
  12131. while grep . conftest.defines >/dev/null
  12132. do
  12133. # Write a limited-size here document to $tmp/defines.sed.
  12134. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12135. # Speed up: don't consider the non `#define' lines.
  12136. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12137. # Work around the forget-to-reset-the-flag bug.
  12138. echo 't clr' >>$CONFIG_STATUS
  12139. echo ': clr' >>$CONFIG_STATUS
  12140. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12141. echo 'CEOF
  12142. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12143. rm -f $tmp/in
  12144. mv $tmp/out $tmp/in
  12145. ' >>$CONFIG_STATUS
  12146. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12147. rm -f conftest.defines
  12148. mv conftest.tail conftest.defines
  12149. done
  12150. rm -f conftest.defines
  12151. echo ' fi # grep' >>$CONFIG_STATUS
  12152. echo >>$CONFIG_STATUS
  12153. # Break up conftest.undefs because some shells have a limit on the size
  12154. # of here documents, and old seds have small limits too (100 cmds).
  12155. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12156. rm -f conftest.tail
  12157. while grep . conftest.undefs >/dev/null
  12158. do
  12159. # Write a limited-size here document to $tmp/undefs.sed.
  12160. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12161. # Speed up: don't consider the non `#undef'
  12162. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12163. # Work around the forget-to-reset-the-flag bug.
  12164. echo 't clr' >>$CONFIG_STATUS
  12165. echo ': clr' >>$CONFIG_STATUS
  12166. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12167. echo 'CEOF
  12168. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12169. rm -f $tmp/in
  12170. mv $tmp/out $tmp/in
  12171. ' >>$CONFIG_STATUS
  12172. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12173. rm -f conftest.undefs
  12174. mv conftest.tail conftest.undefs
  12175. done
  12176. rm -f conftest.undefs
  12177. cat >>$CONFIG_STATUS <<\_ACEOF
  12178. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12179. # use $as_me), people would be surprised to read:
  12180. # /* config.h. Generated by config.status. */
  12181. if test x"$ac_file" = x-; then
  12182. echo "/* Generated by configure. */" >$tmp/config.h
  12183. else
  12184. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12185. fi
  12186. cat $tmp/in >>$tmp/config.h
  12187. rm -f $tmp/in
  12188. if test x"$ac_file" != x-; then
  12189. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12190. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12191. echo "$as_me: $ac_file is unchanged" >&6;}
  12192. else
  12193. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12194. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12195. X"$ac_file" : 'X\(//\)[^/]' \| \
  12196. X"$ac_file" : 'X\(//\)$' \| \
  12197. X"$ac_file" : 'X\(/\)' \| \
  12198. . : '\(.\)' 2>/dev/null ||
  12199. echo X"$ac_file" |
  12200. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12201. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12202. /^X\(\/\/\)$/{ s//\1/; q; }
  12203. /^X\(\/\).*/{ s//\1/; q; }
  12204. s/.*/./; q'`
  12205. { if $as_mkdir_p; then
  12206. mkdir -p "$ac_dir"
  12207. else
  12208. as_dir="$ac_dir"
  12209. as_dirs=
  12210. while test ! -d "$as_dir"; do
  12211. as_dirs="$as_dir $as_dirs"
  12212. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12213. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12214. X"$as_dir" : 'X\(//\)[^/]' \| \
  12215. X"$as_dir" : 'X\(//\)$' \| \
  12216. X"$as_dir" : 'X\(/\)' \| \
  12217. . : '\(.\)' 2>/dev/null ||
  12218. echo X"$as_dir" |
  12219. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12220. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12221. /^X\(\/\/\)$/{ s//\1/; q; }
  12222. /^X\(\/\).*/{ s//\1/; q; }
  12223. s/.*/./; q'`
  12224. done
  12225. test ! -n "$as_dirs" || mkdir $as_dirs
  12226. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12227. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12228. { (exit 1); exit 1; }; }; }
  12229. rm -f $ac_file
  12230. mv $tmp/config.h $ac_file
  12231. fi
  12232. else
  12233. cat $tmp/config.h
  12234. rm -f $tmp/config.h
  12235. fi
  12236. done
  12237. _ACEOF
  12238. cat >>$CONFIG_STATUS <<\_ACEOF
  12239. { (exit 0); exit 0; }
  12240. _ACEOF
  12241. chmod +x $CONFIG_STATUS
  12242. ac_clean_files=$ac_clean_files_save
  12243. # configure is writing to config.log, and then calls config.status.
  12244. # config.status does its own redirection, appending to config.log.
  12245. # Unfortunately, on DOS this fails, as config.log is still kept open
  12246. # by configure, so config.status won't be able to write to it; its
  12247. # output is simply discarded. So we exec the FD to /dev/null,
  12248. # effectively closing config.log, so it can be properly (re)opened and
  12249. # appended to by config.status. When coming back to configure, we
  12250. # need to make the FD available again.
  12251. if test "$no_create" != yes; then
  12252. ac_cs_success=:
  12253. ac_config_status_args=
  12254. test "$silent" = yes &&
  12255. ac_config_status_args="$ac_config_status_args --quiet"
  12256. exec 5>/dev/null
  12257. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12258. exec 5>>config.log
  12259. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12260. # would make configure fail if this is the last instruction.
  12261. $ac_cs_success || { (exit 1); exit 1; }
  12262. fi