configure 369 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.29 .
  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 -Wdisabled-optimization"
  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. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3093. fi
  3094. fi
  3095. OBJCOPY=$ac_cv_prog_OBJCOPY
  3096. if test -n "$OBJCOPY"; then
  3097. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3098. echo "${ECHO_T}$OBJCOPY" >&6
  3099. else
  3100. echo "$as_me:$LINENO: result: no" >&5
  3101. echo "${ECHO_T}no" >&6
  3102. fi
  3103. # Extract the first word of "strip", so it can be a program name with args.
  3104. set dummy strip; ac_word=$2
  3105. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3106. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3107. if test "${ac_cv_prog_STRIP+set}" = set; then
  3108. echo $ECHO_N "(cached) $ECHO_C" >&6
  3109. else
  3110. if test -n "$STRIP"; then
  3111. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3112. else
  3113. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3114. for as_dir in $PATH
  3115. do
  3116. IFS=$as_save_IFS
  3117. test -z "$as_dir" && as_dir=.
  3118. for ac_exec_ext in '' $ac_executable_extensions; do
  3119. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3120. ac_cv_prog_STRIP="strip"
  3121. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3122. break 2
  3123. fi
  3124. done
  3125. done
  3126. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3127. fi
  3128. fi
  3129. STRIP=$ac_cv_prog_STRIP
  3130. if test -n "$STRIP"; then
  3131. echo "$as_me:$LINENO: result: $STRIP" >&5
  3132. echo "${ECHO_T}$STRIP" >&6
  3133. else
  3134. echo "$as_me:$LINENO: result: no" >&5
  3135. echo "${ECHO_T}no" >&6
  3136. fi
  3137. # Extract the first word of "uname", so it can be a program name with args.
  3138. set dummy uname; ac_word=$2
  3139. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3140. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3141. if test "${ac_cv_prog_UNAME+set}" = set; then
  3142. echo $ECHO_N "(cached) $ECHO_C" >&6
  3143. else
  3144. if test -n "$UNAME"; then
  3145. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3146. else
  3147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3148. for as_dir in $PATH
  3149. do
  3150. IFS=$as_save_IFS
  3151. test -z "$as_dir" && as_dir=.
  3152. for ac_exec_ext in '' $ac_executable_extensions; do
  3153. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3154. ac_cv_prog_UNAME="uname"
  3155. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3156. break 2
  3157. fi
  3158. done
  3159. done
  3160. fi
  3161. fi
  3162. UNAME=$ac_cv_prog_UNAME
  3163. if test -n "$UNAME"; then
  3164. echo "$as_me:$LINENO: result: $UNAME" >&5
  3165. echo "${ECHO_T}$UNAME" >&6
  3166. else
  3167. echo "$as_me:$LINENO: result: no" >&5
  3168. echo "${ECHO_T}no" >&6
  3169. fi
  3170. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  3171. # Extract the first word of "distcc", so it can be a program name with args.
  3172. set dummy distcc; ac_word=$2
  3173. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3174. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3175. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3176. echo $ECHO_N "(cached) $ECHO_C" >&6
  3177. else
  3178. if test -n "$DISTCC"; then
  3179. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3180. else
  3181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3182. for as_dir in $PATH
  3183. do
  3184. IFS=$as_save_IFS
  3185. test -z "$as_dir" && as_dir=.
  3186. for ac_exec_ext in '' $ac_executable_extensions; do
  3187. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3188. ac_cv_prog_DISTCC="distcc"
  3189. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3190. break 2
  3191. fi
  3192. done
  3193. done
  3194. fi
  3195. fi
  3196. DISTCC=$ac_cv_prog_DISTCC
  3197. if test -n "$DISTCC"; then
  3198. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3199. echo "${ECHO_T}$DISTCC" >&6
  3200. else
  3201. echo "$as_me:$LINENO: result: no" >&5
  3202. echo "${ECHO_T}no" >&6
  3203. fi
  3204. # Test the os and set the module linking settings
  3205. LINUX=no
  3206. IRIX=no
  3207. SUNOS=no
  3208. EGG_CYGWIN=no
  3209. echo "$as_me:$LINENO: checking system type" >&5
  3210. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3211. if test "${egg_cv_var_system_type+set}" = set; then
  3212. echo $ECHO_N "(cached) $ECHO_C" >&6
  3213. else
  3214. egg_cv_var_system_type=`$UNAME -s`
  3215. fi
  3216. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3217. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3218. echo "$as_me:$LINENO: checking system release" >&5
  3219. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3220. if test "${egg_cv_var_system_release+set}" = set; then
  3221. echo $ECHO_N "(cached) $ECHO_C" >&6
  3222. else
  3223. egg_cv_var_system_release=`$UNAME -r`
  3224. fi
  3225. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3226. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3227. case "$egg_cv_var_system_type" in
  3228. BSD/OS)
  3229. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3230. 2)
  3231. ;;
  3232. *)
  3233. CFLAGS="$CFLAGS -Wall"
  3234. ;;
  3235. esac
  3236. ;;
  3237. CYGWI*)
  3238. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3239. 1.*)
  3240. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3241. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3242. WIN32FLAGS=
  3243. cat >conftest.$ac_ext <<_ACEOF
  3244. /* confdefs.h. */
  3245. _ACEOF
  3246. cat confdefs.h >>conftest.$ac_ext
  3247. cat >>conftest.$ac_ext <<_ACEOF
  3248. /* end confdefs.h. */
  3249. int
  3250. main ()
  3251. {
  3252. #ifndef WIN32
  3253. # ifndef _WIN32
  3254. # error WIN32 or _WIN32 not defined
  3255. # endif
  3256. #endif
  3257. ;
  3258. return 0;
  3259. }
  3260. _ACEOF
  3261. rm -f conftest.$ac_objext
  3262. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3263. (eval $ac_compile) 2>conftest.er1
  3264. ac_status=$?
  3265. grep -v '^ *+' conftest.er1 >conftest.err
  3266. rm -f conftest.er1
  3267. cat conftest.err >&5
  3268. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3269. (exit $ac_status); } &&
  3270. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3271. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3272. (eval $ac_try) 2>&5
  3273. ac_status=$?
  3274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3275. (exit $ac_status); }; } &&
  3276. { ac_try='test -s conftest.$ac_objext'
  3277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3278. (eval $ac_try) 2>&5
  3279. ac_status=$?
  3280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3281. (exit $ac_status); }; }; then
  3282. echo "$as_me:$LINENO: result: present by default" >&5
  3283. echo "${ECHO_T}present by default" >&6
  3284. else
  3285. echo "$as_me: failed program was:" >&5
  3286. sed 's/^/| /' conftest.$ac_ext >&5
  3287. ac_compile_save="$ac_compile"
  3288. save_CC="$CC"
  3289. ac_compile="$ac_compile -mwin32"
  3290. CC="$CC -mwin32"
  3291. cat >conftest.$ac_ext <<_ACEOF
  3292. /* confdefs.h. */
  3293. _ACEOF
  3294. cat confdefs.h >>conftest.$ac_ext
  3295. cat >>conftest.$ac_ext <<_ACEOF
  3296. /* end confdefs.h. */
  3297. int
  3298. main ()
  3299. {
  3300. #ifndef WIN32
  3301. # ifndef _WIN32
  3302. # error WIN32 or _WIN32 not defined
  3303. # endif
  3304. #endif
  3305. ;
  3306. return 0;
  3307. }
  3308. _ACEOF
  3309. rm -f conftest.$ac_objext
  3310. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3311. (eval $ac_compile) 2>conftest.er1
  3312. ac_status=$?
  3313. grep -v '^ *+' conftest.er1 >conftest.err
  3314. rm -f conftest.er1
  3315. cat conftest.err >&5
  3316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3317. (exit $ac_status); } &&
  3318. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3320. (eval $ac_try) 2>&5
  3321. ac_status=$?
  3322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3323. (exit $ac_status); }; } &&
  3324. { ac_try='test -s conftest.$ac_objext'
  3325. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3326. (eval $ac_try) 2>&5
  3327. ac_status=$?
  3328. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3329. (exit $ac_status); }; }; then
  3330. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3331. echo "${ECHO_T}found via -mwin32" >&6
  3332. ac_compile="$ac_compile_save"
  3333. CC="$save_CC"
  3334. WIN32FLAGS="-mwin32"
  3335. else
  3336. echo "$as_me: failed program was:" >&5
  3337. sed 's/^/| /' conftest.$ac_ext >&5
  3338. ac_compile="$ac_compile_save"
  3339. CC="$save_CC"
  3340. echo "$as_me:$LINENO: result: not found" >&5
  3341. echo "${ECHO_T}not found" >&6
  3342. fi
  3343. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3344. fi
  3345. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3346. CC="$CC $WIN32FLAGS"
  3347. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3348. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3349. if test -r /usr/lib/binmode.o
  3350. then
  3351. echo "$as_me:$LINENO: result: yes" >&5
  3352. echo "${ECHO_T}yes" >&6
  3353. LIBS="$LIBS /usr/lib/binmode.o"
  3354. else
  3355. echo "$as_me:$LINENO: result: no" >&5
  3356. echo "${ECHO_T}no" >&6
  3357. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3358. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3359. fi
  3360. ;;
  3361. *)
  3362. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3363. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3364. ;;
  3365. esac
  3366. EGG_CYGWIN=yes
  3367. cat >>confdefs.h <<\_ACEOF
  3368. #define CYGWIN_HACKS 1
  3369. _ACEOF
  3370. cat >>confdefs.h <<\_ACEOF
  3371. #define WIN32_LEAN_AND_MEAN 1
  3372. _ACEOF
  3373. ;;
  3374. IRIX)
  3375. IRIX=yes
  3376. ;;
  3377. Ultrix)
  3378. SHELL=/bin/sh5
  3379. ;;
  3380. SINIX*)
  3381. ;;
  3382. BeOS)
  3383. ;;
  3384. Linux)
  3385. LINUX=yes
  3386. CFLAGS="$CFLAGS -Wall"
  3387. ;;
  3388. Lynx)
  3389. ;;
  3390. QNX)
  3391. ;;
  3392. OSF1)
  3393. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3394. V*)
  3395. if test "$AWK" = "gawk"
  3396. then
  3397. AWK=awk
  3398. fi
  3399. ;;
  3400. 1.0|1.1|1.2)
  3401. cat >>confdefs.h <<\_ACEOF
  3402. #define OSF1_HACKS 1
  3403. _ACEOF
  3404. ;;
  3405. 1.*)
  3406. cat >>confdefs.h <<\_ACEOF
  3407. #define OSF1_HACKS 1
  3408. _ACEOF
  3409. ;;
  3410. *)
  3411. ;;
  3412. esac
  3413. cat >>confdefs.h <<\_ACEOF
  3414. #define STOP_UAC 1
  3415. _ACEOF
  3416. cat >>confdefs.h <<\_ACEOF
  3417. #define BROKEN_SNPRINTF 1
  3418. _ACEOF
  3419. ;;
  3420. SunOS)
  3421. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3422. then
  3423. # SunOS 4
  3424. SUNOS=yes
  3425. fi
  3426. ;;
  3427. *BSD)
  3428. # FreeBSD/OpenBSD/NetBSD
  3429. cat >>confdefs.h <<\_ACEOF
  3430. #define BSD 1
  3431. _ACEOF
  3432. ;;
  3433. *)
  3434. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3435. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3436. if test -r /mach
  3437. then
  3438. echo "$as_me:$LINENO: result: yes" >&5
  3439. echo "${ECHO_T}yes" >&6
  3440. cat >>confdefs.h <<\_ACEOF
  3441. #define BORGCUBES 1
  3442. _ACEOF
  3443. else
  3444. echo "$as_me:$LINENO: result: no" >&5
  3445. echo "${ECHO_T}no" >&6
  3446. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3447. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3448. if test -r /cmds
  3449. then
  3450. echo "$as_me:$LINENO: result: yes" >&5
  3451. echo "${ECHO_T}yes" >&6
  3452. else
  3453. echo "$as_me:$LINENO: result: no" >&5
  3454. echo "${ECHO_T}no" >&6
  3455. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3456. echo "${ECHO_T}Something unknown!" >&6
  3457. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3458. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3459. fi
  3460. fi
  3461. ;;
  3462. esac
  3463. dns_reslib_avail="true"
  3464. echo "$as_me:$LINENO: checking for res_init" >&5
  3465. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3466. if test "${ac_cv_func_res_init+set}" = set; then
  3467. echo $ECHO_N "(cached) $ECHO_C" >&6
  3468. else
  3469. cat >conftest.$ac_ext <<_ACEOF
  3470. /* confdefs.h. */
  3471. _ACEOF
  3472. cat confdefs.h >>conftest.$ac_ext
  3473. cat >>conftest.$ac_ext <<_ACEOF
  3474. /* end confdefs.h. */
  3475. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3476. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3477. #define res_init innocuous_res_init
  3478. /* System header to define __stub macros and hopefully few prototypes,
  3479. which can conflict with char res_init (); below.
  3480. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3481. <limits.h> exists even on freestanding compilers. */
  3482. #ifdef __STDC__
  3483. # include <limits.h>
  3484. #else
  3485. # include <assert.h>
  3486. #endif
  3487. #undef res_init
  3488. /* Override any gcc2 internal prototype to avoid an error. */
  3489. #ifdef __cplusplus
  3490. extern "C"
  3491. {
  3492. #endif
  3493. /* We use char because int might match the return type of a gcc2
  3494. builtin and then its argument prototype would still apply. */
  3495. char res_init ();
  3496. /* The GNU C library defines this for functions which it implements
  3497. to always fail with ENOSYS. Some functions are actually named
  3498. something starting with __ and the normal name is an alias. */
  3499. #if defined (__stub_res_init) || defined (__stub___res_init)
  3500. choke me
  3501. #else
  3502. char (*f) () = res_init;
  3503. #endif
  3504. #ifdef __cplusplus
  3505. }
  3506. #endif
  3507. int
  3508. main ()
  3509. {
  3510. return f != res_init;
  3511. ;
  3512. return 0;
  3513. }
  3514. _ACEOF
  3515. rm -f conftest.$ac_objext conftest$ac_exeext
  3516. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3517. (eval $ac_link) 2>conftest.er1
  3518. ac_status=$?
  3519. grep -v '^ *+' conftest.er1 >conftest.err
  3520. rm -f conftest.er1
  3521. cat conftest.err >&5
  3522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3523. (exit $ac_status); } &&
  3524. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3526. (eval $ac_try) 2>&5
  3527. ac_status=$?
  3528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3529. (exit $ac_status); }; } &&
  3530. { ac_try='test -s conftest$ac_exeext'
  3531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3532. (eval $ac_try) 2>&5
  3533. ac_status=$?
  3534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3535. (exit $ac_status); }; }; then
  3536. ac_cv_func_res_init=yes
  3537. else
  3538. echo "$as_me: failed program was:" >&5
  3539. sed 's/^/| /' conftest.$ac_ext >&5
  3540. ac_cv_func_res_init=no
  3541. fi
  3542. rm -f conftest.err conftest.$ac_objext \
  3543. conftest$ac_exeext conftest.$ac_ext
  3544. fi
  3545. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3546. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3547. if test $ac_cv_func_res_init = yes; then
  3548. :
  3549. else
  3550. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3551. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3552. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3553. echo $ECHO_N "(cached) $ECHO_C" >&6
  3554. else
  3555. ac_check_lib_save_LIBS=$LIBS
  3556. LIBS="-lresolv $LIBS"
  3557. cat >conftest.$ac_ext <<_ACEOF
  3558. /* confdefs.h. */
  3559. _ACEOF
  3560. cat confdefs.h >>conftest.$ac_ext
  3561. cat >>conftest.$ac_ext <<_ACEOF
  3562. /* end confdefs.h. */
  3563. /* Override any gcc2 internal prototype to avoid an error. */
  3564. #ifdef __cplusplus
  3565. extern "C"
  3566. #endif
  3567. /* We use char because int might match the return type of a gcc2
  3568. builtin and then its argument prototype would still apply. */
  3569. char res_init ();
  3570. int
  3571. main ()
  3572. {
  3573. res_init ();
  3574. ;
  3575. return 0;
  3576. }
  3577. _ACEOF
  3578. rm -f conftest.$ac_objext conftest$ac_exeext
  3579. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3580. (eval $ac_link) 2>conftest.er1
  3581. ac_status=$?
  3582. grep -v '^ *+' conftest.er1 >conftest.err
  3583. rm -f conftest.er1
  3584. cat conftest.err >&5
  3585. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3586. (exit $ac_status); } &&
  3587. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3588. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3589. (eval $ac_try) 2>&5
  3590. ac_status=$?
  3591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3592. (exit $ac_status); }; } &&
  3593. { ac_try='test -s conftest$ac_exeext'
  3594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3595. (eval $ac_try) 2>&5
  3596. ac_status=$?
  3597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3598. (exit $ac_status); }; }; then
  3599. ac_cv_lib_resolv_res_init=yes
  3600. else
  3601. echo "$as_me: failed program was:" >&5
  3602. sed 's/^/| /' conftest.$ac_ext >&5
  3603. ac_cv_lib_resolv_res_init=no
  3604. fi
  3605. rm -f conftest.err conftest.$ac_objext \
  3606. conftest$ac_exeext conftest.$ac_ext
  3607. LIBS=$ac_check_lib_save_LIBS
  3608. fi
  3609. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3610. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3611. if test $ac_cv_lib_resolv_res_init = yes; then
  3612. RESLIB="-lresolv"
  3613. else
  3614. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3615. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3616. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3617. echo $ECHO_N "(cached) $ECHO_C" >&6
  3618. else
  3619. ac_check_lib_save_LIBS=$LIBS
  3620. LIBS="-lbind $LIBS"
  3621. cat >conftest.$ac_ext <<_ACEOF
  3622. /* confdefs.h. */
  3623. _ACEOF
  3624. cat confdefs.h >>conftest.$ac_ext
  3625. cat >>conftest.$ac_ext <<_ACEOF
  3626. /* end confdefs.h. */
  3627. /* Override any gcc2 internal prototype to avoid an error. */
  3628. #ifdef __cplusplus
  3629. extern "C"
  3630. #endif
  3631. /* We use char because int might match the return type of a gcc2
  3632. builtin and then its argument prototype would still apply. */
  3633. char res_init ();
  3634. int
  3635. main ()
  3636. {
  3637. res_init ();
  3638. ;
  3639. return 0;
  3640. }
  3641. _ACEOF
  3642. rm -f conftest.$ac_objext conftest$ac_exeext
  3643. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3644. (eval $ac_link) 2>conftest.er1
  3645. ac_status=$?
  3646. grep -v '^ *+' conftest.er1 >conftest.err
  3647. rm -f conftest.er1
  3648. cat conftest.err >&5
  3649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3650. (exit $ac_status); } &&
  3651. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3653. (eval $ac_try) 2>&5
  3654. ac_status=$?
  3655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3656. (exit $ac_status); }; } &&
  3657. { ac_try='test -s conftest$ac_exeext'
  3658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3659. (eval $ac_try) 2>&5
  3660. ac_status=$?
  3661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3662. (exit $ac_status); }; }; then
  3663. ac_cv_lib_bind_res_init=yes
  3664. else
  3665. echo "$as_me: failed program was:" >&5
  3666. sed 's/^/| /' conftest.$ac_ext >&5
  3667. ac_cv_lib_bind_res_init=no
  3668. fi
  3669. rm -f conftest.err conftest.$ac_objext \
  3670. conftest$ac_exeext conftest.$ac_ext
  3671. LIBS=$ac_check_lib_save_LIBS
  3672. fi
  3673. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3674. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3675. if test $ac_cv_lib_bind_res_init = yes; then
  3676. RESLIB="-lbind"
  3677. else
  3678. dns_reslib_avail="false";
  3679. fi
  3680. fi
  3681. fi
  3682. if test "${dns_reslib_avail}" = false; then
  3683. dns_reslib_avail="true"
  3684. echo "$as_me:$LINENO: checking for __res_init" >&5
  3685. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3686. if test "${ac_cv_func___res_init+set}" = set; then
  3687. echo $ECHO_N "(cached) $ECHO_C" >&6
  3688. else
  3689. cat >conftest.$ac_ext <<_ACEOF
  3690. /* confdefs.h. */
  3691. _ACEOF
  3692. cat confdefs.h >>conftest.$ac_ext
  3693. cat >>conftest.$ac_ext <<_ACEOF
  3694. /* end confdefs.h. */
  3695. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3696. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3697. #define __res_init innocuous___res_init
  3698. /* System header to define __stub macros and hopefully few prototypes,
  3699. which can conflict with char __res_init (); below.
  3700. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3701. <limits.h> exists even on freestanding compilers. */
  3702. #ifdef __STDC__
  3703. # include <limits.h>
  3704. #else
  3705. # include <assert.h>
  3706. #endif
  3707. #undef __res_init
  3708. /* Override any gcc2 internal prototype to avoid an error. */
  3709. #ifdef __cplusplus
  3710. extern "C"
  3711. {
  3712. #endif
  3713. /* We use char because int might match the return type of a gcc2
  3714. builtin and then its argument prototype would still apply. */
  3715. char __res_init ();
  3716. /* The GNU C library defines this for functions which it implements
  3717. to always fail with ENOSYS. Some functions are actually named
  3718. something starting with __ and the normal name is an alias. */
  3719. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3720. choke me
  3721. #else
  3722. char (*f) () = __res_init;
  3723. #endif
  3724. #ifdef __cplusplus
  3725. }
  3726. #endif
  3727. int
  3728. main ()
  3729. {
  3730. return f != __res_init;
  3731. ;
  3732. return 0;
  3733. }
  3734. _ACEOF
  3735. rm -f conftest.$ac_objext conftest$ac_exeext
  3736. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3737. (eval $ac_link) 2>conftest.er1
  3738. ac_status=$?
  3739. grep -v '^ *+' conftest.er1 >conftest.err
  3740. rm -f conftest.er1
  3741. cat conftest.err >&5
  3742. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3743. (exit $ac_status); } &&
  3744. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3745. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3746. (eval $ac_try) 2>&5
  3747. ac_status=$?
  3748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3749. (exit $ac_status); }; } &&
  3750. { ac_try='test -s conftest$ac_exeext'
  3751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3752. (eval $ac_try) 2>&5
  3753. ac_status=$?
  3754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3755. (exit $ac_status); }; }; then
  3756. ac_cv_func___res_init=yes
  3757. else
  3758. echo "$as_me: failed program was:" >&5
  3759. sed 's/^/| /' conftest.$ac_ext >&5
  3760. ac_cv_func___res_init=no
  3761. fi
  3762. rm -f conftest.err conftest.$ac_objext \
  3763. conftest$ac_exeext conftest.$ac_ext
  3764. fi
  3765. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3766. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3767. if test $ac_cv_func___res_init = yes; then
  3768. :
  3769. else
  3770. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3771. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3772. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3773. echo $ECHO_N "(cached) $ECHO_C" >&6
  3774. else
  3775. ac_check_lib_save_LIBS=$LIBS
  3776. LIBS="-lresolv $LIBS"
  3777. cat >conftest.$ac_ext <<_ACEOF
  3778. /* confdefs.h. */
  3779. _ACEOF
  3780. cat confdefs.h >>conftest.$ac_ext
  3781. cat >>conftest.$ac_ext <<_ACEOF
  3782. /* end confdefs.h. */
  3783. /* Override any gcc2 internal prototype to avoid an error. */
  3784. #ifdef __cplusplus
  3785. extern "C"
  3786. #endif
  3787. /* We use char because int might match the return type of a gcc2
  3788. builtin and then its argument prototype would still apply. */
  3789. char __res_init ();
  3790. int
  3791. main ()
  3792. {
  3793. __res_init ();
  3794. ;
  3795. return 0;
  3796. }
  3797. _ACEOF
  3798. rm -f conftest.$ac_objext conftest$ac_exeext
  3799. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3800. (eval $ac_link) 2>conftest.er1
  3801. ac_status=$?
  3802. grep -v '^ *+' conftest.er1 >conftest.err
  3803. rm -f conftest.er1
  3804. cat conftest.err >&5
  3805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3806. (exit $ac_status); } &&
  3807. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3809. (eval $ac_try) 2>&5
  3810. ac_status=$?
  3811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3812. (exit $ac_status); }; } &&
  3813. { ac_try='test -s conftest$ac_exeext'
  3814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3815. (eval $ac_try) 2>&5
  3816. ac_status=$?
  3817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3818. (exit $ac_status); }; }; then
  3819. ac_cv_lib_resolv___res_init=yes
  3820. else
  3821. echo "$as_me: failed program was:" >&5
  3822. sed 's/^/| /' conftest.$ac_ext >&5
  3823. ac_cv_lib_resolv___res_init=no
  3824. fi
  3825. rm -f conftest.err conftest.$ac_objext \
  3826. conftest$ac_exeext conftest.$ac_ext
  3827. LIBS=$ac_check_lib_save_LIBS
  3828. fi
  3829. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3830. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3831. if test $ac_cv_lib_resolv___res_init = yes; then
  3832. RESLIB="-lresolv"
  3833. else
  3834. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3835. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3836. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3837. echo $ECHO_N "(cached) $ECHO_C" >&6
  3838. else
  3839. ac_check_lib_save_LIBS=$LIBS
  3840. LIBS="-lbind $LIBS"
  3841. cat >conftest.$ac_ext <<_ACEOF
  3842. /* confdefs.h. */
  3843. _ACEOF
  3844. cat confdefs.h >>conftest.$ac_ext
  3845. cat >>conftest.$ac_ext <<_ACEOF
  3846. /* end confdefs.h. */
  3847. /* Override any gcc2 internal prototype to avoid an error. */
  3848. #ifdef __cplusplus
  3849. extern "C"
  3850. #endif
  3851. /* We use char because int might match the return type of a gcc2
  3852. builtin and then its argument prototype would still apply. */
  3853. char __res_init ();
  3854. int
  3855. main ()
  3856. {
  3857. __res_init ();
  3858. ;
  3859. return 0;
  3860. }
  3861. _ACEOF
  3862. rm -f conftest.$ac_objext conftest$ac_exeext
  3863. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3864. (eval $ac_link) 2>conftest.er1
  3865. ac_status=$?
  3866. grep -v '^ *+' conftest.er1 >conftest.err
  3867. rm -f conftest.er1
  3868. cat conftest.err >&5
  3869. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3870. (exit $ac_status); } &&
  3871. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3872. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3873. (eval $ac_try) 2>&5
  3874. ac_status=$?
  3875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3876. (exit $ac_status); }; } &&
  3877. { ac_try='test -s conftest$ac_exeext'
  3878. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3879. (eval $ac_try) 2>&5
  3880. ac_status=$?
  3881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3882. (exit $ac_status); }; }; then
  3883. ac_cv_lib_bind___res_init=yes
  3884. else
  3885. echo "$as_me: failed program was:" >&5
  3886. sed 's/^/| /' conftest.$ac_ext >&5
  3887. ac_cv_lib_bind___res_init=no
  3888. fi
  3889. rm -f conftest.err conftest.$ac_objext \
  3890. conftest$ac_exeext conftest.$ac_ext
  3891. LIBS=$ac_check_lib_save_LIBS
  3892. fi
  3893. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3894. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3895. if test $ac_cv_lib_bind___res_init = yes; then
  3896. RESLIB="-lbind"
  3897. else
  3898. dns_reslib_avail="false";
  3899. fi
  3900. fi
  3901. fi
  3902. fi
  3903. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3904. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3905. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3906. echo $ECHO_N "(cached) $ECHO_C" >&6
  3907. else
  3908. cat >conftest.$ac_ext <<_ACEOF
  3909. /* confdefs.h. */
  3910. _ACEOF
  3911. cat confdefs.h >>conftest.$ac_ext
  3912. cat >>conftest.$ac_ext <<_ACEOF
  3913. /* end confdefs.h. */
  3914. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3915. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3916. #define res_mkquery innocuous_res_mkquery
  3917. /* System header to define __stub macros and hopefully few prototypes,
  3918. which can conflict with char res_mkquery (); below.
  3919. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3920. <limits.h> exists even on freestanding compilers. */
  3921. #ifdef __STDC__
  3922. # include <limits.h>
  3923. #else
  3924. # include <assert.h>
  3925. #endif
  3926. #undef res_mkquery
  3927. /* Override any gcc2 internal prototype to avoid an error. */
  3928. #ifdef __cplusplus
  3929. extern "C"
  3930. {
  3931. #endif
  3932. /* We use char because int might match the return type of a gcc2
  3933. builtin and then its argument prototype would still apply. */
  3934. char res_mkquery ();
  3935. /* The GNU C library defines this for functions which it implements
  3936. to always fail with ENOSYS. Some functions are actually named
  3937. something starting with __ and the normal name is an alias. */
  3938. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3939. choke me
  3940. #else
  3941. char (*f) () = res_mkquery;
  3942. #endif
  3943. #ifdef __cplusplus
  3944. }
  3945. #endif
  3946. int
  3947. main ()
  3948. {
  3949. return f != res_mkquery;
  3950. ;
  3951. return 0;
  3952. }
  3953. _ACEOF
  3954. rm -f conftest.$ac_objext conftest$ac_exeext
  3955. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3956. (eval $ac_link) 2>conftest.er1
  3957. ac_status=$?
  3958. grep -v '^ *+' conftest.er1 >conftest.err
  3959. rm -f conftest.er1
  3960. cat conftest.err >&5
  3961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3962. (exit $ac_status); } &&
  3963. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3965. (eval $ac_try) 2>&5
  3966. ac_status=$?
  3967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3968. (exit $ac_status); }; } &&
  3969. { ac_try='test -s conftest$ac_exeext'
  3970. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3971. (eval $ac_try) 2>&5
  3972. ac_status=$?
  3973. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3974. (exit $ac_status); }; }; then
  3975. ac_cv_func_res_mkquery=yes
  3976. else
  3977. echo "$as_me: failed program was:" >&5
  3978. sed 's/^/| /' conftest.$ac_ext >&5
  3979. ac_cv_func_res_mkquery=no
  3980. fi
  3981. rm -f conftest.err conftest.$ac_objext \
  3982. conftest$ac_exeext conftest.$ac_ext
  3983. fi
  3984. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3985. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3986. if test $ac_cv_func_res_mkquery = yes; then
  3987. :
  3988. else
  3989. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3990. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3991. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3992. echo $ECHO_N "(cached) $ECHO_C" >&6
  3993. else
  3994. ac_check_lib_save_LIBS=$LIBS
  3995. LIBS="-lresolv $LIBS"
  3996. cat >conftest.$ac_ext <<_ACEOF
  3997. /* confdefs.h. */
  3998. _ACEOF
  3999. cat confdefs.h >>conftest.$ac_ext
  4000. cat >>conftest.$ac_ext <<_ACEOF
  4001. /* end confdefs.h. */
  4002. /* Override any gcc2 internal prototype to avoid an error. */
  4003. #ifdef __cplusplus
  4004. extern "C"
  4005. #endif
  4006. /* We use char because int might match the return type of a gcc2
  4007. builtin and then its argument prototype would still apply. */
  4008. char res_mkquery ();
  4009. int
  4010. main ()
  4011. {
  4012. res_mkquery ();
  4013. ;
  4014. return 0;
  4015. }
  4016. _ACEOF
  4017. rm -f conftest.$ac_objext conftest$ac_exeext
  4018. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4019. (eval $ac_link) 2>conftest.er1
  4020. ac_status=$?
  4021. grep -v '^ *+' conftest.er1 >conftest.err
  4022. rm -f conftest.er1
  4023. cat conftest.err >&5
  4024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4025. (exit $ac_status); } &&
  4026. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4028. (eval $ac_try) 2>&5
  4029. ac_status=$?
  4030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4031. (exit $ac_status); }; } &&
  4032. { ac_try='test -s conftest$ac_exeext'
  4033. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4034. (eval $ac_try) 2>&5
  4035. ac_status=$?
  4036. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4037. (exit $ac_status); }; }; then
  4038. ac_cv_lib_resolv_res_mkquery=yes
  4039. else
  4040. echo "$as_me: failed program was:" >&5
  4041. sed 's/^/| /' conftest.$ac_ext >&5
  4042. ac_cv_lib_resolv_res_mkquery=no
  4043. fi
  4044. rm -f conftest.err conftest.$ac_objext \
  4045. conftest$ac_exeext conftest.$ac_ext
  4046. LIBS=$ac_check_lib_save_LIBS
  4047. fi
  4048. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  4049. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  4050. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  4051. if test "x${RESLIB}" != "x-lresolv"; then
  4052. RESLIB="${RESLIB} -lresolv"
  4053. fi
  4054. else
  4055. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  4056. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  4057. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  4058. echo $ECHO_N "(cached) $ECHO_C" >&6
  4059. else
  4060. ac_check_lib_save_LIBS=$LIBS
  4061. LIBS="-lbind $LIBS"
  4062. cat >conftest.$ac_ext <<_ACEOF
  4063. /* confdefs.h. */
  4064. _ACEOF
  4065. cat confdefs.h >>conftest.$ac_ext
  4066. cat >>conftest.$ac_ext <<_ACEOF
  4067. /* end confdefs.h. */
  4068. /* Override any gcc2 internal prototype to avoid an error. */
  4069. #ifdef __cplusplus
  4070. extern "C"
  4071. #endif
  4072. /* We use char because int might match the return type of a gcc2
  4073. builtin and then its argument prototype would still apply. */
  4074. char res_mkquery ();
  4075. int
  4076. main ()
  4077. {
  4078. res_mkquery ();
  4079. ;
  4080. return 0;
  4081. }
  4082. _ACEOF
  4083. rm -f conftest.$ac_objext conftest$ac_exeext
  4084. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4085. (eval $ac_link) 2>conftest.er1
  4086. ac_status=$?
  4087. grep -v '^ *+' conftest.er1 >conftest.err
  4088. rm -f conftest.er1
  4089. cat conftest.err >&5
  4090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4091. (exit $ac_status); } &&
  4092. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4093. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4094. (eval $ac_try) 2>&5
  4095. ac_status=$?
  4096. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4097. (exit $ac_status); }; } &&
  4098. { ac_try='test -s conftest$ac_exeext'
  4099. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4100. (eval $ac_try) 2>&5
  4101. ac_status=$?
  4102. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4103. (exit $ac_status); }; }; then
  4104. ac_cv_lib_bind_res_mkquery=yes
  4105. else
  4106. echo "$as_me: failed program was:" >&5
  4107. sed 's/^/| /' conftest.$ac_ext >&5
  4108. ac_cv_lib_bind_res_mkquery=no
  4109. fi
  4110. rm -f conftest.err conftest.$ac_objext \
  4111. conftest$ac_exeext conftest.$ac_ext
  4112. LIBS=$ac_check_lib_save_LIBS
  4113. fi
  4114. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  4115. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  4116. if test $ac_cv_lib_bind_res_mkquery = yes; then
  4117. if test "x${RESLIB}" != "x-lbind"; then
  4118. RESLIB="${RESLIB} -lbind"
  4119. fi
  4120. else
  4121. dns_reslib_avail="false";
  4122. fi
  4123. fi
  4124. fi
  4125. if test "${dns_reslib_avail}" = false; then
  4126. dns_reslib_avail="true"
  4127. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  4128. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  4129. if test "${ac_cv_func___res_mkquery+set}" = set; then
  4130. echo $ECHO_N "(cached) $ECHO_C" >&6
  4131. else
  4132. cat >conftest.$ac_ext <<_ACEOF
  4133. /* confdefs.h. */
  4134. _ACEOF
  4135. cat confdefs.h >>conftest.$ac_ext
  4136. cat >>conftest.$ac_ext <<_ACEOF
  4137. /* end confdefs.h. */
  4138. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  4139. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4140. #define __res_mkquery innocuous___res_mkquery
  4141. /* System header to define __stub macros and hopefully few prototypes,
  4142. which can conflict with char __res_mkquery (); below.
  4143. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4144. <limits.h> exists even on freestanding compilers. */
  4145. #ifdef __STDC__
  4146. # include <limits.h>
  4147. #else
  4148. # include <assert.h>
  4149. #endif
  4150. #undef __res_mkquery
  4151. /* Override any gcc2 internal prototype to avoid an error. */
  4152. #ifdef __cplusplus
  4153. extern "C"
  4154. {
  4155. #endif
  4156. /* We use char because int might match the return type of a gcc2
  4157. builtin and then its argument prototype would still apply. */
  4158. char __res_mkquery ();
  4159. /* The GNU C library defines this for functions which it implements
  4160. to always fail with ENOSYS. Some functions are actually named
  4161. something starting with __ and the normal name is an alias. */
  4162. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  4163. choke me
  4164. #else
  4165. char (*f) () = __res_mkquery;
  4166. #endif
  4167. #ifdef __cplusplus
  4168. }
  4169. #endif
  4170. int
  4171. main ()
  4172. {
  4173. return f != __res_mkquery;
  4174. ;
  4175. return 0;
  4176. }
  4177. _ACEOF
  4178. rm -f conftest.$ac_objext conftest$ac_exeext
  4179. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4180. (eval $ac_link) 2>conftest.er1
  4181. ac_status=$?
  4182. grep -v '^ *+' conftest.er1 >conftest.err
  4183. rm -f conftest.er1
  4184. cat conftest.err >&5
  4185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4186. (exit $ac_status); } &&
  4187. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4189. (eval $ac_try) 2>&5
  4190. ac_status=$?
  4191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4192. (exit $ac_status); }; } &&
  4193. { ac_try='test -s conftest$ac_exeext'
  4194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4195. (eval $ac_try) 2>&5
  4196. ac_status=$?
  4197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4198. (exit $ac_status); }; }; then
  4199. ac_cv_func___res_mkquery=yes
  4200. else
  4201. echo "$as_me: failed program was:" >&5
  4202. sed 's/^/| /' conftest.$ac_ext >&5
  4203. ac_cv_func___res_mkquery=no
  4204. fi
  4205. rm -f conftest.err conftest.$ac_objext \
  4206. conftest$ac_exeext conftest.$ac_ext
  4207. fi
  4208. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  4209. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  4210. if test $ac_cv_func___res_mkquery = yes; then
  4211. :
  4212. else
  4213. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  4214. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  4215. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  4216. echo $ECHO_N "(cached) $ECHO_C" >&6
  4217. else
  4218. ac_check_lib_save_LIBS=$LIBS
  4219. LIBS="-lresolv $LIBS"
  4220. cat >conftest.$ac_ext <<_ACEOF
  4221. /* confdefs.h. */
  4222. _ACEOF
  4223. cat confdefs.h >>conftest.$ac_ext
  4224. cat >>conftest.$ac_ext <<_ACEOF
  4225. /* end confdefs.h. */
  4226. /* Override any gcc2 internal prototype to avoid an error. */
  4227. #ifdef __cplusplus
  4228. extern "C"
  4229. #endif
  4230. /* We use char because int might match the return type of a gcc2
  4231. builtin and then its argument prototype would still apply. */
  4232. char __res_mkquery ();
  4233. int
  4234. main ()
  4235. {
  4236. __res_mkquery ();
  4237. ;
  4238. return 0;
  4239. }
  4240. _ACEOF
  4241. rm -f conftest.$ac_objext conftest$ac_exeext
  4242. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4243. (eval $ac_link) 2>conftest.er1
  4244. ac_status=$?
  4245. grep -v '^ *+' conftest.er1 >conftest.err
  4246. rm -f conftest.er1
  4247. cat conftest.err >&5
  4248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4249. (exit $ac_status); } &&
  4250. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4251. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4252. (eval $ac_try) 2>&5
  4253. ac_status=$?
  4254. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4255. (exit $ac_status); }; } &&
  4256. { ac_try='test -s conftest$ac_exeext'
  4257. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4258. (eval $ac_try) 2>&5
  4259. ac_status=$?
  4260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4261. (exit $ac_status); }; }; then
  4262. ac_cv_lib_resolv___res_mkquery=yes
  4263. else
  4264. echo "$as_me: failed program was:" >&5
  4265. sed 's/^/| /' conftest.$ac_ext >&5
  4266. ac_cv_lib_resolv___res_mkquery=no
  4267. fi
  4268. rm -f conftest.err conftest.$ac_objext \
  4269. conftest$ac_exeext conftest.$ac_ext
  4270. LIBS=$ac_check_lib_save_LIBS
  4271. fi
  4272. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  4273. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  4274. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  4275. if test "x${RESLIB}" != "x-lresolv"; then
  4276. RESLIB="${RESLIB} -lresolv"
  4277. fi
  4278. else
  4279. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  4280. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  4281. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  4282. echo $ECHO_N "(cached) $ECHO_C" >&6
  4283. else
  4284. ac_check_lib_save_LIBS=$LIBS
  4285. LIBS="-lbind $LIBS"
  4286. cat >conftest.$ac_ext <<_ACEOF
  4287. /* confdefs.h. */
  4288. _ACEOF
  4289. cat confdefs.h >>conftest.$ac_ext
  4290. cat >>conftest.$ac_ext <<_ACEOF
  4291. /* end confdefs.h. */
  4292. /* Override any gcc2 internal prototype to avoid an error. */
  4293. #ifdef __cplusplus
  4294. extern "C"
  4295. #endif
  4296. /* We use char because int might match the return type of a gcc2
  4297. builtin and then its argument prototype would still apply. */
  4298. char __res_mkquery ();
  4299. int
  4300. main ()
  4301. {
  4302. __res_mkquery ();
  4303. ;
  4304. return 0;
  4305. }
  4306. _ACEOF
  4307. rm -f conftest.$ac_objext conftest$ac_exeext
  4308. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4309. (eval $ac_link) 2>conftest.er1
  4310. ac_status=$?
  4311. grep -v '^ *+' conftest.er1 >conftest.err
  4312. rm -f conftest.er1
  4313. cat conftest.err >&5
  4314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4315. (exit $ac_status); } &&
  4316. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4317. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4318. (eval $ac_try) 2>&5
  4319. ac_status=$?
  4320. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4321. (exit $ac_status); }; } &&
  4322. { ac_try='test -s conftest$ac_exeext'
  4323. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4324. (eval $ac_try) 2>&5
  4325. ac_status=$?
  4326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4327. (exit $ac_status); }; }; then
  4328. ac_cv_lib_bind___res_mkquery=yes
  4329. else
  4330. echo "$as_me: failed program was:" >&5
  4331. sed 's/^/| /' conftest.$ac_ext >&5
  4332. ac_cv_lib_bind___res_mkquery=no
  4333. fi
  4334. rm -f conftest.err conftest.$ac_objext \
  4335. conftest$ac_exeext conftest.$ac_ext
  4336. LIBS=$ac_check_lib_save_LIBS
  4337. fi
  4338. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4339. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4340. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4341. if test "x${RESLIB}" != "x-lbind"; then
  4342. RESLIB="${RESLIB} -lbind"
  4343. fi
  4344. else
  4345. dns_reslib_avail="false";
  4346. fi
  4347. fi
  4348. fi
  4349. fi
  4350. if test "${dns_reslib_avail}" = false; then
  4351. if test "$ac_cv_cygwin" = "yes"; then
  4352. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4353. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4354. if test -r /usr/local/bind/lib/libbind.a; then
  4355. echo "$as_me:$LINENO: result: yes" >&5
  4356. echo "${ECHO_T}yes" >&6
  4357. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4358. RESINCLUDE="-I/usr/local/bind/include"
  4359. dns_reslib_avail="true"
  4360. else
  4361. echo "$as_me:$LINENO: result: no" >&5
  4362. echo "${ECHO_T}no" >&6
  4363. fi
  4364. fi
  4365. fi
  4366. if test "${dns_reslib_avail}" = false; then
  4367. cat >&2 <<EOF
  4368. configure: warning:
  4369. Your system provides no functional resolver library.
  4370. One is required for buld.
  4371. EOF
  4372. exit 1
  4373. fi
  4374. # Check for IPv6 support
  4375. #EGG_IPV6_SUPPORTED
  4376. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4377. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  4378. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4379. if test "${enable_ipv6+set}" = set; then
  4380. enableval="$enable_ipv6"
  4381. ac_cv_dipv6="yes"
  4382. echo "$as_me:$LINENO: result: yes" >&5
  4383. echo "${ECHO_T}yes" >&6
  4384. else
  4385. ac_cv_dipv6="no"
  4386. if test "$egg_cv_ipv6_supported" = "no"; then
  4387. ac_cv_dipv6="no"
  4388. fi
  4389. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4390. echo "${ECHO_T}$ac_cv_dipv6" >&6
  4391. fi;
  4392. if ! test "$EGG_CYGWIN" = "yes"; then
  4393. if test "$ac_cv_dipv6" = "no"; then
  4394. cat >>confdefs.h <<\_ACEOF
  4395. #define USE_IPV6 1
  4396. _ACEOF
  4397. fi
  4398. fi
  4399. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4400. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4401. if test "${egg_cv_socklen_t+set}" = set; then
  4402. echo $ECHO_N "(cached) $ECHO_C" >&6
  4403. else
  4404. if test "$cross_compiling" = yes; then
  4405. egg_cv_socklen_t=no
  4406. else
  4407. cat >conftest.$ac_ext <<_ACEOF
  4408. /* confdefs.h. */
  4409. _ACEOF
  4410. cat confdefs.h >>conftest.$ac_ext
  4411. cat >>conftest.$ac_ext <<_ACEOF
  4412. /* end confdefs.h. */
  4413. #include <unistd.h>
  4414. #include <sys/types.h>
  4415. #include <sys/socket.h>
  4416. #include <netinet/in.h>
  4417. #include <arpa/inet.h>
  4418. int main()
  4419. {
  4420. socklen_t test = sizeof(int);
  4421. return 0;
  4422. }
  4423. _ACEOF
  4424. rm -f conftest$ac_exeext
  4425. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4426. (eval $ac_link) 2>&5
  4427. ac_status=$?
  4428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4429. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4430. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4431. (eval $ac_try) 2>&5
  4432. ac_status=$?
  4433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4434. (exit $ac_status); }; }; then
  4435. egg_cv_socklen_t=yes
  4436. else
  4437. echo "$as_me: program exited with status $ac_status" >&5
  4438. echo "$as_me: failed program was:" >&5
  4439. sed 's/^/| /' conftest.$ac_ext >&5
  4440. ( exit $ac_status )
  4441. egg_cv_socklen_t=no
  4442. fi
  4443. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4444. fi
  4445. fi
  4446. if test "$egg_cv_socklen_t" = "yes"; then
  4447. cat >>confdefs.h <<\_ACEOF
  4448. #define HAVE_SOCKLEN_T 1
  4449. _ACEOF
  4450. echo "$as_me:$LINENO: result: yes" >&5
  4451. echo "${ECHO_T}yes" >&6
  4452. else
  4453. echo "$as_me:$LINENO: result: no" >&5
  4454. echo "${ECHO_T}no" >&6
  4455. fi
  4456. #checkpoint
  4457. cat >confcache <<\_ACEOF
  4458. # This file is a shell script that caches the results of configure
  4459. # tests run on this system so they can be shared between configure
  4460. # scripts and configure runs, see configure's option --config-cache.
  4461. # It is not useful on other systems. If it contains results you don't
  4462. # want to keep, you may remove or edit it.
  4463. #
  4464. # config.status only pays attention to the cache file if you give it
  4465. # the --recheck option to rerun configure.
  4466. #
  4467. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4468. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4469. # following values.
  4470. _ACEOF
  4471. # The following way of writing the cache mishandles newlines in values,
  4472. # but we know of no workaround that is simple, portable, and efficient.
  4473. # So, don't put newlines in cache variables' values.
  4474. # Ultrix sh set writes to stderr and can't be redirected directly,
  4475. # and sets the high bit in the cache file unless we assign to the vars.
  4476. {
  4477. (set) 2>&1 |
  4478. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4479. *ac_space=\ *)
  4480. # `set' does not quote correctly, so add quotes (double-quote
  4481. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4482. sed -n \
  4483. "s/'/'\\\\''/g;
  4484. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4485. ;;
  4486. *)
  4487. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4488. sed -n \
  4489. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4490. ;;
  4491. esac;
  4492. } |
  4493. sed '
  4494. t clear
  4495. : clear
  4496. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4497. t end
  4498. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4499. : end' >>confcache
  4500. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4501. if test -w $cache_file; then
  4502. test "x$cache_file" != "x/dev/null"
  4503. cat confcache >$cache_file
  4504. else
  4505. echo "not updating unwritable cache $cache_file"
  4506. fi
  4507. fi
  4508. rm -f confcache
  4509. # Checks for system libraries
  4510. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4511. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4512. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4513. echo $ECHO_N "(cached) $ECHO_C" >&6
  4514. else
  4515. ac_check_lib_save_LIBS=$LIBS
  4516. LIBS="-lsocket $LIBS"
  4517. cat >conftest.$ac_ext <<_ACEOF
  4518. /* confdefs.h. */
  4519. _ACEOF
  4520. cat confdefs.h >>conftest.$ac_ext
  4521. cat >>conftest.$ac_ext <<_ACEOF
  4522. /* end confdefs.h. */
  4523. /* Override any gcc2 internal prototype to avoid an error. */
  4524. #ifdef __cplusplus
  4525. extern "C"
  4526. #endif
  4527. /* We use char because int might match the return type of a gcc2
  4528. builtin and then its argument prototype would still apply. */
  4529. char socket ();
  4530. int
  4531. main ()
  4532. {
  4533. socket ();
  4534. ;
  4535. return 0;
  4536. }
  4537. _ACEOF
  4538. rm -f conftest.$ac_objext conftest$ac_exeext
  4539. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4540. (eval $ac_link) 2>conftest.er1
  4541. ac_status=$?
  4542. grep -v '^ *+' conftest.er1 >conftest.err
  4543. rm -f conftest.er1
  4544. cat conftest.err >&5
  4545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4546. (exit $ac_status); } &&
  4547. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4549. (eval $ac_try) 2>&5
  4550. ac_status=$?
  4551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4552. (exit $ac_status); }; } &&
  4553. { ac_try='test -s conftest$ac_exeext'
  4554. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4555. (eval $ac_try) 2>&5
  4556. ac_status=$?
  4557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4558. (exit $ac_status); }; }; then
  4559. ac_cv_lib_socket_socket=yes
  4560. else
  4561. echo "$as_me: failed program was:" >&5
  4562. sed 's/^/| /' conftest.$ac_ext >&5
  4563. ac_cv_lib_socket_socket=no
  4564. fi
  4565. rm -f conftest.err conftest.$ac_objext \
  4566. conftest$ac_exeext conftest.$ac_ext
  4567. LIBS=$ac_check_lib_save_LIBS
  4568. fi
  4569. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4570. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4571. if test $ac_cv_lib_socket_socket = yes; then
  4572. cat >>confdefs.h <<_ACEOF
  4573. #define HAVE_LIBSOCKET 1
  4574. _ACEOF
  4575. LIBS="-lsocket $LIBS"
  4576. fi
  4577. # AC_CHECK_LIB(nsl, connect)
  4578. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4579. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4580. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4581. echo $ECHO_N "(cached) $ECHO_C" >&6
  4582. else
  4583. ac_check_lib_save_LIBS=$LIBS
  4584. LIBS="-ldns $LIBS"
  4585. cat >conftest.$ac_ext <<_ACEOF
  4586. /* confdefs.h. */
  4587. _ACEOF
  4588. cat confdefs.h >>conftest.$ac_ext
  4589. cat >>conftest.$ac_ext <<_ACEOF
  4590. /* end confdefs.h. */
  4591. /* Override any gcc2 internal prototype to avoid an error. */
  4592. #ifdef __cplusplus
  4593. extern "C"
  4594. #endif
  4595. /* We use char because int might match the return type of a gcc2
  4596. builtin and then its argument prototype would still apply. */
  4597. char gethostbyname ();
  4598. int
  4599. main ()
  4600. {
  4601. gethostbyname ();
  4602. ;
  4603. return 0;
  4604. }
  4605. _ACEOF
  4606. rm -f conftest.$ac_objext conftest$ac_exeext
  4607. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4608. (eval $ac_link) 2>conftest.er1
  4609. ac_status=$?
  4610. grep -v '^ *+' conftest.er1 >conftest.err
  4611. rm -f conftest.er1
  4612. cat conftest.err >&5
  4613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4614. (exit $ac_status); } &&
  4615. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4616. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4617. (eval $ac_try) 2>&5
  4618. ac_status=$?
  4619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4620. (exit $ac_status); }; } &&
  4621. { ac_try='test -s conftest$ac_exeext'
  4622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4623. (eval $ac_try) 2>&5
  4624. ac_status=$?
  4625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4626. (exit $ac_status); }; }; then
  4627. ac_cv_lib_dns_gethostbyname=yes
  4628. else
  4629. echo "$as_me: failed program was:" >&5
  4630. sed 's/^/| /' conftest.$ac_ext >&5
  4631. ac_cv_lib_dns_gethostbyname=no
  4632. fi
  4633. rm -f conftest.err conftest.$ac_objext \
  4634. conftest$ac_exeext conftest.$ac_ext
  4635. LIBS=$ac_check_lib_save_LIBS
  4636. fi
  4637. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4638. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4639. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4640. cat >>confdefs.h <<_ACEOF
  4641. #define HAVE_LIBDNS 1
  4642. _ACEOF
  4643. LIBS="-ldns $LIBS"
  4644. fi
  4645. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4646. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4647. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4648. # This is needed for Tcl libraries compiled with thread support
  4649. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4650. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4651. # ac_cv_lib_pthread="-lpthread"], [dnl
  4652. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4653. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4654. # ac_cv_lib_pthread="-lpthread"], [dnl
  4655. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4656. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4657. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4658. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4659. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4660. # ac_cv_lib_pthread=""],
  4661. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4662. # Checks for header files
  4663. ac_header_dirent=no
  4664. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4665. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4666. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4667. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4668. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4669. echo $ECHO_N "(cached) $ECHO_C" >&6
  4670. else
  4671. cat >conftest.$ac_ext <<_ACEOF
  4672. /* confdefs.h. */
  4673. _ACEOF
  4674. cat confdefs.h >>conftest.$ac_ext
  4675. cat >>conftest.$ac_ext <<_ACEOF
  4676. /* end confdefs.h. */
  4677. #include <sys/types.h>
  4678. #include <$ac_hdr>
  4679. int
  4680. main ()
  4681. {
  4682. if ((DIR *) 0)
  4683. return 0;
  4684. ;
  4685. return 0;
  4686. }
  4687. _ACEOF
  4688. rm -f conftest.$ac_objext
  4689. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4690. (eval $ac_compile) 2>conftest.er1
  4691. ac_status=$?
  4692. grep -v '^ *+' conftest.er1 >conftest.err
  4693. rm -f conftest.er1
  4694. cat conftest.err >&5
  4695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4696. (exit $ac_status); } &&
  4697. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4699. (eval $ac_try) 2>&5
  4700. ac_status=$?
  4701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4702. (exit $ac_status); }; } &&
  4703. { ac_try='test -s conftest.$ac_objext'
  4704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4705. (eval $ac_try) 2>&5
  4706. ac_status=$?
  4707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4708. (exit $ac_status); }; }; then
  4709. eval "$as_ac_Header=yes"
  4710. else
  4711. echo "$as_me: failed program was:" >&5
  4712. sed 's/^/| /' conftest.$ac_ext >&5
  4713. eval "$as_ac_Header=no"
  4714. fi
  4715. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4716. fi
  4717. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4718. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4719. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4720. cat >>confdefs.h <<_ACEOF
  4721. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4722. _ACEOF
  4723. ac_header_dirent=$ac_hdr; break
  4724. fi
  4725. done
  4726. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4727. if test $ac_header_dirent = dirent.h; then
  4728. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4729. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4730. if test "${ac_cv_search_opendir+set}" = set; then
  4731. echo $ECHO_N "(cached) $ECHO_C" >&6
  4732. else
  4733. ac_func_search_save_LIBS=$LIBS
  4734. ac_cv_search_opendir=no
  4735. cat >conftest.$ac_ext <<_ACEOF
  4736. /* confdefs.h. */
  4737. _ACEOF
  4738. cat confdefs.h >>conftest.$ac_ext
  4739. cat >>conftest.$ac_ext <<_ACEOF
  4740. /* end confdefs.h. */
  4741. /* Override any gcc2 internal prototype to avoid an error. */
  4742. #ifdef __cplusplus
  4743. extern "C"
  4744. #endif
  4745. /* We use char because int might match the return type of a gcc2
  4746. builtin and then its argument prototype would still apply. */
  4747. char opendir ();
  4748. int
  4749. main ()
  4750. {
  4751. opendir ();
  4752. ;
  4753. return 0;
  4754. }
  4755. _ACEOF
  4756. rm -f conftest.$ac_objext conftest$ac_exeext
  4757. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4758. (eval $ac_link) 2>conftest.er1
  4759. ac_status=$?
  4760. grep -v '^ *+' conftest.er1 >conftest.err
  4761. rm -f conftest.er1
  4762. cat conftest.err >&5
  4763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4764. (exit $ac_status); } &&
  4765. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4767. (eval $ac_try) 2>&5
  4768. ac_status=$?
  4769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4770. (exit $ac_status); }; } &&
  4771. { ac_try='test -s conftest$ac_exeext'
  4772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4773. (eval $ac_try) 2>&5
  4774. ac_status=$?
  4775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4776. (exit $ac_status); }; }; then
  4777. ac_cv_search_opendir="none required"
  4778. else
  4779. echo "$as_me: failed program was:" >&5
  4780. sed 's/^/| /' conftest.$ac_ext >&5
  4781. fi
  4782. rm -f conftest.err conftest.$ac_objext \
  4783. conftest$ac_exeext conftest.$ac_ext
  4784. if test "$ac_cv_search_opendir" = no; then
  4785. for ac_lib in dir; do
  4786. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4787. cat >conftest.$ac_ext <<_ACEOF
  4788. /* confdefs.h. */
  4789. _ACEOF
  4790. cat confdefs.h >>conftest.$ac_ext
  4791. cat >>conftest.$ac_ext <<_ACEOF
  4792. /* end confdefs.h. */
  4793. /* Override any gcc2 internal prototype to avoid an error. */
  4794. #ifdef __cplusplus
  4795. extern "C"
  4796. #endif
  4797. /* We use char because int might match the return type of a gcc2
  4798. builtin and then its argument prototype would still apply. */
  4799. char opendir ();
  4800. int
  4801. main ()
  4802. {
  4803. opendir ();
  4804. ;
  4805. return 0;
  4806. }
  4807. _ACEOF
  4808. rm -f conftest.$ac_objext conftest$ac_exeext
  4809. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4810. (eval $ac_link) 2>conftest.er1
  4811. ac_status=$?
  4812. grep -v '^ *+' conftest.er1 >conftest.err
  4813. rm -f conftest.er1
  4814. cat conftest.err >&5
  4815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4816. (exit $ac_status); } &&
  4817. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4818. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4819. (eval $ac_try) 2>&5
  4820. ac_status=$?
  4821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4822. (exit $ac_status); }; } &&
  4823. { ac_try='test -s conftest$ac_exeext'
  4824. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4825. (eval $ac_try) 2>&5
  4826. ac_status=$?
  4827. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4828. (exit $ac_status); }; }; then
  4829. ac_cv_search_opendir="-l$ac_lib"
  4830. break
  4831. else
  4832. echo "$as_me: failed program was:" >&5
  4833. sed 's/^/| /' conftest.$ac_ext >&5
  4834. fi
  4835. rm -f conftest.err conftest.$ac_objext \
  4836. conftest$ac_exeext conftest.$ac_ext
  4837. done
  4838. fi
  4839. LIBS=$ac_func_search_save_LIBS
  4840. fi
  4841. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4842. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4843. if test "$ac_cv_search_opendir" != no; then
  4844. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4845. fi
  4846. else
  4847. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4848. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4849. if test "${ac_cv_search_opendir+set}" = set; then
  4850. echo $ECHO_N "(cached) $ECHO_C" >&6
  4851. else
  4852. ac_func_search_save_LIBS=$LIBS
  4853. ac_cv_search_opendir=no
  4854. cat >conftest.$ac_ext <<_ACEOF
  4855. /* confdefs.h. */
  4856. _ACEOF
  4857. cat confdefs.h >>conftest.$ac_ext
  4858. cat >>conftest.$ac_ext <<_ACEOF
  4859. /* end confdefs.h. */
  4860. /* Override any gcc2 internal prototype to avoid an error. */
  4861. #ifdef __cplusplus
  4862. extern "C"
  4863. #endif
  4864. /* We use char because int might match the return type of a gcc2
  4865. builtin and then its argument prototype would still apply. */
  4866. char opendir ();
  4867. int
  4868. main ()
  4869. {
  4870. opendir ();
  4871. ;
  4872. return 0;
  4873. }
  4874. _ACEOF
  4875. rm -f conftest.$ac_objext conftest$ac_exeext
  4876. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4877. (eval $ac_link) 2>conftest.er1
  4878. ac_status=$?
  4879. grep -v '^ *+' conftest.er1 >conftest.err
  4880. rm -f conftest.er1
  4881. cat conftest.err >&5
  4882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4883. (exit $ac_status); } &&
  4884. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4886. (eval $ac_try) 2>&5
  4887. ac_status=$?
  4888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4889. (exit $ac_status); }; } &&
  4890. { ac_try='test -s conftest$ac_exeext'
  4891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4892. (eval $ac_try) 2>&5
  4893. ac_status=$?
  4894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4895. (exit $ac_status); }; }; then
  4896. ac_cv_search_opendir="none required"
  4897. else
  4898. echo "$as_me: failed program was:" >&5
  4899. sed 's/^/| /' conftest.$ac_ext >&5
  4900. fi
  4901. rm -f conftest.err conftest.$ac_objext \
  4902. conftest$ac_exeext conftest.$ac_ext
  4903. if test "$ac_cv_search_opendir" = no; then
  4904. for ac_lib in x; do
  4905. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4906. cat >conftest.$ac_ext <<_ACEOF
  4907. /* confdefs.h. */
  4908. _ACEOF
  4909. cat confdefs.h >>conftest.$ac_ext
  4910. cat >>conftest.$ac_ext <<_ACEOF
  4911. /* end confdefs.h. */
  4912. /* Override any gcc2 internal prototype to avoid an error. */
  4913. #ifdef __cplusplus
  4914. extern "C"
  4915. #endif
  4916. /* We use char because int might match the return type of a gcc2
  4917. builtin and then its argument prototype would still apply. */
  4918. char opendir ();
  4919. int
  4920. main ()
  4921. {
  4922. opendir ();
  4923. ;
  4924. return 0;
  4925. }
  4926. _ACEOF
  4927. rm -f conftest.$ac_objext conftest$ac_exeext
  4928. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4929. (eval $ac_link) 2>conftest.er1
  4930. ac_status=$?
  4931. grep -v '^ *+' conftest.er1 >conftest.err
  4932. rm -f conftest.er1
  4933. cat conftest.err >&5
  4934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4935. (exit $ac_status); } &&
  4936. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4938. (eval $ac_try) 2>&5
  4939. ac_status=$?
  4940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4941. (exit $ac_status); }; } &&
  4942. { ac_try='test -s conftest$ac_exeext'
  4943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4944. (eval $ac_try) 2>&5
  4945. ac_status=$?
  4946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4947. (exit $ac_status); }; }; then
  4948. ac_cv_search_opendir="-l$ac_lib"
  4949. break
  4950. else
  4951. echo "$as_me: failed program was:" >&5
  4952. sed 's/^/| /' conftest.$ac_ext >&5
  4953. fi
  4954. rm -f conftest.err conftest.$ac_objext \
  4955. conftest$ac_exeext conftest.$ac_ext
  4956. done
  4957. fi
  4958. LIBS=$ac_func_search_save_LIBS
  4959. fi
  4960. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4961. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4962. if test "$ac_cv_search_opendir" != no; then
  4963. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4964. fi
  4965. fi
  4966. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4967. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4968. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4969. echo $ECHO_N "(cached) $ECHO_C" >&6
  4970. else
  4971. cat >conftest.$ac_ext <<_ACEOF
  4972. /* confdefs.h. */
  4973. _ACEOF
  4974. cat confdefs.h >>conftest.$ac_ext
  4975. cat >>conftest.$ac_ext <<_ACEOF
  4976. /* end confdefs.h. */
  4977. #include <sys/types.h>
  4978. #include <sys/wait.h>
  4979. #ifndef WEXITSTATUS
  4980. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4981. #endif
  4982. #ifndef WIFEXITED
  4983. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4984. #endif
  4985. int
  4986. main ()
  4987. {
  4988. int s;
  4989. wait (&s);
  4990. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4991. ;
  4992. return 0;
  4993. }
  4994. _ACEOF
  4995. rm -f conftest.$ac_objext
  4996. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4997. (eval $ac_compile) 2>conftest.er1
  4998. ac_status=$?
  4999. grep -v '^ *+' conftest.er1 >conftest.err
  5000. rm -f conftest.er1
  5001. cat conftest.err >&5
  5002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5003. (exit $ac_status); } &&
  5004. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5006. (eval $ac_try) 2>&5
  5007. ac_status=$?
  5008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5009. (exit $ac_status); }; } &&
  5010. { ac_try='test -s conftest.$ac_objext'
  5011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5012. (eval $ac_try) 2>&5
  5013. ac_status=$?
  5014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5015. (exit $ac_status); }; }; then
  5016. ac_cv_header_sys_wait_h=yes
  5017. else
  5018. echo "$as_me: failed program was:" >&5
  5019. sed 's/^/| /' conftest.$ac_ext >&5
  5020. ac_cv_header_sys_wait_h=no
  5021. fi
  5022. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5023. fi
  5024. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  5025. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  5026. if test $ac_cv_header_sys_wait_h = yes; then
  5027. cat >>confdefs.h <<\_ACEOF
  5028. #define HAVE_SYS_WAIT_H 1
  5029. _ACEOF
  5030. fi
  5031. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  5032. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  5033. if test "${ac_cv_header_time+set}" = set; then
  5034. echo $ECHO_N "(cached) $ECHO_C" >&6
  5035. else
  5036. cat >conftest.$ac_ext <<_ACEOF
  5037. /* confdefs.h. */
  5038. _ACEOF
  5039. cat confdefs.h >>conftest.$ac_ext
  5040. cat >>conftest.$ac_ext <<_ACEOF
  5041. /* end confdefs.h. */
  5042. #include <sys/types.h>
  5043. #include <sys/time.h>
  5044. #include <time.h>
  5045. int
  5046. main ()
  5047. {
  5048. if ((struct tm *) 0)
  5049. return 0;
  5050. ;
  5051. return 0;
  5052. }
  5053. _ACEOF
  5054. rm -f conftest.$ac_objext
  5055. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5056. (eval $ac_compile) 2>conftest.er1
  5057. ac_status=$?
  5058. grep -v '^ *+' conftest.er1 >conftest.err
  5059. rm -f conftest.er1
  5060. cat conftest.err >&5
  5061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5062. (exit $ac_status); } &&
  5063. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5064. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5065. (eval $ac_try) 2>&5
  5066. ac_status=$?
  5067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5068. (exit $ac_status); }; } &&
  5069. { ac_try='test -s conftest.$ac_objext'
  5070. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5071. (eval $ac_try) 2>&5
  5072. ac_status=$?
  5073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5074. (exit $ac_status); }; }; then
  5075. ac_cv_header_time=yes
  5076. else
  5077. echo "$as_me: failed program was:" >&5
  5078. sed 's/^/| /' conftest.$ac_ext >&5
  5079. ac_cv_header_time=no
  5080. fi
  5081. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5082. fi
  5083. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  5084. echo "${ECHO_T}$ac_cv_header_time" >&6
  5085. if test $ac_cv_header_time = yes; then
  5086. cat >>confdefs.h <<\_ACEOF
  5087. #define TIME_WITH_SYS_TIME 1
  5088. _ACEOF
  5089. fi
  5090. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  5091. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  5092. if test "${ac_cv_header_stat_broken+set}" = set; then
  5093. echo $ECHO_N "(cached) $ECHO_C" >&6
  5094. else
  5095. cat >conftest.$ac_ext <<_ACEOF
  5096. /* confdefs.h. */
  5097. _ACEOF
  5098. cat confdefs.h >>conftest.$ac_ext
  5099. cat >>conftest.$ac_ext <<_ACEOF
  5100. /* end confdefs.h. */
  5101. #include <sys/types.h>
  5102. #include <sys/stat.h>
  5103. #if defined(S_ISBLK) && defined(S_IFDIR)
  5104. # if S_ISBLK (S_IFDIR)
  5105. You lose.
  5106. # endif
  5107. #endif
  5108. #if defined(S_ISBLK) && defined(S_IFCHR)
  5109. # if S_ISBLK (S_IFCHR)
  5110. You lose.
  5111. # endif
  5112. #endif
  5113. #if defined(S_ISLNK) && defined(S_IFREG)
  5114. # if S_ISLNK (S_IFREG)
  5115. You lose.
  5116. # endif
  5117. #endif
  5118. #if defined(S_ISSOCK) && defined(S_IFREG)
  5119. # if S_ISSOCK (S_IFREG)
  5120. You lose.
  5121. # endif
  5122. #endif
  5123. _ACEOF
  5124. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5125. $EGREP "You lose" >/dev/null 2>&1; then
  5126. ac_cv_header_stat_broken=yes
  5127. else
  5128. ac_cv_header_stat_broken=no
  5129. fi
  5130. rm -f conftest*
  5131. fi
  5132. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  5133. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  5134. if test $ac_cv_header_stat_broken = yes; then
  5135. cat >>confdefs.h <<\_ACEOF
  5136. #define STAT_MACROS_BROKEN 1
  5137. _ACEOF
  5138. fi
  5139. #checkpoint
  5140. cat >confcache <<\_ACEOF
  5141. # This file is a shell script that caches the results of configure
  5142. # tests run on this system so they can be shared between configure
  5143. # scripts and configure runs, see configure's option --config-cache.
  5144. # It is not useful on other systems. If it contains results you don't
  5145. # want to keep, you may remove or edit it.
  5146. #
  5147. # config.status only pays attention to the cache file if you give it
  5148. # the --recheck option to rerun configure.
  5149. #
  5150. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5151. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5152. # following values.
  5153. _ACEOF
  5154. # The following way of writing the cache mishandles newlines in values,
  5155. # but we know of no workaround that is simple, portable, and efficient.
  5156. # So, don't put newlines in cache variables' values.
  5157. # Ultrix sh set writes to stderr and can't be redirected directly,
  5158. # and sets the high bit in the cache file unless we assign to the vars.
  5159. {
  5160. (set) 2>&1 |
  5161. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5162. *ac_space=\ *)
  5163. # `set' does not quote correctly, so add quotes (double-quote
  5164. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5165. sed -n \
  5166. "s/'/'\\\\''/g;
  5167. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5168. ;;
  5169. *)
  5170. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5171. sed -n \
  5172. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5173. ;;
  5174. esac;
  5175. } |
  5176. sed '
  5177. t clear
  5178. : clear
  5179. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5180. t end
  5181. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5182. : end' >>confcache
  5183. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5184. if test -w $cache_file; then
  5185. test "x$cache_file" != "x/dev/null"
  5186. cat confcache >$cache_file
  5187. else
  5188. echo "not updating unwritable cache $cache_file"
  5189. fi
  5190. fi
  5191. rm -f confcache
  5192. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  5193. do
  5194. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5195. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5196. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5197. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5198. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5199. echo $ECHO_N "(cached) $ECHO_C" >&6
  5200. fi
  5201. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5202. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5203. else
  5204. # Is the header compilable?
  5205. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5206. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5207. cat >conftest.$ac_ext <<_ACEOF
  5208. /* confdefs.h. */
  5209. _ACEOF
  5210. cat confdefs.h >>conftest.$ac_ext
  5211. cat >>conftest.$ac_ext <<_ACEOF
  5212. /* end confdefs.h. */
  5213. $ac_includes_default
  5214. #include <$ac_header>
  5215. _ACEOF
  5216. rm -f conftest.$ac_objext
  5217. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5218. (eval $ac_compile) 2>conftest.er1
  5219. ac_status=$?
  5220. grep -v '^ *+' conftest.er1 >conftest.err
  5221. rm -f conftest.er1
  5222. cat conftest.err >&5
  5223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5224. (exit $ac_status); } &&
  5225. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5227. (eval $ac_try) 2>&5
  5228. ac_status=$?
  5229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5230. (exit $ac_status); }; } &&
  5231. { ac_try='test -s conftest.$ac_objext'
  5232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5233. (eval $ac_try) 2>&5
  5234. ac_status=$?
  5235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5236. (exit $ac_status); }; }; then
  5237. ac_header_compiler=yes
  5238. else
  5239. echo "$as_me: failed program was:" >&5
  5240. sed 's/^/| /' conftest.$ac_ext >&5
  5241. ac_header_compiler=no
  5242. fi
  5243. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5244. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5245. echo "${ECHO_T}$ac_header_compiler" >&6
  5246. # Is the header present?
  5247. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5248. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5249. cat >conftest.$ac_ext <<_ACEOF
  5250. /* confdefs.h. */
  5251. _ACEOF
  5252. cat confdefs.h >>conftest.$ac_ext
  5253. cat >>conftest.$ac_ext <<_ACEOF
  5254. /* end confdefs.h. */
  5255. #include <$ac_header>
  5256. _ACEOF
  5257. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5258. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5259. ac_status=$?
  5260. grep -v '^ *+' conftest.er1 >conftest.err
  5261. rm -f conftest.er1
  5262. cat conftest.err >&5
  5263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5264. (exit $ac_status); } >/dev/null; then
  5265. if test -s conftest.err; then
  5266. ac_cpp_err=$ac_c_preproc_warn_flag
  5267. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5268. else
  5269. ac_cpp_err=
  5270. fi
  5271. else
  5272. ac_cpp_err=yes
  5273. fi
  5274. if test -z "$ac_cpp_err"; then
  5275. ac_header_preproc=yes
  5276. else
  5277. echo "$as_me: failed program was:" >&5
  5278. sed 's/^/| /' conftest.$ac_ext >&5
  5279. ac_header_preproc=no
  5280. fi
  5281. rm -f conftest.err conftest.$ac_ext
  5282. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5283. echo "${ECHO_T}$ac_header_preproc" >&6
  5284. # So? What about this header?
  5285. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5286. yes:no: )
  5287. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5288. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5289. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5290. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5291. ac_header_preproc=yes
  5292. ;;
  5293. no:yes:* )
  5294. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5295. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5296. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5297. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5298. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5299. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5300. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5301. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5302. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5303. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5304. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5305. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5306. (
  5307. cat <<\_ASBOX
  5308. ## ------------------------------------------ ##
  5309. ## Report this to the AC_PACKAGE_NAME lists. ##
  5310. ## ------------------------------------------ ##
  5311. _ASBOX
  5312. ) |
  5313. sed "s/^/$as_me: WARNING: /" >&2
  5314. ;;
  5315. esac
  5316. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5317. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5318. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5319. echo $ECHO_N "(cached) $ECHO_C" >&6
  5320. else
  5321. eval "$as_ac_Header=\$ac_header_preproc"
  5322. fi
  5323. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5324. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5325. fi
  5326. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5327. cat >>confdefs.h <<_ACEOF
  5328. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5329. _ACEOF
  5330. fi
  5331. done
  5332. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5333. do
  5334. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5335. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5336. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5337. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5338. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5339. echo $ECHO_N "(cached) $ECHO_C" >&6
  5340. fi
  5341. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5342. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5343. else
  5344. # Is the header compilable?
  5345. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5346. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5347. cat >conftest.$ac_ext <<_ACEOF
  5348. /* confdefs.h. */
  5349. _ACEOF
  5350. cat confdefs.h >>conftest.$ac_ext
  5351. cat >>conftest.$ac_ext <<_ACEOF
  5352. /* end confdefs.h. */
  5353. $ac_includes_default
  5354. #include <$ac_header>
  5355. _ACEOF
  5356. rm -f conftest.$ac_objext
  5357. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5358. (eval $ac_compile) 2>conftest.er1
  5359. ac_status=$?
  5360. grep -v '^ *+' conftest.er1 >conftest.err
  5361. rm -f conftest.er1
  5362. cat conftest.err >&5
  5363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5364. (exit $ac_status); } &&
  5365. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5367. (eval $ac_try) 2>&5
  5368. ac_status=$?
  5369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5370. (exit $ac_status); }; } &&
  5371. { ac_try='test -s conftest.$ac_objext'
  5372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5373. (eval $ac_try) 2>&5
  5374. ac_status=$?
  5375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5376. (exit $ac_status); }; }; then
  5377. ac_header_compiler=yes
  5378. else
  5379. echo "$as_me: failed program was:" >&5
  5380. sed 's/^/| /' conftest.$ac_ext >&5
  5381. ac_header_compiler=no
  5382. fi
  5383. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5384. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5385. echo "${ECHO_T}$ac_header_compiler" >&6
  5386. # Is the header present?
  5387. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5388. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5389. cat >conftest.$ac_ext <<_ACEOF
  5390. /* confdefs.h. */
  5391. _ACEOF
  5392. cat confdefs.h >>conftest.$ac_ext
  5393. cat >>conftest.$ac_ext <<_ACEOF
  5394. /* end confdefs.h. */
  5395. #include <$ac_header>
  5396. _ACEOF
  5397. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5398. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5399. ac_status=$?
  5400. grep -v '^ *+' conftest.er1 >conftest.err
  5401. rm -f conftest.er1
  5402. cat conftest.err >&5
  5403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5404. (exit $ac_status); } >/dev/null; then
  5405. if test -s conftest.err; then
  5406. ac_cpp_err=$ac_c_preproc_warn_flag
  5407. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5408. else
  5409. ac_cpp_err=
  5410. fi
  5411. else
  5412. ac_cpp_err=yes
  5413. fi
  5414. if test -z "$ac_cpp_err"; then
  5415. ac_header_preproc=yes
  5416. else
  5417. echo "$as_me: failed program was:" >&5
  5418. sed 's/^/| /' conftest.$ac_ext >&5
  5419. ac_header_preproc=no
  5420. fi
  5421. rm -f conftest.err conftest.$ac_ext
  5422. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5423. echo "${ECHO_T}$ac_header_preproc" >&6
  5424. # So? What about this header?
  5425. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5426. yes:no: )
  5427. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5428. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5429. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5430. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5431. ac_header_preproc=yes
  5432. ;;
  5433. no:yes:* )
  5434. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5435. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5436. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5437. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5438. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5439. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5440. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5441. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5442. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5443. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5444. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5445. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5446. (
  5447. cat <<\_ASBOX
  5448. ## ------------------------------------------ ##
  5449. ## Report this to the AC_PACKAGE_NAME lists. ##
  5450. ## ------------------------------------------ ##
  5451. _ASBOX
  5452. ) |
  5453. sed "s/^/$as_me: WARNING: /" >&2
  5454. ;;
  5455. esac
  5456. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5457. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5458. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5459. echo $ECHO_N "(cached) $ECHO_C" >&6
  5460. else
  5461. eval "$as_ac_Header=\$ac_header_preproc"
  5462. fi
  5463. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5464. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5465. fi
  5466. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5467. cat >>confdefs.h <<_ACEOF
  5468. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5469. _ACEOF
  5470. fi
  5471. done
  5472. #checkpoint
  5473. cat >confcache <<\_ACEOF
  5474. # This file is a shell script that caches the results of configure
  5475. # tests run on this system so they can be shared between configure
  5476. # scripts and configure runs, see configure's option --config-cache.
  5477. # It is not useful on other systems. If it contains results you don't
  5478. # want to keep, you may remove or edit it.
  5479. #
  5480. # config.status only pays attention to the cache file if you give it
  5481. # the --recheck option to rerun configure.
  5482. #
  5483. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5484. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5485. # following values.
  5486. _ACEOF
  5487. # The following way of writing the cache mishandles newlines in values,
  5488. # but we know of no workaround that is simple, portable, and efficient.
  5489. # So, don't put newlines in cache variables' values.
  5490. # Ultrix sh set writes to stderr and can't be redirected directly,
  5491. # and sets the high bit in the cache file unless we assign to the vars.
  5492. {
  5493. (set) 2>&1 |
  5494. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5495. *ac_space=\ *)
  5496. # `set' does not quote correctly, so add quotes (double-quote
  5497. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5498. sed -n \
  5499. "s/'/'\\\\''/g;
  5500. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5501. ;;
  5502. *)
  5503. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5504. sed -n \
  5505. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5506. ;;
  5507. esac;
  5508. } |
  5509. sed '
  5510. t clear
  5511. : clear
  5512. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5513. t end
  5514. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5515. : end' >>confcache
  5516. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5517. if test -w $cache_file; then
  5518. test "x$cache_file" != "x/dev/null"
  5519. cat confcache >$cache_file
  5520. else
  5521. echo "not updating unwritable cache $cache_file"
  5522. fi
  5523. fi
  5524. rm -f confcache
  5525. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5526. #AC_CHECK_HEADERS(zlib.h)
  5527. #EGG_CHECK_ZLIB
  5528. #EGG_CHECK_SSL
  5529. #AC_SUBST(SSL)dnl
  5530. # Checks for typedefs, structures, and compiler characteristics
  5531. echo "$as_me:$LINENO: checking for pid_t" >&5
  5532. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5533. if test "${ac_cv_type_pid_t+set}" = set; then
  5534. echo $ECHO_N "(cached) $ECHO_C" >&6
  5535. else
  5536. cat >conftest.$ac_ext <<_ACEOF
  5537. /* confdefs.h. */
  5538. _ACEOF
  5539. cat confdefs.h >>conftest.$ac_ext
  5540. cat >>conftest.$ac_ext <<_ACEOF
  5541. /* end confdefs.h. */
  5542. $ac_includes_default
  5543. int
  5544. main ()
  5545. {
  5546. if ((pid_t *) 0)
  5547. return 0;
  5548. if (sizeof (pid_t))
  5549. return 0;
  5550. ;
  5551. return 0;
  5552. }
  5553. _ACEOF
  5554. rm -f conftest.$ac_objext
  5555. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5556. (eval $ac_compile) 2>conftest.er1
  5557. ac_status=$?
  5558. grep -v '^ *+' conftest.er1 >conftest.err
  5559. rm -f conftest.er1
  5560. cat conftest.err >&5
  5561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5562. (exit $ac_status); } &&
  5563. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5565. (eval $ac_try) 2>&5
  5566. ac_status=$?
  5567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5568. (exit $ac_status); }; } &&
  5569. { ac_try='test -s conftest.$ac_objext'
  5570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5571. (eval $ac_try) 2>&5
  5572. ac_status=$?
  5573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5574. (exit $ac_status); }; }; then
  5575. ac_cv_type_pid_t=yes
  5576. else
  5577. echo "$as_me: failed program was:" >&5
  5578. sed 's/^/| /' conftest.$ac_ext >&5
  5579. ac_cv_type_pid_t=no
  5580. fi
  5581. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5582. fi
  5583. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5584. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5585. if test $ac_cv_type_pid_t = yes; then
  5586. :
  5587. else
  5588. cat >>confdefs.h <<_ACEOF
  5589. #define pid_t int
  5590. _ACEOF
  5591. fi
  5592. echo "$as_me:$LINENO: checking for size_t" >&5
  5593. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5594. if test "${ac_cv_type_size_t+set}" = set; then
  5595. echo $ECHO_N "(cached) $ECHO_C" >&6
  5596. else
  5597. cat >conftest.$ac_ext <<_ACEOF
  5598. /* confdefs.h. */
  5599. _ACEOF
  5600. cat confdefs.h >>conftest.$ac_ext
  5601. cat >>conftest.$ac_ext <<_ACEOF
  5602. /* end confdefs.h. */
  5603. $ac_includes_default
  5604. int
  5605. main ()
  5606. {
  5607. if ((size_t *) 0)
  5608. return 0;
  5609. if (sizeof (size_t))
  5610. return 0;
  5611. ;
  5612. return 0;
  5613. }
  5614. _ACEOF
  5615. rm -f conftest.$ac_objext
  5616. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5617. (eval $ac_compile) 2>conftest.er1
  5618. ac_status=$?
  5619. grep -v '^ *+' conftest.er1 >conftest.err
  5620. rm -f conftest.er1
  5621. cat conftest.err >&5
  5622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5623. (exit $ac_status); } &&
  5624. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5626. (eval $ac_try) 2>&5
  5627. ac_status=$?
  5628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5629. (exit $ac_status); }; } &&
  5630. { ac_try='test -s conftest.$ac_objext'
  5631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5632. (eval $ac_try) 2>&5
  5633. ac_status=$?
  5634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5635. (exit $ac_status); }; }; then
  5636. ac_cv_type_size_t=yes
  5637. else
  5638. echo "$as_me: failed program was:" >&5
  5639. sed 's/^/| /' conftest.$ac_ext >&5
  5640. ac_cv_type_size_t=no
  5641. fi
  5642. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5643. fi
  5644. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5645. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5646. if test $ac_cv_type_size_t = yes; then
  5647. :
  5648. else
  5649. cat >>confdefs.h <<_ACEOF
  5650. #define size_t unsigned
  5651. _ACEOF
  5652. fi
  5653. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5654. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5655. if test "${ac_cv_type_uid_t+set}" = set; then
  5656. echo $ECHO_N "(cached) $ECHO_C" >&6
  5657. else
  5658. cat >conftest.$ac_ext <<_ACEOF
  5659. /* confdefs.h. */
  5660. _ACEOF
  5661. cat confdefs.h >>conftest.$ac_ext
  5662. cat >>conftest.$ac_ext <<_ACEOF
  5663. /* end confdefs.h. */
  5664. #include <sys/types.h>
  5665. _ACEOF
  5666. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5667. $EGREP "uid_t" >/dev/null 2>&1; then
  5668. ac_cv_type_uid_t=yes
  5669. else
  5670. ac_cv_type_uid_t=no
  5671. fi
  5672. rm -f conftest*
  5673. fi
  5674. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5675. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5676. if test $ac_cv_type_uid_t = no; then
  5677. cat >>confdefs.h <<\_ACEOF
  5678. #define uid_t int
  5679. _ACEOF
  5680. cat >>confdefs.h <<\_ACEOF
  5681. #define gid_t int
  5682. _ACEOF
  5683. fi
  5684. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5685. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5686. if test "${ac_cv_c_const+set}" = set; then
  5687. echo $ECHO_N "(cached) $ECHO_C" >&6
  5688. else
  5689. cat >conftest.$ac_ext <<_ACEOF
  5690. /* confdefs.h. */
  5691. _ACEOF
  5692. cat confdefs.h >>conftest.$ac_ext
  5693. cat >>conftest.$ac_ext <<_ACEOF
  5694. /* end confdefs.h. */
  5695. int
  5696. main ()
  5697. {
  5698. /* FIXME: Include the comments suggested by Paul. */
  5699. #ifndef __cplusplus
  5700. /* Ultrix mips cc rejects this. */
  5701. typedef int charset[2];
  5702. const charset x;
  5703. /* SunOS 4.1.1 cc rejects this. */
  5704. char const *const *ccp;
  5705. char **p;
  5706. /* NEC SVR4.0.2 mips cc rejects this. */
  5707. struct point {int x, y;};
  5708. static struct point const zero = {0,0};
  5709. /* AIX XL C 1.02.0.0 rejects this.
  5710. It does not let you subtract one const X* pointer from another in
  5711. an arm of an if-expression whose if-part is not a constant
  5712. expression */
  5713. const char *g = "string";
  5714. ccp = &g + (g ? g-g : 0);
  5715. /* HPUX 7.0 cc rejects these. */
  5716. ++ccp;
  5717. p = (char**) ccp;
  5718. ccp = (char const *const *) p;
  5719. { /* SCO 3.2v4 cc rejects this. */
  5720. char *t;
  5721. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5722. *t++ = 0;
  5723. }
  5724. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5725. int x[] = {25, 17};
  5726. const int *foo = &x[0];
  5727. ++foo;
  5728. }
  5729. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5730. typedef const int *iptr;
  5731. iptr p = 0;
  5732. ++p;
  5733. }
  5734. { /* AIX XL C 1.02.0.0 rejects this saying
  5735. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5736. struct s { int j; const int *ap[3]; };
  5737. struct s *b; b->j = 5;
  5738. }
  5739. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5740. const int foo = 10;
  5741. }
  5742. #endif
  5743. ;
  5744. return 0;
  5745. }
  5746. _ACEOF
  5747. rm -f conftest.$ac_objext
  5748. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5749. (eval $ac_compile) 2>conftest.er1
  5750. ac_status=$?
  5751. grep -v '^ *+' conftest.er1 >conftest.err
  5752. rm -f conftest.er1
  5753. cat conftest.err >&5
  5754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5755. (exit $ac_status); } &&
  5756. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5757. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5758. (eval $ac_try) 2>&5
  5759. ac_status=$?
  5760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5761. (exit $ac_status); }; } &&
  5762. { ac_try='test -s conftest.$ac_objext'
  5763. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5764. (eval $ac_try) 2>&5
  5765. ac_status=$?
  5766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5767. (exit $ac_status); }; }; then
  5768. ac_cv_c_const=yes
  5769. else
  5770. echo "$as_me: failed program was:" >&5
  5771. sed 's/^/| /' conftest.$ac_ext >&5
  5772. ac_cv_c_const=no
  5773. fi
  5774. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5775. fi
  5776. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5777. echo "${ECHO_T}$ac_cv_c_const" >&6
  5778. if test $ac_cv_c_const = no; then
  5779. cat >>confdefs.h <<\_ACEOF
  5780. #define const
  5781. _ACEOF
  5782. fi
  5783. echo "$as_me:$LINENO: checking for working volatile" >&5
  5784. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5785. if test "${ac_cv_c_volatile+set}" = set; then
  5786. echo $ECHO_N "(cached) $ECHO_C" >&6
  5787. else
  5788. cat >conftest.$ac_ext <<_ACEOF
  5789. /* confdefs.h. */
  5790. _ACEOF
  5791. cat confdefs.h >>conftest.$ac_ext
  5792. cat >>conftest.$ac_ext <<_ACEOF
  5793. /* end confdefs.h. */
  5794. int
  5795. main ()
  5796. {
  5797. volatile int x;
  5798. int * volatile y;
  5799. ;
  5800. return 0;
  5801. }
  5802. _ACEOF
  5803. rm -f conftest.$ac_objext
  5804. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5805. (eval $ac_compile) 2>conftest.er1
  5806. ac_status=$?
  5807. grep -v '^ *+' conftest.er1 >conftest.err
  5808. rm -f conftest.er1
  5809. cat conftest.err >&5
  5810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5811. (exit $ac_status); } &&
  5812. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5813. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5814. (eval $ac_try) 2>&5
  5815. ac_status=$?
  5816. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5817. (exit $ac_status); }; } &&
  5818. { ac_try='test -s conftest.$ac_objext'
  5819. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5820. (eval $ac_try) 2>&5
  5821. ac_status=$?
  5822. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5823. (exit $ac_status); }; }; then
  5824. ac_cv_c_volatile=yes
  5825. else
  5826. echo "$as_me: failed program was:" >&5
  5827. sed 's/^/| /' conftest.$ac_ext >&5
  5828. ac_cv_c_volatile=no
  5829. fi
  5830. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5831. fi
  5832. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5833. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5834. if test $ac_cv_c_volatile = no; then
  5835. cat >>confdefs.h <<\_ACEOF
  5836. #define volatile
  5837. _ACEOF
  5838. fi
  5839. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5840. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5841. if test "${ac_cv_c_bigendian+set}" = set; then
  5842. echo $ECHO_N "(cached) $ECHO_C" >&6
  5843. else
  5844. # See if sys/param.h defines the BYTE_ORDER macro.
  5845. cat >conftest.$ac_ext <<_ACEOF
  5846. /* confdefs.h. */
  5847. _ACEOF
  5848. cat confdefs.h >>conftest.$ac_ext
  5849. cat >>conftest.$ac_ext <<_ACEOF
  5850. /* end confdefs.h. */
  5851. #include <sys/types.h>
  5852. #include <sys/param.h>
  5853. int
  5854. main ()
  5855. {
  5856. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5857. bogus endian macros
  5858. #endif
  5859. ;
  5860. return 0;
  5861. }
  5862. _ACEOF
  5863. rm -f conftest.$ac_objext
  5864. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5865. (eval $ac_compile) 2>conftest.er1
  5866. ac_status=$?
  5867. grep -v '^ *+' conftest.er1 >conftest.err
  5868. rm -f conftest.er1
  5869. cat conftest.err >&5
  5870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5871. (exit $ac_status); } &&
  5872. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5874. (eval $ac_try) 2>&5
  5875. ac_status=$?
  5876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5877. (exit $ac_status); }; } &&
  5878. { ac_try='test -s conftest.$ac_objext'
  5879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5880. (eval $ac_try) 2>&5
  5881. ac_status=$?
  5882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5883. (exit $ac_status); }; }; then
  5884. # It does; now see whether it defined to BIG_ENDIAN or not.
  5885. cat >conftest.$ac_ext <<_ACEOF
  5886. /* confdefs.h. */
  5887. _ACEOF
  5888. cat confdefs.h >>conftest.$ac_ext
  5889. cat >>conftest.$ac_ext <<_ACEOF
  5890. /* end confdefs.h. */
  5891. #include <sys/types.h>
  5892. #include <sys/param.h>
  5893. int
  5894. main ()
  5895. {
  5896. #if BYTE_ORDER != BIG_ENDIAN
  5897. not big endian
  5898. #endif
  5899. ;
  5900. return 0;
  5901. }
  5902. _ACEOF
  5903. rm -f conftest.$ac_objext
  5904. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5905. (eval $ac_compile) 2>conftest.er1
  5906. ac_status=$?
  5907. grep -v '^ *+' conftest.er1 >conftest.err
  5908. rm -f conftest.er1
  5909. cat conftest.err >&5
  5910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5911. (exit $ac_status); } &&
  5912. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5914. (eval $ac_try) 2>&5
  5915. ac_status=$?
  5916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5917. (exit $ac_status); }; } &&
  5918. { ac_try='test -s conftest.$ac_objext'
  5919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5920. (eval $ac_try) 2>&5
  5921. ac_status=$?
  5922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5923. (exit $ac_status); }; }; then
  5924. ac_cv_c_bigendian=yes
  5925. else
  5926. echo "$as_me: failed program was:" >&5
  5927. sed 's/^/| /' conftest.$ac_ext >&5
  5928. ac_cv_c_bigendian=no
  5929. fi
  5930. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5931. else
  5932. echo "$as_me: failed program was:" >&5
  5933. sed 's/^/| /' conftest.$ac_ext >&5
  5934. # It does not; compile a test program.
  5935. if test "$cross_compiling" = yes; then
  5936. # try to guess the endianness by grepping values into an object file
  5937. ac_cv_c_bigendian=unknown
  5938. cat >conftest.$ac_ext <<_ACEOF
  5939. /* confdefs.h. */
  5940. _ACEOF
  5941. cat confdefs.h >>conftest.$ac_ext
  5942. cat >>conftest.$ac_ext <<_ACEOF
  5943. /* end confdefs.h. */
  5944. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5945. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5946. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5947. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5948. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5949. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5950. int
  5951. main ()
  5952. {
  5953. _ascii (); _ebcdic ();
  5954. ;
  5955. return 0;
  5956. }
  5957. _ACEOF
  5958. rm -f conftest.$ac_objext
  5959. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5960. (eval $ac_compile) 2>conftest.er1
  5961. ac_status=$?
  5962. grep -v '^ *+' conftest.er1 >conftest.err
  5963. rm -f conftest.er1
  5964. cat conftest.err >&5
  5965. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5966. (exit $ac_status); } &&
  5967. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5968. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5969. (eval $ac_try) 2>&5
  5970. ac_status=$?
  5971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5972. (exit $ac_status); }; } &&
  5973. { ac_try='test -s conftest.$ac_objext'
  5974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5975. (eval $ac_try) 2>&5
  5976. ac_status=$?
  5977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5978. (exit $ac_status); }; }; then
  5979. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5980. ac_cv_c_bigendian=yes
  5981. fi
  5982. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5983. if test "$ac_cv_c_bigendian" = unknown; then
  5984. ac_cv_c_bigendian=no
  5985. else
  5986. # finding both strings is unlikely to happen, but who knows?
  5987. ac_cv_c_bigendian=unknown
  5988. fi
  5989. fi
  5990. else
  5991. echo "$as_me: failed program was:" >&5
  5992. sed 's/^/| /' conftest.$ac_ext >&5
  5993. fi
  5994. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5995. else
  5996. cat >conftest.$ac_ext <<_ACEOF
  5997. /* confdefs.h. */
  5998. _ACEOF
  5999. cat confdefs.h >>conftest.$ac_ext
  6000. cat >>conftest.$ac_ext <<_ACEOF
  6001. /* end confdefs.h. */
  6002. int
  6003. main ()
  6004. {
  6005. /* Are we little or big endian? From Harbison&Steele. */
  6006. union
  6007. {
  6008. long l;
  6009. char c[sizeof (long)];
  6010. } u;
  6011. u.l = 1;
  6012. exit (u.c[sizeof (long) - 1] == 1);
  6013. }
  6014. _ACEOF
  6015. rm -f conftest$ac_exeext
  6016. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6017. (eval $ac_link) 2>&5
  6018. ac_status=$?
  6019. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6020. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6022. (eval $ac_try) 2>&5
  6023. ac_status=$?
  6024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6025. (exit $ac_status); }; }; then
  6026. ac_cv_c_bigendian=no
  6027. else
  6028. echo "$as_me: program exited with status $ac_status" >&5
  6029. echo "$as_me: failed program was:" >&5
  6030. sed 's/^/| /' conftest.$ac_ext >&5
  6031. ( exit $ac_status )
  6032. ac_cv_c_bigendian=yes
  6033. fi
  6034. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6035. fi
  6036. fi
  6037. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6038. fi
  6039. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6040. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6041. case $ac_cv_c_bigendian in
  6042. yes)
  6043. cat >>confdefs.h <<\_ACEOF
  6044. #define WORDS_BIGENDIAN 1
  6045. _ACEOF
  6046. ;;
  6047. no)
  6048. ;;
  6049. *)
  6050. { { echo "$as_me:$LINENO: error: unknown endianness
  6051. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6052. echo "$as_me: error: unknown endianness
  6053. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6054. { (exit 1); exit 1; }; } ;;
  6055. esac
  6056. echo "$as_me:$LINENO: checking for inline" >&5
  6057. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6058. if test "${ac_cv_c_inline+set}" = set; then
  6059. echo $ECHO_N "(cached) $ECHO_C" >&6
  6060. else
  6061. ac_cv_c_inline=no
  6062. for ac_kw in inline __inline__ __inline; do
  6063. cat >conftest.$ac_ext <<_ACEOF
  6064. /* confdefs.h. */
  6065. _ACEOF
  6066. cat confdefs.h >>conftest.$ac_ext
  6067. cat >>conftest.$ac_ext <<_ACEOF
  6068. /* end confdefs.h. */
  6069. #ifndef __cplusplus
  6070. typedef int foo_t;
  6071. static $ac_kw foo_t static_foo () {return 0; }
  6072. $ac_kw foo_t foo () {return 0; }
  6073. #endif
  6074. _ACEOF
  6075. rm -f conftest.$ac_objext
  6076. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6077. (eval $ac_compile) 2>conftest.er1
  6078. ac_status=$?
  6079. grep -v '^ *+' conftest.er1 >conftest.err
  6080. rm -f conftest.er1
  6081. cat conftest.err >&5
  6082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6083. (exit $ac_status); } &&
  6084. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6086. (eval $ac_try) 2>&5
  6087. ac_status=$?
  6088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6089. (exit $ac_status); }; } &&
  6090. { ac_try='test -s conftest.$ac_objext'
  6091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6092. (eval $ac_try) 2>&5
  6093. ac_status=$?
  6094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6095. (exit $ac_status); }; }; then
  6096. ac_cv_c_inline=$ac_kw; break
  6097. else
  6098. echo "$as_me: failed program was:" >&5
  6099. sed 's/^/| /' conftest.$ac_ext >&5
  6100. fi
  6101. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6102. done
  6103. fi
  6104. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6105. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6106. case $ac_cv_c_inline in
  6107. inline | yes) ;;
  6108. *)
  6109. case $ac_cv_c_inline in
  6110. no) ac_val=;;
  6111. *) ac_val=$ac_cv_c_inline;;
  6112. esac
  6113. cat >>confdefs.h <<_ACEOF
  6114. #ifndef __cplusplus
  6115. #define inline $ac_val
  6116. #endif
  6117. _ACEOF
  6118. ;;
  6119. esac
  6120. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  6121. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  6122. if test "${ac_cv_c_char_unsigned+set}" = set; then
  6123. echo $ECHO_N "(cached) $ECHO_C" >&6
  6124. else
  6125. cat >conftest.$ac_ext <<_ACEOF
  6126. /* confdefs.h. */
  6127. _ACEOF
  6128. cat confdefs.h >>conftest.$ac_ext
  6129. cat >>conftest.$ac_ext <<_ACEOF
  6130. /* end confdefs.h. */
  6131. $ac_includes_default
  6132. int
  6133. main ()
  6134. {
  6135. static int test_array [1 - 2 * !(((char) -1) < 0)];
  6136. test_array [0] = 0
  6137. ;
  6138. return 0;
  6139. }
  6140. _ACEOF
  6141. rm -f conftest.$ac_objext
  6142. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6143. (eval $ac_compile) 2>conftest.er1
  6144. ac_status=$?
  6145. grep -v '^ *+' conftest.er1 >conftest.err
  6146. rm -f conftest.er1
  6147. cat conftest.err >&5
  6148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6149. (exit $ac_status); } &&
  6150. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6152. (eval $ac_try) 2>&5
  6153. ac_status=$?
  6154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6155. (exit $ac_status); }; } &&
  6156. { ac_try='test -s conftest.$ac_objext'
  6157. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6158. (eval $ac_try) 2>&5
  6159. ac_status=$?
  6160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6161. (exit $ac_status); }; }; then
  6162. ac_cv_c_char_unsigned=no
  6163. else
  6164. echo "$as_me: failed program was:" >&5
  6165. sed 's/^/| /' conftest.$ac_ext >&5
  6166. ac_cv_c_char_unsigned=yes
  6167. fi
  6168. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6169. fi
  6170. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  6171. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  6172. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  6173. cat >>confdefs.h <<\_ACEOF
  6174. #define __CHAR_UNSIGNED__ 1
  6175. _ACEOF
  6176. fi
  6177. echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
  6178. echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
  6179. if test "${ac_cv_c_stringize+set}" = set; then
  6180. echo $ECHO_N "(cached) $ECHO_C" >&6
  6181. else
  6182. cat >conftest.$ac_ext <<_ACEOF
  6183. /* confdefs.h. */
  6184. _ACEOF
  6185. cat confdefs.h >>conftest.$ac_ext
  6186. cat >>conftest.$ac_ext <<_ACEOF
  6187. /* end confdefs.h. */
  6188. #define x(y) #y
  6189. char *s = x(teststring);
  6190. _ACEOF
  6191. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6192. $EGREP "#teststring" >/dev/null 2>&1; then
  6193. ac_cv_c_stringize=no
  6194. else
  6195. ac_cv_c_stringize=yes
  6196. fi
  6197. rm -f conftest*
  6198. fi
  6199. echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
  6200. echo "${ECHO_T}$ac_cv_c_stringize" >&6
  6201. if test $ac_cv_c_stringize = yes; then
  6202. cat >>confdefs.h <<\_ACEOF
  6203. #define HAVE_STRINGIZE 1
  6204. _ACEOF
  6205. fi
  6206. echo "$as_me:$LINENO: checking for function prototypes" >&5
  6207. echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
  6208. if test "$ac_cv_prog_cc_stdc" != no; then
  6209. echo "$as_me:$LINENO: result: yes" >&5
  6210. echo "${ECHO_T}yes" >&6
  6211. cat >>confdefs.h <<\_ACEOF
  6212. #define PROTOTYPES 1
  6213. _ACEOF
  6214. cat >>confdefs.h <<\_ACEOF
  6215. #define __PROTOTYPES 1
  6216. _ACEOF
  6217. else
  6218. echo "$as_me:$LINENO: result: no" >&5
  6219. echo "${ECHO_T}no" >&6
  6220. fi
  6221. #checkpoint
  6222. cat >confcache <<\_ACEOF
  6223. # This file is a shell script that caches the results of configure
  6224. # tests run on this system so they can be shared between configure
  6225. # scripts and configure runs, see configure's option --config-cache.
  6226. # It is not useful on other systems. If it contains results you don't
  6227. # want to keep, you may remove or edit it.
  6228. #
  6229. # config.status only pays attention to the cache file if you give it
  6230. # the --recheck option to rerun configure.
  6231. #
  6232. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6233. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6234. # following values.
  6235. _ACEOF
  6236. # The following way of writing the cache mishandles newlines in values,
  6237. # but we know of no workaround that is simple, portable, and efficient.
  6238. # So, don't put newlines in cache variables' values.
  6239. # Ultrix sh set writes to stderr and can't be redirected directly,
  6240. # and sets the high bit in the cache file unless we assign to the vars.
  6241. {
  6242. (set) 2>&1 |
  6243. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6244. *ac_space=\ *)
  6245. # `set' does not quote correctly, so add quotes (double-quote
  6246. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6247. sed -n \
  6248. "s/'/'\\\\''/g;
  6249. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6250. ;;
  6251. *)
  6252. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6253. sed -n \
  6254. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6255. ;;
  6256. esac;
  6257. } |
  6258. sed '
  6259. t clear
  6260. : clear
  6261. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6262. t end
  6263. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6264. : end' >>confcache
  6265. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6266. if test -w $cache_file; then
  6267. test "x$cache_file" != "x/dev/null"
  6268. cat confcache >$cache_file
  6269. else
  6270. echo "not updating unwritable cache $cache_file"
  6271. fi
  6272. fi
  6273. rm -f confcache
  6274. echo "$as_me:$LINENO: checking for int" >&5
  6275. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6276. if test "${ac_cv_type_int+set}" = set; then
  6277. echo $ECHO_N "(cached) $ECHO_C" >&6
  6278. else
  6279. cat >conftest.$ac_ext <<_ACEOF
  6280. /* confdefs.h. */
  6281. _ACEOF
  6282. cat confdefs.h >>conftest.$ac_ext
  6283. cat >>conftest.$ac_ext <<_ACEOF
  6284. /* end confdefs.h. */
  6285. $ac_includes_default
  6286. int
  6287. main ()
  6288. {
  6289. if ((int *) 0)
  6290. return 0;
  6291. if (sizeof (int))
  6292. return 0;
  6293. ;
  6294. return 0;
  6295. }
  6296. _ACEOF
  6297. rm -f conftest.$ac_objext
  6298. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6299. (eval $ac_compile) 2>conftest.er1
  6300. ac_status=$?
  6301. grep -v '^ *+' conftest.er1 >conftest.err
  6302. rm -f conftest.er1
  6303. cat conftest.err >&5
  6304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6305. (exit $ac_status); } &&
  6306. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6308. (eval $ac_try) 2>&5
  6309. ac_status=$?
  6310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6311. (exit $ac_status); }; } &&
  6312. { ac_try='test -s conftest.$ac_objext'
  6313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6314. (eval $ac_try) 2>&5
  6315. ac_status=$?
  6316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6317. (exit $ac_status); }; }; then
  6318. ac_cv_type_int=yes
  6319. else
  6320. echo "$as_me: failed program was:" >&5
  6321. sed 's/^/| /' conftest.$ac_ext >&5
  6322. ac_cv_type_int=no
  6323. fi
  6324. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6325. fi
  6326. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6327. echo "${ECHO_T}$ac_cv_type_int" >&6
  6328. echo "$as_me:$LINENO: checking size of int" >&5
  6329. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6330. if test "${ac_cv_sizeof_int+set}" = set; then
  6331. echo $ECHO_N "(cached) $ECHO_C" >&6
  6332. else
  6333. if test "$ac_cv_type_int" = yes; then
  6334. # The cast to unsigned long works around a bug in the HP C Compiler
  6335. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6336. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6337. # This bug is HP SR number 8606223364.
  6338. if test "$cross_compiling" = yes; then
  6339. # Depending upon the size, compute the lo and hi bounds.
  6340. cat >conftest.$ac_ext <<_ACEOF
  6341. /* confdefs.h. */
  6342. _ACEOF
  6343. cat confdefs.h >>conftest.$ac_ext
  6344. cat >>conftest.$ac_ext <<_ACEOF
  6345. /* end confdefs.h. */
  6346. $ac_includes_default
  6347. int
  6348. main ()
  6349. {
  6350. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6351. test_array [0] = 0
  6352. ;
  6353. return 0;
  6354. }
  6355. _ACEOF
  6356. rm -f conftest.$ac_objext
  6357. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6358. (eval $ac_compile) 2>conftest.er1
  6359. ac_status=$?
  6360. grep -v '^ *+' conftest.er1 >conftest.err
  6361. rm -f conftest.er1
  6362. cat conftest.err >&5
  6363. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6364. (exit $ac_status); } &&
  6365. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6366. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6367. (eval $ac_try) 2>&5
  6368. ac_status=$?
  6369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6370. (exit $ac_status); }; } &&
  6371. { ac_try='test -s conftest.$ac_objext'
  6372. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6373. (eval $ac_try) 2>&5
  6374. ac_status=$?
  6375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6376. (exit $ac_status); }; }; then
  6377. ac_lo=0 ac_mid=0
  6378. while :; do
  6379. cat >conftest.$ac_ext <<_ACEOF
  6380. /* confdefs.h. */
  6381. _ACEOF
  6382. cat confdefs.h >>conftest.$ac_ext
  6383. cat >>conftest.$ac_ext <<_ACEOF
  6384. /* end confdefs.h. */
  6385. $ac_includes_default
  6386. int
  6387. main ()
  6388. {
  6389. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6390. test_array [0] = 0
  6391. ;
  6392. return 0;
  6393. }
  6394. _ACEOF
  6395. rm -f conftest.$ac_objext
  6396. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6397. (eval $ac_compile) 2>conftest.er1
  6398. ac_status=$?
  6399. grep -v '^ *+' conftest.er1 >conftest.err
  6400. rm -f conftest.er1
  6401. cat conftest.err >&5
  6402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6403. (exit $ac_status); } &&
  6404. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6406. (eval $ac_try) 2>&5
  6407. ac_status=$?
  6408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6409. (exit $ac_status); }; } &&
  6410. { ac_try='test -s conftest.$ac_objext'
  6411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6412. (eval $ac_try) 2>&5
  6413. ac_status=$?
  6414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6415. (exit $ac_status); }; }; then
  6416. ac_hi=$ac_mid; break
  6417. else
  6418. echo "$as_me: failed program was:" >&5
  6419. sed 's/^/| /' conftest.$ac_ext >&5
  6420. ac_lo=`expr $ac_mid + 1`
  6421. if test $ac_lo -le $ac_mid; then
  6422. ac_lo= ac_hi=
  6423. break
  6424. fi
  6425. ac_mid=`expr 2 '*' $ac_mid + 1`
  6426. fi
  6427. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6428. done
  6429. else
  6430. echo "$as_me: failed program was:" >&5
  6431. sed 's/^/| /' conftest.$ac_ext >&5
  6432. cat >conftest.$ac_ext <<_ACEOF
  6433. /* confdefs.h. */
  6434. _ACEOF
  6435. cat confdefs.h >>conftest.$ac_ext
  6436. cat >>conftest.$ac_ext <<_ACEOF
  6437. /* end confdefs.h. */
  6438. $ac_includes_default
  6439. int
  6440. main ()
  6441. {
  6442. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6443. test_array [0] = 0
  6444. ;
  6445. return 0;
  6446. }
  6447. _ACEOF
  6448. rm -f conftest.$ac_objext
  6449. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6450. (eval $ac_compile) 2>conftest.er1
  6451. ac_status=$?
  6452. grep -v '^ *+' conftest.er1 >conftest.err
  6453. rm -f conftest.er1
  6454. cat conftest.err >&5
  6455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6456. (exit $ac_status); } &&
  6457. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6458. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6459. (eval $ac_try) 2>&5
  6460. ac_status=$?
  6461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6462. (exit $ac_status); }; } &&
  6463. { ac_try='test -s conftest.$ac_objext'
  6464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6465. (eval $ac_try) 2>&5
  6466. ac_status=$?
  6467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6468. (exit $ac_status); }; }; then
  6469. ac_hi=-1 ac_mid=-1
  6470. while :; do
  6471. cat >conftest.$ac_ext <<_ACEOF
  6472. /* confdefs.h. */
  6473. _ACEOF
  6474. cat confdefs.h >>conftest.$ac_ext
  6475. cat >>conftest.$ac_ext <<_ACEOF
  6476. /* end confdefs.h. */
  6477. $ac_includes_default
  6478. int
  6479. main ()
  6480. {
  6481. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6482. test_array [0] = 0
  6483. ;
  6484. return 0;
  6485. }
  6486. _ACEOF
  6487. rm -f conftest.$ac_objext
  6488. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6489. (eval $ac_compile) 2>conftest.er1
  6490. ac_status=$?
  6491. grep -v '^ *+' conftest.er1 >conftest.err
  6492. rm -f conftest.er1
  6493. cat conftest.err >&5
  6494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6495. (exit $ac_status); } &&
  6496. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6498. (eval $ac_try) 2>&5
  6499. ac_status=$?
  6500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6501. (exit $ac_status); }; } &&
  6502. { ac_try='test -s conftest.$ac_objext'
  6503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6504. (eval $ac_try) 2>&5
  6505. ac_status=$?
  6506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6507. (exit $ac_status); }; }; then
  6508. ac_lo=$ac_mid; break
  6509. else
  6510. echo "$as_me: failed program was:" >&5
  6511. sed 's/^/| /' conftest.$ac_ext >&5
  6512. ac_hi=`expr '(' $ac_mid ')' - 1`
  6513. if test $ac_mid -le $ac_hi; then
  6514. ac_lo= ac_hi=
  6515. break
  6516. fi
  6517. ac_mid=`expr 2 '*' $ac_mid`
  6518. fi
  6519. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6520. done
  6521. else
  6522. echo "$as_me: failed program was:" >&5
  6523. sed 's/^/| /' conftest.$ac_ext >&5
  6524. ac_lo= ac_hi=
  6525. fi
  6526. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6527. fi
  6528. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6529. # Binary search between lo and hi bounds.
  6530. while test "x$ac_lo" != "x$ac_hi"; do
  6531. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6532. cat >conftest.$ac_ext <<_ACEOF
  6533. /* confdefs.h. */
  6534. _ACEOF
  6535. cat confdefs.h >>conftest.$ac_ext
  6536. cat >>conftest.$ac_ext <<_ACEOF
  6537. /* end confdefs.h. */
  6538. $ac_includes_default
  6539. int
  6540. main ()
  6541. {
  6542. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6543. test_array [0] = 0
  6544. ;
  6545. return 0;
  6546. }
  6547. _ACEOF
  6548. rm -f conftest.$ac_objext
  6549. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6550. (eval $ac_compile) 2>conftest.er1
  6551. ac_status=$?
  6552. grep -v '^ *+' conftest.er1 >conftest.err
  6553. rm -f conftest.er1
  6554. cat conftest.err >&5
  6555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6556. (exit $ac_status); } &&
  6557. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6559. (eval $ac_try) 2>&5
  6560. ac_status=$?
  6561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6562. (exit $ac_status); }; } &&
  6563. { ac_try='test -s conftest.$ac_objext'
  6564. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6565. (eval $ac_try) 2>&5
  6566. ac_status=$?
  6567. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6568. (exit $ac_status); }; }; then
  6569. ac_hi=$ac_mid
  6570. else
  6571. echo "$as_me: failed program was:" >&5
  6572. sed 's/^/| /' conftest.$ac_ext >&5
  6573. ac_lo=`expr '(' $ac_mid ')' + 1`
  6574. fi
  6575. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6576. done
  6577. case $ac_lo in
  6578. ?*) ac_cv_sizeof_int=$ac_lo;;
  6579. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6580. See \`config.log' for more details." >&5
  6581. echo "$as_me: error: cannot compute sizeof (int), 77
  6582. See \`config.log' for more details." >&2;}
  6583. { (exit 1); exit 1; }; } ;;
  6584. esac
  6585. else
  6586. if test "$cross_compiling" = yes; then
  6587. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6588. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6589. { (exit 1); exit 1; }; }
  6590. else
  6591. cat >conftest.$ac_ext <<_ACEOF
  6592. /* confdefs.h. */
  6593. _ACEOF
  6594. cat confdefs.h >>conftest.$ac_ext
  6595. cat >>conftest.$ac_ext <<_ACEOF
  6596. /* end confdefs.h. */
  6597. $ac_includes_default
  6598. long longval () { return (long) (sizeof (int)); }
  6599. unsigned long ulongval () { return (long) (sizeof (int)); }
  6600. #include <stdio.h>
  6601. #include <stdlib.h>
  6602. int
  6603. main ()
  6604. {
  6605. FILE *f = fopen ("conftest.val", "w");
  6606. if (! f)
  6607. exit (1);
  6608. if (((long) (sizeof (int))) < 0)
  6609. {
  6610. long i = longval ();
  6611. if (i != ((long) (sizeof (int))))
  6612. exit (1);
  6613. fprintf (f, "%ld\n", i);
  6614. }
  6615. else
  6616. {
  6617. unsigned long i = ulongval ();
  6618. if (i != ((long) (sizeof (int))))
  6619. exit (1);
  6620. fprintf (f, "%lu\n", i);
  6621. }
  6622. exit (ferror (f) || fclose (f) != 0);
  6623. ;
  6624. return 0;
  6625. }
  6626. _ACEOF
  6627. rm -f conftest$ac_exeext
  6628. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6629. (eval $ac_link) 2>&5
  6630. ac_status=$?
  6631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6632. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6634. (eval $ac_try) 2>&5
  6635. ac_status=$?
  6636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6637. (exit $ac_status); }; }; then
  6638. ac_cv_sizeof_int=`cat conftest.val`
  6639. else
  6640. echo "$as_me: program exited with status $ac_status" >&5
  6641. echo "$as_me: failed program was:" >&5
  6642. sed 's/^/| /' conftest.$ac_ext >&5
  6643. ( exit $ac_status )
  6644. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6645. See \`config.log' for more details." >&5
  6646. echo "$as_me: error: cannot compute sizeof (int), 77
  6647. See \`config.log' for more details." >&2;}
  6648. { (exit 1); exit 1; }; }
  6649. fi
  6650. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6651. fi
  6652. fi
  6653. rm -f conftest.val
  6654. else
  6655. ac_cv_sizeof_int=0
  6656. fi
  6657. fi
  6658. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6659. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6660. cat >>confdefs.h <<_ACEOF
  6661. #define SIZEOF_INT $ac_cv_sizeof_int
  6662. _ACEOF
  6663. echo "$as_me:$LINENO: checking for short" >&5
  6664. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6665. if test "${ac_cv_type_short+set}" = set; then
  6666. echo $ECHO_N "(cached) $ECHO_C" >&6
  6667. else
  6668. cat >conftest.$ac_ext <<_ACEOF
  6669. /* confdefs.h. */
  6670. _ACEOF
  6671. cat confdefs.h >>conftest.$ac_ext
  6672. cat >>conftest.$ac_ext <<_ACEOF
  6673. /* end confdefs.h. */
  6674. $ac_includes_default
  6675. int
  6676. main ()
  6677. {
  6678. if ((short *) 0)
  6679. return 0;
  6680. if (sizeof (short))
  6681. return 0;
  6682. ;
  6683. return 0;
  6684. }
  6685. _ACEOF
  6686. rm -f conftest.$ac_objext
  6687. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6688. (eval $ac_compile) 2>conftest.er1
  6689. ac_status=$?
  6690. grep -v '^ *+' conftest.er1 >conftest.err
  6691. rm -f conftest.er1
  6692. cat conftest.err >&5
  6693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6694. (exit $ac_status); } &&
  6695. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6696. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6697. (eval $ac_try) 2>&5
  6698. ac_status=$?
  6699. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6700. (exit $ac_status); }; } &&
  6701. { ac_try='test -s conftest.$ac_objext'
  6702. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6703. (eval $ac_try) 2>&5
  6704. ac_status=$?
  6705. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6706. (exit $ac_status); }; }; then
  6707. ac_cv_type_short=yes
  6708. else
  6709. echo "$as_me: failed program was:" >&5
  6710. sed 's/^/| /' conftest.$ac_ext >&5
  6711. ac_cv_type_short=no
  6712. fi
  6713. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6714. fi
  6715. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6716. echo "${ECHO_T}$ac_cv_type_short" >&6
  6717. echo "$as_me:$LINENO: checking size of short" >&5
  6718. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6719. if test "${ac_cv_sizeof_short+set}" = set; then
  6720. echo $ECHO_N "(cached) $ECHO_C" >&6
  6721. else
  6722. if test "$ac_cv_type_short" = yes; then
  6723. # The cast to unsigned long works around a bug in the HP C Compiler
  6724. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6725. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6726. # This bug is HP SR number 8606223364.
  6727. if test "$cross_compiling" = yes; then
  6728. # Depending upon the size, compute the lo and hi bounds.
  6729. cat >conftest.$ac_ext <<_ACEOF
  6730. /* confdefs.h. */
  6731. _ACEOF
  6732. cat confdefs.h >>conftest.$ac_ext
  6733. cat >>conftest.$ac_ext <<_ACEOF
  6734. /* end confdefs.h. */
  6735. $ac_includes_default
  6736. int
  6737. main ()
  6738. {
  6739. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6740. test_array [0] = 0
  6741. ;
  6742. return 0;
  6743. }
  6744. _ACEOF
  6745. rm -f conftest.$ac_objext
  6746. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6747. (eval $ac_compile) 2>conftest.er1
  6748. ac_status=$?
  6749. grep -v '^ *+' conftest.er1 >conftest.err
  6750. rm -f conftest.er1
  6751. cat conftest.err >&5
  6752. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6753. (exit $ac_status); } &&
  6754. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6755. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6756. (eval $ac_try) 2>&5
  6757. ac_status=$?
  6758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6759. (exit $ac_status); }; } &&
  6760. { ac_try='test -s conftest.$ac_objext'
  6761. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6762. (eval $ac_try) 2>&5
  6763. ac_status=$?
  6764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6765. (exit $ac_status); }; }; then
  6766. ac_lo=0 ac_mid=0
  6767. while :; do
  6768. cat >conftest.$ac_ext <<_ACEOF
  6769. /* confdefs.h. */
  6770. _ACEOF
  6771. cat confdefs.h >>conftest.$ac_ext
  6772. cat >>conftest.$ac_ext <<_ACEOF
  6773. /* end confdefs.h. */
  6774. $ac_includes_default
  6775. int
  6776. main ()
  6777. {
  6778. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6779. test_array [0] = 0
  6780. ;
  6781. return 0;
  6782. }
  6783. _ACEOF
  6784. rm -f conftest.$ac_objext
  6785. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6786. (eval $ac_compile) 2>conftest.er1
  6787. ac_status=$?
  6788. grep -v '^ *+' conftest.er1 >conftest.err
  6789. rm -f conftest.er1
  6790. cat conftest.err >&5
  6791. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6792. (exit $ac_status); } &&
  6793. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6794. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6795. (eval $ac_try) 2>&5
  6796. ac_status=$?
  6797. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6798. (exit $ac_status); }; } &&
  6799. { ac_try='test -s conftest.$ac_objext'
  6800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6801. (eval $ac_try) 2>&5
  6802. ac_status=$?
  6803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6804. (exit $ac_status); }; }; then
  6805. ac_hi=$ac_mid; break
  6806. else
  6807. echo "$as_me: failed program was:" >&5
  6808. sed 's/^/| /' conftest.$ac_ext >&5
  6809. ac_lo=`expr $ac_mid + 1`
  6810. if test $ac_lo -le $ac_mid; then
  6811. ac_lo= ac_hi=
  6812. break
  6813. fi
  6814. ac_mid=`expr 2 '*' $ac_mid + 1`
  6815. fi
  6816. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6817. done
  6818. else
  6819. echo "$as_me: failed program was:" >&5
  6820. sed 's/^/| /' conftest.$ac_ext >&5
  6821. cat >conftest.$ac_ext <<_ACEOF
  6822. /* confdefs.h. */
  6823. _ACEOF
  6824. cat confdefs.h >>conftest.$ac_ext
  6825. cat >>conftest.$ac_ext <<_ACEOF
  6826. /* end confdefs.h. */
  6827. $ac_includes_default
  6828. int
  6829. main ()
  6830. {
  6831. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6832. test_array [0] = 0
  6833. ;
  6834. return 0;
  6835. }
  6836. _ACEOF
  6837. rm -f conftest.$ac_objext
  6838. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6839. (eval $ac_compile) 2>conftest.er1
  6840. ac_status=$?
  6841. grep -v '^ *+' conftest.er1 >conftest.err
  6842. rm -f conftest.er1
  6843. cat conftest.err >&5
  6844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6845. (exit $ac_status); } &&
  6846. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6847. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6848. (eval $ac_try) 2>&5
  6849. ac_status=$?
  6850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6851. (exit $ac_status); }; } &&
  6852. { ac_try='test -s conftest.$ac_objext'
  6853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6854. (eval $ac_try) 2>&5
  6855. ac_status=$?
  6856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6857. (exit $ac_status); }; }; then
  6858. ac_hi=-1 ac_mid=-1
  6859. while :; do
  6860. cat >conftest.$ac_ext <<_ACEOF
  6861. /* confdefs.h. */
  6862. _ACEOF
  6863. cat confdefs.h >>conftest.$ac_ext
  6864. cat >>conftest.$ac_ext <<_ACEOF
  6865. /* end confdefs.h. */
  6866. $ac_includes_default
  6867. int
  6868. main ()
  6869. {
  6870. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  6871. test_array [0] = 0
  6872. ;
  6873. return 0;
  6874. }
  6875. _ACEOF
  6876. rm -f conftest.$ac_objext
  6877. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6878. (eval $ac_compile) 2>conftest.er1
  6879. ac_status=$?
  6880. grep -v '^ *+' conftest.er1 >conftest.err
  6881. rm -f conftest.er1
  6882. cat conftest.err >&5
  6883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6884. (exit $ac_status); } &&
  6885. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6887. (eval $ac_try) 2>&5
  6888. ac_status=$?
  6889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6890. (exit $ac_status); }; } &&
  6891. { ac_try='test -s conftest.$ac_objext'
  6892. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6893. (eval $ac_try) 2>&5
  6894. ac_status=$?
  6895. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6896. (exit $ac_status); }; }; then
  6897. ac_lo=$ac_mid; break
  6898. else
  6899. echo "$as_me: failed program was:" >&5
  6900. sed 's/^/| /' conftest.$ac_ext >&5
  6901. ac_hi=`expr '(' $ac_mid ')' - 1`
  6902. if test $ac_mid -le $ac_hi; then
  6903. ac_lo= ac_hi=
  6904. break
  6905. fi
  6906. ac_mid=`expr 2 '*' $ac_mid`
  6907. fi
  6908. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6909. done
  6910. else
  6911. echo "$as_me: failed program was:" >&5
  6912. sed 's/^/| /' conftest.$ac_ext >&5
  6913. ac_lo= ac_hi=
  6914. fi
  6915. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6916. fi
  6917. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6918. # Binary search between lo and hi bounds.
  6919. while test "x$ac_lo" != "x$ac_hi"; do
  6920. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6921. cat >conftest.$ac_ext <<_ACEOF
  6922. /* confdefs.h. */
  6923. _ACEOF
  6924. cat confdefs.h >>conftest.$ac_ext
  6925. cat >>conftest.$ac_ext <<_ACEOF
  6926. /* end confdefs.h. */
  6927. $ac_includes_default
  6928. int
  6929. main ()
  6930. {
  6931. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6932. test_array [0] = 0
  6933. ;
  6934. return 0;
  6935. }
  6936. _ACEOF
  6937. rm -f conftest.$ac_objext
  6938. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6939. (eval $ac_compile) 2>conftest.er1
  6940. ac_status=$?
  6941. grep -v '^ *+' conftest.er1 >conftest.err
  6942. rm -f conftest.er1
  6943. cat conftest.err >&5
  6944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6945. (exit $ac_status); } &&
  6946. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6947. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6948. (eval $ac_try) 2>&5
  6949. ac_status=$?
  6950. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6951. (exit $ac_status); }; } &&
  6952. { ac_try='test -s conftest.$ac_objext'
  6953. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6954. (eval $ac_try) 2>&5
  6955. ac_status=$?
  6956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6957. (exit $ac_status); }; }; then
  6958. ac_hi=$ac_mid
  6959. else
  6960. echo "$as_me: failed program was:" >&5
  6961. sed 's/^/| /' conftest.$ac_ext >&5
  6962. ac_lo=`expr '(' $ac_mid ')' + 1`
  6963. fi
  6964. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6965. done
  6966. case $ac_lo in
  6967. ?*) ac_cv_sizeof_short=$ac_lo;;
  6968. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6969. See \`config.log' for more details." >&5
  6970. echo "$as_me: error: cannot compute sizeof (short), 77
  6971. See \`config.log' for more details." >&2;}
  6972. { (exit 1); exit 1; }; } ;;
  6973. esac
  6974. else
  6975. if test "$cross_compiling" = yes; then
  6976. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6977. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6978. { (exit 1); exit 1; }; }
  6979. else
  6980. cat >conftest.$ac_ext <<_ACEOF
  6981. /* confdefs.h. */
  6982. _ACEOF
  6983. cat confdefs.h >>conftest.$ac_ext
  6984. cat >>conftest.$ac_ext <<_ACEOF
  6985. /* end confdefs.h. */
  6986. $ac_includes_default
  6987. long longval () { return (long) (sizeof (short)); }
  6988. unsigned long ulongval () { return (long) (sizeof (short)); }
  6989. #include <stdio.h>
  6990. #include <stdlib.h>
  6991. int
  6992. main ()
  6993. {
  6994. FILE *f = fopen ("conftest.val", "w");
  6995. if (! f)
  6996. exit (1);
  6997. if (((long) (sizeof (short))) < 0)
  6998. {
  6999. long i = longval ();
  7000. if (i != ((long) (sizeof (short))))
  7001. exit (1);
  7002. fprintf (f, "%ld\n", i);
  7003. }
  7004. else
  7005. {
  7006. unsigned long i = ulongval ();
  7007. if (i != ((long) (sizeof (short))))
  7008. exit (1);
  7009. fprintf (f, "%lu\n", i);
  7010. }
  7011. exit (ferror (f) || fclose (f) != 0);
  7012. ;
  7013. return 0;
  7014. }
  7015. _ACEOF
  7016. rm -f conftest$ac_exeext
  7017. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7018. (eval $ac_link) 2>&5
  7019. ac_status=$?
  7020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7021. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7022. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7023. (eval $ac_try) 2>&5
  7024. ac_status=$?
  7025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7026. (exit $ac_status); }; }; then
  7027. ac_cv_sizeof_short=`cat conftest.val`
  7028. else
  7029. echo "$as_me: program exited with status $ac_status" >&5
  7030. echo "$as_me: failed program was:" >&5
  7031. sed 's/^/| /' conftest.$ac_ext >&5
  7032. ( exit $ac_status )
  7033. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  7034. See \`config.log' for more details." >&5
  7035. echo "$as_me: error: cannot compute sizeof (short), 77
  7036. See \`config.log' for more details." >&2;}
  7037. { (exit 1); exit 1; }; }
  7038. fi
  7039. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7040. fi
  7041. fi
  7042. rm -f conftest.val
  7043. else
  7044. ac_cv_sizeof_short=0
  7045. fi
  7046. fi
  7047. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  7048. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  7049. cat >>confdefs.h <<_ACEOF
  7050. #define SIZEOF_SHORT $ac_cv_sizeof_short
  7051. _ACEOF
  7052. echo "$as_me:$LINENO: checking for long" >&5
  7053. echo $ECHO_N "checking for long... $ECHO_C" >&6
  7054. if test "${ac_cv_type_long+set}" = set; then
  7055. echo $ECHO_N "(cached) $ECHO_C" >&6
  7056. else
  7057. cat >conftest.$ac_ext <<_ACEOF
  7058. /* confdefs.h. */
  7059. _ACEOF
  7060. cat confdefs.h >>conftest.$ac_ext
  7061. cat >>conftest.$ac_ext <<_ACEOF
  7062. /* end confdefs.h. */
  7063. $ac_includes_default
  7064. int
  7065. main ()
  7066. {
  7067. if ((long *) 0)
  7068. return 0;
  7069. if (sizeof (long))
  7070. return 0;
  7071. ;
  7072. return 0;
  7073. }
  7074. _ACEOF
  7075. rm -f conftest.$ac_objext
  7076. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7077. (eval $ac_compile) 2>conftest.er1
  7078. ac_status=$?
  7079. grep -v '^ *+' conftest.er1 >conftest.err
  7080. rm -f conftest.er1
  7081. cat conftest.err >&5
  7082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7083. (exit $ac_status); } &&
  7084. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7086. (eval $ac_try) 2>&5
  7087. ac_status=$?
  7088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7089. (exit $ac_status); }; } &&
  7090. { ac_try='test -s conftest.$ac_objext'
  7091. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7092. (eval $ac_try) 2>&5
  7093. ac_status=$?
  7094. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7095. (exit $ac_status); }; }; then
  7096. ac_cv_type_long=yes
  7097. else
  7098. echo "$as_me: failed program was:" >&5
  7099. sed 's/^/| /' conftest.$ac_ext >&5
  7100. ac_cv_type_long=no
  7101. fi
  7102. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7103. fi
  7104. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  7105. echo "${ECHO_T}$ac_cv_type_long" >&6
  7106. echo "$as_me:$LINENO: checking size of long" >&5
  7107. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  7108. if test "${ac_cv_sizeof_long+set}" = set; then
  7109. echo $ECHO_N "(cached) $ECHO_C" >&6
  7110. else
  7111. if test "$ac_cv_type_long" = yes; then
  7112. # The cast to unsigned long works around a bug in the HP C Compiler
  7113. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7114. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7115. # This bug is HP SR number 8606223364.
  7116. if test "$cross_compiling" = yes; then
  7117. # Depending upon the size, compute the lo and hi bounds.
  7118. cat >conftest.$ac_ext <<_ACEOF
  7119. /* confdefs.h. */
  7120. _ACEOF
  7121. cat confdefs.h >>conftest.$ac_ext
  7122. cat >>conftest.$ac_ext <<_ACEOF
  7123. /* end confdefs.h. */
  7124. $ac_includes_default
  7125. int
  7126. main ()
  7127. {
  7128. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  7129. test_array [0] = 0
  7130. ;
  7131. return 0;
  7132. }
  7133. _ACEOF
  7134. rm -f conftest.$ac_objext
  7135. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7136. (eval $ac_compile) 2>conftest.er1
  7137. ac_status=$?
  7138. grep -v '^ *+' conftest.er1 >conftest.err
  7139. rm -f conftest.er1
  7140. cat conftest.err >&5
  7141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7142. (exit $ac_status); } &&
  7143. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7145. (eval $ac_try) 2>&5
  7146. ac_status=$?
  7147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7148. (exit $ac_status); }; } &&
  7149. { ac_try='test -s conftest.$ac_objext'
  7150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7151. (eval $ac_try) 2>&5
  7152. ac_status=$?
  7153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7154. (exit $ac_status); }; }; then
  7155. ac_lo=0 ac_mid=0
  7156. while :; do
  7157. cat >conftest.$ac_ext <<_ACEOF
  7158. /* confdefs.h. */
  7159. _ACEOF
  7160. cat confdefs.h >>conftest.$ac_ext
  7161. cat >>conftest.$ac_ext <<_ACEOF
  7162. /* end confdefs.h. */
  7163. $ac_includes_default
  7164. int
  7165. main ()
  7166. {
  7167. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7168. test_array [0] = 0
  7169. ;
  7170. return 0;
  7171. }
  7172. _ACEOF
  7173. rm -f conftest.$ac_objext
  7174. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7175. (eval $ac_compile) 2>conftest.er1
  7176. ac_status=$?
  7177. grep -v '^ *+' conftest.er1 >conftest.err
  7178. rm -f conftest.er1
  7179. cat conftest.err >&5
  7180. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7181. (exit $ac_status); } &&
  7182. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7183. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7184. (eval $ac_try) 2>&5
  7185. ac_status=$?
  7186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7187. (exit $ac_status); }; } &&
  7188. { ac_try='test -s conftest.$ac_objext'
  7189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7190. (eval $ac_try) 2>&5
  7191. ac_status=$?
  7192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7193. (exit $ac_status); }; }; then
  7194. ac_hi=$ac_mid; break
  7195. else
  7196. echo "$as_me: failed program was:" >&5
  7197. sed 's/^/| /' conftest.$ac_ext >&5
  7198. ac_lo=`expr $ac_mid + 1`
  7199. if test $ac_lo -le $ac_mid; then
  7200. ac_lo= ac_hi=
  7201. break
  7202. fi
  7203. ac_mid=`expr 2 '*' $ac_mid + 1`
  7204. fi
  7205. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7206. done
  7207. else
  7208. echo "$as_me: failed program was:" >&5
  7209. sed 's/^/| /' conftest.$ac_ext >&5
  7210. cat >conftest.$ac_ext <<_ACEOF
  7211. /* confdefs.h. */
  7212. _ACEOF
  7213. cat confdefs.h >>conftest.$ac_ext
  7214. cat >>conftest.$ac_ext <<_ACEOF
  7215. /* end confdefs.h. */
  7216. $ac_includes_default
  7217. int
  7218. main ()
  7219. {
  7220. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  7221. test_array [0] = 0
  7222. ;
  7223. return 0;
  7224. }
  7225. _ACEOF
  7226. rm -f conftest.$ac_objext
  7227. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7228. (eval $ac_compile) 2>conftest.er1
  7229. ac_status=$?
  7230. grep -v '^ *+' conftest.er1 >conftest.err
  7231. rm -f conftest.er1
  7232. cat conftest.err >&5
  7233. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7234. (exit $ac_status); } &&
  7235. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7236. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7237. (eval $ac_try) 2>&5
  7238. ac_status=$?
  7239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7240. (exit $ac_status); }; } &&
  7241. { ac_try='test -s conftest.$ac_objext'
  7242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7243. (eval $ac_try) 2>&5
  7244. ac_status=$?
  7245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7246. (exit $ac_status); }; }; then
  7247. ac_hi=-1 ac_mid=-1
  7248. while :; do
  7249. cat >conftest.$ac_ext <<_ACEOF
  7250. /* confdefs.h. */
  7251. _ACEOF
  7252. cat confdefs.h >>conftest.$ac_ext
  7253. cat >>conftest.$ac_ext <<_ACEOF
  7254. /* end confdefs.h. */
  7255. $ac_includes_default
  7256. int
  7257. main ()
  7258. {
  7259. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  7260. test_array [0] = 0
  7261. ;
  7262. return 0;
  7263. }
  7264. _ACEOF
  7265. rm -f conftest.$ac_objext
  7266. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7267. (eval $ac_compile) 2>conftest.er1
  7268. ac_status=$?
  7269. grep -v '^ *+' conftest.er1 >conftest.err
  7270. rm -f conftest.er1
  7271. cat conftest.err >&5
  7272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7273. (exit $ac_status); } &&
  7274. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7276. (eval $ac_try) 2>&5
  7277. ac_status=$?
  7278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7279. (exit $ac_status); }; } &&
  7280. { ac_try='test -s conftest.$ac_objext'
  7281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7282. (eval $ac_try) 2>&5
  7283. ac_status=$?
  7284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7285. (exit $ac_status); }; }; then
  7286. ac_lo=$ac_mid; break
  7287. else
  7288. echo "$as_me: failed program was:" >&5
  7289. sed 's/^/| /' conftest.$ac_ext >&5
  7290. ac_hi=`expr '(' $ac_mid ')' - 1`
  7291. if test $ac_mid -le $ac_hi; then
  7292. ac_lo= ac_hi=
  7293. break
  7294. fi
  7295. ac_mid=`expr 2 '*' $ac_mid`
  7296. fi
  7297. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7298. done
  7299. else
  7300. echo "$as_me: failed program was:" >&5
  7301. sed 's/^/| /' conftest.$ac_ext >&5
  7302. ac_lo= ac_hi=
  7303. fi
  7304. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7305. fi
  7306. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7307. # Binary search between lo and hi bounds.
  7308. while test "x$ac_lo" != "x$ac_hi"; do
  7309. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7310. cat >conftest.$ac_ext <<_ACEOF
  7311. /* confdefs.h. */
  7312. _ACEOF
  7313. cat confdefs.h >>conftest.$ac_ext
  7314. cat >>conftest.$ac_ext <<_ACEOF
  7315. /* end confdefs.h. */
  7316. $ac_includes_default
  7317. int
  7318. main ()
  7319. {
  7320. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  7321. test_array [0] = 0
  7322. ;
  7323. return 0;
  7324. }
  7325. _ACEOF
  7326. rm -f conftest.$ac_objext
  7327. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7328. (eval $ac_compile) 2>conftest.er1
  7329. ac_status=$?
  7330. grep -v '^ *+' conftest.er1 >conftest.err
  7331. rm -f conftest.er1
  7332. cat conftest.err >&5
  7333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7334. (exit $ac_status); } &&
  7335. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7337. (eval $ac_try) 2>&5
  7338. ac_status=$?
  7339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7340. (exit $ac_status); }; } &&
  7341. { ac_try='test -s conftest.$ac_objext'
  7342. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7343. (eval $ac_try) 2>&5
  7344. ac_status=$?
  7345. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7346. (exit $ac_status); }; }; then
  7347. ac_hi=$ac_mid
  7348. else
  7349. echo "$as_me: failed program was:" >&5
  7350. sed 's/^/| /' conftest.$ac_ext >&5
  7351. ac_lo=`expr '(' $ac_mid ')' + 1`
  7352. fi
  7353. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7354. done
  7355. case $ac_lo in
  7356. ?*) ac_cv_sizeof_long=$ac_lo;;
  7357. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7358. See \`config.log' for more details." >&5
  7359. echo "$as_me: error: cannot compute sizeof (long), 77
  7360. See \`config.log' for more details." >&2;}
  7361. { (exit 1); exit 1; }; } ;;
  7362. esac
  7363. else
  7364. if test "$cross_compiling" = yes; then
  7365. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7366. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7367. { (exit 1); exit 1; }; }
  7368. else
  7369. cat >conftest.$ac_ext <<_ACEOF
  7370. /* confdefs.h. */
  7371. _ACEOF
  7372. cat confdefs.h >>conftest.$ac_ext
  7373. cat >>conftest.$ac_ext <<_ACEOF
  7374. /* end confdefs.h. */
  7375. $ac_includes_default
  7376. long longval () { return (long) (sizeof (long)); }
  7377. unsigned long ulongval () { return (long) (sizeof (long)); }
  7378. #include <stdio.h>
  7379. #include <stdlib.h>
  7380. int
  7381. main ()
  7382. {
  7383. FILE *f = fopen ("conftest.val", "w");
  7384. if (! f)
  7385. exit (1);
  7386. if (((long) (sizeof (long))) < 0)
  7387. {
  7388. long i = longval ();
  7389. if (i != ((long) (sizeof (long))))
  7390. exit (1);
  7391. fprintf (f, "%ld\n", i);
  7392. }
  7393. else
  7394. {
  7395. unsigned long i = ulongval ();
  7396. if (i != ((long) (sizeof (long))))
  7397. exit (1);
  7398. fprintf (f, "%lu\n", i);
  7399. }
  7400. exit (ferror (f) || fclose (f) != 0);
  7401. ;
  7402. return 0;
  7403. }
  7404. _ACEOF
  7405. rm -f conftest$ac_exeext
  7406. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7407. (eval $ac_link) 2>&5
  7408. ac_status=$?
  7409. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7410. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7411. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7412. (eval $ac_try) 2>&5
  7413. ac_status=$?
  7414. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7415. (exit $ac_status); }; }; then
  7416. ac_cv_sizeof_long=`cat conftest.val`
  7417. else
  7418. echo "$as_me: program exited with status $ac_status" >&5
  7419. echo "$as_me: failed program was:" >&5
  7420. sed 's/^/| /' conftest.$ac_ext >&5
  7421. ( exit $ac_status )
  7422. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  7423. See \`config.log' for more details." >&5
  7424. echo "$as_me: error: cannot compute sizeof (long), 77
  7425. See \`config.log' for more details." >&2;}
  7426. { (exit 1); exit 1; }; }
  7427. fi
  7428. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7429. fi
  7430. fi
  7431. rm -f conftest.val
  7432. else
  7433. ac_cv_sizeof_long=0
  7434. fi
  7435. fi
  7436. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7437. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7438. cat >>confdefs.h <<_ACEOF
  7439. #define SIZEOF_LONG $ac_cv_sizeof_long
  7440. _ACEOF
  7441. echo "$as_me:$LINENO: checking for long long" >&5
  7442. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  7443. if test "${ac_cv_type_long_long+set}" = set; then
  7444. echo $ECHO_N "(cached) $ECHO_C" >&6
  7445. else
  7446. cat >conftest.$ac_ext <<_ACEOF
  7447. /* confdefs.h. */
  7448. _ACEOF
  7449. cat confdefs.h >>conftest.$ac_ext
  7450. cat >>conftest.$ac_ext <<_ACEOF
  7451. /* end confdefs.h. */
  7452. $ac_includes_default
  7453. int
  7454. main ()
  7455. {
  7456. if ((long long *) 0)
  7457. return 0;
  7458. if (sizeof (long long))
  7459. return 0;
  7460. ;
  7461. return 0;
  7462. }
  7463. _ACEOF
  7464. rm -f conftest.$ac_objext
  7465. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7466. (eval $ac_compile) 2>conftest.er1
  7467. ac_status=$?
  7468. grep -v '^ *+' conftest.er1 >conftest.err
  7469. rm -f conftest.er1
  7470. cat conftest.err >&5
  7471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7472. (exit $ac_status); } &&
  7473. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7474. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7475. (eval $ac_try) 2>&5
  7476. ac_status=$?
  7477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7478. (exit $ac_status); }; } &&
  7479. { ac_try='test -s conftest.$ac_objext'
  7480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7481. (eval $ac_try) 2>&5
  7482. ac_status=$?
  7483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7484. (exit $ac_status); }; }; then
  7485. ac_cv_type_long_long=yes
  7486. else
  7487. echo "$as_me: failed program was:" >&5
  7488. sed 's/^/| /' conftest.$ac_ext >&5
  7489. ac_cv_type_long_long=no
  7490. fi
  7491. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7492. fi
  7493. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  7494. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  7495. echo "$as_me:$LINENO: checking size of long long" >&5
  7496. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  7497. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7498. echo $ECHO_N "(cached) $ECHO_C" >&6
  7499. else
  7500. if test "$ac_cv_type_long_long" = yes; then
  7501. # The cast to unsigned long works around a bug in the HP C Compiler
  7502. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7503. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7504. # This bug is HP SR number 8606223364.
  7505. if test "$cross_compiling" = yes; then
  7506. # Depending upon the size, compute the lo and hi bounds.
  7507. cat >conftest.$ac_ext <<_ACEOF
  7508. /* confdefs.h. */
  7509. _ACEOF
  7510. cat confdefs.h >>conftest.$ac_ext
  7511. cat >>conftest.$ac_ext <<_ACEOF
  7512. /* end confdefs.h. */
  7513. $ac_includes_default
  7514. int
  7515. main ()
  7516. {
  7517. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  7518. test_array [0] = 0
  7519. ;
  7520. return 0;
  7521. }
  7522. _ACEOF
  7523. rm -f conftest.$ac_objext
  7524. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7525. (eval $ac_compile) 2>conftest.er1
  7526. ac_status=$?
  7527. grep -v '^ *+' conftest.er1 >conftest.err
  7528. rm -f conftest.er1
  7529. cat conftest.err >&5
  7530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7531. (exit $ac_status); } &&
  7532. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7533. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7534. (eval $ac_try) 2>&5
  7535. ac_status=$?
  7536. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7537. (exit $ac_status); }; } &&
  7538. { ac_try='test -s conftest.$ac_objext'
  7539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7540. (eval $ac_try) 2>&5
  7541. ac_status=$?
  7542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7543. (exit $ac_status); }; }; then
  7544. ac_lo=0 ac_mid=0
  7545. while :; do
  7546. cat >conftest.$ac_ext <<_ACEOF
  7547. /* confdefs.h. */
  7548. _ACEOF
  7549. cat confdefs.h >>conftest.$ac_ext
  7550. cat >>conftest.$ac_ext <<_ACEOF
  7551. /* end confdefs.h. */
  7552. $ac_includes_default
  7553. int
  7554. main ()
  7555. {
  7556. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7557. test_array [0] = 0
  7558. ;
  7559. return 0;
  7560. }
  7561. _ACEOF
  7562. rm -f conftest.$ac_objext
  7563. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7564. (eval $ac_compile) 2>conftest.er1
  7565. ac_status=$?
  7566. grep -v '^ *+' conftest.er1 >conftest.err
  7567. rm -f conftest.er1
  7568. cat conftest.err >&5
  7569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7570. (exit $ac_status); } &&
  7571. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7572. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7573. (eval $ac_try) 2>&5
  7574. ac_status=$?
  7575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7576. (exit $ac_status); }; } &&
  7577. { ac_try='test -s conftest.$ac_objext'
  7578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7579. (eval $ac_try) 2>&5
  7580. ac_status=$?
  7581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7582. (exit $ac_status); }; }; then
  7583. ac_hi=$ac_mid; break
  7584. else
  7585. echo "$as_me: failed program was:" >&5
  7586. sed 's/^/| /' conftest.$ac_ext >&5
  7587. ac_lo=`expr $ac_mid + 1`
  7588. if test $ac_lo -le $ac_mid; then
  7589. ac_lo= ac_hi=
  7590. break
  7591. fi
  7592. ac_mid=`expr 2 '*' $ac_mid + 1`
  7593. fi
  7594. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7595. done
  7596. else
  7597. echo "$as_me: failed program was:" >&5
  7598. sed 's/^/| /' conftest.$ac_ext >&5
  7599. cat >conftest.$ac_ext <<_ACEOF
  7600. /* confdefs.h. */
  7601. _ACEOF
  7602. cat confdefs.h >>conftest.$ac_ext
  7603. cat >>conftest.$ac_ext <<_ACEOF
  7604. /* end confdefs.h. */
  7605. $ac_includes_default
  7606. int
  7607. main ()
  7608. {
  7609. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  7610. test_array [0] = 0
  7611. ;
  7612. return 0;
  7613. }
  7614. _ACEOF
  7615. rm -f conftest.$ac_objext
  7616. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7617. (eval $ac_compile) 2>conftest.er1
  7618. ac_status=$?
  7619. grep -v '^ *+' conftest.er1 >conftest.err
  7620. rm -f conftest.er1
  7621. cat conftest.err >&5
  7622. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7623. (exit $ac_status); } &&
  7624. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7625. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7626. (eval $ac_try) 2>&5
  7627. ac_status=$?
  7628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7629. (exit $ac_status); }; } &&
  7630. { ac_try='test -s conftest.$ac_objext'
  7631. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7632. (eval $ac_try) 2>&5
  7633. ac_status=$?
  7634. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7635. (exit $ac_status); }; }; then
  7636. ac_hi=-1 ac_mid=-1
  7637. while :; do
  7638. cat >conftest.$ac_ext <<_ACEOF
  7639. /* confdefs.h. */
  7640. _ACEOF
  7641. cat confdefs.h >>conftest.$ac_ext
  7642. cat >>conftest.$ac_ext <<_ACEOF
  7643. /* end confdefs.h. */
  7644. $ac_includes_default
  7645. int
  7646. main ()
  7647. {
  7648. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  7649. test_array [0] = 0
  7650. ;
  7651. return 0;
  7652. }
  7653. _ACEOF
  7654. rm -f conftest.$ac_objext
  7655. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7656. (eval $ac_compile) 2>conftest.er1
  7657. ac_status=$?
  7658. grep -v '^ *+' conftest.er1 >conftest.err
  7659. rm -f conftest.er1
  7660. cat conftest.err >&5
  7661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7662. (exit $ac_status); } &&
  7663. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7665. (eval $ac_try) 2>&5
  7666. ac_status=$?
  7667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7668. (exit $ac_status); }; } &&
  7669. { ac_try='test -s conftest.$ac_objext'
  7670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7671. (eval $ac_try) 2>&5
  7672. ac_status=$?
  7673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7674. (exit $ac_status); }; }; then
  7675. ac_lo=$ac_mid; break
  7676. else
  7677. echo "$as_me: failed program was:" >&5
  7678. sed 's/^/| /' conftest.$ac_ext >&5
  7679. ac_hi=`expr '(' $ac_mid ')' - 1`
  7680. if test $ac_mid -le $ac_hi; then
  7681. ac_lo= ac_hi=
  7682. break
  7683. fi
  7684. ac_mid=`expr 2 '*' $ac_mid`
  7685. fi
  7686. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7687. done
  7688. else
  7689. echo "$as_me: failed program was:" >&5
  7690. sed 's/^/| /' conftest.$ac_ext >&5
  7691. ac_lo= ac_hi=
  7692. fi
  7693. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7694. fi
  7695. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7696. # Binary search between lo and hi bounds.
  7697. while test "x$ac_lo" != "x$ac_hi"; do
  7698. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7699. cat >conftest.$ac_ext <<_ACEOF
  7700. /* confdefs.h. */
  7701. _ACEOF
  7702. cat confdefs.h >>conftest.$ac_ext
  7703. cat >>conftest.$ac_ext <<_ACEOF
  7704. /* end confdefs.h. */
  7705. $ac_includes_default
  7706. int
  7707. main ()
  7708. {
  7709. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7710. test_array [0] = 0
  7711. ;
  7712. return 0;
  7713. }
  7714. _ACEOF
  7715. rm -f conftest.$ac_objext
  7716. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7717. (eval $ac_compile) 2>conftest.er1
  7718. ac_status=$?
  7719. grep -v '^ *+' conftest.er1 >conftest.err
  7720. rm -f conftest.er1
  7721. cat conftest.err >&5
  7722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7723. (exit $ac_status); } &&
  7724. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7726. (eval $ac_try) 2>&5
  7727. ac_status=$?
  7728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7729. (exit $ac_status); }; } &&
  7730. { ac_try='test -s conftest.$ac_objext'
  7731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7732. (eval $ac_try) 2>&5
  7733. ac_status=$?
  7734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7735. (exit $ac_status); }; }; then
  7736. ac_hi=$ac_mid
  7737. else
  7738. echo "$as_me: failed program was:" >&5
  7739. sed 's/^/| /' conftest.$ac_ext >&5
  7740. ac_lo=`expr '(' $ac_mid ')' + 1`
  7741. fi
  7742. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7743. done
  7744. case $ac_lo in
  7745. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7746. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7747. See \`config.log' for more details." >&5
  7748. echo "$as_me: error: cannot compute sizeof (long long), 77
  7749. See \`config.log' for more details." >&2;}
  7750. { (exit 1); exit 1; }; } ;;
  7751. esac
  7752. else
  7753. if test "$cross_compiling" = yes; then
  7754. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7755. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7756. { (exit 1); exit 1; }; }
  7757. else
  7758. cat >conftest.$ac_ext <<_ACEOF
  7759. /* confdefs.h. */
  7760. _ACEOF
  7761. cat confdefs.h >>conftest.$ac_ext
  7762. cat >>conftest.$ac_ext <<_ACEOF
  7763. /* end confdefs.h. */
  7764. $ac_includes_default
  7765. long longval () { return (long) (sizeof (long long)); }
  7766. unsigned long ulongval () { return (long) (sizeof (long long)); }
  7767. #include <stdio.h>
  7768. #include <stdlib.h>
  7769. int
  7770. main ()
  7771. {
  7772. FILE *f = fopen ("conftest.val", "w");
  7773. if (! f)
  7774. exit (1);
  7775. if (((long) (sizeof (long long))) < 0)
  7776. {
  7777. long i = longval ();
  7778. if (i != ((long) (sizeof (long long))))
  7779. exit (1);
  7780. fprintf (f, "%ld\n", i);
  7781. }
  7782. else
  7783. {
  7784. unsigned long i = ulongval ();
  7785. if (i != ((long) (sizeof (long long))))
  7786. exit (1);
  7787. fprintf (f, "%lu\n", i);
  7788. }
  7789. exit (ferror (f) || fclose (f) != 0);
  7790. ;
  7791. return 0;
  7792. }
  7793. _ACEOF
  7794. rm -f conftest$ac_exeext
  7795. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7796. (eval $ac_link) 2>&5
  7797. ac_status=$?
  7798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7799. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7801. (eval $ac_try) 2>&5
  7802. ac_status=$?
  7803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7804. (exit $ac_status); }; }; then
  7805. ac_cv_sizeof_long_long=`cat conftest.val`
  7806. else
  7807. echo "$as_me: program exited with status $ac_status" >&5
  7808. echo "$as_me: failed program was:" >&5
  7809. sed 's/^/| /' conftest.$ac_ext >&5
  7810. ( exit $ac_status )
  7811. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7812. See \`config.log' for more details." >&5
  7813. echo "$as_me: error: cannot compute sizeof (long long), 77
  7814. See \`config.log' for more details." >&2;}
  7815. { (exit 1); exit 1; }; }
  7816. fi
  7817. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7818. fi
  7819. fi
  7820. rm -f conftest.val
  7821. else
  7822. ac_cv_sizeof_long_long=0
  7823. fi
  7824. fi
  7825. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7826. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  7827. cat >>confdefs.h <<_ACEOF
  7828. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7829. _ACEOF
  7830. if test $ac_cv_c_compiler_gnu = yes; then
  7831. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7832. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7833. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7834. echo $ECHO_N "(cached) $ECHO_C" >&6
  7835. else
  7836. ac_pattern="Autoconf.*'x'"
  7837. cat >conftest.$ac_ext <<_ACEOF
  7838. /* confdefs.h. */
  7839. _ACEOF
  7840. cat confdefs.h >>conftest.$ac_ext
  7841. cat >>conftest.$ac_ext <<_ACEOF
  7842. /* end confdefs.h. */
  7843. #include <sgtty.h>
  7844. Autoconf TIOCGETP
  7845. _ACEOF
  7846. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7847. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7848. ac_cv_prog_gcc_traditional=yes
  7849. else
  7850. ac_cv_prog_gcc_traditional=no
  7851. fi
  7852. rm -f conftest*
  7853. if test $ac_cv_prog_gcc_traditional = no; then
  7854. cat >conftest.$ac_ext <<_ACEOF
  7855. /* confdefs.h. */
  7856. _ACEOF
  7857. cat confdefs.h >>conftest.$ac_ext
  7858. cat >>conftest.$ac_ext <<_ACEOF
  7859. /* end confdefs.h. */
  7860. #include <termio.h>
  7861. Autoconf TCGETA
  7862. _ACEOF
  7863. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7864. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7865. ac_cv_prog_gcc_traditional=yes
  7866. fi
  7867. rm -f conftest*
  7868. fi
  7869. fi
  7870. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7871. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7872. if test $ac_cv_prog_gcc_traditional = yes; then
  7873. CC="$CC -traditional"
  7874. fi
  7875. fi
  7876. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7877. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7878. if test "${ac_cv_struct_tm+set}" = set; then
  7879. echo $ECHO_N "(cached) $ECHO_C" >&6
  7880. else
  7881. cat >conftest.$ac_ext <<_ACEOF
  7882. /* confdefs.h. */
  7883. _ACEOF
  7884. cat confdefs.h >>conftest.$ac_ext
  7885. cat >>conftest.$ac_ext <<_ACEOF
  7886. /* end confdefs.h. */
  7887. #include <sys/types.h>
  7888. #include <time.h>
  7889. int
  7890. main ()
  7891. {
  7892. struct tm *tp; tp->tm_sec;
  7893. ;
  7894. return 0;
  7895. }
  7896. _ACEOF
  7897. rm -f conftest.$ac_objext
  7898. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7899. (eval $ac_compile) 2>conftest.er1
  7900. ac_status=$?
  7901. grep -v '^ *+' conftest.er1 >conftest.err
  7902. rm -f conftest.er1
  7903. cat conftest.err >&5
  7904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7905. (exit $ac_status); } &&
  7906. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7907. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7908. (eval $ac_try) 2>&5
  7909. ac_status=$?
  7910. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7911. (exit $ac_status); }; } &&
  7912. { ac_try='test -s conftest.$ac_objext'
  7913. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7914. (eval $ac_try) 2>&5
  7915. ac_status=$?
  7916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7917. (exit $ac_status); }; }; then
  7918. ac_cv_struct_tm=time.h
  7919. else
  7920. echo "$as_me: failed program was:" >&5
  7921. sed 's/^/| /' conftest.$ac_ext >&5
  7922. ac_cv_struct_tm=sys/time.h
  7923. fi
  7924. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7925. fi
  7926. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7927. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7928. if test $ac_cv_struct_tm = sys/time.h; then
  7929. cat >>confdefs.h <<\_ACEOF
  7930. #define TM_IN_SYS_TIME 1
  7931. _ACEOF
  7932. fi
  7933. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7934. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7935. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7936. echo $ECHO_N "(cached) $ECHO_C" >&6
  7937. else
  7938. cat >conftest.$ac_ext <<_ACEOF
  7939. /* confdefs.h. */
  7940. _ACEOF
  7941. cat confdefs.h >>conftest.$ac_ext
  7942. cat >>conftest.$ac_ext <<_ACEOF
  7943. /* end confdefs.h. */
  7944. #include <sys/types.h>
  7945. #include <$ac_cv_struct_tm>
  7946. int
  7947. main ()
  7948. {
  7949. static struct tm ac_aggr;
  7950. if (ac_aggr.tm_zone)
  7951. return 0;
  7952. ;
  7953. return 0;
  7954. }
  7955. _ACEOF
  7956. rm -f conftest.$ac_objext
  7957. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7958. (eval $ac_compile) 2>conftest.er1
  7959. ac_status=$?
  7960. grep -v '^ *+' conftest.er1 >conftest.err
  7961. rm -f conftest.er1
  7962. cat conftest.err >&5
  7963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7964. (exit $ac_status); } &&
  7965. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7967. (eval $ac_try) 2>&5
  7968. ac_status=$?
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. (exit $ac_status); }; } &&
  7971. { ac_try='test -s conftest.$ac_objext'
  7972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7973. (eval $ac_try) 2>&5
  7974. ac_status=$?
  7975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7976. (exit $ac_status); }; }; then
  7977. ac_cv_member_struct_tm_tm_zone=yes
  7978. else
  7979. echo "$as_me: failed program was:" >&5
  7980. sed 's/^/| /' conftest.$ac_ext >&5
  7981. cat >conftest.$ac_ext <<_ACEOF
  7982. /* confdefs.h. */
  7983. _ACEOF
  7984. cat confdefs.h >>conftest.$ac_ext
  7985. cat >>conftest.$ac_ext <<_ACEOF
  7986. /* end confdefs.h. */
  7987. #include <sys/types.h>
  7988. #include <$ac_cv_struct_tm>
  7989. int
  7990. main ()
  7991. {
  7992. static struct tm ac_aggr;
  7993. if (sizeof ac_aggr.tm_zone)
  7994. return 0;
  7995. ;
  7996. return 0;
  7997. }
  7998. _ACEOF
  7999. rm -f conftest.$ac_objext
  8000. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8001. (eval $ac_compile) 2>conftest.er1
  8002. ac_status=$?
  8003. grep -v '^ *+' conftest.er1 >conftest.err
  8004. rm -f conftest.er1
  8005. cat conftest.err >&5
  8006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8007. (exit $ac_status); } &&
  8008. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8010. (eval $ac_try) 2>&5
  8011. ac_status=$?
  8012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8013. (exit $ac_status); }; } &&
  8014. { ac_try='test -s conftest.$ac_objext'
  8015. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8016. (eval $ac_try) 2>&5
  8017. ac_status=$?
  8018. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8019. (exit $ac_status); }; }; then
  8020. ac_cv_member_struct_tm_tm_zone=yes
  8021. else
  8022. echo "$as_me: failed program was:" >&5
  8023. sed 's/^/| /' conftest.$ac_ext >&5
  8024. ac_cv_member_struct_tm_tm_zone=no
  8025. fi
  8026. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8027. fi
  8028. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8029. fi
  8030. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  8031. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  8032. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  8033. cat >>confdefs.h <<_ACEOF
  8034. #define HAVE_STRUCT_TM_TM_ZONE 1
  8035. _ACEOF
  8036. fi
  8037. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  8038. cat >>confdefs.h <<\_ACEOF
  8039. #define HAVE_TM_ZONE 1
  8040. _ACEOF
  8041. else
  8042. echo "$as_me:$LINENO: checking for tzname" >&5
  8043. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  8044. if test "${ac_cv_var_tzname+set}" = set; then
  8045. echo $ECHO_N "(cached) $ECHO_C" >&6
  8046. else
  8047. cat >conftest.$ac_ext <<_ACEOF
  8048. /* confdefs.h. */
  8049. _ACEOF
  8050. cat confdefs.h >>conftest.$ac_ext
  8051. cat >>conftest.$ac_ext <<_ACEOF
  8052. /* end confdefs.h. */
  8053. #include <time.h>
  8054. #ifndef tzname /* For SGI. */
  8055. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  8056. #endif
  8057. int
  8058. main ()
  8059. {
  8060. atoi(*tzname);
  8061. ;
  8062. return 0;
  8063. }
  8064. _ACEOF
  8065. rm -f conftest.$ac_objext conftest$ac_exeext
  8066. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8067. (eval $ac_link) 2>conftest.er1
  8068. ac_status=$?
  8069. grep -v '^ *+' conftest.er1 >conftest.err
  8070. rm -f conftest.er1
  8071. cat conftest.err >&5
  8072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8073. (exit $ac_status); } &&
  8074. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8076. (eval $ac_try) 2>&5
  8077. ac_status=$?
  8078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8079. (exit $ac_status); }; } &&
  8080. { ac_try='test -s conftest$ac_exeext'
  8081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8082. (eval $ac_try) 2>&5
  8083. ac_status=$?
  8084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8085. (exit $ac_status); }; }; then
  8086. ac_cv_var_tzname=yes
  8087. else
  8088. echo "$as_me: failed program was:" >&5
  8089. sed 's/^/| /' conftest.$ac_ext >&5
  8090. ac_cv_var_tzname=no
  8091. fi
  8092. rm -f conftest.err conftest.$ac_objext \
  8093. conftest$ac_exeext conftest.$ac_ext
  8094. fi
  8095. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  8096. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  8097. if test $ac_cv_var_tzname = yes; then
  8098. cat >>confdefs.h <<\_ACEOF
  8099. #define HAVE_TZNAME 1
  8100. _ACEOF
  8101. fi
  8102. fi
  8103. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  8104. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  8105. if test "${ac_cv_struct_tm+set}" = set; then
  8106. echo $ECHO_N "(cached) $ECHO_C" >&6
  8107. else
  8108. cat >conftest.$ac_ext <<_ACEOF
  8109. /* confdefs.h. */
  8110. _ACEOF
  8111. cat confdefs.h >>conftest.$ac_ext
  8112. cat >>conftest.$ac_ext <<_ACEOF
  8113. /* end confdefs.h. */
  8114. #include <sys/types.h>
  8115. #include <time.h>
  8116. int
  8117. main ()
  8118. {
  8119. struct tm *tp; tp->tm_sec;
  8120. ;
  8121. return 0;
  8122. }
  8123. _ACEOF
  8124. rm -f conftest.$ac_objext
  8125. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8126. (eval $ac_compile) 2>conftest.er1
  8127. ac_status=$?
  8128. grep -v '^ *+' conftest.er1 >conftest.err
  8129. rm -f conftest.er1
  8130. cat conftest.err >&5
  8131. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8132. (exit $ac_status); } &&
  8133. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8134. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8135. (eval $ac_try) 2>&5
  8136. ac_status=$?
  8137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8138. (exit $ac_status); }; } &&
  8139. { ac_try='test -s conftest.$ac_objext'
  8140. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8141. (eval $ac_try) 2>&5
  8142. ac_status=$?
  8143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8144. (exit $ac_status); }; }; then
  8145. ac_cv_struct_tm=time.h
  8146. else
  8147. echo "$as_me: failed program was:" >&5
  8148. sed 's/^/| /' conftest.$ac_ext >&5
  8149. ac_cv_struct_tm=sys/time.h
  8150. fi
  8151. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8152. fi
  8153. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  8154. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  8155. if test $ac_cv_struct_tm = sys/time.h; then
  8156. cat >>confdefs.h <<\_ACEOF
  8157. #define TM_IN_SYS_TIME 1
  8158. _ACEOF
  8159. fi
  8160. #checkpoint
  8161. cat >confcache <<\_ACEOF
  8162. # This file is a shell script that caches the results of configure
  8163. # tests run on this system so they can be shared between configure
  8164. # scripts and configure runs, see configure's option --config-cache.
  8165. # It is not useful on other systems. If it contains results you don't
  8166. # want to keep, you may remove or edit it.
  8167. #
  8168. # config.status only pays attention to the cache file if you give it
  8169. # the --recheck option to rerun configure.
  8170. #
  8171. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  8172. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  8173. # following values.
  8174. _ACEOF
  8175. # The following way of writing the cache mishandles newlines in values,
  8176. # but we know of no workaround that is simple, portable, and efficient.
  8177. # So, don't put newlines in cache variables' values.
  8178. # Ultrix sh set writes to stderr and can't be redirected directly,
  8179. # and sets the high bit in the cache file unless we assign to the vars.
  8180. {
  8181. (set) 2>&1 |
  8182. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8183. *ac_space=\ *)
  8184. # `set' does not quote correctly, so add quotes (double-quote
  8185. # substitution turns \\\\ into \\, and sed turns \\ into \).
  8186. sed -n \
  8187. "s/'/'\\\\''/g;
  8188. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  8189. ;;
  8190. *)
  8191. # `set' quotes correctly as required by POSIX, so do not add quotes.
  8192. sed -n \
  8193. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  8194. ;;
  8195. esac;
  8196. } |
  8197. sed '
  8198. t clear
  8199. : clear
  8200. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  8201. t end
  8202. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  8203. : end' >>confcache
  8204. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  8205. if test -w $cache_file; then
  8206. test "x$cache_file" != "x/dev/null"
  8207. cat confcache >$cache_file
  8208. else
  8209. echo "not updating unwritable cache $cache_file"
  8210. fi
  8211. fi
  8212. rm -f confcache
  8213. # Checks for library functions
  8214. for ac_header in unistd.h vfork.h
  8215. do
  8216. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8217. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8218. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8219. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8220. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8221. echo $ECHO_N "(cached) $ECHO_C" >&6
  8222. fi
  8223. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8224. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8225. else
  8226. # Is the header compilable?
  8227. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8228. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8229. cat >conftest.$ac_ext <<_ACEOF
  8230. /* confdefs.h. */
  8231. _ACEOF
  8232. cat confdefs.h >>conftest.$ac_ext
  8233. cat >>conftest.$ac_ext <<_ACEOF
  8234. /* end confdefs.h. */
  8235. $ac_includes_default
  8236. #include <$ac_header>
  8237. _ACEOF
  8238. rm -f conftest.$ac_objext
  8239. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8240. (eval $ac_compile) 2>conftest.er1
  8241. ac_status=$?
  8242. grep -v '^ *+' conftest.er1 >conftest.err
  8243. rm -f conftest.er1
  8244. cat conftest.err >&5
  8245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8246. (exit $ac_status); } &&
  8247. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8248. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8249. (eval $ac_try) 2>&5
  8250. ac_status=$?
  8251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8252. (exit $ac_status); }; } &&
  8253. { ac_try='test -s conftest.$ac_objext'
  8254. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8255. (eval $ac_try) 2>&5
  8256. ac_status=$?
  8257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8258. (exit $ac_status); }; }; then
  8259. ac_header_compiler=yes
  8260. else
  8261. echo "$as_me: failed program was:" >&5
  8262. sed 's/^/| /' conftest.$ac_ext >&5
  8263. ac_header_compiler=no
  8264. fi
  8265. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8266. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8267. echo "${ECHO_T}$ac_header_compiler" >&6
  8268. # Is the header present?
  8269. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8270. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8271. cat >conftest.$ac_ext <<_ACEOF
  8272. /* confdefs.h. */
  8273. _ACEOF
  8274. cat confdefs.h >>conftest.$ac_ext
  8275. cat >>conftest.$ac_ext <<_ACEOF
  8276. /* end confdefs.h. */
  8277. #include <$ac_header>
  8278. _ACEOF
  8279. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8280. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8281. ac_status=$?
  8282. grep -v '^ *+' conftest.er1 >conftest.err
  8283. rm -f conftest.er1
  8284. cat conftest.err >&5
  8285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8286. (exit $ac_status); } >/dev/null; then
  8287. if test -s conftest.err; then
  8288. ac_cpp_err=$ac_c_preproc_warn_flag
  8289. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8290. else
  8291. ac_cpp_err=
  8292. fi
  8293. else
  8294. ac_cpp_err=yes
  8295. fi
  8296. if test -z "$ac_cpp_err"; then
  8297. ac_header_preproc=yes
  8298. else
  8299. echo "$as_me: failed program was:" >&5
  8300. sed 's/^/| /' conftest.$ac_ext >&5
  8301. ac_header_preproc=no
  8302. fi
  8303. rm -f conftest.err conftest.$ac_ext
  8304. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8305. echo "${ECHO_T}$ac_header_preproc" >&6
  8306. # So? What about this header?
  8307. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8308. yes:no: )
  8309. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8310. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8311. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8312. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8313. ac_header_preproc=yes
  8314. ;;
  8315. no:yes:* )
  8316. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8317. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8318. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8319. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8320. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8321. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8322. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8323. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8324. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8325. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8326. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8327. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8328. (
  8329. cat <<\_ASBOX
  8330. ## ------------------------------------------ ##
  8331. ## Report this to the AC_PACKAGE_NAME lists. ##
  8332. ## ------------------------------------------ ##
  8333. _ASBOX
  8334. ) |
  8335. sed "s/^/$as_me: WARNING: /" >&2
  8336. ;;
  8337. esac
  8338. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8339. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8340. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8341. echo $ECHO_N "(cached) $ECHO_C" >&6
  8342. else
  8343. eval "$as_ac_Header=\$ac_header_preproc"
  8344. fi
  8345. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8346. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8347. fi
  8348. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8349. cat >>confdefs.h <<_ACEOF
  8350. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8351. _ACEOF
  8352. fi
  8353. done
  8354. for ac_func in fork vfork
  8355. do
  8356. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8357. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8358. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8359. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8360. echo $ECHO_N "(cached) $ECHO_C" >&6
  8361. else
  8362. cat >conftest.$ac_ext <<_ACEOF
  8363. /* confdefs.h. */
  8364. _ACEOF
  8365. cat confdefs.h >>conftest.$ac_ext
  8366. cat >>conftest.$ac_ext <<_ACEOF
  8367. /* end confdefs.h. */
  8368. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8369. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8370. #define $ac_func innocuous_$ac_func
  8371. /* System header to define __stub macros and hopefully few prototypes,
  8372. which can conflict with char $ac_func (); below.
  8373. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8374. <limits.h> exists even on freestanding compilers. */
  8375. #ifdef __STDC__
  8376. # include <limits.h>
  8377. #else
  8378. # include <assert.h>
  8379. #endif
  8380. #undef $ac_func
  8381. /* Override any gcc2 internal prototype to avoid an error. */
  8382. #ifdef __cplusplus
  8383. extern "C"
  8384. {
  8385. #endif
  8386. /* We use char because int might match the return type of a gcc2
  8387. builtin and then its argument prototype would still apply. */
  8388. char $ac_func ();
  8389. /* The GNU C library defines this for functions which it implements
  8390. to always fail with ENOSYS. Some functions are actually named
  8391. something starting with __ and the normal name is an alias. */
  8392. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8393. choke me
  8394. #else
  8395. char (*f) () = $ac_func;
  8396. #endif
  8397. #ifdef __cplusplus
  8398. }
  8399. #endif
  8400. int
  8401. main ()
  8402. {
  8403. return f != $ac_func;
  8404. ;
  8405. return 0;
  8406. }
  8407. _ACEOF
  8408. rm -f conftest.$ac_objext conftest$ac_exeext
  8409. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8410. (eval $ac_link) 2>conftest.er1
  8411. ac_status=$?
  8412. grep -v '^ *+' conftest.er1 >conftest.err
  8413. rm -f conftest.er1
  8414. cat conftest.err >&5
  8415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8416. (exit $ac_status); } &&
  8417. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8418. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8419. (eval $ac_try) 2>&5
  8420. ac_status=$?
  8421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8422. (exit $ac_status); }; } &&
  8423. { ac_try='test -s conftest$ac_exeext'
  8424. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8425. (eval $ac_try) 2>&5
  8426. ac_status=$?
  8427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8428. (exit $ac_status); }; }; then
  8429. eval "$as_ac_var=yes"
  8430. else
  8431. echo "$as_me: failed program was:" >&5
  8432. sed 's/^/| /' conftest.$ac_ext >&5
  8433. eval "$as_ac_var=no"
  8434. fi
  8435. rm -f conftest.err conftest.$ac_objext \
  8436. conftest$ac_exeext conftest.$ac_ext
  8437. fi
  8438. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8439. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8440. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8441. cat >>confdefs.h <<_ACEOF
  8442. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8443. _ACEOF
  8444. fi
  8445. done
  8446. if test "x$ac_cv_func_fork" = xyes; then
  8447. echo "$as_me:$LINENO: checking for working fork" >&5
  8448. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  8449. if test "${ac_cv_func_fork_works+set}" = set; then
  8450. echo $ECHO_N "(cached) $ECHO_C" >&6
  8451. else
  8452. if test "$cross_compiling" = yes; then
  8453. ac_cv_func_fork_works=cross
  8454. else
  8455. cat >conftest.$ac_ext <<_ACEOF
  8456. /* By Ruediger Kuhlmann. */
  8457. #include <sys/types.h>
  8458. #if HAVE_UNISTD_H
  8459. # include <unistd.h>
  8460. #endif
  8461. /* Some systems only have a dummy stub for fork() */
  8462. int main ()
  8463. {
  8464. if (fork() < 0)
  8465. exit (1);
  8466. exit (0);
  8467. }
  8468. _ACEOF
  8469. rm -f conftest$ac_exeext
  8470. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8471. (eval $ac_link) 2>&5
  8472. ac_status=$?
  8473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8474. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8476. (eval $ac_try) 2>&5
  8477. ac_status=$?
  8478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8479. (exit $ac_status); }; }; then
  8480. ac_cv_func_fork_works=yes
  8481. else
  8482. echo "$as_me: program exited with status $ac_status" >&5
  8483. echo "$as_me: failed program was:" >&5
  8484. sed 's/^/| /' conftest.$ac_ext >&5
  8485. ( exit $ac_status )
  8486. ac_cv_func_fork_works=no
  8487. fi
  8488. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8489. fi
  8490. fi
  8491. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8492. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8493. else
  8494. ac_cv_func_fork_works=$ac_cv_func_fork
  8495. fi
  8496. if test "x$ac_cv_func_fork_works" = xcross; then
  8497. case $host in
  8498. *-*-amigaos* | *-*-msdosdjgpp*)
  8499. # Override, as these systems have only a dummy fork() stub
  8500. ac_cv_func_fork_works=no
  8501. ;;
  8502. *)
  8503. ac_cv_func_fork_works=yes
  8504. ;;
  8505. esac
  8506. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8507. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8508. fi
  8509. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8510. if test "x$ac_cv_func_vfork" = xyes; then
  8511. echo "$as_me:$LINENO: checking for working vfork" >&5
  8512. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8513. if test "${ac_cv_func_vfork_works+set}" = set; then
  8514. echo $ECHO_N "(cached) $ECHO_C" >&6
  8515. else
  8516. if test "$cross_compiling" = yes; then
  8517. ac_cv_func_vfork_works=cross
  8518. else
  8519. cat >conftest.$ac_ext <<_ACEOF
  8520. /* confdefs.h. */
  8521. _ACEOF
  8522. cat confdefs.h >>conftest.$ac_ext
  8523. cat >>conftest.$ac_ext <<_ACEOF
  8524. /* end confdefs.h. */
  8525. /* Thanks to Paul Eggert for this test. */
  8526. #include <stdio.h>
  8527. #include <stdlib.h>
  8528. #include <sys/types.h>
  8529. #include <sys/stat.h>
  8530. #include <sys/wait.h>
  8531. #if HAVE_UNISTD_H
  8532. # include <unistd.h>
  8533. #endif
  8534. #if HAVE_VFORK_H
  8535. # include <vfork.h>
  8536. #endif
  8537. /* On some sparc systems, changes by the child to local and incoming
  8538. argument registers are propagated back to the parent. The compiler
  8539. is told about this with #include <vfork.h>, but some compilers
  8540. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8541. static variable whose address is put into a register that is
  8542. clobbered by the vfork. */
  8543. static void
  8544. #ifdef __cplusplus
  8545. sparc_address_test (int arg)
  8546. # else
  8547. sparc_address_test (arg) int arg;
  8548. #endif
  8549. {
  8550. static pid_t child;
  8551. if (!child) {
  8552. child = vfork ();
  8553. if (child < 0) {
  8554. perror ("vfork");
  8555. _exit(2);
  8556. }
  8557. if (!child) {
  8558. arg = getpid();
  8559. write(-1, "", 0);
  8560. _exit (arg);
  8561. }
  8562. }
  8563. }
  8564. int
  8565. main ()
  8566. {
  8567. pid_t parent = getpid ();
  8568. pid_t child;
  8569. sparc_address_test (0);
  8570. child = vfork ();
  8571. if (child == 0) {
  8572. /* Here is another test for sparc vfork register problems. This
  8573. test uses lots of local variables, at least as many local
  8574. variables as main has allocated so far including compiler
  8575. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8576. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8577. reuse the register of parent for one of the local variables,
  8578. since it will think that parent can't possibly be used any more
  8579. in this routine. Assigning to the local variable will thus
  8580. munge parent in the parent process. */
  8581. pid_t
  8582. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8583. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8584. /* Convince the compiler that p..p7 are live; otherwise, it might
  8585. use the same hardware register for all 8 local variables. */
  8586. if (p != p1 || p != p2 || p != p3 || p != p4
  8587. || p != p5 || p != p6 || p != p7)
  8588. _exit(1);
  8589. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8590. from child file descriptors. If the child closes a descriptor
  8591. before it execs or exits, this munges the parent's descriptor
  8592. as well. Test for this by closing stdout in the child. */
  8593. _exit(close(fileno(stdout)) != 0);
  8594. } else {
  8595. int status;
  8596. struct stat st;
  8597. while (wait(&status) != child)
  8598. ;
  8599. exit(
  8600. /* Was there some problem with vforking? */
  8601. child < 0
  8602. /* Did the child fail? (This shouldn't happen.) */
  8603. || status
  8604. /* Did the vfork/compiler bug occur? */
  8605. || parent != getpid()
  8606. /* Did the file descriptor bug occur? */
  8607. || fstat(fileno(stdout), &st) != 0
  8608. );
  8609. }
  8610. }
  8611. _ACEOF
  8612. rm -f conftest$ac_exeext
  8613. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8614. (eval $ac_link) 2>&5
  8615. ac_status=$?
  8616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8617. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8619. (eval $ac_try) 2>&5
  8620. ac_status=$?
  8621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8622. (exit $ac_status); }; }; then
  8623. ac_cv_func_vfork_works=yes
  8624. else
  8625. echo "$as_me: program exited with status $ac_status" >&5
  8626. echo "$as_me: failed program was:" >&5
  8627. sed 's/^/| /' conftest.$ac_ext >&5
  8628. ( exit $ac_status )
  8629. ac_cv_func_vfork_works=no
  8630. fi
  8631. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8632. fi
  8633. fi
  8634. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8635. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8636. fi;
  8637. if test "x$ac_cv_func_fork_works" = xcross; then
  8638. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8639. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8640. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8641. fi
  8642. if test "x$ac_cv_func_vfork_works" = xyes; then
  8643. cat >>confdefs.h <<\_ACEOF
  8644. #define HAVE_WORKING_VFORK 1
  8645. _ACEOF
  8646. else
  8647. cat >>confdefs.h <<\_ACEOF
  8648. #define vfork fork
  8649. _ACEOF
  8650. fi
  8651. if test "x$ac_cv_func_fork_works" = xyes; then
  8652. cat >>confdefs.h <<\_ACEOF
  8653. #define HAVE_WORKING_FORK 1
  8654. _ACEOF
  8655. fi
  8656. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8657. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8658. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8659. echo $ECHO_N "(cached) $ECHO_C" >&6
  8660. else
  8661. rm -f conftest.sym conftest.file
  8662. echo >conftest.file
  8663. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8664. if test "$cross_compiling" = yes; then
  8665. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8666. else
  8667. cat >conftest.$ac_ext <<_ACEOF
  8668. /* confdefs.h. */
  8669. _ACEOF
  8670. cat confdefs.h >>conftest.$ac_ext
  8671. cat >>conftest.$ac_ext <<_ACEOF
  8672. /* end confdefs.h. */
  8673. $ac_includes_default
  8674. int
  8675. main ()
  8676. {
  8677. struct stat sbuf;
  8678. /* Linux will dereference the symlink and fail.
  8679. That is better in the sense that it means we will not
  8680. have to compile and use the lstat wrapper. */
  8681. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8682. ;
  8683. return 0;
  8684. }
  8685. _ACEOF
  8686. rm -f conftest$ac_exeext
  8687. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8688. (eval $ac_link) 2>&5
  8689. ac_status=$?
  8690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8691. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8693. (eval $ac_try) 2>&5
  8694. ac_status=$?
  8695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8696. (exit $ac_status); }; }; then
  8697. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8698. else
  8699. echo "$as_me: program exited with status $ac_status" >&5
  8700. echo "$as_me: failed program was:" >&5
  8701. sed 's/^/| /' conftest.$ac_ext >&5
  8702. ( exit $ac_status )
  8703. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8704. fi
  8705. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8706. fi
  8707. else
  8708. # If the `ln -s' command failed, then we probably don't even
  8709. # have an lstat function.
  8710. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8711. fi
  8712. rm -f conftest.sym conftest.file
  8713. fi
  8714. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8715. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8716. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8717. cat >>confdefs.h <<_ACEOF
  8718. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8719. _ACEOF
  8720. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8721. case $LIBOBJS in
  8722. "lstat.$ac_objext" | \
  8723. *" lstat.$ac_objext" | \
  8724. "lstat.$ac_objext "* | \
  8725. *" lstat.$ac_objext "* ) ;;
  8726. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8727. esac
  8728. fi
  8729. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8730. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8731. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8732. echo $ECHO_N "(cached) $ECHO_C" >&6
  8733. else
  8734. if test "$cross_compiling" = yes; then
  8735. ac_cv_func_lstat_empty_string_bug=yes
  8736. else
  8737. cat >conftest.$ac_ext <<_ACEOF
  8738. /* confdefs.h. */
  8739. _ACEOF
  8740. cat confdefs.h >>conftest.$ac_ext
  8741. cat >>conftest.$ac_ext <<_ACEOF
  8742. /* end confdefs.h. */
  8743. $ac_includes_default
  8744. int
  8745. main ()
  8746. {
  8747. struct stat sbuf;
  8748. exit (lstat ("", &sbuf) ? 1 : 0);
  8749. ;
  8750. return 0;
  8751. }
  8752. _ACEOF
  8753. rm -f conftest$ac_exeext
  8754. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8755. (eval $ac_link) 2>&5
  8756. ac_status=$?
  8757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8758. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8759. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8760. (eval $ac_try) 2>&5
  8761. ac_status=$?
  8762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8763. (exit $ac_status); }; }; then
  8764. ac_cv_func_lstat_empty_string_bug=yes
  8765. else
  8766. echo "$as_me: program exited with status $ac_status" >&5
  8767. echo "$as_me: failed program was:" >&5
  8768. sed 's/^/| /' conftest.$ac_ext >&5
  8769. ( exit $ac_status )
  8770. ac_cv_func_lstat_empty_string_bug=no
  8771. fi
  8772. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8773. fi
  8774. fi
  8775. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8776. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8777. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8778. case $LIBOBJS in
  8779. "lstat.$ac_objext" | \
  8780. *" lstat.$ac_objext" | \
  8781. "lstat.$ac_objext "* | \
  8782. *" lstat.$ac_objext "* ) ;;
  8783. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8784. esac
  8785. cat >>confdefs.h <<_ACEOF
  8786. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8787. _ACEOF
  8788. fi
  8789. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8790. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8791. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8792. echo $ECHO_N "(cached) $ECHO_C" >&6
  8793. else
  8794. rm -f conftest.sym conftest.file
  8795. echo >conftest.file
  8796. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8797. if test "$cross_compiling" = yes; then
  8798. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8799. else
  8800. cat >conftest.$ac_ext <<_ACEOF
  8801. /* confdefs.h. */
  8802. _ACEOF
  8803. cat confdefs.h >>conftest.$ac_ext
  8804. cat >>conftest.$ac_ext <<_ACEOF
  8805. /* end confdefs.h. */
  8806. $ac_includes_default
  8807. int
  8808. main ()
  8809. {
  8810. struct stat sbuf;
  8811. /* Linux will dereference the symlink and fail.
  8812. That is better in the sense that it means we will not
  8813. have to compile and use the lstat wrapper. */
  8814. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8815. ;
  8816. return 0;
  8817. }
  8818. _ACEOF
  8819. rm -f conftest$ac_exeext
  8820. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8821. (eval $ac_link) 2>&5
  8822. ac_status=$?
  8823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8824. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8825. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8826. (eval $ac_try) 2>&5
  8827. ac_status=$?
  8828. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8829. (exit $ac_status); }; }; then
  8830. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8831. else
  8832. echo "$as_me: program exited with status $ac_status" >&5
  8833. echo "$as_me: failed program was:" >&5
  8834. sed 's/^/| /' conftest.$ac_ext >&5
  8835. ( exit $ac_status )
  8836. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8837. fi
  8838. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8839. fi
  8840. else
  8841. # If the `ln -s' command failed, then we probably don't even
  8842. # have an lstat function.
  8843. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8844. fi
  8845. rm -f conftest.sym conftest.file
  8846. fi
  8847. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8848. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8849. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8850. cat >>confdefs.h <<_ACEOF
  8851. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8852. _ACEOF
  8853. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8854. case $LIBOBJS in
  8855. "lstat.$ac_objext" | \
  8856. *" lstat.$ac_objext" | \
  8857. "lstat.$ac_objext "* | \
  8858. *" lstat.$ac_objext "* ) ;;
  8859. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8860. esac
  8861. fi
  8862. for ac_header in stdlib.h
  8863. do
  8864. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8865. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8866. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8867. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8868. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8869. echo $ECHO_N "(cached) $ECHO_C" >&6
  8870. fi
  8871. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8872. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8873. else
  8874. # Is the header compilable?
  8875. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8876. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8877. cat >conftest.$ac_ext <<_ACEOF
  8878. /* confdefs.h. */
  8879. _ACEOF
  8880. cat confdefs.h >>conftest.$ac_ext
  8881. cat >>conftest.$ac_ext <<_ACEOF
  8882. /* end confdefs.h. */
  8883. $ac_includes_default
  8884. #include <$ac_header>
  8885. _ACEOF
  8886. rm -f conftest.$ac_objext
  8887. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8888. (eval $ac_compile) 2>conftest.er1
  8889. ac_status=$?
  8890. grep -v '^ *+' conftest.er1 >conftest.err
  8891. rm -f conftest.er1
  8892. cat conftest.err >&5
  8893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8894. (exit $ac_status); } &&
  8895. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8896. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8897. (eval $ac_try) 2>&5
  8898. ac_status=$?
  8899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8900. (exit $ac_status); }; } &&
  8901. { ac_try='test -s conftest.$ac_objext'
  8902. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8903. (eval $ac_try) 2>&5
  8904. ac_status=$?
  8905. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8906. (exit $ac_status); }; }; then
  8907. ac_header_compiler=yes
  8908. else
  8909. echo "$as_me: failed program was:" >&5
  8910. sed 's/^/| /' conftest.$ac_ext >&5
  8911. ac_header_compiler=no
  8912. fi
  8913. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8914. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8915. echo "${ECHO_T}$ac_header_compiler" >&6
  8916. # Is the header present?
  8917. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8918. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8919. cat >conftest.$ac_ext <<_ACEOF
  8920. /* confdefs.h. */
  8921. _ACEOF
  8922. cat confdefs.h >>conftest.$ac_ext
  8923. cat >>conftest.$ac_ext <<_ACEOF
  8924. /* end confdefs.h. */
  8925. #include <$ac_header>
  8926. _ACEOF
  8927. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8928. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8929. ac_status=$?
  8930. grep -v '^ *+' conftest.er1 >conftest.err
  8931. rm -f conftest.er1
  8932. cat conftest.err >&5
  8933. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8934. (exit $ac_status); } >/dev/null; then
  8935. if test -s conftest.err; then
  8936. ac_cpp_err=$ac_c_preproc_warn_flag
  8937. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8938. else
  8939. ac_cpp_err=
  8940. fi
  8941. else
  8942. ac_cpp_err=yes
  8943. fi
  8944. if test -z "$ac_cpp_err"; then
  8945. ac_header_preproc=yes
  8946. else
  8947. echo "$as_me: failed program was:" >&5
  8948. sed 's/^/| /' conftest.$ac_ext >&5
  8949. ac_header_preproc=no
  8950. fi
  8951. rm -f conftest.err conftest.$ac_ext
  8952. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8953. echo "${ECHO_T}$ac_header_preproc" >&6
  8954. # So? What about this header?
  8955. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8956. yes:no: )
  8957. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8958. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8959. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8960. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8961. ac_header_preproc=yes
  8962. ;;
  8963. no:yes:* )
  8964. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8965. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8966. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8967. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8968. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8969. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8970. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8971. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8972. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8973. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8974. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8975. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8976. (
  8977. cat <<\_ASBOX
  8978. ## ------------------------------------------ ##
  8979. ## Report this to the AC_PACKAGE_NAME lists. ##
  8980. ## ------------------------------------------ ##
  8981. _ASBOX
  8982. ) |
  8983. sed "s/^/$as_me: WARNING: /" >&2
  8984. ;;
  8985. esac
  8986. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8987. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8988. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8989. echo $ECHO_N "(cached) $ECHO_C" >&6
  8990. else
  8991. eval "$as_ac_Header=\$ac_header_preproc"
  8992. fi
  8993. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8994. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8995. fi
  8996. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8997. cat >>confdefs.h <<_ACEOF
  8998. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8999. _ACEOF
  9000. fi
  9001. done
  9002. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  9003. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  9004. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  9005. echo $ECHO_N "(cached) $ECHO_C" >&6
  9006. else
  9007. if test "$cross_compiling" = yes; then
  9008. ac_cv_func_malloc_0_nonnull=no
  9009. else
  9010. cat >conftest.$ac_ext <<_ACEOF
  9011. /* confdefs.h. */
  9012. _ACEOF
  9013. cat confdefs.h >>conftest.$ac_ext
  9014. cat >>conftest.$ac_ext <<_ACEOF
  9015. /* end confdefs.h. */
  9016. #if STDC_HEADERS || HAVE_STDLIB_H
  9017. # include <stdlib.h>
  9018. #else
  9019. char *malloc ();
  9020. #endif
  9021. int
  9022. main ()
  9023. {
  9024. exit (malloc (0) ? 0 : 1);
  9025. ;
  9026. return 0;
  9027. }
  9028. _ACEOF
  9029. rm -f conftest$ac_exeext
  9030. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9031. (eval $ac_link) 2>&5
  9032. ac_status=$?
  9033. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9034. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9035. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9036. (eval $ac_try) 2>&5
  9037. ac_status=$?
  9038. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9039. (exit $ac_status); }; }; then
  9040. ac_cv_func_malloc_0_nonnull=yes
  9041. else
  9042. echo "$as_me: program exited with status $ac_status" >&5
  9043. echo "$as_me: failed program was:" >&5
  9044. sed 's/^/| /' conftest.$ac_ext >&5
  9045. ( exit $ac_status )
  9046. ac_cv_func_malloc_0_nonnull=no
  9047. fi
  9048. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9049. fi
  9050. fi
  9051. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  9052. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  9053. if test $ac_cv_func_malloc_0_nonnull = yes; then
  9054. cat >>confdefs.h <<\_ACEOF
  9055. #define HAVE_MALLOC 1
  9056. _ACEOF
  9057. else
  9058. cat >>confdefs.h <<\_ACEOF
  9059. #define HAVE_MALLOC 0
  9060. _ACEOF
  9061. case $LIBOBJS in
  9062. "malloc.$ac_objext" | \
  9063. *" malloc.$ac_objext" | \
  9064. "malloc.$ac_objext "* | \
  9065. *" malloc.$ac_objext "* ) ;;
  9066. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  9067. esac
  9068. cat >>confdefs.h <<\_ACEOF
  9069. #define malloc rpl_malloc
  9070. _ACEOF
  9071. fi
  9072. for ac_header in stdlib.h sys/time.h unistd.h
  9073. do
  9074. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9075. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9076. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9077. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9078. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9079. echo $ECHO_N "(cached) $ECHO_C" >&6
  9080. fi
  9081. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9082. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9083. else
  9084. # Is the header compilable?
  9085. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9086. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9087. cat >conftest.$ac_ext <<_ACEOF
  9088. /* confdefs.h. */
  9089. _ACEOF
  9090. cat confdefs.h >>conftest.$ac_ext
  9091. cat >>conftest.$ac_ext <<_ACEOF
  9092. /* end confdefs.h. */
  9093. $ac_includes_default
  9094. #include <$ac_header>
  9095. _ACEOF
  9096. rm -f conftest.$ac_objext
  9097. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9098. (eval $ac_compile) 2>conftest.er1
  9099. ac_status=$?
  9100. grep -v '^ *+' conftest.er1 >conftest.err
  9101. rm -f conftest.er1
  9102. cat conftest.err >&5
  9103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9104. (exit $ac_status); } &&
  9105. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9107. (eval $ac_try) 2>&5
  9108. ac_status=$?
  9109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9110. (exit $ac_status); }; } &&
  9111. { ac_try='test -s conftest.$ac_objext'
  9112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9113. (eval $ac_try) 2>&5
  9114. ac_status=$?
  9115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9116. (exit $ac_status); }; }; then
  9117. ac_header_compiler=yes
  9118. else
  9119. echo "$as_me: failed program was:" >&5
  9120. sed 's/^/| /' conftest.$ac_ext >&5
  9121. ac_header_compiler=no
  9122. fi
  9123. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9124. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9125. echo "${ECHO_T}$ac_header_compiler" >&6
  9126. # Is the header present?
  9127. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9128. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9129. cat >conftest.$ac_ext <<_ACEOF
  9130. /* confdefs.h. */
  9131. _ACEOF
  9132. cat confdefs.h >>conftest.$ac_ext
  9133. cat >>conftest.$ac_ext <<_ACEOF
  9134. /* end confdefs.h. */
  9135. #include <$ac_header>
  9136. _ACEOF
  9137. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9138. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9139. ac_status=$?
  9140. grep -v '^ *+' conftest.er1 >conftest.err
  9141. rm -f conftest.er1
  9142. cat conftest.err >&5
  9143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9144. (exit $ac_status); } >/dev/null; then
  9145. if test -s conftest.err; then
  9146. ac_cpp_err=$ac_c_preproc_warn_flag
  9147. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9148. else
  9149. ac_cpp_err=
  9150. fi
  9151. else
  9152. ac_cpp_err=yes
  9153. fi
  9154. if test -z "$ac_cpp_err"; then
  9155. ac_header_preproc=yes
  9156. else
  9157. echo "$as_me: failed program was:" >&5
  9158. sed 's/^/| /' conftest.$ac_ext >&5
  9159. ac_header_preproc=no
  9160. fi
  9161. rm -f conftest.err conftest.$ac_ext
  9162. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9163. echo "${ECHO_T}$ac_header_preproc" >&6
  9164. # So? What about this header?
  9165. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9166. yes:no: )
  9167. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9168. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9169. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9170. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9171. ac_header_preproc=yes
  9172. ;;
  9173. no:yes:* )
  9174. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9175. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9176. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9177. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9178. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9179. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9180. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9181. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9182. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9183. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9184. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9185. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9186. (
  9187. cat <<\_ASBOX
  9188. ## ------------------------------------------ ##
  9189. ## Report this to the AC_PACKAGE_NAME lists. ##
  9190. ## ------------------------------------------ ##
  9191. _ASBOX
  9192. ) |
  9193. sed "s/^/$as_me: WARNING: /" >&2
  9194. ;;
  9195. esac
  9196. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9197. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9198. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9199. echo $ECHO_N "(cached) $ECHO_C" >&6
  9200. else
  9201. eval "$as_ac_Header=\$ac_header_preproc"
  9202. fi
  9203. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9204. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9205. fi
  9206. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9207. cat >>confdefs.h <<_ACEOF
  9208. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9209. _ACEOF
  9210. fi
  9211. done
  9212. for ac_func in alarm
  9213. do
  9214. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9215. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9216. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9217. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9218. echo $ECHO_N "(cached) $ECHO_C" >&6
  9219. else
  9220. cat >conftest.$ac_ext <<_ACEOF
  9221. /* confdefs.h. */
  9222. _ACEOF
  9223. cat confdefs.h >>conftest.$ac_ext
  9224. cat >>conftest.$ac_ext <<_ACEOF
  9225. /* end confdefs.h. */
  9226. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9227. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9228. #define $ac_func innocuous_$ac_func
  9229. /* System header to define __stub macros and hopefully few prototypes,
  9230. which can conflict with char $ac_func (); below.
  9231. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9232. <limits.h> exists even on freestanding compilers. */
  9233. #ifdef __STDC__
  9234. # include <limits.h>
  9235. #else
  9236. # include <assert.h>
  9237. #endif
  9238. #undef $ac_func
  9239. /* Override any gcc2 internal prototype to avoid an error. */
  9240. #ifdef __cplusplus
  9241. extern "C"
  9242. {
  9243. #endif
  9244. /* We use char because int might match the return type of a gcc2
  9245. builtin and then its argument prototype would still apply. */
  9246. char $ac_func ();
  9247. /* The GNU C library defines this for functions which it implements
  9248. to always fail with ENOSYS. Some functions are actually named
  9249. something starting with __ and the normal name is an alias. */
  9250. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9251. choke me
  9252. #else
  9253. char (*f) () = $ac_func;
  9254. #endif
  9255. #ifdef __cplusplus
  9256. }
  9257. #endif
  9258. int
  9259. main ()
  9260. {
  9261. return f != $ac_func;
  9262. ;
  9263. return 0;
  9264. }
  9265. _ACEOF
  9266. rm -f conftest.$ac_objext conftest$ac_exeext
  9267. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9268. (eval $ac_link) 2>conftest.er1
  9269. ac_status=$?
  9270. grep -v '^ *+' conftest.er1 >conftest.err
  9271. rm -f conftest.er1
  9272. cat conftest.err >&5
  9273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9274. (exit $ac_status); } &&
  9275. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9276. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9277. (eval $ac_try) 2>&5
  9278. ac_status=$?
  9279. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9280. (exit $ac_status); }; } &&
  9281. { ac_try='test -s conftest$ac_exeext'
  9282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9283. (eval $ac_try) 2>&5
  9284. ac_status=$?
  9285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9286. (exit $ac_status); }; }; then
  9287. eval "$as_ac_var=yes"
  9288. else
  9289. echo "$as_me: failed program was:" >&5
  9290. sed 's/^/| /' conftest.$ac_ext >&5
  9291. eval "$as_ac_var=no"
  9292. fi
  9293. rm -f conftest.err conftest.$ac_objext \
  9294. conftest$ac_exeext conftest.$ac_ext
  9295. fi
  9296. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9297. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9298. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9299. cat >>confdefs.h <<_ACEOF
  9300. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9301. _ACEOF
  9302. fi
  9303. done
  9304. echo "$as_me:$LINENO: checking for working mktime" >&5
  9305. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  9306. if test "${ac_cv_func_working_mktime+set}" = set; then
  9307. echo $ECHO_N "(cached) $ECHO_C" >&6
  9308. else
  9309. if test "$cross_compiling" = yes; then
  9310. ac_cv_func_working_mktime=no
  9311. else
  9312. cat >conftest.$ac_ext <<_ACEOF
  9313. /* confdefs.h. */
  9314. _ACEOF
  9315. cat confdefs.h >>conftest.$ac_ext
  9316. cat >>conftest.$ac_ext <<_ACEOF
  9317. /* end confdefs.h. */
  9318. /* Test program from Paul Eggert and Tony Leneis. */
  9319. #if TIME_WITH_SYS_TIME
  9320. # include <sys/time.h>
  9321. # include <time.h>
  9322. #else
  9323. # if HAVE_SYS_TIME_H
  9324. # include <sys/time.h>
  9325. # else
  9326. # include <time.h>
  9327. # endif
  9328. #endif
  9329. #if HAVE_STDLIB_H
  9330. # include <stdlib.h>
  9331. #endif
  9332. #if HAVE_UNISTD_H
  9333. # include <unistd.h>
  9334. #endif
  9335. #if !HAVE_ALARM
  9336. # define alarm(X) /* empty */
  9337. #endif
  9338. /* Work around redefinition to rpl_putenv by other config tests. */
  9339. #undef putenv
  9340. static time_t time_t_max;
  9341. static time_t time_t_min;
  9342. /* Values we'll use to set the TZ environment variable. */
  9343. static char *tz_strings[] = {
  9344. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  9345. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  9346. };
  9347. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  9348. /* Fail if mktime fails to convert a date in the spring-forward gap.
  9349. Based on a problem report from Andreas Jaeger. */
  9350. static void
  9351. spring_forward_gap ()
  9352. {
  9353. /* glibc (up to about 1998-10-07) failed this test. */
  9354. struct tm tm;
  9355. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  9356. instead of "TZ=America/Vancouver" in order to detect the bug even
  9357. on systems that don't support the Olson extension, or don't have the
  9358. full zoneinfo tables installed. */
  9359. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  9360. tm.tm_year = 98;
  9361. tm.tm_mon = 3;
  9362. tm.tm_mday = 5;
  9363. tm.tm_hour = 2;
  9364. tm.tm_min = 0;
  9365. tm.tm_sec = 0;
  9366. tm.tm_isdst = -1;
  9367. if (mktime (&tm) == (time_t)-1)
  9368. exit (1);
  9369. }
  9370. static void
  9371. mktime_test1 (now)
  9372. time_t now;
  9373. {
  9374. struct tm *lt;
  9375. if ((lt = localtime (&now)) && mktime (lt) != now)
  9376. exit (1);
  9377. }
  9378. static void
  9379. mktime_test (now)
  9380. time_t now;
  9381. {
  9382. mktime_test1 (now);
  9383. mktime_test1 ((time_t) (time_t_max - now));
  9384. mktime_test1 ((time_t) (time_t_min + now));
  9385. }
  9386. static void
  9387. irix_6_4_bug ()
  9388. {
  9389. /* Based on code from Ariel Faigon. */
  9390. struct tm tm;
  9391. tm.tm_year = 96;
  9392. tm.tm_mon = 3;
  9393. tm.tm_mday = 0;
  9394. tm.tm_hour = 0;
  9395. tm.tm_min = 0;
  9396. tm.tm_sec = 0;
  9397. tm.tm_isdst = -1;
  9398. mktime (&tm);
  9399. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  9400. exit (1);
  9401. }
  9402. static void
  9403. bigtime_test (j)
  9404. int j;
  9405. {
  9406. struct tm tm;
  9407. time_t now;
  9408. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  9409. now = mktime (&tm);
  9410. if (now != (time_t) -1)
  9411. {
  9412. struct tm *lt = localtime (&now);
  9413. if (! (lt
  9414. && lt->tm_year == tm.tm_year
  9415. && lt->tm_mon == tm.tm_mon
  9416. && lt->tm_mday == tm.tm_mday
  9417. && lt->tm_hour == tm.tm_hour
  9418. && lt->tm_min == tm.tm_min
  9419. && lt->tm_sec == tm.tm_sec
  9420. && lt->tm_yday == tm.tm_yday
  9421. && lt->tm_wday == tm.tm_wday
  9422. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  9423. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  9424. exit (1);
  9425. }
  9426. }
  9427. int
  9428. main ()
  9429. {
  9430. time_t t, delta;
  9431. int i, j;
  9432. /* This test makes some buggy mktime implementations loop.
  9433. Give up after 60 seconds; a mktime slower than that
  9434. isn't worth using anyway. */
  9435. alarm (60);
  9436. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  9437. continue;
  9438. time_t_max--;
  9439. if ((time_t) -1 < 0)
  9440. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  9441. continue;
  9442. delta = time_t_max / 997; /* a suitable prime number */
  9443. for (i = 0; i < N_STRINGS; i++)
  9444. {
  9445. if (tz_strings[i])
  9446. putenv (tz_strings[i]);
  9447. for (t = 0; t <= time_t_max - delta; t += delta)
  9448. mktime_test (t);
  9449. mktime_test ((time_t) 1);
  9450. mktime_test ((time_t) (60 * 60));
  9451. mktime_test ((time_t) (60 * 60 * 24));
  9452. for (j = 1; 0 < j; j *= 2)
  9453. bigtime_test (j);
  9454. bigtime_test (j - 1);
  9455. }
  9456. irix_6_4_bug ();
  9457. spring_forward_gap ();
  9458. exit (0);
  9459. }
  9460. _ACEOF
  9461. rm -f conftest$ac_exeext
  9462. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9463. (eval $ac_link) 2>&5
  9464. ac_status=$?
  9465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9466. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9468. (eval $ac_try) 2>&5
  9469. ac_status=$?
  9470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9471. (exit $ac_status); }; }; then
  9472. ac_cv_func_working_mktime=yes
  9473. else
  9474. echo "$as_me: program exited with status $ac_status" >&5
  9475. echo "$as_me: failed program was:" >&5
  9476. sed 's/^/| /' conftest.$ac_ext >&5
  9477. ( exit $ac_status )
  9478. ac_cv_func_working_mktime=no
  9479. fi
  9480. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9481. fi
  9482. fi
  9483. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9484. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9485. if test $ac_cv_func_working_mktime = no; then
  9486. case $LIBOBJS in
  9487. "mktime.$ac_objext" | \
  9488. *" mktime.$ac_objext" | \
  9489. "mktime.$ac_objext "* | \
  9490. *" mktime.$ac_objext "* ) ;;
  9491. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9492. esac
  9493. fi
  9494. for ac_header in stdlib.h unistd.h
  9495. do
  9496. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9497. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9498. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9499. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9500. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9501. echo $ECHO_N "(cached) $ECHO_C" >&6
  9502. fi
  9503. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9504. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9505. else
  9506. # Is the header compilable?
  9507. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9508. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9509. cat >conftest.$ac_ext <<_ACEOF
  9510. /* confdefs.h. */
  9511. _ACEOF
  9512. cat confdefs.h >>conftest.$ac_ext
  9513. cat >>conftest.$ac_ext <<_ACEOF
  9514. /* end confdefs.h. */
  9515. $ac_includes_default
  9516. #include <$ac_header>
  9517. _ACEOF
  9518. rm -f conftest.$ac_objext
  9519. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9520. (eval $ac_compile) 2>conftest.er1
  9521. ac_status=$?
  9522. grep -v '^ *+' conftest.er1 >conftest.err
  9523. rm -f conftest.er1
  9524. cat conftest.err >&5
  9525. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9526. (exit $ac_status); } &&
  9527. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9528. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9529. (eval $ac_try) 2>&5
  9530. ac_status=$?
  9531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9532. (exit $ac_status); }; } &&
  9533. { ac_try='test -s conftest.$ac_objext'
  9534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9535. (eval $ac_try) 2>&5
  9536. ac_status=$?
  9537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9538. (exit $ac_status); }; }; then
  9539. ac_header_compiler=yes
  9540. else
  9541. echo "$as_me: failed program was:" >&5
  9542. sed 's/^/| /' conftest.$ac_ext >&5
  9543. ac_header_compiler=no
  9544. fi
  9545. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9546. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9547. echo "${ECHO_T}$ac_header_compiler" >&6
  9548. # Is the header present?
  9549. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9550. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9551. cat >conftest.$ac_ext <<_ACEOF
  9552. /* confdefs.h. */
  9553. _ACEOF
  9554. cat confdefs.h >>conftest.$ac_ext
  9555. cat >>conftest.$ac_ext <<_ACEOF
  9556. /* end confdefs.h. */
  9557. #include <$ac_header>
  9558. _ACEOF
  9559. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9560. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9561. ac_status=$?
  9562. grep -v '^ *+' conftest.er1 >conftest.err
  9563. rm -f conftest.er1
  9564. cat conftest.err >&5
  9565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9566. (exit $ac_status); } >/dev/null; then
  9567. if test -s conftest.err; then
  9568. ac_cpp_err=$ac_c_preproc_warn_flag
  9569. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9570. else
  9571. ac_cpp_err=
  9572. fi
  9573. else
  9574. ac_cpp_err=yes
  9575. fi
  9576. if test -z "$ac_cpp_err"; then
  9577. ac_header_preproc=yes
  9578. else
  9579. echo "$as_me: failed program was:" >&5
  9580. sed 's/^/| /' conftest.$ac_ext >&5
  9581. ac_header_preproc=no
  9582. fi
  9583. rm -f conftest.err conftest.$ac_ext
  9584. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9585. echo "${ECHO_T}$ac_header_preproc" >&6
  9586. # So? What about this header?
  9587. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9588. yes:no: )
  9589. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9590. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9591. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9592. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9593. ac_header_preproc=yes
  9594. ;;
  9595. no:yes:* )
  9596. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9597. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9598. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9599. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9600. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9601. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9602. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9603. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9604. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9605. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9606. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9607. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9608. (
  9609. cat <<\_ASBOX
  9610. ## ------------------------------------------ ##
  9611. ## Report this to the AC_PACKAGE_NAME lists. ##
  9612. ## ------------------------------------------ ##
  9613. _ASBOX
  9614. ) |
  9615. sed "s/^/$as_me: WARNING: /" >&2
  9616. ;;
  9617. esac
  9618. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9619. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9620. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9621. echo $ECHO_N "(cached) $ECHO_C" >&6
  9622. else
  9623. eval "$as_ac_Header=\$ac_header_preproc"
  9624. fi
  9625. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9626. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9627. fi
  9628. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9629. cat >>confdefs.h <<_ACEOF
  9630. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9631. _ACEOF
  9632. fi
  9633. done
  9634. for ac_func in getpagesize
  9635. do
  9636. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9637. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9638. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9639. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9640. echo $ECHO_N "(cached) $ECHO_C" >&6
  9641. else
  9642. cat >conftest.$ac_ext <<_ACEOF
  9643. /* confdefs.h. */
  9644. _ACEOF
  9645. cat confdefs.h >>conftest.$ac_ext
  9646. cat >>conftest.$ac_ext <<_ACEOF
  9647. /* end confdefs.h. */
  9648. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9649. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9650. #define $ac_func innocuous_$ac_func
  9651. /* System header to define __stub macros and hopefully few prototypes,
  9652. which can conflict with char $ac_func (); below.
  9653. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9654. <limits.h> exists even on freestanding compilers. */
  9655. #ifdef __STDC__
  9656. # include <limits.h>
  9657. #else
  9658. # include <assert.h>
  9659. #endif
  9660. #undef $ac_func
  9661. /* Override any gcc2 internal prototype to avoid an error. */
  9662. #ifdef __cplusplus
  9663. extern "C"
  9664. {
  9665. #endif
  9666. /* We use char because int might match the return type of a gcc2
  9667. builtin and then its argument prototype would still apply. */
  9668. char $ac_func ();
  9669. /* The GNU C library defines this for functions which it implements
  9670. to always fail with ENOSYS. Some functions are actually named
  9671. something starting with __ and the normal name is an alias. */
  9672. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9673. choke me
  9674. #else
  9675. char (*f) () = $ac_func;
  9676. #endif
  9677. #ifdef __cplusplus
  9678. }
  9679. #endif
  9680. int
  9681. main ()
  9682. {
  9683. return f != $ac_func;
  9684. ;
  9685. return 0;
  9686. }
  9687. _ACEOF
  9688. rm -f conftest.$ac_objext conftest$ac_exeext
  9689. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9690. (eval $ac_link) 2>conftest.er1
  9691. ac_status=$?
  9692. grep -v '^ *+' conftest.er1 >conftest.err
  9693. rm -f conftest.er1
  9694. cat conftest.err >&5
  9695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9696. (exit $ac_status); } &&
  9697. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9698. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9699. (eval $ac_try) 2>&5
  9700. ac_status=$?
  9701. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9702. (exit $ac_status); }; } &&
  9703. { ac_try='test -s conftest$ac_exeext'
  9704. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9705. (eval $ac_try) 2>&5
  9706. ac_status=$?
  9707. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9708. (exit $ac_status); }; }; then
  9709. eval "$as_ac_var=yes"
  9710. else
  9711. echo "$as_me: failed program was:" >&5
  9712. sed 's/^/| /' conftest.$ac_ext >&5
  9713. eval "$as_ac_var=no"
  9714. fi
  9715. rm -f conftest.err conftest.$ac_objext \
  9716. conftest$ac_exeext conftest.$ac_ext
  9717. fi
  9718. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9719. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9720. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9721. cat >>confdefs.h <<_ACEOF
  9722. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9723. _ACEOF
  9724. fi
  9725. done
  9726. echo "$as_me:$LINENO: checking for working mmap" >&5
  9727. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9728. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9729. echo $ECHO_N "(cached) $ECHO_C" >&6
  9730. else
  9731. if test "$cross_compiling" = yes; then
  9732. ac_cv_func_mmap_fixed_mapped=no
  9733. else
  9734. cat >conftest.$ac_ext <<_ACEOF
  9735. /* confdefs.h. */
  9736. _ACEOF
  9737. cat confdefs.h >>conftest.$ac_ext
  9738. cat >>conftest.$ac_ext <<_ACEOF
  9739. /* end confdefs.h. */
  9740. $ac_includes_default
  9741. /* malloc might have been renamed as rpl_malloc. */
  9742. #undef malloc
  9743. /* Thanks to Mike Haertel and Jim Avera for this test.
  9744. Here is a matrix of mmap possibilities:
  9745. mmap private not fixed
  9746. mmap private fixed at somewhere currently unmapped
  9747. mmap private fixed at somewhere already mapped
  9748. mmap shared not fixed
  9749. mmap shared fixed at somewhere currently unmapped
  9750. mmap shared fixed at somewhere already mapped
  9751. For private mappings, we should verify that changes cannot be read()
  9752. back from the file, nor mmap's back from the file at a different
  9753. address. (There have been systems where private was not correctly
  9754. implemented like the infamous i386 svr4.0, and systems where the
  9755. VM page cache was not coherent with the file system buffer cache
  9756. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9757. For shared mappings, we should conversely verify that changes get
  9758. propagated back to all the places they're supposed to be.
  9759. Grep wants private fixed already mapped.
  9760. The main things grep needs to know about mmap are:
  9761. * does it exist and is it safe to write into the mmap'd area
  9762. * how to use it (BSD variants) */
  9763. #include <fcntl.h>
  9764. #include <sys/mman.h>
  9765. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9766. char *malloc ();
  9767. #endif
  9768. /* This mess was copied from the GNU getpagesize.h. */
  9769. #if !HAVE_GETPAGESIZE
  9770. /* Assume that all systems that can run configure have sys/param.h. */
  9771. # if !HAVE_SYS_PARAM_H
  9772. # define HAVE_SYS_PARAM_H 1
  9773. # endif
  9774. # ifdef _SC_PAGESIZE
  9775. # define getpagesize() sysconf(_SC_PAGESIZE)
  9776. # else /* no _SC_PAGESIZE */
  9777. # if HAVE_SYS_PARAM_H
  9778. # include <sys/param.h>
  9779. # ifdef EXEC_PAGESIZE
  9780. # define getpagesize() EXEC_PAGESIZE
  9781. # else /* no EXEC_PAGESIZE */
  9782. # ifdef NBPG
  9783. # define getpagesize() NBPG * CLSIZE
  9784. # ifndef CLSIZE
  9785. # define CLSIZE 1
  9786. # endif /* no CLSIZE */
  9787. # else /* no NBPG */
  9788. # ifdef NBPC
  9789. # define getpagesize() NBPC
  9790. # else /* no NBPC */
  9791. # ifdef PAGESIZE
  9792. # define getpagesize() PAGESIZE
  9793. # endif /* PAGESIZE */
  9794. # endif /* no NBPC */
  9795. # endif /* no NBPG */
  9796. # endif /* no EXEC_PAGESIZE */
  9797. # else /* no HAVE_SYS_PARAM_H */
  9798. # define getpagesize() 8192 /* punt totally */
  9799. # endif /* no HAVE_SYS_PARAM_H */
  9800. # endif /* no _SC_PAGESIZE */
  9801. #endif /* no HAVE_GETPAGESIZE */
  9802. int
  9803. main ()
  9804. {
  9805. char *data, *data2, *data3;
  9806. int i, pagesize;
  9807. int fd;
  9808. pagesize = getpagesize ();
  9809. /* First, make a file with some known garbage in it. */
  9810. data = (char *) malloc (pagesize);
  9811. if (!data)
  9812. exit (1);
  9813. for (i = 0; i < pagesize; ++i)
  9814. *(data + i) = rand ();
  9815. umask (0);
  9816. fd = creat ("conftest.mmap", 0600);
  9817. if (fd < 0)
  9818. exit (1);
  9819. if (write (fd, data, pagesize) != pagesize)
  9820. exit (1);
  9821. close (fd);
  9822. /* Next, try to mmap the file at a fixed address which already has
  9823. something else allocated at it. If we can, also make sure that
  9824. we see the same garbage. */
  9825. fd = open ("conftest.mmap", O_RDWR);
  9826. if (fd < 0)
  9827. exit (1);
  9828. data2 = (char *) malloc (2 * pagesize);
  9829. if (!data2)
  9830. exit (1);
  9831. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9832. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9833. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9834. exit (1);
  9835. for (i = 0; i < pagesize; ++i)
  9836. if (*(data + i) != *(data2 + i))
  9837. exit (1);
  9838. /* Finally, make sure that changes to the mapped area do not
  9839. percolate back to the file as seen by read(). (This is a bug on
  9840. some variants of i386 svr4.0.) */
  9841. for (i = 0; i < pagesize; ++i)
  9842. *(data2 + i) = *(data2 + i) + 1;
  9843. data3 = (char *) malloc (pagesize);
  9844. if (!data3)
  9845. exit (1);
  9846. if (read (fd, data3, pagesize) != pagesize)
  9847. exit (1);
  9848. for (i = 0; i < pagesize; ++i)
  9849. if (*(data + i) != *(data3 + i))
  9850. exit (1);
  9851. close (fd);
  9852. exit (0);
  9853. }
  9854. _ACEOF
  9855. rm -f conftest$ac_exeext
  9856. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9857. (eval $ac_link) 2>&5
  9858. ac_status=$?
  9859. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9860. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9862. (eval $ac_try) 2>&5
  9863. ac_status=$?
  9864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9865. (exit $ac_status); }; }; then
  9866. ac_cv_func_mmap_fixed_mapped=yes
  9867. else
  9868. echo "$as_me: program exited with status $ac_status" >&5
  9869. echo "$as_me: failed program was:" >&5
  9870. sed 's/^/| /' conftest.$ac_ext >&5
  9871. ( exit $ac_status )
  9872. ac_cv_func_mmap_fixed_mapped=no
  9873. fi
  9874. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9875. fi
  9876. fi
  9877. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9878. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9879. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9880. cat >>confdefs.h <<\_ACEOF
  9881. #define HAVE_MMAP 1
  9882. _ACEOF
  9883. fi
  9884. rm -f conftest.mmap
  9885. for ac_header in stdlib.h
  9886. do
  9887. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9888. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9889. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9890. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9891. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9892. echo $ECHO_N "(cached) $ECHO_C" >&6
  9893. fi
  9894. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9895. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9896. else
  9897. # Is the header compilable?
  9898. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9899. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9900. cat >conftest.$ac_ext <<_ACEOF
  9901. /* confdefs.h. */
  9902. _ACEOF
  9903. cat confdefs.h >>conftest.$ac_ext
  9904. cat >>conftest.$ac_ext <<_ACEOF
  9905. /* end confdefs.h. */
  9906. $ac_includes_default
  9907. #include <$ac_header>
  9908. _ACEOF
  9909. rm -f conftest.$ac_objext
  9910. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9911. (eval $ac_compile) 2>conftest.er1
  9912. ac_status=$?
  9913. grep -v '^ *+' conftest.er1 >conftest.err
  9914. rm -f conftest.er1
  9915. cat conftest.err >&5
  9916. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9917. (exit $ac_status); } &&
  9918. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9920. (eval $ac_try) 2>&5
  9921. ac_status=$?
  9922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9923. (exit $ac_status); }; } &&
  9924. { ac_try='test -s conftest.$ac_objext'
  9925. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9926. (eval $ac_try) 2>&5
  9927. ac_status=$?
  9928. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9929. (exit $ac_status); }; }; then
  9930. ac_header_compiler=yes
  9931. else
  9932. echo "$as_me: failed program was:" >&5
  9933. sed 's/^/| /' conftest.$ac_ext >&5
  9934. ac_header_compiler=no
  9935. fi
  9936. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9937. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9938. echo "${ECHO_T}$ac_header_compiler" >&6
  9939. # Is the header present?
  9940. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9941. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9942. cat >conftest.$ac_ext <<_ACEOF
  9943. /* confdefs.h. */
  9944. _ACEOF
  9945. cat confdefs.h >>conftest.$ac_ext
  9946. cat >>conftest.$ac_ext <<_ACEOF
  9947. /* end confdefs.h. */
  9948. #include <$ac_header>
  9949. _ACEOF
  9950. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9951. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9952. ac_status=$?
  9953. grep -v '^ *+' conftest.er1 >conftest.err
  9954. rm -f conftest.er1
  9955. cat conftest.err >&5
  9956. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9957. (exit $ac_status); } >/dev/null; then
  9958. if test -s conftest.err; then
  9959. ac_cpp_err=$ac_c_preproc_warn_flag
  9960. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9961. else
  9962. ac_cpp_err=
  9963. fi
  9964. else
  9965. ac_cpp_err=yes
  9966. fi
  9967. if test -z "$ac_cpp_err"; then
  9968. ac_header_preproc=yes
  9969. else
  9970. echo "$as_me: failed program was:" >&5
  9971. sed 's/^/| /' conftest.$ac_ext >&5
  9972. ac_header_preproc=no
  9973. fi
  9974. rm -f conftest.err conftest.$ac_ext
  9975. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9976. echo "${ECHO_T}$ac_header_preproc" >&6
  9977. # So? What about this header?
  9978. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9979. yes:no: )
  9980. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9981. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9982. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9983. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9984. ac_header_preproc=yes
  9985. ;;
  9986. no:yes:* )
  9987. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9988. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9989. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9990. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9991. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9992. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9993. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9994. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9995. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9996. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9997. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9998. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9999. (
  10000. cat <<\_ASBOX
  10001. ## ------------------------------------------ ##
  10002. ## Report this to the AC_PACKAGE_NAME lists. ##
  10003. ## ------------------------------------------ ##
  10004. _ASBOX
  10005. ) |
  10006. sed "s/^/$as_me: WARNING: /" >&2
  10007. ;;
  10008. esac
  10009. echo "$as_me:$LINENO: checking for $ac_header" >&5
  10010. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  10011. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10012. echo $ECHO_N "(cached) $ECHO_C" >&6
  10013. else
  10014. eval "$as_ac_Header=\$ac_header_preproc"
  10015. fi
  10016. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10017. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10018. fi
  10019. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  10020. cat >>confdefs.h <<_ACEOF
  10021. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  10022. _ACEOF
  10023. fi
  10024. done
  10025. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  10026. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  10027. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  10028. echo $ECHO_N "(cached) $ECHO_C" >&6
  10029. else
  10030. if test "$cross_compiling" = yes; then
  10031. ac_cv_func_realloc_0_nonnull=no
  10032. else
  10033. cat >conftest.$ac_ext <<_ACEOF
  10034. /* confdefs.h. */
  10035. _ACEOF
  10036. cat confdefs.h >>conftest.$ac_ext
  10037. cat >>conftest.$ac_ext <<_ACEOF
  10038. /* end confdefs.h. */
  10039. #if STDC_HEADERS || HAVE_STDLIB_H
  10040. # include <stdlib.h>
  10041. #else
  10042. char *realloc ();
  10043. #endif
  10044. int
  10045. main ()
  10046. {
  10047. exit (realloc (0, 0) ? 0 : 1);
  10048. ;
  10049. return 0;
  10050. }
  10051. _ACEOF
  10052. rm -f conftest$ac_exeext
  10053. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10054. (eval $ac_link) 2>&5
  10055. ac_status=$?
  10056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10057. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10058. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10059. (eval $ac_try) 2>&5
  10060. ac_status=$?
  10061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10062. (exit $ac_status); }; }; then
  10063. ac_cv_func_realloc_0_nonnull=yes
  10064. else
  10065. echo "$as_me: program exited with status $ac_status" >&5
  10066. echo "$as_me: failed program was:" >&5
  10067. sed 's/^/| /' conftest.$ac_ext >&5
  10068. ( exit $ac_status )
  10069. ac_cv_func_realloc_0_nonnull=no
  10070. fi
  10071. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10072. fi
  10073. fi
  10074. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  10075. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  10076. if test $ac_cv_func_realloc_0_nonnull = yes; then
  10077. cat >>confdefs.h <<\_ACEOF
  10078. #define HAVE_REALLOC 1
  10079. _ACEOF
  10080. else
  10081. cat >>confdefs.h <<\_ACEOF
  10082. #define HAVE_REALLOC 0
  10083. _ACEOF
  10084. case $LIBOBJS in
  10085. "realloc.$ac_objext" | \
  10086. *" realloc.$ac_objext" | \
  10087. "realloc.$ac_objext "* | \
  10088. *" realloc.$ac_objext "* ) ;;
  10089. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  10090. esac
  10091. cat >>confdefs.h <<\_ACEOF
  10092. #define realloc rpl_realloc
  10093. _ACEOF
  10094. fi
  10095. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  10096. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  10097. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  10098. echo $ECHO_N "(cached) $ECHO_C" >&6
  10099. else
  10100. if test "$cross_compiling" = yes; then
  10101. ac_cv_func_stat_empty_string_bug=yes
  10102. else
  10103. cat >conftest.$ac_ext <<_ACEOF
  10104. /* confdefs.h. */
  10105. _ACEOF
  10106. cat confdefs.h >>conftest.$ac_ext
  10107. cat >>conftest.$ac_ext <<_ACEOF
  10108. /* end confdefs.h. */
  10109. $ac_includes_default
  10110. int
  10111. main ()
  10112. {
  10113. struct stat sbuf;
  10114. exit (stat ("", &sbuf) ? 1 : 0);
  10115. ;
  10116. return 0;
  10117. }
  10118. _ACEOF
  10119. rm -f conftest$ac_exeext
  10120. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10121. (eval $ac_link) 2>&5
  10122. ac_status=$?
  10123. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10124. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  10125. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10126. (eval $ac_try) 2>&5
  10127. ac_status=$?
  10128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10129. (exit $ac_status); }; }; then
  10130. ac_cv_func_stat_empty_string_bug=yes
  10131. else
  10132. echo "$as_me: program exited with status $ac_status" >&5
  10133. echo "$as_me: failed program was:" >&5
  10134. sed 's/^/| /' conftest.$ac_ext >&5
  10135. ( exit $ac_status )
  10136. ac_cv_func_stat_empty_string_bug=no
  10137. fi
  10138. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  10139. fi
  10140. fi
  10141. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  10142. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  10143. if test $ac_cv_func_stat_empty_string_bug = yes; then
  10144. case $LIBOBJS in
  10145. "stat.$ac_objext" | \
  10146. *" stat.$ac_objext" | \
  10147. "stat.$ac_objext "* | \
  10148. *" stat.$ac_objext "* ) ;;
  10149. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  10150. esac
  10151. cat >>confdefs.h <<_ACEOF
  10152. #define HAVE_STAT_EMPTY_STRING_BUG 1
  10153. _ACEOF
  10154. fi
  10155. for ac_func in strftime
  10156. do
  10157. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10158. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10159. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10160. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10161. echo $ECHO_N "(cached) $ECHO_C" >&6
  10162. else
  10163. cat >conftest.$ac_ext <<_ACEOF
  10164. /* confdefs.h. */
  10165. _ACEOF
  10166. cat confdefs.h >>conftest.$ac_ext
  10167. cat >>conftest.$ac_ext <<_ACEOF
  10168. /* end confdefs.h. */
  10169. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10170. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10171. #define $ac_func innocuous_$ac_func
  10172. /* System header to define __stub macros and hopefully few prototypes,
  10173. which can conflict with char $ac_func (); below.
  10174. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10175. <limits.h> exists even on freestanding compilers. */
  10176. #ifdef __STDC__
  10177. # include <limits.h>
  10178. #else
  10179. # include <assert.h>
  10180. #endif
  10181. #undef $ac_func
  10182. /* Override any gcc2 internal prototype to avoid an error. */
  10183. #ifdef __cplusplus
  10184. extern "C"
  10185. {
  10186. #endif
  10187. /* We use char because int might match the return type of a gcc2
  10188. builtin and then its argument prototype would still apply. */
  10189. char $ac_func ();
  10190. /* The GNU C library defines this for functions which it implements
  10191. to always fail with ENOSYS. Some functions are actually named
  10192. something starting with __ and the normal name is an alias. */
  10193. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10194. choke me
  10195. #else
  10196. char (*f) () = $ac_func;
  10197. #endif
  10198. #ifdef __cplusplus
  10199. }
  10200. #endif
  10201. int
  10202. main ()
  10203. {
  10204. return f != $ac_func;
  10205. ;
  10206. return 0;
  10207. }
  10208. _ACEOF
  10209. rm -f conftest.$ac_objext conftest$ac_exeext
  10210. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10211. (eval $ac_link) 2>conftest.er1
  10212. ac_status=$?
  10213. grep -v '^ *+' conftest.er1 >conftest.err
  10214. rm -f conftest.er1
  10215. cat conftest.err >&5
  10216. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10217. (exit $ac_status); } &&
  10218. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10220. (eval $ac_try) 2>&5
  10221. ac_status=$?
  10222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10223. (exit $ac_status); }; } &&
  10224. { ac_try='test -s conftest$ac_exeext'
  10225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10226. (eval $ac_try) 2>&5
  10227. ac_status=$?
  10228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10229. (exit $ac_status); }; }; then
  10230. eval "$as_ac_var=yes"
  10231. else
  10232. echo "$as_me: failed program was:" >&5
  10233. sed 's/^/| /' conftest.$ac_ext >&5
  10234. eval "$as_ac_var=no"
  10235. fi
  10236. rm -f conftest.err conftest.$ac_objext \
  10237. conftest$ac_exeext conftest.$ac_ext
  10238. fi
  10239. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10240. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10241. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10242. cat >>confdefs.h <<_ACEOF
  10243. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10244. _ACEOF
  10245. else
  10246. # strftime is in -lintl on SCO UNIX.
  10247. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  10248. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  10249. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  10250. echo $ECHO_N "(cached) $ECHO_C" >&6
  10251. else
  10252. ac_check_lib_save_LIBS=$LIBS
  10253. LIBS="-lintl $LIBS"
  10254. cat >conftest.$ac_ext <<_ACEOF
  10255. /* confdefs.h. */
  10256. _ACEOF
  10257. cat confdefs.h >>conftest.$ac_ext
  10258. cat >>conftest.$ac_ext <<_ACEOF
  10259. /* end confdefs.h. */
  10260. /* Override any gcc2 internal prototype to avoid an error. */
  10261. #ifdef __cplusplus
  10262. extern "C"
  10263. #endif
  10264. /* We use char because int might match the return type of a gcc2
  10265. builtin and then its argument prototype would still apply. */
  10266. char strftime ();
  10267. int
  10268. main ()
  10269. {
  10270. strftime ();
  10271. ;
  10272. return 0;
  10273. }
  10274. _ACEOF
  10275. rm -f conftest.$ac_objext conftest$ac_exeext
  10276. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10277. (eval $ac_link) 2>conftest.er1
  10278. ac_status=$?
  10279. grep -v '^ *+' conftest.er1 >conftest.err
  10280. rm -f conftest.er1
  10281. cat conftest.err >&5
  10282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10283. (exit $ac_status); } &&
  10284. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10286. (eval $ac_try) 2>&5
  10287. ac_status=$?
  10288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10289. (exit $ac_status); }; } &&
  10290. { ac_try='test -s conftest$ac_exeext'
  10291. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10292. (eval $ac_try) 2>&5
  10293. ac_status=$?
  10294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10295. (exit $ac_status); }; }; then
  10296. ac_cv_lib_intl_strftime=yes
  10297. else
  10298. echo "$as_me: failed program was:" >&5
  10299. sed 's/^/| /' conftest.$ac_ext >&5
  10300. ac_cv_lib_intl_strftime=no
  10301. fi
  10302. rm -f conftest.err conftest.$ac_objext \
  10303. conftest$ac_exeext conftest.$ac_ext
  10304. LIBS=$ac_check_lib_save_LIBS
  10305. fi
  10306. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  10307. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  10308. if test $ac_cv_lib_intl_strftime = yes; then
  10309. cat >>confdefs.h <<\_ACEOF
  10310. #define HAVE_STRFTIME 1
  10311. _ACEOF
  10312. LIBS="-lintl $LIBS"
  10313. fi
  10314. fi
  10315. done
  10316. #checkpoint
  10317. cat >confcache <<\_ACEOF
  10318. # This file is a shell script that caches the results of configure
  10319. # tests run on this system so they can be shared between configure
  10320. # scripts and configure runs, see configure's option --config-cache.
  10321. # It is not useful on other systems. If it contains results you don't
  10322. # want to keep, you may remove or edit it.
  10323. #
  10324. # config.status only pays attention to the cache file if you give it
  10325. # the --recheck option to rerun configure.
  10326. #
  10327. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10328. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10329. # following values.
  10330. _ACEOF
  10331. # The following way of writing the cache mishandles newlines in values,
  10332. # but we know of no workaround that is simple, portable, and efficient.
  10333. # So, don't put newlines in cache variables' values.
  10334. # Ultrix sh set writes to stderr and can't be redirected directly,
  10335. # and sets the high bit in the cache file unless we assign to the vars.
  10336. {
  10337. (set) 2>&1 |
  10338. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10339. *ac_space=\ *)
  10340. # `set' does not quote correctly, so add quotes (double-quote
  10341. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10342. sed -n \
  10343. "s/'/'\\\\''/g;
  10344. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10345. ;;
  10346. *)
  10347. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10348. sed -n \
  10349. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10350. ;;
  10351. esac;
  10352. } |
  10353. sed '
  10354. t clear
  10355. : clear
  10356. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10357. t end
  10358. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10359. : end' >>confcache
  10360. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10361. if test -w $cache_file; then
  10362. test "x$cache_file" != "x/dev/null"
  10363. cat confcache >$cache_file
  10364. else
  10365. echo "not updating unwritable cache $cache_file"
  10366. fi
  10367. fi
  10368. rm -f confcache
  10369. for ac_func in clock fsync getrusage inet_aton isascii gethostbyname2
  10370. do
  10371. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10372. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10373. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10374. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10375. echo $ECHO_N "(cached) $ECHO_C" >&6
  10376. else
  10377. cat >conftest.$ac_ext <<_ACEOF
  10378. /* confdefs.h. */
  10379. _ACEOF
  10380. cat confdefs.h >>conftest.$ac_ext
  10381. cat >>conftest.$ac_ext <<_ACEOF
  10382. /* end confdefs.h. */
  10383. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10384. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10385. #define $ac_func innocuous_$ac_func
  10386. /* System header to define __stub macros and hopefully few prototypes,
  10387. which can conflict with char $ac_func (); below.
  10388. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10389. <limits.h> exists even on freestanding compilers. */
  10390. #ifdef __STDC__
  10391. # include <limits.h>
  10392. #else
  10393. # include <assert.h>
  10394. #endif
  10395. #undef $ac_func
  10396. /* Override any gcc2 internal prototype to avoid an error. */
  10397. #ifdef __cplusplus
  10398. extern "C"
  10399. {
  10400. #endif
  10401. /* We use char because int might match the return type of a gcc2
  10402. builtin and then its argument prototype would still apply. */
  10403. char $ac_func ();
  10404. /* The GNU C library defines this for functions which it implements
  10405. to always fail with ENOSYS. Some functions are actually named
  10406. something starting with __ and the normal name is an alias. */
  10407. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10408. choke me
  10409. #else
  10410. char (*f) () = $ac_func;
  10411. #endif
  10412. #ifdef __cplusplus
  10413. }
  10414. #endif
  10415. int
  10416. main ()
  10417. {
  10418. return f != $ac_func;
  10419. ;
  10420. return 0;
  10421. }
  10422. _ACEOF
  10423. rm -f conftest.$ac_objext conftest$ac_exeext
  10424. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10425. (eval $ac_link) 2>conftest.er1
  10426. ac_status=$?
  10427. grep -v '^ *+' conftest.er1 >conftest.err
  10428. rm -f conftest.er1
  10429. cat conftest.err >&5
  10430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10431. (exit $ac_status); } &&
  10432. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10433. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10434. (eval $ac_try) 2>&5
  10435. ac_status=$?
  10436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10437. (exit $ac_status); }; } &&
  10438. { ac_try='test -s conftest$ac_exeext'
  10439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10440. (eval $ac_try) 2>&5
  10441. ac_status=$?
  10442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10443. (exit $ac_status); }; }; then
  10444. eval "$as_ac_var=yes"
  10445. else
  10446. echo "$as_me: failed program was:" >&5
  10447. sed 's/^/| /' conftest.$ac_ext >&5
  10448. eval "$as_ac_var=no"
  10449. fi
  10450. rm -f conftest.err conftest.$ac_objext \
  10451. conftest$ac_exeext conftest.$ac_ext
  10452. fi
  10453. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10454. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10455. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10456. cat >>confdefs.h <<_ACEOF
  10457. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10458. _ACEOF
  10459. fi
  10460. done
  10461. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10462. do
  10463. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10464. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10465. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10466. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10467. echo $ECHO_N "(cached) $ECHO_C" >&6
  10468. else
  10469. cat >conftest.$ac_ext <<_ACEOF
  10470. /* confdefs.h. */
  10471. _ACEOF
  10472. cat confdefs.h >>conftest.$ac_ext
  10473. cat >>conftest.$ac_ext <<_ACEOF
  10474. /* end confdefs.h. */
  10475. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10476. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10477. #define $ac_func innocuous_$ac_func
  10478. /* System header to define __stub macros and hopefully few prototypes,
  10479. which can conflict with char $ac_func (); below.
  10480. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10481. <limits.h> exists even on freestanding compilers. */
  10482. #ifdef __STDC__
  10483. # include <limits.h>
  10484. #else
  10485. # include <assert.h>
  10486. #endif
  10487. #undef $ac_func
  10488. /* Override any gcc2 internal prototype to avoid an error. */
  10489. #ifdef __cplusplus
  10490. extern "C"
  10491. {
  10492. #endif
  10493. /* We use char because int might match the return type of a gcc2
  10494. builtin and then its argument prototype would still apply. */
  10495. char $ac_func ();
  10496. /* The GNU C library defines this for functions which it implements
  10497. to always fail with ENOSYS. Some functions are actually named
  10498. something starting with __ and the normal name is an alias. */
  10499. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10500. choke me
  10501. #else
  10502. char (*f) () = $ac_func;
  10503. #endif
  10504. #ifdef __cplusplus
  10505. }
  10506. #endif
  10507. int
  10508. main ()
  10509. {
  10510. return f != $ac_func;
  10511. ;
  10512. return 0;
  10513. }
  10514. _ACEOF
  10515. rm -f conftest.$ac_objext conftest$ac_exeext
  10516. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10517. (eval $ac_link) 2>conftest.er1
  10518. ac_status=$?
  10519. grep -v '^ *+' conftest.er1 >conftest.err
  10520. rm -f conftest.er1
  10521. cat conftest.err >&5
  10522. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10523. (exit $ac_status); } &&
  10524. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10525. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10526. (eval $ac_try) 2>&5
  10527. ac_status=$?
  10528. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10529. (exit $ac_status); }; } &&
  10530. { ac_try='test -s conftest$ac_exeext'
  10531. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10532. (eval $ac_try) 2>&5
  10533. ac_status=$?
  10534. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10535. (exit $ac_status); }; }; then
  10536. eval "$as_ac_var=yes"
  10537. else
  10538. echo "$as_me: failed program was:" >&5
  10539. sed 's/^/| /' conftest.$ac_ext >&5
  10540. eval "$as_ac_var=no"
  10541. fi
  10542. rm -f conftest.err conftest.$ac_objext \
  10543. conftest$ac_exeext conftest.$ac_ext
  10544. fi
  10545. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10546. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10547. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10548. cat >>confdefs.h <<_ACEOF
  10549. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10550. _ACEOF
  10551. fi
  10552. done
  10553. #checkpoint
  10554. cat >confcache <<\_ACEOF
  10555. # This file is a shell script that caches the results of configure
  10556. # tests run on this system so they can be shared between configure
  10557. # scripts and configure runs, see configure's option --config-cache.
  10558. # It is not useful on other systems. If it contains results you don't
  10559. # want to keep, you may remove or edit it.
  10560. #
  10561. # config.status only pays attention to the cache file if you give it
  10562. # the --recheck option to rerun configure.
  10563. #
  10564. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10565. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10566. # following values.
  10567. _ACEOF
  10568. # The following way of writing the cache mishandles newlines in values,
  10569. # but we know of no workaround that is simple, portable, and efficient.
  10570. # So, don't put newlines in cache variables' values.
  10571. # Ultrix sh set writes to stderr and can't be redirected directly,
  10572. # and sets the high bit in the cache file unless we assign to the vars.
  10573. {
  10574. (set) 2>&1 |
  10575. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10576. *ac_space=\ *)
  10577. # `set' does not quote correctly, so add quotes (double-quote
  10578. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10579. sed -n \
  10580. "s/'/'\\\\''/g;
  10581. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10582. ;;
  10583. *)
  10584. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10585. sed -n \
  10586. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10587. ;;
  10588. esac;
  10589. } |
  10590. sed '
  10591. t clear
  10592. : clear
  10593. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10594. t end
  10595. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10596. : end' >>confcache
  10597. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10598. if test -w $cache_file; then
  10599. test "x$cache_file" != "x/dev/null"
  10600. cat confcache >$cache_file
  10601. else
  10602. echo "not updating unwritable cache $cache_file"
  10603. fi
  10604. fi
  10605. rm -f confcache
  10606. for ac_func in strcasecmp strncasecmp vsnprintf
  10607. do
  10608. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10609. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10610. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10611. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10612. echo $ECHO_N "(cached) $ECHO_C" >&6
  10613. else
  10614. cat >conftest.$ac_ext <<_ACEOF
  10615. /* confdefs.h. */
  10616. _ACEOF
  10617. cat confdefs.h >>conftest.$ac_ext
  10618. cat >>conftest.$ac_ext <<_ACEOF
  10619. /* end confdefs.h. */
  10620. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10621. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10622. #define $ac_func innocuous_$ac_func
  10623. /* System header to define __stub macros and hopefully few prototypes,
  10624. which can conflict with char $ac_func (); below.
  10625. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10626. <limits.h> exists even on freestanding compilers. */
  10627. #ifdef __STDC__
  10628. # include <limits.h>
  10629. #else
  10630. # include <assert.h>
  10631. #endif
  10632. #undef $ac_func
  10633. /* Override any gcc2 internal prototype to avoid an error. */
  10634. #ifdef __cplusplus
  10635. extern "C"
  10636. {
  10637. #endif
  10638. /* We use char because int might match the return type of a gcc2
  10639. builtin and then its argument prototype would still apply. */
  10640. char $ac_func ();
  10641. /* The GNU C library defines this for functions which it implements
  10642. to always fail with ENOSYS. Some functions are actually named
  10643. something starting with __ and the normal name is an alias. */
  10644. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10645. choke me
  10646. #else
  10647. char (*f) () = $ac_func;
  10648. #endif
  10649. #ifdef __cplusplus
  10650. }
  10651. #endif
  10652. int
  10653. main ()
  10654. {
  10655. return f != $ac_func;
  10656. ;
  10657. return 0;
  10658. }
  10659. _ACEOF
  10660. rm -f conftest.$ac_objext conftest$ac_exeext
  10661. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10662. (eval $ac_link) 2>conftest.er1
  10663. ac_status=$?
  10664. grep -v '^ *+' conftest.er1 >conftest.err
  10665. rm -f conftest.er1
  10666. cat conftest.err >&5
  10667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10668. (exit $ac_status); } &&
  10669. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10671. (eval $ac_try) 2>&5
  10672. ac_status=$?
  10673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10674. (exit $ac_status); }; } &&
  10675. { ac_try='test -s conftest$ac_exeext'
  10676. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10677. (eval $ac_try) 2>&5
  10678. ac_status=$?
  10679. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10680. (exit $ac_status); }; }; then
  10681. eval "$as_ac_var=yes"
  10682. else
  10683. echo "$as_me: failed program was:" >&5
  10684. sed 's/^/| /' conftest.$ac_ext >&5
  10685. eval "$as_ac_var=no"
  10686. fi
  10687. rm -f conftest.err conftest.$ac_objext \
  10688. conftest$ac_exeext conftest.$ac_ext
  10689. fi
  10690. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10691. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10692. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10693. cat >>confdefs.h <<_ACEOF
  10694. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10695. _ACEOF
  10696. fi
  10697. done
  10698. #autoscan suggested this....
  10699. #These are recommended by autoscan, but no code supports it currently
  10700. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10701. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10702. for ac_func in vsprintf
  10703. do
  10704. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10705. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10706. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10707. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10708. echo $ECHO_N "(cached) $ECHO_C" >&6
  10709. else
  10710. cat >conftest.$ac_ext <<_ACEOF
  10711. /* confdefs.h. */
  10712. _ACEOF
  10713. cat confdefs.h >>conftest.$ac_ext
  10714. cat >>conftest.$ac_ext <<_ACEOF
  10715. /* end confdefs.h. */
  10716. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10717. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10718. #define $ac_func innocuous_$ac_func
  10719. /* System header to define __stub macros and hopefully few prototypes,
  10720. which can conflict with char $ac_func (); below.
  10721. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10722. <limits.h> exists even on freestanding compilers. */
  10723. #ifdef __STDC__
  10724. # include <limits.h>
  10725. #else
  10726. # include <assert.h>
  10727. #endif
  10728. #undef $ac_func
  10729. /* Override any gcc2 internal prototype to avoid an error. */
  10730. #ifdef __cplusplus
  10731. extern "C"
  10732. {
  10733. #endif
  10734. /* We use char because int might match the return type of a gcc2
  10735. builtin and then its argument prototype would still apply. */
  10736. char $ac_func ();
  10737. /* The GNU C library defines this for functions which it implements
  10738. to always fail with ENOSYS. Some functions are actually named
  10739. something starting with __ and the normal name is an alias. */
  10740. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10741. choke me
  10742. #else
  10743. char (*f) () = $ac_func;
  10744. #endif
  10745. #ifdef __cplusplus
  10746. }
  10747. #endif
  10748. int
  10749. main ()
  10750. {
  10751. return f != $ac_func;
  10752. ;
  10753. return 0;
  10754. }
  10755. _ACEOF
  10756. rm -f conftest.$ac_objext conftest$ac_exeext
  10757. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10758. (eval $ac_link) 2>conftest.er1
  10759. ac_status=$?
  10760. grep -v '^ *+' conftest.er1 >conftest.err
  10761. rm -f conftest.er1
  10762. cat conftest.err >&5
  10763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10764. (exit $ac_status); } &&
  10765. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10767. (eval $ac_try) 2>&5
  10768. ac_status=$?
  10769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10770. (exit $ac_status); }; } &&
  10771. { ac_try='test -s conftest$ac_exeext'
  10772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10773. (eval $ac_try) 2>&5
  10774. ac_status=$?
  10775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10776. (exit $ac_status); }; }; then
  10777. eval "$as_ac_var=yes"
  10778. else
  10779. echo "$as_me: failed program was:" >&5
  10780. sed 's/^/| /' conftest.$ac_ext >&5
  10781. eval "$as_ac_var=no"
  10782. fi
  10783. rm -f conftest.err conftest.$ac_objext \
  10784. conftest$ac_exeext conftest.$ac_ext
  10785. fi
  10786. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10787. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10788. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10789. cat >>confdefs.h <<_ACEOF
  10790. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10791. _ACEOF
  10792. fi
  10793. done
  10794. if test "$ac_cv_func_vsprintf" = "no"
  10795. then
  10796. cat << 'EOF' >&2
  10797. configure: error:
  10798. Your system does not have the sprintf/vsprintf libraries.
  10799. These are required to compile almost anything. Sorry.
  10800. EOF
  10801. exit 1
  10802. fi
  10803. for ac_func in uname
  10804. do
  10805. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10806. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10807. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10808. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10809. echo $ECHO_N "(cached) $ECHO_C" >&6
  10810. else
  10811. cat >conftest.$ac_ext <<_ACEOF
  10812. /* confdefs.h. */
  10813. _ACEOF
  10814. cat confdefs.h >>conftest.$ac_ext
  10815. cat >>conftest.$ac_ext <<_ACEOF
  10816. /* end confdefs.h. */
  10817. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10818. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10819. #define $ac_func innocuous_$ac_func
  10820. /* System header to define __stub macros and hopefully few prototypes,
  10821. which can conflict with char $ac_func (); below.
  10822. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10823. <limits.h> exists even on freestanding compilers. */
  10824. #ifdef __STDC__
  10825. # include <limits.h>
  10826. #else
  10827. # include <assert.h>
  10828. #endif
  10829. #undef $ac_func
  10830. /* Override any gcc2 internal prototype to avoid an error. */
  10831. #ifdef __cplusplus
  10832. extern "C"
  10833. {
  10834. #endif
  10835. /* We use char because int might match the return type of a gcc2
  10836. builtin and then its argument prototype would still apply. */
  10837. char $ac_func ();
  10838. /* The GNU C library defines this for functions which it implements
  10839. to always fail with ENOSYS. Some functions are actually named
  10840. something starting with __ and the normal name is an alias. */
  10841. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10842. choke me
  10843. #else
  10844. char (*f) () = $ac_func;
  10845. #endif
  10846. #ifdef __cplusplus
  10847. }
  10848. #endif
  10849. int
  10850. main ()
  10851. {
  10852. return f != $ac_func;
  10853. ;
  10854. return 0;
  10855. }
  10856. _ACEOF
  10857. rm -f conftest.$ac_objext conftest$ac_exeext
  10858. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10859. (eval $ac_link) 2>conftest.er1
  10860. ac_status=$?
  10861. grep -v '^ *+' conftest.er1 >conftest.err
  10862. rm -f conftest.er1
  10863. cat conftest.err >&5
  10864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10865. (exit $ac_status); } &&
  10866. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10868. (eval $ac_try) 2>&5
  10869. ac_status=$?
  10870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10871. (exit $ac_status); }; } &&
  10872. { ac_try='test -s conftest$ac_exeext'
  10873. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10874. (eval $ac_try) 2>&5
  10875. ac_status=$?
  10876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10877. (exit $ac_status); }; }; then
  10878. eval "$as_ac_var=yes"
  10879. else
  10880. echo "$as_me: failed program was:" >&5
  10881. sed 's/^/| /' conftest.$ac_ext >&5
  10882. eval "$as_ac_var=no"
  10883. fi
  10884. rm -f conftest.err conftest.$ac_objext \
  10885. conftest$ac_exeext conftest.$ac_ext
  10886. fi
  10887. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10888. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10889. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10890. cat >>confdefs.h <<_ACEOF
  10891. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10892. _ACEOF
  10893. fi
  10894. done
  10895. if test "$ac_cv_func_uname" = "no"
  10896. then
  10897. cat << 'EOF' >&2
  10898. configure: error:
  10899. Your system does not have the uname() function.
  10900. This is required for the botpack.
  10901. EOF
  10902. exit 1
  10903. fi
  10904. # Make sure we have stdc headers, since we can't compile without them
  10905. if test "$ac_cv_header_stdc" = "no"
  10906. then
  10907. cat << 'EOF' >&2
  10908. configure: error:
  10909. Your system must support ANSI C Header files.
  10910. These are required for the language support. Sorry.
  10911. EOF
  10912. exit 1
  10913. fi
  10914. #checkpoint
  10915. cat >confcache <<\_ACEOF
  10916. # This file is a shell script that caches the results of configure
  10917. # tests run on this system so they can be shared between configure
  10918. # scripts and configure runs, see configure's option --config-cache.
  10919. # It is not useful on other systems. If it contains results you don't
  10920. # want to keep, you may remove or edit it.
  10921. #
  10922. # config.status only pays attention to the cache file if you give it
  10923. # the --recheck option to rerun configure.
  10924. #
  10925. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10926. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10927. # following values.
  10928. _ACEOF
  10929. # The following way of writing the cache mishandles newlines in values,
  10930. # but we know of no workaround that is simple, portable, and efficient.
  10931. # So, don't put newlines in cache variables' values.
  10932. # Ultrix sh set writes to stderr and can't be redirected directly,
  10933. # and sets the high bit in the cache file unless we assign to the vars.
  10934. {
  10935. (set) 2>&1 |
  10936. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10937. *ac_space=\ *)
  10938. # `set' does not quote correctly, so add quotes (double-quote
  10939. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10940. sed -n \
  10941. "s/'/'\\\\''/g;
  10942. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10943. ;;
  10944. *)
  10945. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10946. sed -n \
  10947. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10948. ;;
  10949. esac;
  10950. } |
  10951. sed '
  10952. t clear
  10953. : clear
  10954. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10955. t end
  10956. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10957. : end' >>confcache
  10958. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10959. if test -w $cache_file; then
  10960. test "x$cache_file" != "x/dev/null"
  10961. cat confcache >$cache_file
  10962. else
  10963. echo "not updating unwritable cache $cache_file"
  10964. fi
  10965. fi
  10966. rm -f confcache
  10967. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10968. if ! test -f $cfg; then
  10969. cat << EOF >&2
  10970. configure: error:
  10971. Your pack cfg is missing, please copy it to $srcdir/$cfg
  10972. Or specify the path to it with: --with-cfg=
  10973. EOF
  10974. exit 1
  10975. fi
  10976. PACKNAME=`grep "PACKNAME " $cfg | $AWK '/PACKNAME/ {print $2}'`
  10977. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10978. cat >>confdefs.h <<_ACEOF
  10979. #define EGG_VERSION $version_num
  10980. _ACEOF
  10981. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' $cfg`; do
  10982. u_define="S_$define"
  10983. cat >>confdefs.h <<_ACEOF
  10984. #define $u_define 1
  10985. _ACEOF
  10986. CFG="$cfg"
  10987. done
  10988. case "$srcdir" in
  10989. [\\/]* | ?:[\\/]*)
  10990. MOD_UPDIR=""
  10991. ;;
  10992. *)
  10993. MOD_UPDIR="../"
  10994. ;;
  10995. esac
  10996. 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"
  10997. for mf in $files; do
  10998. # Strip MF so we end up with the name of the file.
  10999. # echo "MF: $mf"
  11000. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11001. dirpart=`(dirname "$mf") 2>/dev/null ||
  11002. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11003. X"$mf" : 'X\(//\)[^/]' \| \
  11004. X"$mf" : 'X\(//\)$' \| \
  11005. X"$mf" : 'X\(/\)' \| \
  11006. . : '\(.\)' 2>/dev/null ||
  11007. echo X"$mf" |
  11008. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11009. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11010. /^X\(\/\/\)$/{ s//\1/; q; }
  11011. /^X\(\/\).*/{ s//\1/; q; }
  11012. s/.*/./; q'`
  11013. # echo "dirpart: $dirpart mf: $mf"
  11014. # rm -rf "$dirpart/.deps/"
  11015. rm -f "$dirpart/.deps/includes"
  11016. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11017. for file in `sed -n -e '
  11018. /^OBJS = .*\\\\$/ {
  11019. s/^OBJS = //
  11020. :loop
  11021. s/\\\\$//
  11022. p
  11023. n
  11024. /\\\\$/ b loop
  11025. p
  11026. }
  11027. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11028. do
  11029. base=`basename $file .o`
  11030. test -f "$dirpart/$base.c" || continue
  11031. if ! test -f "$dirpart/.deps/$base.Po"; then
  11032. echo '# dummy' > "$dirpart/.deps/$base.Po"
  11033. #Remove the .o file, because it needs to be recompiled for its dependancies.
  11034. if test -f "$dirpart/$base.o"; then
  11035. rm -f "$dirpart/$base.o"
  11036. fi
  11037. fi
  11038. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  11039. echo "_$base.c:" >> "$dirpart/.deps/includes"
  11040. done
  11041. done
  11042. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  11043. cat >confcache <<\_ACEOF
  11044. # This file is a shell script that caches the results of configure
  11045. # tests run on this system so they can be shared between configure
  11046. # scripts and configure runs, see configure's option --config-cache.
  11047. # It is not useful on other systems. If it contains results you don't
  11048. # want to keep, you may remove or edit it.
  11049. #
  11050. # config.status only pays attention to the cache file if you give it
  11051. # the --recheck option to rerun configure.
  11052. #
  11053. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11054. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11055. # following values.
  11056. _ACEOF
  11057. # The following way of writing the cache mishandles newlines in values,
  11058. # but we know of no workaround that is simple, portable, and efficient.
  11059. # So, don't put newlines in cache variables' values.
  11060. # Ultrix sh set writes to stderr and can't be redirected directly,
  11061. # and sets the high bit in the cache file unless we assign to the vars.
  11062. {
  11063. (set) 2>&1 |
  11064. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11065. *ac_space=\ *)
  11066. # `set' does not quote correctly, so add quotes (double-quote
  11067. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11068. sed -n \
  11069. "s/'/'\\\\''/g;
  11070. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11071. ;;
  11072. *)
  11073. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11074. sed -n \
  11075. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11076. ;;
  11077. esac;
  11078. } |
  11079. sed '
  11080. t clear
  11081. : clear
  11082. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11083. t end
  11084. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11085. : end' >>confcache
  11086. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11087. if test -w $cache_file; then
  11088. test "x$cache_file" != "x/dev/null"
  11089. cat confcache >$cache_file
  11090. else
  11091. echo "not updating unwritable cache $cache_file"
  11092. fi
  11093. fi
  11094. rm -f confcache
  11095. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11096. # Let make expand exec_prefix.
  11097. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11098. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11099. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11100. # trailing colons and then remove the whole line if VPATH becomes empty
  11101. # (actually we leave an empty line to preserve line numbers).
  11102. if test "x$srcdir" = x.; then
  11103. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11104. s/:*\$(srcdir):*/:/;
  11105. s/:*\${srcdir}:*/:/;
  11106. s/:*@srcdir@:*/:/;
  11107. s/^\([^=]*=[ ]*\):*/\1/;
  11108. s/:*$//;
  11109. s/^[^=]*=[ ]*$//;
  11110. }'
  11111. fi
  11112. DEFS=-DHAVE_CONFIG_H
  11113. ac_libobjs=
  11114. ac_ltlibobjs=
  11115. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11116. # 1. Remove the extension, and $U if already installed.
  11117. ac_i=`echo "$ac_i" |
  11118. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11119. # 2. Add them.
  11120. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11121. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11122. done
  11123. LIBOBJS=$ac_libobjs
  11124. LTLIBOBJS=$ac_ltlibobjs
  11125. : ${CONFIG_STATUS=./config.status}
  11126. ac_clean_files_save=$ac_clean_files
  11127. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11128. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11129. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11130. cat >$CONFIG_STATUS <<_ACEOF
  11131. #! $SHELL
  11132. # Generated by $as_me.
  11133. # Run this file to recreate the current configuration.
  11134. # Compiler output produced by configure, useful for debugging
  11135. # configure, is in config.log if it exists.
  11136. debug=false
  11137. ac_cs_recheck=false
  11138. ac_cs_silent=false
  11139. SHELL=\${CONFIG_SHELL-$SHELL}
  11140. _ACEOF
  11141. cat >>$CONFIG_STATUS <<\_ACEOF
  11142. ## --------------------- ##
  11143. ## M4sh Initialization. ##
  11144. ## --------------------- ##
  11145. # Be Bourne compatible
  11146. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11147. emulate sh
  11148. NULLCMD=:
  11149. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11150. # is contrary to our usage. Disable this feature.
  11151. alias -g '${1+"$@"}'='"$@"'
  11152. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11153. set -o posix
  11154. fi
  11155. DUALCASE=1; export DUALCASE # for MKS sh
  11156. # Support unset when possible.
  11157. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11158. as_unset=unset
  11159. else
  11160. as_unset=false
  11161. fi
  11162. # Work around bugs in pre-3.0 UWIN ksh.
  11163. $as_unset ENV MAIL MAILPATH
  11164. PS1='$ '
  11165. PS2='> '
  11166. PS4='+ '
  11167. # NLS nuisances.
  11168. for as_var in \
  11169. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11170. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11171. LC_TELEPHONE LC_TIME
  11172. do
  11173. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11174. eval $as_var=C; export $as_var
  11175. else
  11176. $as_unset $as_var
  11177. fi
  11178. done
  11179. # Required to use basename.
  11180. if expr a : '\(a\)' >/dev/null 2>&1; then
  11181. as_expr=expr
  11182. else
  11183. as_expr=false
  11184. fi
  11185. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11186. as_basename=basename
  11187. else
  11188. as_basename=false
  11189. fi
  11190. # Name of the executable.
  11191. as_me=`$as_basename "$0" ||
  11192. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11193. X"$0" : 'X\(//\)$' \| \
  11194. X"$0" : 'X\(/\)$' \| \
  11195. . : '\(.\)' 2>/dev/null ||
  11196. echo X/"$0" |
  11197. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11198. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11199. /^X\/\(\/\).*/{ s//\1/; q; }
  11200. s/.*/./; q'`
  11201. # PATH needs CR, and LINENO needs CR and PATH.
  11202. # Avoid depending upon Character Ranges.
  11203. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11204. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11205. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11206. as_cr_digits='0123456789'
  11207. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11208. # The user is always right.
  11209. if test "${PATH_SEPARATOR+set}" != set; then
  11210. echo "#! /bin/sh" >conf$$.sh
  11211. echo "exit 0" >>conf$$.sh
  11212. chmod +x conf$$.sh
  11213. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11214. PATH_SEPARATOR=';'
  11215. else
  11216. PATH_SEPARATOR=:
  11217. fi
  11218. rm -f conf$$.sh
  11219. fi
  11220. as_lineno_1=$LINENO
  11221. as_lineno_2=$LINENO
  11222. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11223. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11224. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11225. # Find who we are. Look in the path if we contain no path at all
  11226. # relative or not.
  11227. case $0 in
  11228. *[\\/]* ) as_myself=$0 ;;
  11229. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11230. for as_dir in $PATH
  11231. do
  11232. IFS=$as_save_IFS
  11233. test -z "$as_dir" && as_dir=.
  11234. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11235. done
  11236. ;;
  11237. esac
  11238. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11239. # in which case we are not to be found in the path.
  11240. if test "x$as_myself" = x; then
  11241. as_myself=$0
  11242. fi
  11243. if test ! -f "$as_myself"; then
  11244. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11245. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11246. { (exit 1); exit 1; }; }
  11247. fi
  11248. case $CONFIG_SHELL in
  11249. '')
  11250. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11251. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11252. do
  11253. IFS=$as_save_IFS
  11254. test -z "$as_dir" && as_dir=.
  11255. for as_base in sh bash ksh sh5; do
  11256. case $as_dir in
  11257. /*)
  11258. if ("$as_dir/$as_base" -c '
  11259. as_lineno_1=$LINENO
  11260. as_lineno_2=$LINENO
  11261. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11262. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11263. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11264. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11265. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11266. CONFIG_SHELL=$as_dir/$as_base
  11267. export CONFIG_SHELL
  11268. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11269. fi;;
  11270. esac
  11271. done
  11272. done
  11273. ;;
  11274. esac
  11275. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11276. # uniformly replaced by the line number. The first 'sed' inserts a
  11277. # line-number line before each line; the second 'sed' does the real
  11278. # work. The second script uses 'N' to pair each line-number line
  11279. # with the numbered line, and appends trailing '-' during
  11280. # substitution so that $LINENO is not a special case at line end.
  11281. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11282. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11283. sed '=' <$as_myself |
  11284. sed '
  11285. N
  11286. s,$,-,
  11287. : loop
  11288. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11289. t loop
  11290. s,-$,,
  11291. s,^['$as_cr_digits']*\n,,
  11292. ' >$as_me.lineno &&
  11293. chmod +x $as_me.lineno ||
  11294. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11295. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11296. { (exit 1); exit 1; }; }
  11297. # Don't try to exec as it changes $[0], causing all sort of problems
  11298. # (the dirname of $[0] is not the place where we might find the
  11299. # original and so on. Autoconf is especially sensible to this).
  11300. . ./$as_me.lineno
  11301. # Exit status is that of the last command.
  11302. exit
  11303. }
  11304. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11305. *c*,-n*) ECHO_N= ECHO_C='
  11306. ' ECHO_T=' ' ;;
  11307. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11308. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11309. esac
  11310. if expr a : '\(a\)' >/dev/null 2>&1; then
  11311. as_expr=expr
  11312. else
  11313. as_expr=false
  11314. fi
  11315. rm -f conf$$ conf$$.exe conf$$.file
  11316. echo >conf$$.file
  11317. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11318. # We could just check for DJGPP; but this test a) works b) is more generic
  11319. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11320. if test -f conf$$.exe; then
  11321. # Don't use ln at all; we don't have any links
  11322. as_ln_s='cp -p'
  11323. else
  11324. as_ln_s='ln -s'
  11325. fi
  11326. elif ln conf$$.file conf$$ 2>/dev/null; then
  11327. as_ln_s=ln
  11328. else
  11329. as_ln_s='cp -p'
  11330. fi
  11331. rm -f conf$$ conf$$.exe conf$$.file
  11332. if mkdir -p . 2>/dev/null; then
  11333. as_mkdir_p=:
  11334. else
  11335. test -d ./-p && rmdir ./-p
  11336. as_mkdir_p=false
  11337. fi
  11338. as_executable_p="test -f"
  11339. # Sed expression to map a string onto a valid CPP name.
  11340. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11341. # Sed expression to map a string onto a valid variable name.
  11342. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11343. # IFS
  11344. # We need space, tab and new line, in precisely that order.
  11345. as_nl='
  11346. '
  11347. IFS=" $as_nl"
  11348. # CDPATH.
  11349. $as_unset CDPATH
  11350. exec 6>&1
  11351. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11352. # report actual input values of CONFIG_FILES etc. instead of their
  11353. # values after options handling. Logging --version etc. is OK.
  11354. exec 5>>config.log
  11355. {
  11356. echo
  11357. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11358. ## Running $as_me. ##
  11359. _ASBOX
  11360. } >&5
  11361. cat >&5 <<_CSEOF
  11362. This file was extended by $as_me, which was
  11363. generated by GNU Autoconf 2.59. Invocation command line was
  11364. CONFIG_FILES = $CONFIG_FILES
  11365. CONFIG_HEADERS = $CONFIG_HEADERS
  11366. CONFIG_LINKS = $CONFIG_LINKS
  11367. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11368. $ $0 $@
  11369. _CSEOF
  11370. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11371. echo >&5
  11372. _ACEOF
  11373. # Files that config.status was made for.
  11374. if test -n "$ac_config_files"; then
  11375. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11376. fi
  11377. if test -n "$ac_config_headers"; then
  11378. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11379. fi
  11380. if test -n "$ac_config_links"; then
  11381. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11382. fi
  11383. if test -n "$ac_config_commands"; then
  11384. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11385. fi
  11386. cat >>$CONFIG_STATUS <<\_ACEOF
  11387. ac_cs_usage="\
  11388. \`$as_me' instantiates files from templates according to the
  11389. current configuration.
  11390. Usage: $0 [OPTIONS] [FILE]...
  11391. -h, --help print this help, then exit
  11392. -V, --version print version number, then exit
  11393. -q, --quiet do not print progress messages
  11394. -d, --debug don't remove temporary files
  11395. --recheck update $as_me by reconfiguring in the same conditions
  11396. --file=FILE[:TEMPLATE]
  11397. instantiate the configuration file FILE
  11398. --header=FILE[:TEMPLATE]
  11399. instantiate the configuration header FILE
  11400. Configuration files:
  11401. $config_files
  11402. Configuration headers:
  11403. $config_headers
  11404. Report bugs to <bug-autoconf@gnu.org>."
  11405. _ACEOF
  11406. cat >>$CONFIG_STATUS <<_ACEOF
  11407. ac_cs_version="\\
  11408. config.status
  11409. configured by $0, generated by GNU Autoconf 2.59,
  11410. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11411. Copyright (C) 2003 Free Software Foundation, Inc.
  11412. This config.status script is free software; the Free Software Foundation
  11413. gives unlimited permission to copy, distribute and modify it."
  11414. srcdir=$srcdir
  11415. _ACEOF
  11416. cat >>$CONFIG_STATUS <<\_ACEOF
  11417. # If no file are specified by the user, then we need to provide default
  11418. # value. By we need to know if files were specified by the user.
  11419. ac_need_defaults=:
  11420. while test $# != 0
  11421. do
  11422. case $1 in
  11423. --*=*)
  11424. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11425. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11426. ac_shift=:
  11427. ;;
  11428. -*)
  11429. ac_option=$1
  11430. ac_optarg=$2
  11431. ac_shift=shift
  11432. ;;
  11433. *) # This is not an option, so the user has probably given explicit
  11434. # arguments.
  11435. ac_option=$1
  11436. ac_need_defaults=false;;
  11437. esac
  11438. case $ac_option in
  11439. # Handling of the options.
  11440. _ACEOF
  11441. cat >>$CONFIG_STATUS <<\_ACEOF
  11442. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11443. ac_cs_recheck=: ;;
  11444. --version | --vers* | -V )
  11445. echo "$ac_cs_version"; exit 0 ;;
  11446. --he | --h)
  11447. # Conflict between --help and --header
  11448. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11449. Try \`$0 --help' for more information." >&5
  11450. echo "$as_me: error: ambiguous option: $1
  11451. Try \`$0 --help' for more information." >&2;}
  11452. { (exit 1); exit 1; }; };;
  11453. --help | --hel | -h )
  11454. echo "$ac_cs_usage"; exit 0 ;;
  11455. --debug | --d* | -d )
  11456. debug=: ;;
  11457. --file | --fil | --fi | --f )
  11458. $ac_shift
  11459. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11460. ac_need_defaults=false;;
  11461. --header | --heade | --head | --hea )
  11462. $ac_shift
  11463. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11464. ac_need_defaults=false;;
  11465. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11466. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11467. ac_cs_silent=: ;;
  11468. # This is an error.
  11469. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11470. Try \`$0 --help' for more information." >&5
  11471. echo "$as_me: error: unrecognized option: $1
  11472. Try \`$0 --help' for more information." >&2;}
  11473. { (exit 1); exit 1; }; } ;;
  11474. *) ac_config_targets="$ac_config_targets $1" ;;
  11475. esac
  11476. shift
  11477. done
  11478. ac_configure_extra_args=
  11479. if $ac_cs_silent; then
  11480. exec 6>/dev/null
  11481. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11482. fi
  11483. _ACEOF
  11484. cat >>$CONFIG_STATUS <<_ACEOF
  11485. if \$ac_cs_recheck; then
  11486. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11487. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11488. fi
  11489. _ACEOF
  11490. cat >>$CONFIG_STATUS <<\_ACEOF
  11491. for ac_config_target in $ac_config_targets
  11492. do
  11493. case "$ac_config_target" in
  11494. # Handling of arguments.
  11495. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11496. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11497. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11498. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11499. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11500. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11501. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11502. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11503. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11504. { (exit 1); exit 1; }; };;
  11505. esac
  11506. done
  11507. # If the user did not use the arguments to specify the items to instantiate,
  11508. # then the envvar interface is used. Set only those that are not.
  11509. # We use the long form for the default assignment because of an extremely
  11510. # bizarre bug on SunOS 4.1.3.
  11511. if $ac_need_defaults; then
  11512. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11513. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11514. fi
  11515. # Have a temporary directory for convenience. Make it in the build tree
  11516. # simply because there is no reason to put it here, and in addition,
  11517. # creating and moving files from /tmp can sometimes cause problems.
  11518. # Create a temporary directory, and hook for its removal unless debugging.
  11519. $debug ||
  11520. {
  11521. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11522. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11523. }
  11524. # Create a (secure) tmp directory for tmp files.
  11525. {
  11526. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11527. test -n "$tmp" && test -d "$tmp"
  11528. } ||
  11529. {
  11530. tmp=./confstat$$-$RANDOM
  11531. (umask 077 && mkdir $tmp)
  11532. } ||
  11533. {
  11534. echo "$me: cannot create a temporary directory in ." >&2
  11535. { (exit 1); exit 1; }
  11536. }
  11537. _ACEOF
  11538. cat >>$CONFIG_STATUS <<_ACEOF
  11539. #
  11540. # CONFIG_FILES section.
  11541. #
  11542. # No need to generate the scripts if there are no CONFIG_FILES.
  11543. # This happens for instance when ./config.status config.h
  11544. if test -n "\$CONFIG_FILES"; then
  11545. # Protect against being on the right side of a sed subst in config.status.
  11546. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11547. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11548. s,@SHELL@,$SHELL,;t t
  11549. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11550. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11551. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11552. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11553. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11554. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11555. s,@exec_prefix@,$exec_prefix,;t t
  11556. s,@prefix@,$prefix,;t t
  11557. s,@program_transform_name@,$program_transform_name,;t t
  11558. s,@bindir@,$bindir,;t t
  11559. s,@sbindir@,$sbindir,;t t
  11560. s,@libexecdir@,$libexecdir,;t t
  11561. s,@datadir@,$datadir,;t t
  11562. s,@sysconfdir@,$sysconfdir,;t t
  11563. s,@sharedstatedir@,$sharedstatedir,;t t
  11564. s,@localstatedir@,$localstatedir,;t t
  11565. s,@libdir@,$libdir,;t t
  11566. s,@includedir@,$includedir,;t t
  11567. s,@oldincludedir@,$oldincludedir,;t t
  11568. s,@infodir@,$infodir,;t t
  11569. s,@mandir@,$mandir,;t t
  11570. s,@build_alias@,$build_alias,;t t
  11571. s,@host_alias@,$host_alias,;t t
  11572. s,@target_alias@,$target_alias,;t t
  11573. s,@DEFS@,$DEFS,;t t
  11574. s,@ECHO_C@,$ECHO_C,;t t
  11575. s,@ECHO_N@,$ECHO_N,;t t
  11576. s,@ECHO_T@,$ECHO_T,;t t
  11577. s,@LIBS@,$LIBS,;t t
  11578. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11579. s,@CC@,$CC,;t t
  11580. s,@CFLAGS@,$CFLAGS,;t t
  11581. s,@LDFLAGS@,$LDFLAGS,;t t
  11582. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11583. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11584. s,@EXEEXT@,$EXEEXT,;t t
  11585. s,@OBJEXT@,$OBJEXT,;t t
  11586. s,@CPP@,$CPP,;t t
  11587. s,@EGREP@,$EGREP,;t t
  11588. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11589. s,@GCC3@,$GCC3,;t t
  11590. s,@CCDEBUG@,$CCDEBUG,;t t
  11591. s,@SET_MAKE@,$SET_MAKE,;t t
  11592. s,@HEAD_1@,$HEAD_1,;t t
  11593. s,@AWK@,$AWK,;t t
  11594. s,@BASENAME@,$BASENAME,;t t
  11595. s,@OBJCOPY@,$OBJCOPY,;t t
  11596. s,@STRIP@,$STRIP,;t t
  11597. s,@UNAME@,$UNAME,;t t
  11598. s,@DISTCC@,$DISTCC,;t t
  11599. s,@RESLIB@,$RESLIB,;t t
  11600. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11601. s,@ZLIB@,$ZLIB,;t t
  11602. s,@LIBOBJS@,$LIBOBJS,;t t
  11603. s,@VERSION@,$VERSION,;t t
  11604. s,@NUMVER@,$NUMVER,;t t
  11605. s,@PACKNAME@,$PACKNAME,;t t
  11606. s,@CFG@,$CFG,;t t
  11607. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11608. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11609. CEOF
  11610. _ACEOF
  11611. cat >>$CONFIG_STATUS <<\_ACEOF
  11612. # Split the substitutions into bite-sized pieces for seds with
  11613. # small command number limits, like on Digital OSF/1 and HP-UX.
  11614. ac_max_sed_lines=48
  11615. ac_sed_frag=1 # Number of current file.
  11616. ac_beg=1 # First line for current file.
  11617. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11618. ac_more_lines=:
  11619. ac_sed_cmds=
  11620. while $ac_more_lines; do
  11621. if test $ac_beg -gt 1; then
  11622. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11623. else
  11624. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11625. fi
  11626. if test ! -s $tmp/subs.frag; then
  11627. ac_more_lines=false
  11628. else
  11629. # The purpose of the label and of the branching condition is to
  11630. # speed up the sed processing (if there are no `@' at all, there
  11631. # is no need to browse any of the substitutions).
  11632. # These are the two extra sed commands mentioned above.
  11633. (echo ':t
  11634. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11635. if test -z "$ac_sed_cmds"; then
  11636. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11637. else
  11638. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11639. fi
  11640. ac_sed_frag=`expr $ac_sed_frag + 1`
  11641. ac_beg=$ac_end
  11642. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11643. fi
  11644. done
  11645. if test -z "$ac_sed_cmds"; then
  11646. ac_sed_cmds=cat
  11647. fi
  11648. fi # test -n "$CONFIG_FILES"
  11649. _ACEOF
  11650. cat >>$CONFIG_STATUS <<\_ACEOF
  11651. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11652. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11653. case $ac_file in
  11654. - | *:- | *:-:* ) # input from stdin
  11655. cat >$tmp/stdin
  11656. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11657. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11658. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11659. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11660. * ) ac_file_in=$ac_file.in ;;
  11661. esac
  11662. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11663. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11664. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11665. X"$ac_file" : 'X\(//\)[^/]' \| \
  11666. X"$ac_file" : 'X\(//\)$' \| \
  11667. X"$ac_file" : 'X\(/\)' \| \
  11668. . : '\(.\)' 2>/dev/null ||
  11669. echo X"$ac_file" |
  11670. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11671. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11672. /^X\(\/\/\)$/{ s//\1/; q; }
  11673. /^X\(\/\).*/{ s//\1/; q; }
  11674. s/.*/./; q'`
  11675. { if $as_mkdir_p; then
  11676. mkdir -p "$ac_dir"
  11677. else
  11678. as_dir="$ac_dir"
  11679. as_dirs=
  11680. while test ! -d "$as_dir"; do
  11681. as_dirs="$as_dir $as_dirs"
  11682. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11683. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11684. X"$as_dir" : 'X\(//\)[^/]' \| \
  11685. X"$as_dir" : 'X\(//\)$' \| \
  11686. X"$as_dir" : 'X\(/\)' \| \
  11687. . : '\(.\)' 2>/dev/null ||
  11688. echo X"$as_dir" |
  11689. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11690. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11691. /^X\(\/\/\)$/{ s//\1/; q; }
  11692. /^X\(\/\).*/{ s//\1/; q; }
  11693. s/.*/./; q'`
  11694. done
  11695. test ! -n "$as_dirs" || mkdir $as_dirs
  11696. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11697. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11698. { (exit 1); exit 1; }; }; }
  11699. ac_builddir=.
  11700. if test "$ac_dir" != .; then
  11701. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11702. # A "../" for each directory in $ac_dir_suffix.
  11703. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11704. else
  11705. ac_dir_suffix= ac_top_builddir=
  11706. fi
  11707. case $srcdir in
  11708. .) # No --srcdir option. We are building in place.
  11709. ac_srcdir=.
  11710. if test -z "$ac_top_builddir"; then
  11711. ac_top_srcdir=.
  11712. else
  11713. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11714. fi ;;
  11715. [\\/]* | ?:[\\/]* ) # Absolute path.
  11716. ac_srcdir=$srcdir$ac_dir_suffix;
  11717. ac_top_srcdir=$srcdir ;;
  11718. *) # Relative path.
  11719. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11720. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11721. esac
  11722. # Do not use `cd foo && pwd` to compute absolute paths, because
  11723. # the directories may not exist.
  11724. case `pwd` in
  11725. .) ac_abs_builddir="$ac_dir";;
  11726. *)
  11727. case "$ac_dir" in
  11728. .) ac_abs_builddir=`pwd`;;
  11729. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11730. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11731. esac;;
  11732. esac
  11733. case $ac_abs_builddir in
  11734. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11735. *)
  11736. case ${ac_top_builddir}. in
  11737. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11738. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11739. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11740. esac;;
  11741. esac
  11742. case $ac_abs_builddir in
  11743. .) ac_abs_srcdir=$ac_srcdir;;
  11744. *)
  11745. case $ac_srcdir in
  11746. .) ac_abs_srcdir=$ac_abs_builddir;;
  11747. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11748. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11749. esac;;
  11750. esac
  11751. case $ac_abs_builddir in
  11752. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11753. *)
  11754. case $ac_top_srcdir in
  11755. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11756. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11757. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11758. esac;;
  11759. esac
  11760. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11761. # use $as_me), people would be surprised to read:
  11762. # /* config.h. Generated by config.status. */
  11763. if test x"$ac_file" = x-; then
  11764. configure_input=
  11765. else
  11766. configure_input="$ac_file. "
  11767. fi
  11768. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11769. sed 's,.*/,,'` by configure."
  11770. # First look for the input files in the build tree, otherwise in the
  11771. # src tree.
  11772. ac_file_inputs=`IFS=:
  11773. for f in $ac_file_in; do
  11774. case $f in
  11775. -) echo $tmp/stdin ;;
  11776. [\\/$]*)
  11777. # Absolute (can't be DOS-style, as IFS=:)
  11778. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11779. echo "$as_me: error: cannot find input file: $f" >&2;}
  11780. { (exit 1); exit 1; }; }
  11781. echo "$f";;
  11782. *) # Relative
  11783. if test -f "$f"; then
  11784. # Build tree
  11785. echo "$f"
  11786. elif test -f "$srcdir/$f"; then
  11787. # Source tree
  11788. echo "$srcdir/$f"
  11789. else
  11790. # /dev/null tree
  11791. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11792. echo "$as_me: error: cannot find input file: $f" >&2;}
  11793. { (exit 1); exit 1; }; }
  11794. fi;;
  11795. esac
  11796. done` || { (exit 1); exit 1; }
  11797. if test x"$ac_file" != x-; then
  11798. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11799. echo "$as_me: creating $ac_file" >&6;}
  11800. rm -f "$ac_file"
  11801. fi
  11802. _ACEOF
  11803. cat >>$CONFIG_STATUS <<_ACEOF
  11804. sed "$ac_vpsub
  11805. $extrasub
  11806. _ACEOF
  11807. cat >>$CONFIG_STATUS <<\_ACEOF
  11808. :t
  11809. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11810. s,@configure_input@,$configure_input,;t t
  11811. s,@srcdir@,$ac_srcdir,;t t
  11812. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11813. s,@top_srcdir@,$ac_top_srcdir,;t t
  11814. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11815. s,@builddir@,$ac_builddir,;t t
  11816. s,@abs_builddir@,$ac_abs_builddir,;t t
  11817. s,@top_builddir@,$ac_top_builddir,;t t
  11818. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11819. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11820. rm -f $tmp/stdin
  11821. if test x"$ac_file" != x-; then
  11822. mv $tmp/out $ac_file
  11823. else
  11824. cat $tmp/out
  11825. rm -f $tmp/out
  11826. fi
  11827. done
  11828. _ACEOF
  11829. cat >>$CONFIG_STATUS <<\_ACEOF
  11830. #
  11831. # CONFIG_HEADER section.
  11832. #
  11833. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11834. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11835. #
  11836. # ac_d sets the value in "#define NAME VALUE" lines.
  11837. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11838. ac_dB='[ ].*$,\1#\2'
  11839. ac_dC=' '
  11840. ac_dD=',;t'
  11841. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11842. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11843. ac_uB='$,\1#\2define\3'
  11844. ac_uC=' '
  11845. ac_uD=',;t'
  11846. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11847. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11848. case $ac_file in
  11849. - | *:- | *:-:* ) # input from stdin
  11850. cat >$tmp/stdin
  11851. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11852. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11853. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11854. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11855. * ) ac_file_in=$ac_file.in ;;
  11856. esac
  11857. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11858. echo "$as_me: creating $ac_file" >&6;}
  11859. # First look for the input files in the build tree, otherwise in the
  11860. # src tree.
  11861. ac_file_inputs=`IFS=:
  11862. for f in $ac_file_in; do
  11863. case $f in
  11864. -) echo $tmp/stdin ;;
  11865. [\\/$]*)
  11866. # Absolute (can't be DOS-style, as IFS=:)
  11867. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11868. echo "$as_me: error: cannot find input file: $f" >&2;}
  11869. { (exit 1); exit 1; }; }
  11870. # Do quote $f, to prevent DOS paths from being IFS'd.
  11871. echo "$f";;
  11872. *) # Relative
  11873. if test -f "$f"; then
  11874. # Build tree
  11875. echo "$f"
  11876. elif test -f "$srcdir/$f"; then
  11877. # Source tree
  11878. echo "$srcdir/$f"
  11879. else
  11880. # /dev/null tree
  11881. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11882. echo "$as_me: error: cannot find input file: $f" >&2;}
  11883. { (exit 1); exit 1; }; }
  11884. fi;;
  11885. esac
  11886. done` || { (exit 1); exit 1; }
  11887. # Remove the trailing spaces.
  11888. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11889. _ACEOF
  11890. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11891. # `conftest.undefs', that substitutes the proper values into
  11892. # config.h.in to produce config.h. The first handles `#define'
  11893. # templates, and the second `#undef' templates.
  11894. # And first: Protect against being on the right side of a sed subst in
  11895. # config.status. Protect against being in an unquoted here document
  11896. # in config.status.
  11897. rm -f conftest.defines conftest.undefs
  11898. # Using a here document instead of a string reduces the quoting nightmare.
  11899. # Putting comments in sed scripts is not portable.
  11900. #
  11901. # `end' is used to avoid that the second main sed command (meant for
  11902. # 0-ary CPP macros) applies to n-ary macro definitions.
  11903. # See the Autoconf documentation for `clear'.
  11904. cat >confdef2sed.sed <<\_ACEOF
  11905. s/[\\&,]/\\&/g
  11906. s,[\\$`],\\&,g
  11907. t clear
  11908. : clear
  11909. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11910. t end
  11911. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11912. : end
  11913. _ACEOF
  11914. # If some macros were called several times there might be several times
  11915. # the same #defines, which is useless. Nevertheless, we may not want to
  11916. # sort them, since we want the *last* AC-DEFINE to be honored.
  11917. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11918. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11919. rm -f confdef2sed.sed
  11920. # This sed command replaces #undef with comments. This is necessary, for
  11921. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11922. # on some systems where configure will not decide to define it.
  11923. cat >>conftest.undefs <<\_ACEOF
  11924. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11925. _ACEOF
  11926. # Break up conftest.defines because some shells have a limit on the size
  11927. # of here documents, and old seds have small limits too (100 cmds).
  11928. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11929. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11930. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11931. echo ' :' >>$CONFIG_STATUS
  11932. rm -f conftest.tail
  11933. while grep . conftest.defines >/dev/null
  11934. do
  11935. # Write a limited-size here document to $tmp/defines.sed.
  11936. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11937. # Speed up: don't consider the non `#define' lines.
  11938. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11939. # Work around the forget-to-reset-the-flag bug.
  11940. echo 't clr' >>$CONFIG_STATUS
  11941. echo ': clr' >>$CONFIG_STATUS
  11942. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11943. echo 'CEOF
  11944. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11945. rm -f $tmp/in
  11946. mv $tmp/out $tmp/in
  11947. ' >>$CONFIG_STATUS
  11948. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11949. rm -f conftest.defines
  11950. mv conftest.tail conftest.defines
  11951. done
  11952. rm -f conftest.defines
  11953. echo ' fi # grep' >>$CONFIG_STATUS
  11954. echo >>$CONFIG_STATUS
  11955. # Break up conftest.undefs because some shells have a limit on the size
  11956. # of here documents, and old seds have small limits too (100 cmds).
  11957. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11958. rm -f conftest.tail
  11959. while grep . conftest.undefs >/dev/null
  11960. do
  11961. # Write a limited-size here document to $tmp/undefs.sed.
  11962. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11963. # Speed up: don't consider the non `#undef'
  11964. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11965. # Work around the forget-to-reset-the-flag bug.
  11966. echo 't clr' >>$CONFIG_STATUS
  11967. echo ': clr' >>$CONFIG_STATUS
  11968. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11969. echo 'CEOF
  11970. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11971. rm -f $tmp/in
  11972. mv $tmp/out $tmp/in
  11973. ' >>$CONFIG_STATUS
  11974. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11975. rm -f conftest.undefs
  11976. mv conftest.tail conftest.undefs
  11977. done
  11978. rm -f conftest.undefs
  11979. cat >>$CONFIG_STATUS <<\_ACEOF
  11980. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11981. # use $as_me), people would be surprised to read:
  11982. # /* config.h. Generated by config.status. */
  11983. if test x"$ac_file" = x-; then
  11984. echo "/* Generated by configure. */" >$tmp/config.h
  11985. else
  11986. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11987. fi
  11988. cat $tmp/in >>$tmp/config.h
  11989. rm -f $tmp/in
  11990. if test x"$ac_file" != x-; then
  11991. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11992. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11993. echo "$as_me: $ac_file is unchanged" >&6;}
  11994. else
  11995. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11996. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11997. X"$ac_file" : 'X\(//\)[^/]' \| \
  11998. X"$ac_file" : 'X\(//\)$' \| \
  11999. X"$ac_file" : 'X\(/\)' \| \
  12000. . : '\(.\)' 2>/dev/null ||
  12001. echo X"$ac_file" |
  12002. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12003. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12004. /^X\(\/\/\)$/{ s//\1/; q; }
  12005. /^X\(\/\).*/{ s//\1/; q; }
  12006. s/.*/./; q'`
  12007. { if $as_mkdir_p; then
  12008. mkdir -p "$ac_dir"
  12009. else
  12010. as_dir="$ac_dir"
  12011. as_dirs=
  12012. while test ! -d "$as_dir"; do
  12013. as_dirs="$as_dir $as_dirs"
  12014. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12015. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12016. X"$as_dir" : 'X\(//\)[^/]' \| \
  12017. X"$as_dir" : 'X\(//\)$' \| \
  12018. X"$as_dir" : 'X\(/\)' \| \
  12019. . : '\(.\)' 2>/dev/null ||
  12020. echo X"$as_dir" |
  12021. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12022. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12023. /^X\(\/\/\)$/{ s//\1/; q; }
  12024. /^X\(\/\).*/{ s//\1/; q; }
  12025. s/.*/./; q'`
  12026. done
  12027. test ! -n "$as_dirs" || mkdir $as_dirs
  12028. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12029. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12030. { (exit 1); exit 1; }; }; }
  12031. rm -f $ac_file
  12032. mv $tmp/config.h $ac_file
  12033. fi
  12034. else
  12035. cat $tmp/config.h
  12036. rm -f $tmp/config.h
  12037. fi
  12038. done
  12039. _ACEOF
  12040. cat >>$CONFIG_STATUS <<\_ACEOF
  12041. { (exit 0); exit 0; }
  12042. _ACEOF
  12043. chmod +x $CONFIG_STATUS
  12044. ac_clean_files=$ac_clean_files_save
  12045. # configure is writing to config.log, and then calls config.status.
  12046. # config.status does its own redirection, appending to config.log.
  12047. # Unfortunately, on DOS this fails, as config.log is still kept open
  12048. # by configure, so config.status won't be able to write to it; its
  12049. # output is simply discarded. So we exec the FD to /dev/null,
  12050. # effectively closing config.log, so it can be properly (re)opened and
  12051. # appended to by config.status. When coming back to configure, we
  12052. # need to make the FD available again.
  12053. if test "$no_create" != yes; then
  12054. ac_cs_success=:
  12055. ac_config_status_args=
  12056. test "$silent" = yes &&
  12057. ac_config_status_args="$ac_config_status_args --quiet"
  12058. exec 5>/dev/null
  12059. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12060. exec 5>>config.log
  12061. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12062. # would make configure fail if this is the last instruction.
  12063. $ac_cs_success || { (exit 1); exit 1; }
  12064. fi