configure 384 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.6 .
  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 CCDEBUG SET_MAKE HEAD_1 STRIP AWK BASENAME CCACHE DISTCC UNAME ZLIB SSL LIBOBJS TCLLIB TCLLIBFN TCLINC TCLINCFN TCL_REQS TCL_LIBS VERSION NUMVER PACKNAME 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-tcllib=PATH full path to Tcl library
  744. --with-tclinc=PATH full path to Tcl header
  745. Some influential environment variables:
  746. CC C compiler command
  747. CFLAGS C compiler flags
  748. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  749. nonstandard directory <lib dir>
  750. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  751. headers in a nonstandard directory <include dir>
  752. CPP C preprocessor
  753. Use these variables to override the choices made by `configure' or to help
  754. it to find libraries and programs with nonstandard names/locations.
  755. _ACEOF
  756. fi
  757. if test "$ac_init_help" = "recursive"; then
  758. # If there are subdirs, report their specific --help.
  759. ac_popdir=`pwd`
  760. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  761. test -d $ac_dir || continue
  762. ac_builddir=.
  763. if test "$ac_dir" != .; then
  764. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  765. # A "../" for each directory in $ac_dir_suffix.
  766. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  767. else
  768. ac_dir_suffix= ac_top_builddir=
  769. fi
  770. case $srcdir in
  771. .) # No --srcdir option. We are building in place.
  772. ac_srcdir=.
  773. if test -z "$ac_top_builddir"; then
  774. ac_top_srcdir=.
  775. else
  776. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  777. fi ;;
  778. [\\/]* | ?:[\\/]* ) # Absolute path.
  779. ac_srcdir=$srcdir$ac_dir_suffix;
  780. ac_top_srcdir=$srcdir ;;
  781. *) # Relative path.
  782. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  783. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  784. esac
  785. # Do not use `cd foo && pwd` to compute absolute paths, because
  786. # the directories may not exist.
  787. case `pwd` in
  788. .) ac_abs_builddir="$ac_dir";;
  789. *)
  790. case "$ac_dir" in
  791. .) ac_abs_builddir=`pwd`;;
  792. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  793. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  794. esac;;
  795. esac
  796. case $ac_abs_builddir in
  797. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  798. *)
  799. case ${ac_top_builddir}. in
  800. .) ac_abs_top_builddir=$ac_abs_builddir;;
  801. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  802. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  803. esac;;
  804. esac
  805. case $ac_abs_builddir in
  806. .) ac_abs_srcdir=$ac_srcdir;;
  807. *)
  808. case $ac_srcdir in
  809. .) ac_abs_srcdir=$ac_abs_builddir;;
  810. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  811. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  812. esac;;
  813. esac
  814. case $ac_abs_builddir in
  815. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  816. *)
  817. case $ac_top_srcdir in
  818. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  819. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  820. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  821. esac;;
  822. esac
  823. cd $ac_dir
  824. # Check for guested configure; otherwise get Cygnus style configure.
  825. if test -f $ac_srcdir/configure.gnu; then
  826. echo
  827. $SHELL $ac_srcdir/configure.gnu --help=recursive
  828. elif test -f $ac_srcdir/configure; then
  829. echo
  830. $SHELL $ac_srcdir/configure --help=recursive
  831. elif test -f $ac_srcdir/configure.ac ||
  832. test -f $ac_srcdir/configure.in; then
  833. echo
  834. $ac_configure --help
  835. else
  836. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  837. fi
  838. cd "$ac_popdir"
  839. done
  840. fi
  841. test -n "$ac_init_help" && exit 0
  842. if $ac_init_version; then
  843. cat <<\_ACEOF
  844. Copyright (C) 2003 Free Software Foundation, Inc.
  845. This configure script is free software; the Free Software Foundation
  846. gives unlimited permission to copy, distribute and modify it.
  847. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  848. _ACEOF
  849. exit 0
  850. fi
  851. exec 5>config.log
  852. cat >&5 <<_ACEOF
  853. This file contains any messages produced by compilers while
  854. running configure, to aid debugging if configure makes a mistake.
  855. It was created by $as_me, which was
  856. generated by GNU Autoconf 2.59. Invocation command line was
  857. $ $0 $@
  858. _ACEOF
  859. {
  860. cat <<_ASUNAME
  861. ## --------- ##
  862. ## Platform. ##
  863. ## --------- ##
  864. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  865. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  866. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  867. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  868. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  869. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  870. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  871. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  872. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  873. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  874. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  875. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  876. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  877. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  878. _ASUNAME
  879. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  880. for as_dir in $PATH
  881. do
  882. IFS=$as_save_IFS
  883. test -z "$as_dir" && as_dir=.
  884. echo "PATH: $as_dir"
  885. done
  886. } >&5
  887. cat >&5 <<_ACEOF
  888. ## ----------- ##
  889. ## Core tests. ##
  890. ## ----------- ##
  891. _ACEOF
  892. # Keep a trace of the command line.
  893. # Strip out --no-create and --no-recursion so they do not pile up.
  894. # Strip out --silent because we don't want to record it for future runs.
  895. # Also quote any args containing shell meta-characters.
  896. # Make two passes to allow for proper duplicate-argument suppression.
  897. ac_configure_args=
  898. ac_configure_args0=
  899. ac_configure_args1=
  900. ac_sep=
  901. ac_must_keep_next=false
  902. for ac_pass in 1 2
  903. do
  904. for ac_arg
  905. do
  906. case $ac_arg in
  907. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  908. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  909. | -silent | --silent | --silen | --sile | --sil)
  910. continue ;;
  911. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  912. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  913. esac
  914. case $ac_pass in
  915. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  916. 2)
  917. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  918. if test $ac_must_keep_next = true; then
  919. ac_must_keep_next=false # Got value, back to normal.
  920. else
  921. case $ac_arg in
  922. *=* | --config-cache | -C | -disable-* | --disable-* \
  923. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  924. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  925. | -with-* | --with-* | -without-* | --without-* | --x)
  926. case "$ac_configure_args0 " in
  927. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  928. esac
  929. ;;
  930. -* ) ac_must_keep_next=true ;;
  931. esac
  932. fi
  933. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  934. # Get rid of the leading space.
  935. ac_sep=" "
  936. ;;
  937. esac
  938. done
  939. done
  940. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  941. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  942. # When interrupted or exit'd, cleanup temporary files, and complete
  943. # config.log. We remove comments because anyway the quotes in there
  944. # would cause problems or look ugly.
  945. # WARNING: Be sure not to use single quotes in there, as some shells,
  946. # such as our DU 5.0 friend, will then `close' the trap.
  947. trap 'exit_status=$?
  948. # Save into config.log some information that might help in debugging.
  949. {
  950. echo
  951. cat <<\_ASBOX
  952. ## ---------------- ##
  953. ## Cache variables. ##
  954. ## ---------------- ##
  955. _ASBOX
  956. echo
  957. # The following way of writing the cache mishandles newlines in values,
  958. {
  959. (set) 2>&1 |
  960. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  961. *ac_space=\ *)
  962. sed -n \
  963. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  964. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  965. ;;
  966. *)
  967. sed -n \
  968. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  969. ;;
  970. esac;
  971. }
  972. echo
  973. cat <<\_ASBOX
  974. ## ----------------- ##
  975. ## Output variables. ##
  976. ## ----------------- ##
  977. _ASBOX
  978. echo
  979. for ac_var in $ac_subst_vars
  980. do
  981. eval ac_val=$`echo $ac_var`
  982. echo "$ac_var='"'"'$ac_val'"'"'"
  983. done | sort
  984. echo
  985. if test -n "$ac_subst_files"; then
  986. cat <<\_ASBOX
  987. ## ------------- ##
  988. ## Output files. ##
  989. ## ------------- ##
  990. _ASBOX
  991. echo
  992. for ac_var in $ac_subst_files
  993. do
  994. eval ac_val=$`echo $ac_var`
  995. echo "$ac_var='"'"'$ac_val'"'"'"
  996. done | sort
  997. echo
  998. fi
  999. if test -s confdefs.h; then
  1000. cat <<\_ASBOX
  1001. ## ----------- ##
  1002. ## confdefs.h. ##
  1003. ## ----------- ##
  1004. _ASBOX
  1005. echo
  1006. sed "/^$/d" confdefs.h | sort
  1007. echo
  1008. fi
  1009. test "$ac_signal" != 0 &&
  1010. echo "$as_me: caught signal $ac_signal"
  1011. echo "$as_me: exit $exit_status"
  1012. } >&5
  1013. rm -f core *.core &&
  1014. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1015. exit $exit_status
  1016. ' 0
  1017. for ac_signal in 1 2 13 15; do
  1018. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1019. done
  1020. ac_signal=0
  1021. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1022. rm -rf conftest* confdefs.h
  1023. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1024. echo >confdefs.h
  1025. # Predefined preprocessor variables.
  1026. cat >>confdefs.h <<_ACEOF
  1027. #define PACKAGE_NAME "$PACKAGE_NAME"
  1028. _ACEOF
  1029. cat >>confdefs.h <<_ACEOF
  1030. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1031. _ACEOF
  1032. cat >>confdefs.h <<_ACEOF
  1033. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1034. _ACEOF
  1035. cat >>confdefs.h <<_ACEOF
  1036. #define PACKAGE_STRING "$PACKAGE_STRING"
  1037. _ACEOF
  1038. cat >>confdefs.h <<_ACEOF
  1039. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1040. _ACEOF
  1041. # Let the site file select an alternate cache file if it wants to.
  1042. # Prefer explicitly selected file to automatically selected ones.
  1043. if test -z "$CONFIG_SITE"; then
  1044. if test "x$prefix" != xNONE; then
  1045. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1046. else
  1047. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1048. fi
  1049. fi
  1050. for ac_site_file in $CONFIG_SITE; do
  1051. if test -r "$ac_site_file"; then
  1052. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1053. echo "$as_me: loading site script $ac_site_file" >&6;}
  1054. sed 's/^/| /' "$ac_site_file" >&5
  1055. . "$ac_site_file"
  1056. fi
  1057. done
  1058. if test -r "$cache_file"; then
  1059. # Some versions of bash will fail to source /dev/null (special
  1060. # files actually), so we avoid doing that.
  1061. if test -f "$cache_file"; then
  1062. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1063. echo "$as_me: loading cache $cache_file" >&6;}
  1064. case $cache_file in
  1065. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1066. *) . ./$cache_file;;
  1067. esac
  1068. fi
  1069. else
  1070. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1071. echo "$as_me: creating cache $cache_file" >&6;}
  1072. >$cache_file
  1073. fi
  1074. # Check that the precious variables saved in the cache have kept the same
  1075. # value.
  1076. ac_cache_corrupted=false
  1077. for ac_var in `(set) 2>&1 |
  1078. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1079. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1080. eval ac_new_set=\$ac_env_${ac_var}_set
  1081. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1082. eval ac_new_val="\$ac_env_${ac_var}_value"
  1083. case $ac_old_set,$ac_new_set in
  1084. set,)
  1085. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1086. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1087. ac_cache_corrupted=: ;;
  1088. ,set)
  1089. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1090. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1091. ac_cache_corrupted=: ;;
  1092. ,);;
  1093. *)
  1094. if test "x$ac_old_val" != "x$ac_new_val"; then
  1095. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1096. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1097. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1098. echo "$as_me: former value: $ac_old_val" >&2;}
  1099. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1100. echo "$as_me: current value: $ac_new_val" >&2;}
  1101. ac_cache_corrupted=:
  1102. fi;;
  1103. esac
  1104. # Pass precious variables to config.status.
  1105. if test "$ac_new_set" = set; then
  1106. case $ac_new_val in
  1107. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1108. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1109. *) ac_arg=$ac_var=$ac_new_val ;;
  1110. esac
  1111. case " $ac_configure_args " in
  1112. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1113. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1114. esac
  1115. fi
  1116. done
  1117. if $ac_cache_corrupted; then
  1118. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1119. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1120. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1121. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1122. { (exit 1); exit 1; }; }
  1123. fi
  1124. ac_ext=c
  1125. ac_cpp='$CPP $CPPFLAGS'
  1126. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1127. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1128. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1129. ac_config_headers="$ac_config_headers config.h"
  1130. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1131. egg_ac_parameters=
  1132. ac_prev=
  1133. for ac_arg in $ac_configure_args; do
  1134. if test -n "$ac_prev"; then
  1135. ac_prev=
  1136. continue
  1137. fi
  1138. case $ac_arg in
  1139. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1140. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1141. ac_prev=cache_file ;;
  1142. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1143. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1144. | --c=*)
  1145. ;;
  1146. --config-cache | -C)
  1147. ;;
  1148. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1149. ac_prev=srcdir ;;
  1150. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1151. ;;
  1152. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1153. esac
  1154. done
  1155. # Setup build environment
  1156. ac_ext=c
  1157. ac_cpp='$CPP $CPPFLAGS'
  1158. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1159. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1160. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1161. if test -n "$ac_tool_prefix"; then
  1162. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1163. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1164. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1165. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1166. if test "${ac_cv_prog_CC+set}" = set; then
  1167. echo $ECHO_N "(cached) $ECHO_C" >&6
  1168. else
  1169. if test -n "$CC"; then
  1170. ac_cv_prog_CC="$CC" # Let the user override the test.
  1171. else
  1172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1173. for as_dir in $PATH
  1174. do
  1175. IFS=$as_save_IFS
  1176. test -z "$as_dir" && as_dir=.
  1177. for ac_exec_ext in '' $ac_executable_extensions; do
  1178. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1179. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1180. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1181. break 2
  1182. fi
  1183. done
  1184. done
  1185. fi
  1186. fi
  1187. CC=$ac_cv_prog_CC
  1188. if test -n "$CC"; then
  1189. echo "$as_me:$LINENO: result: $CC" >&5
  1190. echo "${ECHO_T}$CC" >&6
  1191. else
  1192. echo "$as_me:$LINENO: result: no" >&5
  1193. echo "${ECHO_T}no" >&6
  1194. fi
  1195. fi
  1196. if test -z "$ac_cv_prog_CC"; then
  1197. ac_ct_CC=$CC
  1198. # Extract the first word of "gcc", so it can be a program name with args.
  1199. set dummy gcc; ac_word=$2
  1200. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1201. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1202. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1203. echo $ECHO_N "(cached) $ECHO_C" >&6
  1204. else
  1205. if test -n "$ac_ct_CC"; then
  1206. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1207. else
  1208. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1209. for as_dir in $PATH
  1210. do
  1211. IFS=$as_save_IFS
  1212. test -z "$as_dir" && as_dir=.
  1213. for ac_exec_ext in '' $ac_executable_extensions; do
  1214. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1215. ac_cv_prog_ac_ct_CC="gcc"
  1216. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1217. break 2
  1218. fi
  1219. done
  1220. done
  1221. fi
  1222. fi
  1223. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1224. if test -n "$ac_ct_CC"; then
  1225. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1226. echo "${ECHO_T}$ac_ct_CC" >&6
  1227. else
  1228. echo "$as_me:$LINENO: result: no" >&5
  1229. echo "${ECHO_T}no" >&6
  1230. fi
  1231. CC=$ac_ct_CC
  1232. else
  1233. CC="$ac_cv_prog_CC"
  1234. fi
  1235. if test -z "$CC"; then
  1236. if test -n "$ac_tool_prefix"; then
  1237. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1238. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1239. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1240. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1241. if test "${ac_cv_prog_CC+set}" = set; then
  1242. echo $ECHO_N "(cached) $ECHO_C" >&6
  1243. else
  1244. if test -n "$CC"; then
  1245. ac_cv_prog_CC="$CC" # Let the user override the test.
  1246. else
  1247. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1248. for as_dir in $PATH
  1249. do
  1250. IFS=$as_save_IFS
  1251. test -z "$as_dir" && as_dir=.
  1252. for ac_exec_ext in '' $ac_executable_extensions; do
  1253. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1254. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1255. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1256. break 2
  1257. fi
  1258. done
  1259. done
  1260. fi
  1261. fi
  1262. CC=$ac_cv_prog_CC
  1263. if test -n "$CC"; then
  1264. echo "$as_me:$LINENO: result: $CC" >&5
  1265. echo "${ECHO_T}$CC" >&6
  1266. else
  1267. echo "$as_me:$LINENO: result: no" >&5
  1268. echo "${ECHO_T}no" >&6
  1269. fi
  1270. fi
  1271. if test -z "$ac_cv_prog_CC"; then
  1272. ac_ct_CC=$CC
  1273. # Extract the first word of "cc", so it can be a program name with args.
  1274. set dummy cc; ac_word=$2
  1275. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1276. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1277. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1278. echo $ECHO_N "(cached) $ECHO_C" >&6
  1279. else
  1280. if test -n "$ac_ct_CC"; then
  1281. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1282. else
  1283. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1284. for as_dir in $PATH
  1285. do
  1286. IFS=$as_save_IFS
  1287. test -z "$as_dir" && as_dir=.
  1288. for ac_exec_ext in '' $ac_executable_extensions; do
  1289. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1290. ac_cv_prog_ac_ct_CC="cc"
  1291. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1292. break 2
  1293. fi
  1294. done
  1295. done
  1296. fi
  1297. fi
  1298. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1299. if test -n "$ac_ct_CC"; then
  1300. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1301. echo "${ECHO_T}$ac_ct_CC" >&6
  1302. else
  1303. echo "$as_me:$LINENO: result: no" >&5
  1304. echo "${ECHO_T}no" >&6
  1305. fi
  1306. CC=$ac_ct_CC
  1307. else
  1308. CC="$ac_cv_prog_CC"
  1309. fi
  1310. fi
  1311. if test -z "$CC"; then
  1312. # Extract the first word of "cc", so it can be a program name with args.
  1313. set dummy cc; ac_word=$2
  1314. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1315. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1316. if test "${ac_cv_prog_CC+set}" = set; then
  1317. echo $ECHO_N "(cached) $ECHO_C" >&6
  1318. else
  1319. if test -n "$CC"; then
  1320. ac_cv_prog_CC="$CC" # Let the user override the test.
  1321. else
  1322. ac_prog_rejected=no
  1323. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1324. for as_dir in $PATH
  1325. do
  1326. IFS=$as_save_IFS
  1327. test -z "$as_dir" && as_dir=.
  1328. for ac_exec_ext in '' $ac_executable_extensions; do
  1329. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1330. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1331. ac_prog_rejected=yes
  1332. continue
  1333. fi
  1334. ac_cv_prog_CC="cc"
  1335. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1336. break 2
  1337. fi
  1338. done
  1339. done
  1340. if test $ac_prog_rejected = yes; then
  1341. # We found a bogon in the path, so make sure we never use it.
  1342. set dummy $ac_cv_prog_CC
  1343. shift
  1344. if test $# != 0; then
  1345. # We chose a different compiler from the bogus one.
  1346. # However, it has the same basename, so the bogon will be chosen
  1347. # first if we set CC to just the basename; use the full file name.
  1348. shift
  1349. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1350. fi
  1351. fi
  1352. fi
  1353. fi
  1354. CC=$ac_cv_prog_CC
  1355. if test -n "$CC"; then
  1356. echo "$as_me:$LINENO: result: $CC" >&5
  1357. echo "${ECHO_T}$CC" >&6
  1358. else
  1359. echo "$as_me:$LINENO: result: no" >&5
  1360. echo "${ECHO_T}no" >&6
  1361. fi
  1362. fi
  1363. if test -z "$CC"; then
  1364. if test -n "$ac_tool_prefix"; then
  1365. for ac_prog in cl
  1366. do
  1367. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1368. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1369. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1370. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1371. if test "${ac_cv_prog_CC+set}" = set; then
  1372. echo $ECHO_N "(cached) $ECHO_C" >&6
  1373. else
  1374. if test -n "$CC"; then
  1375. ac_cv_prog_CC="$CC" # Let the user override the test.
  1376. else
  1377. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1378. for as_dir in $PATH
  1379. do
  1380. IFS=$as_save_IFS
  1381. test -z "$as_dir" && as_dir=.
  1382. for ac_exec_ext in '' $ac_executable_extensions; do
  1383. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1384. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1385. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1386. break 2
  1387. fi
  1388. done
  1389. done
  1390. fi
  1391. fi
  1392. CC=$ac_cv_prog_CC
  1393. if test -n "$CC"; then
  1394. echo "$as_me:$LINENO: result: $CC" >&5
  1395. echo "${ECHO_T}$CC" >&6
  1396. else
  1397. echo "$as_me:$LINENO: result: no" >&5
  1398. echo "${ECHO_T}no" >&6
  1399. fi
  1400. test -n "$CC" && break
  1401. done
  1402. fi
  1403. if test -z "$CC"; then
  1404. ac_ct_CC=$CC
  1405. for ac_prog in cl
  1406. do
  1407. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1408. set dummy $ac_prog; ac_word=$2
  1409. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1410. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1411. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1412. echo $ECHO_N "(cached) $ECHO_C" >&6
  1413. else
  1414. if test -n "$ac_ct_CC"; then
  1415. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1416. else
  1417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1418. for as_dir in $PATH
  1419. do
  1420. IFS=$as_save_IFS
  1421. test -z "$as_dir" && as_dir=.
  1422. for ac_exec_ext in '' $ac_executable_extensions; do
  1423. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1424. ac_cv_prog_ac_ct_CC="$ac_prog"
  1425. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1426. break 2
  1427. fi
  1428. done
  1429. done
  1430. fi
  1431. fi
  1432. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1433. if test -n "$ac_ct_CC"; then
  1434. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1435. echo "${ECHO_T}$ac_ct_CC" >&6
  1436. else
  1437. echo "$as_me:$LINENO: result: no" >&5
  1438. echo "${ECHO_T}no" >&6
  1439. fi
  1440. test -n "$ac_ct_CC" && break
  1441. done
  1442. CC=$ac_ct_CC
  1443. fi
  1444. fi
  1445. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1446. See \`config.log' for more details." >&5
  1447. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1448. See \`config.log' for more details." >&2;}
  1449. { (exit 1); exit 1; }; }
  1450. # Provide some information about the compiler.
  1451. echo "$as_me:$LINENO:" \
  1452. "checking for C compiler version" >&5
  1453. ac_compiler=`set X $ac_compile; echo $2`
  1454. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1455. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1456. ac_status=$?
  1457. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1458. (exit $ac_status); }
  1459. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1460. (eval $ac_compiler -v </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. cat >conftest.$ac_ext <<_ACEOF
  1470. /* confdefs.h. */
  1471. _ACEOF
  1472. cat confdefs.h >>conftest.$ac_ext
  1473. cat >>conftest.$ac_ext <<_ACEOF
  1474. /* end confdefs.h. */
  1475. int
  1476. main ()
  1477. {
  1478. ;
  1479. return 0;
  1480. }
  1481. _ACEOF
  1482. ac_clean_files_save=$ac_clean_files
  1483. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1484. # Try to create an executable without -o first, disregard a.out.
  1485. # It will help us diagnose broken compilers, and finding out an intuition
  1486. # of exeext.
  1487. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1488. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1489. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1490. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1491. (eval $ac_link_default) 2>&5
  1492. ac_status=$?
  1493. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1494. (exit $ac_status); }; then
  1495. # Find the output, starting from the most likely. This scheme is
  1496. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1497. # resort.
  1498. # Be careful to initialize this variable, since it used to be cached.
  1499. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1500. ac_cv_exeext=
  1501. # b.out is created by i960 compilers.
  1502. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1503. do
  1504. test -f "$ac_file" || continue
  1505. case $ac_file in
  1506. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1507. ;;
  1508. conftest.$ac_ext )
  1509. # This is the source file.
  1510. ;;
  1511. [ab].out )
  1512. # We found the default executable, but exeext='' is most
  1513. # certainly right.
  1514. break;;
  1515. *.* )
  1516. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1517. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1518. # but it would be cool to find out if it's true. Does anybody
  1519. # maintain Libtool? --akim.
  1520. export ac_cv_exeext
  1521. break;;
  1522. * )
  1523. break;;
  1524. esac
  1525. done
  1526. else
  1527. echo "$as_me: failed program was:" >&5
  1528. sed 's/^/| /' conftest.$ac_ext >&5
  1529. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1530. See \`config.log' for more details." >&5
  1531. echo "$as_me: error: C compiler cannot create executables
  1532. See \`config.log' for more details." >&2;}
  1533. { (exit 77); exit 77; }; }
  1534. fi
  1535. ac_exeext=$ac_cv_exeext
  1536. echo "$as_me:$LINENO: result: $ac_file" >&5
  1537. echo "${ECHO_T}$ac_file" >&6
  1538. # Check the compiler produces executables we can run. If not, either
  1539. # the compiler is broken, or we cross compile.
  1540. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1541. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1542. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1543. # If not cross compiling, check that we can run a simple program.
  1544. if test "$cross_compiling" != yes; then
  1545. if { ac_try='./$ac_file'
  1546. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1547. (eval $ac_try) 2>&5
  1548. ac_status=$?
  1549. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1550. (exit $ac_status); }; }; then
  1551. cross_compiling=no
  1552. else
  1553. if test "$cross_compiling" = maybe; then
  1554. cross_compiling=yes
  1555. else
  1556. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1557. If you meant to cross compile, use \`--host'.
  1558. See \`config.log' for more details." >&5
  1559. echo "$as_me: error: cannot run C compiled programs.
  1560. If you meant to cross compile, use \`--host'.
  1561. See \`config.log' for more details." >&2;}
  1562. { (exit 1); exit 1; }; }
  1563. fi
  1564. fi
  1565. fi
  1566. echo "$as_me:$LINENO: result: yes" >&5
  1567. echo "${ECHO_T}yes" >&6
  1568. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1569. ac_clean_files=$ac_clean_files_save
  1570. # Check the compiler produces executables we can run. If not, either
  1571. # the compiler is broken, or we cross compile.
  1572. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1573. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1574. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1575. echo "${ECHO_T}$cross_compiling" >&6
  1576. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1577. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1578. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1579. (eval $ac_link) 2>&5
  1580. ac_status=$?
  1581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1582. (exit $ac_status); }; then
  1583. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1584. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1585. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1586. # `rm'.
  1587. for ac_file in conftest.exe conftest conftest.*; do
  1588. test -f "$ac_file" || continue
  1589. case $ac_file in
  1590. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1591. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1592. export ac_cv_exeext
  1593. break;;
  1594. * ) break;;
  1595. esac
  1596. done
  1597. else
  1598. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1599. See \`config.log' for more details." >&5
  1600. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1601. See \`config.log' for more details." >&2;}
  1602. { (exit 1); exit 1; }; }
  1603. fi
  1604. rm -f conftest$ac_cv_exeext
  1605. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1606. echo "${ECHO_T}$ac_cv_exeext" >&6
  1607. rm -f conftest.$ac_ext
  1608. EXEEXT=$ac_cv_exeext
  1609. ac_exeext=$EXEEXT
  1610. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1611. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1612. if test "${ac_cv_objext+set}" = set; then
  1613. echo $ECHO_N "(cached) $ECHO_C" >&6
  1614. else
  1615. cat >conftest.$ac_ext <<_ACEOF
  1616. /* confdefs.h. */
  1617. _ACEOF
  1618. cat confdefs.h >>conftest.$ac_ext
  1619. cat >>conftest.$ac_ext <<_ACEOF
  1620. /* end confdefs.h. */
  1621. int
  1622. main ()
  1623. {
  1624. ;
  1625. return 0;
  1626. }
  1627. _ACEOF
  1628. rm -f conftest.o conftest.obj
  1629. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1630. (eval $ac_compile) 2>&5
  1631. ac_status=$?
  1632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1633. (exit $ac_status); }; then
  1634. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1635. case $ac_file in
  1636. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1637. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1638. break;;
  1639. esac
  1640. done
  1641. else
  1642. echo "$as_me: failed program was:" >&5
  1643. sed 's/^/| /' conftest.$ac_ext >&5
  1644. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1645. See \`config.log' for more details." >&5
  1646. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1647. See \`config.log' for more details." >&2;}
  1648. { (exit 1); exit 1; }; }
  1649. fi
  1650. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1651. fi
  1652. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1653. echo "${ECHO_T}$ac_cv_objext" >&6
  1654. OBJEXT=$ac_cv_objext
  1655. ac_objext=$OBJEXT
  1656. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1657. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1658. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1659. echo $ECHO_N "(cached) $ECHO_C" >&6
  1660. else
  1661. cat >conftest.$ac_ext <<_ACEOF
  1662. /* confdefs.h. */
  1663. _ACEOF
  1664. cat confdefs.h >>conftest.$ac_ext
  1665. cat >>conftest.$ac_ext <<_ACEOF
  1666. /* end confdefs.h. */
  1667. int
  1668. main ()
  1669. {
  1670. #ifndef __GNUC__
  1671. choke me
  1672. #endif
  1673. ;
  1674. return 0;
  1675. }
  1676. _ACEOF
  1677. rm -f conftest.$ac_objext
  1678. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1679. (eval $ac_compile) 2>conftest.er1
  1680. ac_status=$?
  1681. grep -v '^ *+' conftest.er1 >conftest.err
  1682. rm -f conftest.er1
  1683. cat conftest.err >&5
  1684. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1685. (exit $ac_status); } &&
  1686. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1687. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1688. (eval $ac_try) 2>&5
  1689. ac_status=$?
  1690. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1691. (exit $ac_status); }; } &&
  1692. { ac_try='test -s conftest.$ac_objext'
  1693. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1694. (eval $ac_try) 2>&5
  1695. ac_status=$?
  1696. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1697. (exit $ac_status); }; }; then
  1698. ac_compiler_gnu=yes
  1699. else
  1700. echo "$as_me: failed program was:" >&5
  1701. sed 's/^/| /' conftest.$ac_ext >&5
  1702. ac_compiler_gnu=no
  1703. fi
  1704. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1705. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1706. fi
  1707. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1708. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1709. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1710. ac_test_CFLAGS=${CFLAGS+set}
  1711. ac_save_CFLAGS=$CFLAGS
  1712. CFLAGS="-g"
  1713. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1714. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1715. if test "${ac_cv_prog_cc_g+set}" = set; then
  1716. echo $ECHO_N "(cached) $ECHO_C" >&6
  1717. else
  1718. cat >conftest.$ac_ext <<_ACEOF
  1719. /* confdefs.h. */
  1720. _ACEOF
  1721. cat confdefs.h >>conftest.$ac_ext
  1722. cat >>conftest.$ac_ext <<_ACEOF
  1723. /* end confdefs.h. */
  1724. int
  1725. main ()
  1726. {
  1727. ;
  1728. return 0;
  1729. }
  1730. _ACEOF
  1731. rm -f conftest.$ac_objext
  1732. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1733. (eval $ac_compile) 2>conftest.er1
  1734. ac_status=$?
  1735. grep -v '^ *+' conftest.er1 >conftest.err
  1736. rm -f conftest.er1
  1737. cat conftest.err >&5
  1738. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1739. (exit $ac_status); } &&
  1740. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1741. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1742. (eval $ac_try) 2>&5
  1743. ac_status=$?
  1744. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1745. (exit $ac_status); }; } &&
  1746. { ac_try='test -s conftest.$ac_objext'
  1747. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1748. (eval $ac_try) 2>&5
  1749. ac_status=$?
  1750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1751. (exit $ac_status); }; }; then
  1752. ac_cv_prog_cc_g=yes
  1753. else
  1754. echo "$as_me: failed program was:" >&5
  1755. sed 's/^/| /' conftest.$ac_ext >&5
  1756. ac_cv_prog_cc_g=no
  1757. fi
  1758. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1759. fi
  1760. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1761. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1762. if test "$ac_test_CFLAGS" = set; then
  1763. CFLAGS=$ac_save_CFLAGS
  1764. elif test $ac_cv_prog_cc_g = yes; then
  1765. if test "$GCC" = yes; then
  1766. CFLAGS="-g -O2"
  1767. else
  1768. CFLAGS="-g"
  1769. fi
  1770. else
  1771. if test "$GCC" = yes; then
  1772. CFLAGS="-O2"
  1773. else
  1774. CFLAGS=
  1775. fi
  1776. fi
  1777. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1778. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1779. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  1780. echo $ECHO_N "(cached) $ECHO_C" >&6
  1781. else
  1782. ac_cv_prog_cc_stdc=no
  1783. ac_save_CC=$CC
  1784. cat >conftest.$ac_ext <<_ACEOF
  1785. /* confdefs.h. */
  1786. _ACEOF
  1787. cat confdefs.h >>conftest.$ac_ext
  1788. cat >>conftest.$ac_ext <<_ACEOF
  1789. /* end confdefs.h. */
  1790. #include <stdarg.h>
  1791. #include <stdio.h>
  1792. #include <sys/types.h>
  1793. #include <sys/stat.h>
  1794. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  1795. struct buf { int x; };
  1796. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  1797. static char *e (p, i)
  1798. char **p;
  1799. int i;
  1800. {
  1801. return p[i];
  1802. }
  1803. static char *f (char * (*g) (char **, int), char **p, ...)
  1804. {
  1805. char *s;
  1806. va_list v;
  1807. va_start (v,p);
  1808. s = g (p, va_arg (v,int));
  1809. va_end (v);
  1810. return s;
  1811. }
  1812. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  1813. function prototypes and stuff, but not '\xHH' hex character constants.
  1814. These don't provoke an error unfortunately, instead are silently treated
  1815. as 'x'. The following induces an error, until -std1 is added to get
  1816. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  1817. array size at least. It's necessary to write '\x00'==0 to get something
  1818. that's true only with -std1. */
  1819. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  1820. int test (int i, double x);
  1821. struct s1 {int (*f) (int a);};
  1822. struct s2 {int (*f) (double a);};
  1823. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  1824. int argc;
  1825. char **argv;
  1826. int
  1827. main ()
  1828. {
  1829. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  1830. ;
  1831. return 0;
  1832. }
  1833. _ACEOF
  1834. # Don't try gcc -ansi; that turns off useful extensions and
  1835. # breaks some systems' header files.
  1836. # AIX -qlanglvl=ansi
  1837. # Ultrix and OSF/1 -std1
  1838. # HP-UX 10.20 and later -Ae
  1839. # HP-UX older versions -Aa -D_HPUX_SOURCE
  1840. # SVR4 -Xc -D__EXTENSIONS__
  1841. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  1842. do
  1843. CC="$ac_save_CC $ac_arg"
  1844. rm -f conftest.$ac_objext
  1845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1846. (eval $ac_compile) 2>conftest.er1
  1847. ac_status=$?
  1848. grep -v '^ *+' conftest.er1 >conftest.err
  1849. rm -f conftest.er1
  1850. cat conftest.err >&5
  1851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1852. (exit $ac_status); } &&
  1853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1855. (eval $ac_try) 2>&5
  1856. ac_status=$?
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); }; } &&
  1859. { ac_try='test -s conftest.$ac_objext'
  1860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1861. (eval $ac_try) 2>&5
  1862. ac_status=$?
  1863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1864. (exit $ac_status); }; }; then
  1865. ac_cv_prog_cc_stdc=$ac_arg
  1866. break
  1867. else
  1868. echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. fi
  1871. rm -f conftest.err conftest.$ac_objext
  1872. done
  1873. rm -f conftest.$ac_ext conftest.$ac_objext
  1874. CC=$ac_save_CC
  1875. fi
  1876. case "x$ac_cv_prog_cc_stdc" in
  1877. x|xno)
  1878. echo "$as_me:$LINENO: result: none needed" >&5
  1879. echo "${ECHO_T}none needed" >&6 ;;
  1880. *)
  1881. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  1882. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  1883. CC="$CC $ac_cv_prog_cc_stdc" ;;
  1884. esac
  1885. # Some people use a C++ compiler to compile C. Since we use `exit',
  1886. # in C++ we need to declare it. In case someone uses the same compiler
  1887. # for both compiling C and C++ we need to have the C++ compiler decide
  1888. # the declaration of exit, since it's the most demanding environment.
  1889. cat >conftest.$ac_ext <<_ACEOF
  1890. #ifndef __cplusplus
  1891. choke me
  1892. #endif
  1893. _ACEOF
  1894. rm -f conftest.$ac_objext
  1895. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1896. (eval $ac_compile) 2>conftest.er1
  1897. ac_status=$?
  1898. grep -v '^ *+' conftest.er1 >conftest.err
  1899. rm -f conftest.er1
  1900. cat conftest.err >&5
  1901. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1902. (exit $ac_status); } &&
  1903. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1904. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1905. (eval $ac_try) 2>&5
  1906. ac_status=$?
  1907. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1908. (exit $ac_status); }; } &&
  1909. { ac_try='test -s conftest.$ac_objext'
  1910. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1911. (eval $ac_try) 2>&5
  1912. ac_status=$?
  1913. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1914. (exit $ac_status); }; }; then
  1915. for ac_declaration in \
  1916. '' \
  1917. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1918. 'extern "C" void std::exit (int); using std::exit;' \
  1919. 'extern "C" void exit (int) throw ();' \
  1920. 'extern "C" void exit (int);' \
  1921. 'void exit (int);'
  1922. do
  1923. cat >conftest.$ac_ext <<_ACEOF
  1924. /* confdefs.h. */
  1925. _ACEOF
  1926. cat confdefs.h >>conftest.$ac_ext
  1927. cat >>conftest.$ac_ext <<_ACEOF
  1928. /* end confdefs.h. */
  1929. $ac_declaration
  1930. #include <stdlib.h>
  1931. int
  1932. main ()
  1933. {
  1934. exit (42);
  1935. ;
  1936. return 0;
  1937. }
  1938. _ACEOF
  1939. rm -f conftest.$ac_objext
  1940. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1941. (eval $ac_compile) 2>conftest.er1
  1942. ac_status=$?
  1943. grep -v '^ *+' conftest.er1 >conftest.err
  1944. rm -f conftest.er1
  1945. cat conftest.err >&5
  1946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1947. (exit $ac_status); } &&
  1948. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1950. (eval $ac_try) 2>&5
  1951. ac_status=$?
  1952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1953. (exit $ac_status); }; } &&
  1954. { ac_try='test -s conftest.$ac_objext'
  1955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1956. (eval $ac_try) 2>&5
  1957. ac_status=$?
  1958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1959. (exit $ac_status); }; }; then
  1960. :
  1961. else
  1962. echo "$as_me: failed program was:" >&5
  1963. sed 's/^/| /' conftest.$ac_ext >&5
  1964. continue
  1965. fi
  1966. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1967. cat >conftest.$ac_ext <<_ACEOF
  1968. /* confdefs.h. */
  1969. _ACEOF
  1970. cat confdefs.h >>conftest.$ac_ext
  1971. cat >>conftest.$ac_ext <<_ACEOF
  1972. /* end confdefs.h. */
  1973. $ac_declaration
  1974. int
  1975. main ()
  1976. {
  1977. exit (42);
  1978. ;
  1979. return 0;
  1980. }
  1981. _ACEOF
  1982. rm -f conftest.$ac_objext
  1983. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1984. (eval $ac_compile) 2>conftest.er1
  1985. ac_status=$?
  1986. grep -v '^ *+' conftest.er1 >conftest.err
  1987. rm -f conftest.er1
  1988. cat conftest.err >&5
  1989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1990. (exit $ac_status); } &&
  1991. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  1992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1993. (eval $ac_try) 2>&5
  1994. ac_status=$?
  1995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1996. (exit $ac_status); }; } &&
  1997. { ac_try='test -s conftest.$ac_objext'
  1998. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1999. (eval $ac_try) 2>&5
  2000. ac_status=$?
  2001. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2002. (exit $ac_status); }; }; then
  2003. break
  2004. else
  2005. echo "$as_me: failed program was:" >&5
  2006. sed 's/^/| /' conftest.$ac_ext >&5
  2007. fi
  2008. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2009. done
  2010. rm -f conftest*
  2011. if test -n "$ac_declaration"; then
  2012. echo '#ifdef __cplusplus' >>confdefs.h
  2013. echo $ac_declaration >>confdefs.h
  2014. echo '#endif' >>confdefs.h
  2015. fi
  2016. else
  2017. echo "$as_me: failed program was:" >&5
  2018. sed 's/^/| /' conftest.$ac_ext >&5
  2019. fi
  2020. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2021. ac_ext=c
  2022. ac_cpp='$CPP $CPPFLAGS'
  2023. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2024. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2025. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2026. if test "${cross_compiling-x}" = "x"
  2027. then
  2028. cat << 'EOF' >&2
  2029. configure: error:
  2030. This system does not appear to have a working C compiler.
  2031. A working C compiler is required to compile Eggdrop.
  2032. EOF
  2033. exit 1
  2034. fi
  2035. # Crazy machines
  2036. ac_ext=c
  2037. ac_cpp='$CPP $CPPFLAGS'
  2038. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2039. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2040. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2041. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2042. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2043. # On Suns, sometimes $CPP names a directory.
  2044. if test -n "$CPP" && test -d "$CPP"; then
  2045. CPP=
  2046. fi
  2047. if test -z "$CPP"; then
  2048. if test "${ac_cv_prog_CPP+set}" = set; then
  2049. echo $ECHO_N "(cached) $ECHO_C" >&6
  2050. else
  2051. # Double quotes because CPP needs to be expanded
  2052. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2053. do
  2054. ac_preproc_ok=false
  2055. for ac_c_preproc_warn_flag in '' yes
  2056. do
  2057. # Use a header file that comes with gcc, so configuring glibc
  2058. # with a fresh cross-compiler works.
  2059. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2060. # <limits.h> exists even on freestanding compilers.
  2061. # On the NeXT, cc -E runs the code through the compiler's parser,
  2062. # not just through cpp. "Syntax error" is here to catch this case.
  2063. cat >conftest.$ac_ext <<_ACEOF
  2064. /* confdefs.h. */
  2065. _ACEOF
  2066. cat confdefs.h >>conftest.$ac_ext
  2067. cat >>conftest.$ac_ext <<_ACEOF
  2068. /* end confdefs.h. */
  2069. #ifdef __STDC__
  2070. # include <limits.h>
  2071. #else
  2072. # include <assert.h>
  2073. #endif
  2074. Syntax error
  2075. _ACEOF
  2076. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2077. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2078. ac_status=$?
  2079. grep -v '^ *+' conftest.er1 >conftest.err
  2080. rm -f conftest.er1
  2081. cat conftest.err >&5
  2082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2083. (exit $ac_status); } >/dev/null; then
  2084. if test -s conftest.err; then
  2085. ac_cpp_err=$ac_c_preproc_warn_flag
  2086. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2087. else
  2088. ac_cpp_err=
  2089. fi
  2090. else
  2091. ac_cpp_err=yes
  2092. fi
  2093. if test -z "$ac_cpp_err"; then
  2094. :
  2095. else
  2096. echo "$as_me: failed program was:" >&5
  2097. sed 's/^/| /' conftest.$ac_ext >&5
  2098. # Broken: fails on valid input.
  2099. continue
  2100. fi
  2101. rm -f conftest.err conftest.$ac_ext
  2102. # OK, works on sane cases. Now check whether non-existent headers
  2103. # can be detected and how.
  2104. cat >conftest.$ac_ext <<_ACEOF
  2105. /* confdefs.h. */
  2106. _ACEOF
  2107. cat confdefs.h >>conftest.$ac_ext
  2108. cat >>conftest.$ac_ext <<_ACEOF
  2109. /* end confdefs.h. */
  2110. #include <ac_nonexistent.h>
  2111. _ACEOF
  2112. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2113. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2114. ac_status=$?
  2115. grep -v '^ *+' conftest.er1 >conftest.err
  2116. rm -f conftest.er1
  2117. cat conftest.err >&5
  2118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2119. (exit $ac_status); } >/dev/null; then
  2120. if test -s conftest.err; then
  2121. ac_cpp_err=$ac_c_preproc_warn_flag
  2122. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2123. else
  2124. ac_cpp_err=
  2125. fi
  2126. else
  2127. ac_cpp_err=yes
  2128. fi
  2129. if test -z "$ac_cpp_err"; then
  2130. # Broken: success on invalid input.
  2131. continue
  2132. else
  2133. echo "$as_me: failed program was:" >&5
  2134. sed 's/^/| /' conftest.$ac_ext >&5
  2135. # Passes both tests.
  2136. ac_preproc_ok=:
  2137. break
  2138. fi
  2139. rm -f conftest.err conftest.$ac_ext
  2140. done
  2141. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2142. rm -f conftest.err conftest.$ac_ext
  2143. if $ac_preproc_ok; then
  2144. break
  2145. fi
  2146. done
  2147. ac_cv_prog_CPP=$CPP
  2148. fi
  2149. CPP=$ac_cv_prog_CPP
  2150. else
  2151. ac_cv_prog_CPP=$CPP
  2152. fi
  2153. echo "$as_me:$LINENO: result: $CPP" >&5
  2154. echo "${ECHO_T}$CPP" >&6
  2155. ac_preproc_ok=false
  2156. for ac_c_preproc_warn_flag in '' yes
  2157. do
  2158. # Use a header file that comes with gcc, so configuring glibc
  2159. # with a fresh cross-compiler works.
  2160. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2161. # <limits.h> exists even on freestanding compilers.
  2162. # On the NeXT, cc -E runs the code through the compiler's parser,
  2163. # not just through cpp. "Syntax error" is here to catch this case.
  2164. cat >conftest.$ac_ext <<_ACEOF
  2165. /* confdefs.h. */
  2166. _ACEOF
  2167. cat confdefs.h >>conftest.$ac_ext
  2168. cat >>conftest.$ac_ext <<_ACEOF
  2169. /* end confdefs.h. */
  2170. #ifdef __STDC__
  2171. # include <limits.h>
  2172. #else
  2173. # include <assert.h>
  2174. #endif
  2175. Syntax error
  2176. _ACEOF
  2177. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2178. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2179. ac_status=$?
  2180. grep -v '^ *+' conftest.er1 >conftest.err
  2181. rm -f conftest.er1
  2182. cat conftest.err >&5
  2183. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2184. (exit $ac_status); } >/dev/null; then
  2185. if test -s conftest.err; then
  2186. ac_cpp_err=$ac_c_preproc_warn_flag
  2187. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2188. else
  2189. ac_cpp_err=
  2190. fi
  2191. else
  2192. ac_cpp_err=yes
  2193. fi
  2194. if test -z "$ac_cpp_err"; then
  2195. :
  2196. else
  2197. echo "$as_me: failed program was:" >&5
  2198. sed 's/^/| /' conftest.$ac_ext >&5
  2199. # Broken: fails on valid input.
  2200. continue
  2201. fi
  2202. rm -f conftest.err conftest.$ac_ext
  2203. # OK, works on sane cases. Now check whether non-existent headers
  2204. # can be detected and how.
  2205. cat >conftest.$ac_ext <<_ACEOF
  2206. /* confdefs.h. */
  2207. _ACEOF
  2208. cat confdefs.h >>conftest.$ac_ext
  2209. cat >>conftest.$ac_ext <<_ACEOF
  2210. /* end confdefs.h. */
  2211. #include <ac_nonexistent.h>
  2212. _ACEOF
  2213. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2214. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2215. ac_status=$?
  2216. grep -v '^ *+' conftest.er1 >conftest.err
  2217. rm -f conftest.er1
  2218. cat conftest.err >&5
  2219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2220. (exit $ac_status); } >/dev/null; then
  2221. if test -s conftest.err; then
  2222. ac_cpp_err=$ac_c_preproc_warn_flag
  2223. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2224. else
  2225. ac_cpp_err=
  2226. fi
  2227. else
  2228. ac_cpp_err=yes
  2229. fi
  2230. if test -z "$ac_cpp_err"; then
  2231. # Broken: success on invalid input.
  2232. continue
  2233. else
  2234. echo "$as_me: failed program was:" >&5
  2235. sed 's/^/| /' conftest.$ac_ext >&5
  2236. # Passes both tests.
  2237. ac_preproc_ok=:
  2238. break
  2239. fi
  2240. rm -f conftest.err conftest.$ac_ext
  2241. done
  2242. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2243. rm -f conftest.err conftest.$ac_ext
  2244. if $ac_preproc_ok; then
  2245. :
  2246. else
  2247. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2248. See \`config.log' for more details." >&5
  2249. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2250. See \`config.log' for more details." >&2;}
  2251. { (exit 1); exit 1; }; }
  2252. fi
  2253. ac_ext=c
  2254. ac_cpp='$CPP $CPPFLAGS'
  2255. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2256. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2257. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2258. echo "$as_me:$LINENO: checking for egrep" >&5
  2259. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  2260. if test "${ac_cv_prog_egrep+set}" = set; then
  2261. echo $ECHO_N "(cached) $ECHO_C" >&6
  2262. else
  2263. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  2264. then ac_cv_prog_egrep='grep -E'
  2265. else ac_cv_prog_egrep='egrep'
  2266. fi
  2267. fi
  2268. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  2269. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  2270. EGREP=$ac_cv_prog_egrep
  2271. echo "$as_me:$LINENO: checking for AIX" >&5
  2272. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  2273. cat >conftest.$ac_ext <<_ACEOF
  2274. /* confdefs.h. */
  2275. _ACEOF
  2276. cat confdefs.h >>conftest.$ac_ext
  2277. cat >>conftest.$ac_ext <<_ACEOF
  2278. /* end confdefs.h. */
  2279. #ifdef _AIX
  2280. yes
  2281. #endif
  2282. _ACEOF
  2283. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2284. $EGREP "yes" >/dev/null 2>&1; then
  2285. echo "$as_me:$LINENO: result: yes" >&5
  2286. echo "${ECHO_T}yes" >&6
  2287. cat >>confdefs.h <<\_ACEOF
  2288. #define _ALL_SOURCE 1
  2289. _ACEOF
  2290. else
  2291. echo "$as_me:$LINENO: result: no" >&5
  2292. echo "${ECHO_T}no" >&6
  2293. fi
  2294. rm -f conftest*
  2295. echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
  2296. echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
  2297. if test "${ac_cv_lib_cposix_strerror+set}" = set; then
  2298. echo $ECHO_N "(cached) $ECHO_C" >&6
  2299. else
  2300. ac_check_lib_save_LIBS=$LIBS
  2301. LIBS="-lcposix $LIBS"
  2302. cat >conftest.$ac_ext <<_ACEOF
  2303. /* confdefs.h. */
  2304. _ACEOF
  2305. cat confdefs.h >>conftest.$ac_ext
  2306. cat >>conftest.$ac_ext <<_ACEOF
  2307. /* end confdefs.h. */
  2308. /* Override any gcc2 internal prototype to avoid an error. */
  2309. #ifdef __cplusplus
  2310. extern "C"
  2311. #endif
  2312. /* We use char because int might match the return type of a gcc2
  2313. builtin and then its argument prototype would still apply. */
  2314. char strerror ();
  2315. int
  2316. main ()
  2317. {
  2318. strerror ();
  2319. ;
  2320. return 0;
  2321. }
  2322. _ACEOF
  2323. rm -f conftest.$ac_objext conftest$ac_exeext
  2324. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2325. (eval $ac_link) 2>conftest.er1
  2326. ac_status=$?
  2327. grep -v '^ *+' conftest.er1 >conftest.err
  2328. rm -f conftest.er1
  2329. cat conftest.err >&5
  2330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2331. (exit $ac_status); } &&
  2332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2334. (eval $ac_try) 2>&5
  2335. ac_status=$?
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); }; } &&
  2338. { ac_try='test -s conftest$ac_exeext'
  2339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2340. (eval $ac_try) 2>&5
  2341. ac_status=$?
  2342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2343. (exit $ac_status); }; }; then
  2344. ac_cv_lib_cposix_strerror=yes
  2345. else
  2346. echo "$as_me: failed program was:" >&5
  2347. sed 's/^/| /' conftest.$ac_ext >&5
  2348. ac_cv_lib_cposix_strerror=no
  2349. fi
  2350. rm -f conftest.err conftest.$ac_objext \
  2351. conftest$ac_exeext conftest.$ac_ext
  2352. LIBS=$ac_check_lib_save_LIBS
  2353. fi
  2354. echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
  2355. echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
  2356. if test $ac_cv_lib_cposix_strerror = yes; then
  2357. LIBS="$LIBS -lcposix"
  2358. fi
  2359. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2360. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2361. if test "${ac_cv_header_stdc+set}" = set; then
  2362. echo $ECHO_N "(cached) $ECHO_C" >&6
  2363. else
  2364. cat >conftest.$ac_ext <<_ACEOF
  2365. /* confdefs.h. */
  2366. _ACEOF
  2367. cat confdefs.h >>conftest.$ac_ext
  2368. cat >>conftest.$ac_ext <<_ACEOF
  2369. /* end confdefs.h. */
  2370. #include <stdlib.h>
  2371. #include <stdarg.h>
  2372. #include <string.h>
  2373. #include <float.h>
  2374. int
  2375. main ()
  2376. {
  2377. ;
  2378. return 0;
  2379. }
  2380. _ACEOF
  2381. rm -f conftest.$ac_objext
  2382. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2383. (eval $ac_compile) 2>conftest.er1
  2384. ac_status=$?
  2385. grep -v '^ *+' conftest.er1 >conftest.err
  2386. rm -f conftest.er1
  2387. cat conftest.err >&5
  2388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2389. (exit $ac_status); } &&
  2390. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2392. (eval $ac_try) 2>&5
  2393. ac_status=$?
  2394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2395. (exit $ac_status); }; } &&
  2396. { ac_try='test -s conftest.$ac_objext'
  2397. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2398. (eval $ac_try) 2>&5
  2399. ac_status=$?
  2400. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2401. (exit $ac_status); }; }; then
  2402. ac_cv_header_stdc=yes
  2403. else
  2404. echo "$as_me: failed program was:" >&5
  2405. sed 's/^/| /' conftest.$ac_ext >&5
  2406. ac_cv_header_stdc=no
  2407. fi
  2408. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2409. if test $ac_cv_header_stdc = yes; then
  2410. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2411. cat >conftest.$ac_ext <<_ACEOF
  2412. /* confdefs.h. */
  2413. _ACEOF
  2414. cat confdefs.h >>conftest.$ac_ext
  2415. cat >>conftest.$ac_ext <<_ACEOF
  2416. /* end confdefs.h. */
  2417. #include <string.h>
  2418. _ACEOF
  2419. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2420. $EGREP "memchr" >/dev/null 2>&1; then
  2421. :
  2422. else
  2423. ac_cv_header_stdc=no
  2424. fi
  2425. rm -f conftest*
  2426. fi
  2427. if test $ac_cv_header_stdc = yes; then
  2428. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2429. cat >conftest.$ac_ext <<_ACEOF
  2430. /* confdefs.h. */
  2431. _ACEOF
  2432. cat confdefs.h >>conftest.$ac_ext
  2433. cat >>conftest.$ac_ext <<_ACEOF
  2434. /* end confdefs.h. */
  2435. #include <stdlib.h>
  2436. _ACEOF
  2437. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2438. $EGREP "free" >/dev/null 2>&1; then
  2439. :
  2440. else
  2441. ac_cv_header_stdc=no
  2442. fi
  2443. rm -f conftest*
  2444. fi
  2445. if test $ac_cv_header_stdc = yes; then
  2446. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2447. if test "$cross_compiling" = yes; then
  2448. :
  2449. else
  2450. cat >conftest.$ac_ext <<_ACEOF
  2451. /* confdefs.h. */
  2452. _ACEOF
  2453. cat confdefs.h >>conftest.$ac_ext
  2454. cat >>conftest.$ac_ext <<_ACEOF
  2455. /* end confdefs.h. */
  2456. #include <ctype.h>
  2457. #if ((' ' & 0x0FF) == 0x020)
  2458. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2459. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2460. #else
  2461. # define ISLOWER(c) \
  2462. (('a' <= (c) && (c) <= 'i') \
  2463. || ('j' <= (c) && (c) <= 'r') \
  2464. || ('s' <= (c) && (c) <= 'z'))
  2465. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2466. #endif
  2467. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2468. int
  2469. main ()
  2470. {
  2471. int i;
  2472. for (i = 0; i < 256; i++)
  2473. if (XOR (islower (i), ISLOWER (i))
  2474. || toupper (i) != TOUPPER (i))
  2475. exit(2);
  2476. exit (0);
  2477. }
  2478. _ACEOF
  2479. rm -f conftest$ac_exeext
  2480. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2481. (eval $ac_link) 2>&5
  2482. ac_status=$?
  2483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2484. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2485. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2486. (eval $ac_try) 2>&5
  2487. ac_status=$?
  2488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2489. (exit $ac_status); }; }; then
  2490. :
  2491. else
  2492. echo "$as_me: program exited with status $ac_status" >&5
  2493. echo "$as_me: failed program was:" >&5
  2494. sed 's/^/| /' conftest.$ac_ext >&5
  2495. ( exit $ac_status )
  2496. ac_cv_header_stdc=no
  2497. fi
  2498. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2499. fi
  2500. fi
  2501. fi
  2502. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2503. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2504. if test $ac_cv_header_stdc = yes; then
  2505. cat >>confdefs.h <<\_ACEOF
  2506. #define STDC_HEADERS 1
  2507. _ACEOF
  2508. fi
  2509. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2510. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2511. inttypes.h stdint.h unistd.h
  2512. do
  2513. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2514. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2515. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2516. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2517. echo $ECHO_N "(cached) $ECHO_C" >&6
  2518. else
  2519. cat >conftest.$ac_ext <<_ACEOF
  2520. /* confdefs.h. */
  2521. _ACEOF
  2522. cat confdefs.h >>conftest.$ac_ext
  2523. cat >>conftest.$ac_ext <<_ACEOF
  2524. /* end confdefs.h. */
  2525. $ac_includes_default
  2526. #include <$ac_header>
  2527. _ACEOF
  2528. rm -f conftest.$ac_objext
  2529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2530. (eval $ac_compile) 2>conftest.er1
  2531. ac_status=$?
  2532. grep -v '^ *+' conftest.er1 >conftest.err
  2533. rm -f conftest.er1
  2534. cat conftest.err >&5
  2535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2536. (exit $ac_status); } &&
  2537. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2539. (eval $ac_try) 2>&5
  2540. ac_status=$?
  2541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2542. (exit $ac_status); }; } &&
  2543. { ac_try='test -s conftest.$ac_objext'
  2544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2545. (eval $ac_try) 2>&5
  2546. ac_status=$?
  2547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2548. (exit $ac_status); }; }; then
  2549. eval "$as_ac_Header=yes"
  2550. else
  2551. echo "$as_me: failed program was:" >&5
  2552. sed 's/^/| /' conftest.$ac_ext >&5
  2553. eval "$as_ac_Header=no"
  2554. fi
  2555. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2556. fi
  2557. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2558. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2559. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2560. cat >>confdefs.h <<_ACEOF
  2561. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2562. _ACEOF
  2563. fi
  2564. done
  2565. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2566. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2567. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2568. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2569. echo $ECHO_N "(cached) $ECHO_C" >&6
  2570. fi
  2571. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2572. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2573. else
  2574. # Is the header compilable?
  2575. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2576. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2577. cat >conftest.$ac_ext <<_ACEOF
  2578. /* confdefs.h. */
  2579. _ACEOF
  2580. cat confdefs.h >>conftest.$ac_ext
  2581. cat >>conftest.$ac_ext <<_ACEOF
  2582. /* end confdefs.h. */
  2583. $ac_includes_default
  2584. #include <minix/config.h>
  2585. _ACEOF
  2586. rm -f conftest.$ac_objext
  2587. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2588. (eval $ac_compile) 2>conftest.er1
  2589. ac_status=$?
  2590. grep -v '^ *+' conftest.er1 >conftest.err
  2591. rm -f conftest.er1
  2592. cat conftest.err >&5
  2593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2594. (exit $ac_status); } &&
  2595. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2596. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2597. (eval $ac_try) 2>&5
  2598. ac_status=$?
  2599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2600. (exit $ac_status); }; } &&
  2601. { ac_try='test -s conftest.$ac_objext'
  2602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2603. (eval $ac_try) 2>&5
  2604. ac_status=$?
  2605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2606. (exit $ac_status); }; }; then
  2607. ac_header_compiler=yes
  2608. else
  2609. echo "$as_me: failed program was:" >&5
  2610. sed 's/^/| /' conftest.$ac_ext >&5
  2611. ac_header_compiler=no
  2612. fi
  2613. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2614. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2615. echo "${ECHO_T}$ac_header_compiler" >&6
  2616. # Is the header present?
  2617. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2618. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2619. cat >conftest.$ac_ext <<_ACEOF
  2620. /* confdefs.h. */
  2621. _ACEOF
  2622. cat confdefs.h >>conftest.$ac_ext
  2623. cat >>conftest.$ac_ext <<_ACEOF
  2624. /* end confdefs.h. */
  2625. #include <minix/config.h>
  2626. _ACEOF
  2627. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2628. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2629. ac_status=$?
  2630. grep -v '^ *+' conftest.er1 >conftest.err
  2631. rm -f conftest.er1
  2632. cat conftest.err >&5
  2633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2634. (exit $ac_status); } >/dev/null; then
  2635. if test -s conftest.err; then
  2636. ac_cpp_err=$ac_c_preproc_warn_flag
  2637. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2638. else
  2639. ac_cpp_err=
  2640. fi
  2641. else
  2642. ac_cpp_err=yes
  2643. fi
  2644. if test -z "$ac_cpp_err"; then
  2645. ac_header_preproc=yes
  2646. else
  2647. echo "$as_me: failed program was:" >&5
  2648. sed 's/^/| /' conftest.$ac_ext >&5
  2649. ac_header_preproc=no
  2650. fi
  2651. rm -f conftest.err conftest.$ac_ext
  2652. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2653. echo "${ECHO_T}$ac_header_preproc" >&6
  2654. # So? What about this header?
  2655. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2656. yes:no: )
  2657. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2658. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2659. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2660. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2661. ac_header_preproc=yes
  2662. ;;
  2663. no:yes:* )
  2664. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2665. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2666. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2667. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2668. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2669. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2670. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2671. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2672. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2673. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2674. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2675. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2676. (
  2677. cat <<\_ASBOX
  2678. ## ------------------------------------------ ##
  2679. ## Report this to the AC_PACKAGE_NAME lists. ##
  2680. ## ------------------------------------------ ##
  2681. _ASBOX
  2682. ) |
  2683. sed "s/^/$as_me: WARNING: /" >&2
  2684. ;;
  2685. esac
  2686. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2687. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2688. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2689. echo $ECHO_N "(cached) $ECHO_C" >&6
  2690. else
  2691. ac_cv_header_minix_config_h=$ac_header_preproc
  2692. fi
  2693. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2694. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2695. fi
  2696. if test $ac_cv_header_minix_config_h = yes; then
  2697. MINIX=yes
  2698. else
  2699. MINIX=
  2700. fi
  2701. if test "$MINIX" = yes; then
  2702. cat >>confdefs.h <<\_ACEOF
  2703. #define _POSIX_SOURCE 1
  2704. _ACEOF
  2705. cat >>confdefs.h <<\_ACEOF
  2706. #define _POSIX_1_SOURCE 2
  2707. _ACEOF
  2708. cat >>confdefs.h <<\_ACEOF
  2709. #define _MINIX 1
  2710. _ACEOF
  2711. fi
  2712. for define in `sed -n -e 's/^+ \([^ ]*\) .*/\1/ p' pack/pack.cfg`; do
  2713. u_define="S_$define"
  2714. cat >>confdefs.h <<_ACEOF
  2715. #define $u_define 1
  2716. _ACEOF
  2717. done
  2718. #checkpoint
  2719. cat >confcache <<\_ACEOF
  2720. # This file is a shell script that caches the results of configure
  2721. # tests run on this system so they can be shared between configure
  2722. # scripts and configure runs, see configure's option --config-cache.
  2723. # It is not useful on other systems. If it contains results you don't
  2724. # want to keep, you may remove or edit it.
  2725. #
  2726. # config.status only pays attention to the cache file if you give it
  2727. # the --recheck option to rerun configure.
  2728. #
  2729. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2730. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2731. # following values.
  2732. _ACEOF
  2733. # The following way of writing the cache mishandles newlines in values,
  2734. # but we know of no workaround that is simple, portable, and efficient.
  2735. # So, don't put newlines in cache variables' values.
  2736. # Ultrix sh set writes to stderr and can't be redirected directly,
  2737. # and sets the high bit in the cache file unless we assign to the vars.
  2738. {
  2739. (set) 2>&1 |
  2740. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2741. *ac_space=\ *)
  2742. # `set' does not quote correctly, so add quotes (double-quote
  2743. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2744. sed -n \
  2745. "s/'/'\\\\''/g;
  2746. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2747. ;;
  2748. *)
  2749. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2750. sed -n \
  2751. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2752. ;;
  2753. esac;
  2754. } |
  2755. sed '
  2756. t clear
  2757. : clear
  2758. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2759. t end
  2760. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2761. : end' >>confcache
  2762. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2763. if test -w $cache_file; then
  2764. test "x$cache_file" != "x/dev/null"
  2765. cat confcache >$cache_file
  2766. else
  2767. echo "not updating unwritable cache $cache_file"
  2768. fi
  2769. fi
  2770. rm -f confcache
  2771. # Speedup compile
  2772. if test -z "$no_pipe"
  2773. then
  2774. if test -n "$GCC"
  2775. then
  2776. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2777. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2778. if test "${egg_cv_var_ccpipe+set}" = set; then
  2779. echo $ECHO_N "(cached) $ECHO_C" >&6
  2780. else
  2781. ac_old_CC="$CC"
  2782. CC="$CC -pipe"
  2783. cat >conftest.$ac_ext <<_ACEOF
  2784. /* confdefs.h. */
  2785. _ACEOF
  2786. cat confdefs.h >>conftest.$ac_ext
  2787. cat >>conftest.$ac_ext <<_ACEOF
  2788. /* end confdefs.h. */
  2789. int
  2790. main ()
  2791. {
  2792. ;
  2793. return 0;
  2794. }
  2795. _ACEOF
  2796. rm -f conftest.$ac_objext
  2797. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2798. (eval $ac_compile) 2>conftest.er1
  2799. ac_status=$?
  2800. grep -v '^ *+' conftest.er1 >conftest.err
  2801. rm -f conftest.er1
  2802. cat conftest.err >&5
  2803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2804. (exit $ac_status); } &&
  2805. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2807. (eval $ac_try) 2>&5
  2808. ac_status=$?
  2809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2810. (exit $ac_status); }; } &&
  2811. { ac_try='test -s conftest.$ac_objext'
  2812. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2813. (eval $ac_try) 2>&5
  2814. ac_status=$?
  2815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2816. (exit $ac_status); }; }; then
  2817. egg_cv_var_ccpipe="yes"
  2818. else
  2819. echo "$as_me: failed program was:" >&5
  2820. sed 's/^/| /' conftest.$ac_ext >&5
  2821. egg_cv_var_ccpipe="no"
  2822. fi
  2823. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2824. CC="$ac_old_CC"
  2825. fi
  2826. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2827. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2828. if test "$egg_cv_var_ccpipe" = "yes"
  2829. then
  2830. CC="$CC -pipe"
  2831. fi
  2832. fi
  2833. fi
  2834. CCDEPMODE=gcc
  2835. num=`gcc -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2836. if test $num = "3"; then
  2837. CCDEPMODE=gcc3
  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. # Extract the first word of "strip", so it can be a program name with args.
  2980. set dummy strip; ac_word=$2
  2981. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2982. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2983. if test "${ac_cv_prog_STRIP+set}" = set; then
  2984. echo $ECHO_N "(cached) $ECHO_C" >&6
  2985. else
  2986. if test -n "$STRIP"; then
  2987. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2988. else
  2989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2990. for as_dir in $PATH
  2991. do
  2992. IFS=$as_save_IFS
  2993. test -z "$as_dir" && as_dir=.
  2994. for ac_exec_ext in '' $ac_executable_extensions; do
  2995. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2996. ac_cv_prog_STRIP="strip"
  2997. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2998. break 2
  2999. fi
  3000. done
  3001. done
  3002. fi
  3003. fi
  3004. STRIP=$ac_cv_prog_STRIP
  3005. if test -n "$STRIP"; then
  3006. echo "$as_me:$LINENO: result: $STRIP" >&5
  3007. echo "${ECHO_T}$STRIP" >&6
  3008. else
  3009. echo "$as_me:$LINENO: result: no" >&5
  3010. echo "${ECHO_T}no" >&6
  3011. fi
  3012. if test "${STRIP-x}" = "x"
  3013. then
  3014. STRIP=touch
  3015. fi
  3016. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3017. for ac_prog in gawk mawk nawk awk
  3018. do
  3019. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3020. set dummy $ac_prog; ac_word=$2
  3021. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3022. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3023. if test "${ac_cv_prog_AWK+set}" = set; then
  3024. echo $ECHO_N "(cached) $ECHO_C" >&6
  3025. else
  3026. if test -n "$AWK"; then
  3027. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3028. else
  3029. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3030. for as_dir in $PATH
  3031. do
  3032. IFS=$as_save_IFS
  3033. test -z "$as_dir" && as_dir=.
  3034. for ac_exec_ext in '' $ac_executable_extensions; do
  3035. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3036. ac_cv_prog_AWK="$ac_prog"
  3037. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3038. break 2
  3039. fi
  3040. done
  3041. done
  3042. fi
  3043. fi
  3044. AWK=$ac_cv_prog_AWK
  3045. if test -n "$AWK"; then
  3046. echo "$as_me:$LINENO: result: $AWK" >&5
  3047. echo "${ECHO_T}$AWK" >&6
  3048. else
  3049. echo "$as_me:$LINENO: result: no" >&5
  3050. echo "${ECHO_T}no" >&6
  3051. fi
  3052. test -n "$AWK" && break
  3053. done
  3054. if test "${AWK-x}" = "x"
  3055. then
  3056. cat << 'EOF' >&2
  3057. configure: error:
  3058. This system seems to lack a working 'awk' command.
  3059. A working 'awk' command is required to compile Eggdrop.
  3060. EOF
  3061. exit 1
  3062. fi
  3063. # basename is needed for Tcl library and header checks
  3064. # Extract the first word of "basename", so it can be a program name with args.
  3065. set dummy basename; ac_word=$2
  3066. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3067. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3068. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3069. echo $ECHO_N "(cached) $ECHO_C" >&6
  3070. else
  3071. if test -n "$BASENAME"; then
  3072. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3073. else
  3074. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3075. for as_dir in $PATH
  3076. do
  3077. IFS=$as_save_IFS
  3078. test -z "$as_dir" && as_dir=.
  3079. for ac_exec_ext in '' $ac_executable_extensions; do
  3080. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3081. ac_cv_prog_BASENAME="basename"
  3082. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3083. break 2
  3084. fi
  3085. done
  3086. done
  3087. fi
  3088. fi
  3089. BASENAME=$ac_cv_prog_BASENAME
  3090. if test -n "$BASENAME"; then
  3091. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3092. echo "${ECHO_T}$BASENAME" >&6
  3093. else
  3094. echo "$as_me:$LINENO: result: no" >&5
  3095. echo "${ECHO_T}no" >&6
  3096. fi
  3097. if test "${BASENAME-x}" = "x"
  3098. then
  3099. cat << 'EOF' >&2
  3100. configure: error:
  3101. This system seems to lack a working 'basename' command.
  3102. A working 'basename' command is required to compile Eggdrop.
  3103. EOF
  3104. exit 1
  3105. fi
  3106. # Extract the first word of "ccache", so it can be a program name with args.
  3107. set dummy ccache; ac_word=$2
  3108. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3109. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3110. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3111. echo $ECHO_N "(cached) $ECHO_C" >&6
  3112. else
  3113. if test -n "$CCACHE"; then
  3114. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3115. else
  3116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3117. for as_dir in $PATH
  3118. do
  3119. IFS=$as_save_IFS
  3120. test -z "$as_dir" && as_dir=.
  3121. for ac_exec_ext in '' $ac_executable_extensions; do
  3122. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3123. ac_cv_prog_CCACHE="ccache"
  3124. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3125. break 2
  3126. fi
  3127. done
  3128. done
  3129. fi
  3130. fi
  3131. CCACHE=$ac_cv_prog_CCACHE
  3132. if test -n "$CCACHE"; then
  3133. echo "$as_me:$LINENO: result: $CCACHE" >&5
  3134. echo "${ECHO_T}$CCACHE" >&6
  3135. else
  3136. echo "$as_me:$LINENO: result: no" >&5
  3137. echo "${ECHO_T}no" >&6
  3138. fi
  3139. if test "${CCACHE-x}" = "x"
  3140. then
  3141. CCACHE=ccache
  3142. fi
  3143. # Extract the first word of "distcc", so it can be a program name with args.
  3144. set dummy distcc; ac_word=$2
  3145. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3146. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3147. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3148. echo $ECHO_N "(cached) $ECHO_C" >&6
  3149. else
  3150. if test -n "$DISTCC"; then
  3151. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3152. else
  3153. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3154. for as_dir in $PATH
  3155. do
  3156. IFS=$as_save_IFS
  3157. test -z "$as_dir" && as_dir=.
  3158. for ac_exec_ext in '' $ac_executable_extensions; do
  3159. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3160. ac_cv_prog_DISTCC="distcc"
  3161. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3162. break 2
  3163. fi
  3164. done
  3165. done
  3166. fi
  3167. fi
  3168. DISTCC=$ac_cv_prog_DISTCC
  3169. if test -n "$DISTCC"; then
  3170. echo "$as_me:$LINENO: result: $DISTCC" >&5
  3171. echo "${ECHO_T}$DISTCC" >&6
  3172. else
  3173. echo "$as_me:$LINENO: result: no" >&5
  3174. echo "${ECHO_T}no" >&6
  3175. fi
  3176. if test "${DISTCC-x}" = "x"
  3177. then
  3178. DISTCC=distcc
  3179. fi
  3180. # Extract the first word of "uname", so it can be a program name with args.
  3181. set dummy uname; ac_word=$2
  3182. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3183. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3184. if test "${ac_cv_prog_UNAME+set}" = set; then
  3185. echo $ECHO_N "(cached) $ECHO_C" >&6
  3186. else
  3187. if test -n "$UNAME"; then
  3188. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3189. else
  3190. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3191. for as_dir in $PATH
  3192. do
  3193. IFS=$as_save_IFS
  3194. test -z "$as_dir" && as_dir=.
  3195. for ac_exec_ext in '' $ac_executable_extensions; do
  3196. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3197. ac_cv_prog_UNAME="uname"
  3198. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3199. break 2
  3200. fi
  3201. done
  3202. done
  3203. fi
  3204. fi
  3205. UNAME=$ac_cv_prog_UNAME
  3206. if test -n "$UNAME"; then
  3207. echo "$as_me:$LINENO: result: $UNAME" >&5
  3208. echo "${ECHO_T}$UNAME" >&6
  3209. else
  3210. echo "$as_me:$LINENO: result: no" >&5
  3211. echo "${ECHO_T}no" >&6
  3212. fi
  3213. # Test the os and set the module linking settings
  3214. LINUX=no
  3215. IRIX=no
  3216. SUNOS=no
  3217. HPUX=no
  3218. EGG_CYGWIN=no
  3219. echo "$as_me:$LINENO: checking system type" >&5
  3220. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3221. if test "${egg_cv_var_system_type+set}" = set; then
  3222. echo $ECHO_N "(cached) $ECHO_C" >&6
  3223. else
  3224. egg_cv_var_system_type=`$UNAME -s`
  3225. fi
  3226. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3227. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3228. echo "$as_me:$LINENO: checking system release" >&5
  3229. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3230. if test "${egg_cv_var_system_release+set}" = set; then
  3231. echo $ECHO_N "(cached) $ECHO_C" >&6
  3232. else
  3233. egg_cv_var_system_release=`$UNAME -r`
  3234. fi
  3235. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3236. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3237. case "$egg_cv_var_system_type" in
  3238. BSD/OS)
  3239. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3240. 2)
  3241. ;;
  3242. *)
  3243. CFLAGS="$CFLAGS -Wall"
  3244. ;;
  3245. esac
  3246. ;;
  3247. CYGWI*)
  3248. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3249. 1.*)
  3250. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3251. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3252. WIN32FLAGS=
  3253. cat >conftest.$ac_ext <<_ACEOF
  3254. /* confdefs.h. */
  3255. _ACEOF
  3256. cat confdefs.h >>conftest.$ac_ext
  3257. cat >>conftest.$ac_ext <<_ACEOF
  3258. /* end confdefs.h. */
  3259. int
  3260. main ()
  3261. {
  3262. #ifndef WIN32
  3263. # ifndef _WIN32
  3264. # error WIN32 or _WIN32 not defined
  3265. # endif
  3266. #endif
  3267. ;
  3268. return 0;
  3269. }
  3270. _ACEOF
  3271. rm -f conftest.$ac_objext
  3272. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3273. (eval $ac_compile) 2>conftest.er1
  3274. ac_status=$?
  3275. grep -v '^ *+' conftest.er1 >conftest.err
  3276. rm -f conftest.er1
  3277. cat conftest.err >&5
  3278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3279. (exit $ac_status); } &&
  3280. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3281. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3282. (eval $ac_try) 2>&5
  3283. ac_status=$?
  3284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3285. (exit $ac_status); }; } &&
  3286. { ac_try='test -s conftest.$ac_objext'
  3287. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3288. (eval $ac_try) 2>&5
  3289. ac_status=$?
  3290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3291. (exit $ac_status); }; }; then
  3292. echo "$as_me:$LINENO: result: present by default" >&5
  3293. echo "${ECHO_T}present by default" >&6
  3294. else
  3295. echo "$as_me: failed program was:" >&5
  3296. sed 's/^/| /' conftest.$ac_ext >&5
  3297. ac_compile_save="$ac_compile"
  3298. save_CC="$CC"
  3299. ac_compile="$ac_compile -mwin32"
  3300. CC="$CC -mwin32"
  3301. cat >conftest.$ac_ext <<_ACEOF
  3302. /* confdefs.h. */
  3303. _ACEOF
  3304. cat confdefs.h >>conftest.$ac_ext
  3305. cat >>conftest.$ac_ext <<_ACEOF
  3306. /* end confdefs.h. */
  3307. int
  3308. main ()
  3309. {
  3310. #ifndef WIN32
  3311. # ifndef _WIN32
  3312. # error WIN32 or _WIN32 not defined
  3313. # endif
  3314. #endif
  3315. ;
  3316. return 0;
  3317. }
  3318. _ACEOF
  3319. rm -f conftest.$ac_objext
  3320. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3321. (eval $ac_compile) 2>conftest.er1
  3322. ac_status=$?
  3323. grep -v '^ *+' conftest.er1 >conftest.err
  3324. rm -f conftest.er1
  3325. cat conftest.err >&5
  3326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3327. (exit $ac_status); } &&
  3328. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3329. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3330. (eval $ac_try) 2>&5
  3331. ac_status=$?
  3332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3333. (exit $ac_status); }; } &&
  3334. { ac_try='test -s conftest.$ac_objext'
  3335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3336. (eval $ac_try) 2>&5
  3337. ac_status=$?
  3338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3339. (exit $ac_status); }; }; then
  3340. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3341. echo "${ECHO_T}found via -mwin32" >&6
  3342. ac_compile="$ac_compile_save"
  3343. CC="$save_CC"
  3344. WIN32FLAGS="-mwin32"
  3345. else
  3346. echo "$as_me: failed program was:" >&5
  3347. sed 's/^/| /' conftest.$ac_ext >&5
  3348. ac_compile="$ac_compile_save"
  3349. CC="$save_CC"
  3350. echo "$as_me:$LINENO: result: not found" >&5
  3351. echo "${ECHO_T}not found" >&6
  3352. fi
  3353. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3354. fi
  3355. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3356. CC="$CC $WIN32FLAGS"
  3357. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3358. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3359. if test -r /usr/lib/binmode.o
  3360. then
  3361. echo "$as_me:$LINENO: result: yes" >&5
  3362. echo "${ECHO_T}yes" >&6
  3363. LIBS="$LIBS /usr/lib/binmode.o"
  3364. else
  3365. echo "$as_me:$LINENO: result: no" >&5
  3366. echo "${ECHO_T}no" >&6
  3367. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3368. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3369. fi
  3370. ;;
  3371. *)
  3372. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3373. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3374. ;;
  3375. esac
  3376. EGG_CYGWIN=yes
  3377. cat >>confdefs.h <<\_ACEOF
  3378. #define CYGWIN_HACKS 1
  3379. _ACEOF
  3380. ;;
  3381. HP-UX)
  3382. HPUX=yes
  3383. cat >>confdefs.h <<\_ACEOF
  3384. #define HPUX_HACKS 1
  3385. _ACEOF
  3386. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3387. then
  3388. cat >>confdefs.h <<\_ACEOF
  3389. #define HPUX10_HACKS 1
  3390. _ACEOF
  3391. fi
  3392. ;;
  3393. dell)
  3394. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3395. echo "${ECHO_T}Dell SVR4" >&6
  3396. ;;
  3397. IRIX)
  3398. IRIX=yes
  3399. ;;
  3400. Ultrix)
  3401. SHELL=/bin/sh5
  3402. ;;
  3403. SINIX*)
  3404. ;;
  3405. BeOS)
  3406. ;;
  3407. Linux)
  3408. LINUX=yes
  3409. CFLAGS="$CFLAGS -Wall"
  3410. ;;
  3411. Lynx)
  3412. ;;
  3413. QNX)
  3414. ;;
  3415. OSF1)
  3416. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3417. V*)
  3418. # FIXME: we should check this in a separate test
  3419. # Digital OSF uses an ancient version of gawk
  3420. if test "$AWK" = "gawk"
  3421. then
  3422. AWK=awk
  3423. fi
  3424. ;;
  3425. 1.0|1.1|1.2)
  3426. cat >>confdefs.h <<\_ACEOF
  3427. #define OSF1_HACKS 1
  3428. _ACEOF
  3429. ;;
  3430. 1.*)
  3431. cat >>confdefs.h <<\_ACEOF
  3432. #define OSF1_HACKS 1
  3433. _ACEOF
  3434. ;;
  3435. *)
  3436. ;;
  3437. esac
  3438. cat >>confdefs.h <<\_ACEOF
  3439. #define STOP_UAC 1
  3440. _ACEOF
  3441. cat >>confdefs.h <<\_ACEOF
  3442. #define BROKEN_SNPRINTF 1
  3443. _ACEOF
  3444. ;;
  3445. SunOS)
  3446. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3447. then
  3448. # SunOS 4
  3449. SUNOS=yes
  3450. fi
  3451. ;;
  3452. *BSD)
  3453. # FreeBSD/OpenBSD/NetBSD
  3454. ;;
  3455. *)
  3456. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3457. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3458. if test -r /mach
  3459. then
  3460. echo "$as_me:$LINENO: result: yes" >&5
  3461. echo "${ECHO_T}yes" >&6
  3462. cat >>confdefs.h <<\_ACEOF
  3463. #define BORGCUBES 1
  3464. _ACEOF
  3465. else
  3466. echo "$as_me:$LINENO: result: no" >&5
  3467. echo "${ECHO_T}no" >&6
  3468. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3469. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3470. if test -r /cmds
  3471. then
  3472. echo "$as_me:$LINENO: result: yes" >&5
  3473. echo "${ECHO_T}yes" >&6
  3474. else
  3475. echo "$as_me:$LINENO: result: no" >&5
  3476. echo "${ECHO_T}no" >&6
  3477. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3478. echo "${ECHO_T}Something unknown!" >&6
  3479. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3480. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3481. fi
  3482. fi
  3483. ;;
  3484. esac
  3485. #checkpoint
  3486. cat >confcache <<\_ACEOF
  3487. # This file is a shell script that caches the results of configure
  3488. # tests run on this system so they can be shared between configure
  3489. # scripts and configure runs, see configure's option --config-cache.
  3490. # It is not useful on other systems. If it contains results you don't
  3491. # want to keep, you may remove or edit it.
  3492. #
  3493. # config.status only pays attention to the cache file if you give it
  3494. # the --recheck option to rerun configure.
  3495. #
  3496. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3497. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3498. # following values.
  3499. _ACEOF
  3500. # The following way of writing the cache mishandles newlines in values,
  3501. # but we know of no workaround that is simple, portable, and efficient.
  3502. # So, don't put newlines in cache variables' values.
  3503. # Ultrix sh set writes to stderr and can't be redirected directly,
  3504. # and sets the high bit in the cache file unless we assign to the vars.
  3505. {
  3506. (set) 2>&1 |
  3507. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3508. *ac_space=\ *)
  3509. # `set' does not quote correctly, so add quotes (double-quote
  3510. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3511. sed -n \
  3512. "s/'/'\\\\''/g;
  3513. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3514. ;;
  3515. *)
  3516. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3517. sed -n \
  3518. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3519. ;;
  3520. esac;
  3521. } |
  3522. sed '
  3523. t clear
  3524. : clear
  3525. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3526. t end
  3527. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3528. : end' >>confcache
  3529. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3530. if test -w $cache_file; then
  3531. test "x$cache_file" != "x/dev/null"
  3532. cat confcache >$cache_file
  3533. else
  3534. echo "not updating unwritable cache $cache_file"
  3535. fi
  3536. fi
  3537. rm -f confcache
  3538. # Checks for system libraries
  3539. # FIXME: this needs to be fixed so that it works on IRIX
  3540. if test "$IRIX" = "yes"
  3541. then
  3542. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  3543. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  3544. else
  3545. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3546. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3547. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3548. echo $ECHO_N "(cached) $ECHO_C" >&6
  3549. else
  3550. ac_check_lib_save_LIBS=$LIBS
  3551. LIBS="-lsocket $LIBS"
  3552. cat >conftest.$ac_ext <<_ACEOF
  3553. /* confdefs.h. */
  3554. _ACEOF
  3555. cat confdefs.h >>conftest.$ac_ext
  3556. cat >>conftest.$ac_ext <<_ACEOF
  3557. /* end confdefs.h. */
  3558. /* Override any gcc2 internal prototype to avoid an error. */
  3559. #ifdef __cplusplus
  3560. extern "C"
  3561. #endif
  3562. /* We use char because int might match the return type of a gcc2
  3563. builtin and then its argument prototype would still apply. */
  3564. char socket ();
  3565. int
  3566. main ()
  3567. {
  3568. socket ();
  3569. ;
  3570. return 0;
  3571. }
  3572. _ACEOF
  3573. rm -f conftest.$ac_objext conftest$ac_exeext
  3574. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3575. (eval $ac_link) 2>conftest.er1
  3576. ac_status=$?
  3577. grep -v '^ *+' conftest.er1 >conftest.err
  3578. rm -f conftest.er1
  3579. cat conftest.err >&5
  3580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3581. (exit $ac_status); } &&
  3582. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3584. (eval $ac_try) 2>&5
  3585. ac_status=$?
  3586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3587. (exit $ac_status); }; } &&
  3588. { ac_try='test -s conftest$ac_exeext'
  3589. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3590. (eval $ac_try) 2>&5
  3591. ac_status=$?
  3592. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3593. (exit $ac_status); }; }; then
  3594. ac_cv_lib_socket_socket=yes
  3595. else
  3596. echo "$as_me: failed program was:" >&5
  3597. sed 's/^/| /' conftest.$ac_ext >&5
  3598. ac_cv_lib_socket_socket=no
  3599. fi
  3600. rm -f conftest.err conftest.$ac_objext \
  3601. conftest$ac_exeext conftest.$ac_ext
  3602. LIBS=$ac_check_lib_save_LIBS
  3603. fi
  3604. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3605. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3606. if test $ac_cv_lib_socket_socket = yes; then
  3607. cat >>confdefs.h <<_ACEOF
  3608. #define HAVE_LIBSOCKET 1
  3609. _ACEOF
  3610. LIBS="-lsocket $LIBS"
  3611. fi
  3612. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  3613. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  3614. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  3615. echo $ECHO_N "(cached) $ECHO_C" >&6
  3616. else
  3617. ac_check_lib_save_LIBS=$LIBS
  3618. LIBS="-lnsl $LIBS"
  3619. cat >conftest.$ac_ext <<_ACEOF
  3620. /* confdefs.h. */
  3621. _ACEOF
  3622. cat confdefs.h >>conftest.$ac_ext
  3623. cat >>conftest.$ac_ext <<_ACEOF
  3624. /* end confdefs.h. */
  3625. /* Override any gcc2 internal prototype to avoid an error. */
  3626. #ifdef __cplusplus
  3627. extern "C"
  3628. #endif
  3629. /* We use char because int might match the return type of a gcc2
  3630. builtin and then its argument prototype would still apply. */
  3631. char connect ();
  3632. int
  3633. main ()
  3634. {
  3635. connect ();
  3636. ;
  3637. return 0;
  3638. }
  3639. _ACEOF
  3640. rm -f conftest.$ac_objext conftest$ac_exeext
  3641. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3642. (eval $ac_link) 2>conftest.er1
  3643. ac_status=$?
  3644. grep -v '^ *+' conftest.er1 >conftest.err
  3645. rm -f conftest.er1
  3646. cat conftest.err >&5
  3647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3648. (exit $ac_status); } &&
  3649. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3651. (eval $ac_try) 2>&5
  3652. ac_status=$?
  3653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3654. (exit $ac_status); }; } &&
  3655. { ac_try='test -s conftest$ac_exeext'
  3656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3657. (eval $ac_try) 2>&5
  3658. ac_status=$?
  3659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3660. (exit $ac_status); }; }; then
  3661. ac_cv_lib_nsl_connect=yes
  3662. else
  3663. echo "$as_me: failed program was:" >&5
  3664. sed 's/^/| /' conftest.$ac_ext >&5
  3665. ac_cv_lib_nsl_connect=no
  3666. fi
  3667. rm -f conftest.err conftest.$ac_objext \
  3668. conftest$ac_exeext conftest.$ac_ext
  3669. LIBS=$ac_check_lib_save_LIBS
  3670. fi
  3671. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  3672. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  3673. if test $ac_cv_lib_nsl_connect = yes; then
  3674. cat >>confdefs.h <<_ACEOF
  3675. #define HAVE_LIBNSL 1
  3676. _ACEOF
  3677. LIBS="-lnsl $LIBS"
  3678. fi
  3679. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3680. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3681. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3682. echo $ECHO_N "(cached) $ECHO_C" >&6
  3683. else
  3684. ac_check_lib_save_LIBS=$LIBS
  3685. LIBS="-ldns $LIBS"
  3686. cat >conftest.$ac_ext <<_ACEOF
  3687. /* confdefs.h. */
  3688. _ACEOF
  3689. cat confdefs.h >>conftest.$ac_ext
  3690. cat >>conftest.$ac_ext <<_ACEOF
  3691. /* end confdefs.h. */
  3692. /* Override any gcc2 internal prototype to avoid an error. */
  3693. #ifdef __cplusplus
  3694. extern "C"
  3695. #endif
  3696. /* We use char because int might match the return type of a gcc2
  3697. builtin and then its argument prototype would still apply. */
  3698. char gethostbyname ();
  3699. int
  3700. main ()
  3701. {
  3702. gethostbyname ();
  3703. ;
  3704. return 0;
  3705. }
  3706. _ACEOF
  3707. rm -f conftest.$ac_objext conftest$ac_exeext
  3708. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3709. (eval $ac_link) 2>conftest.er1
  3710. ac_status=$?
  3711. grep -v '^ *+' conftest.er1 >conftest.err
  3712. rm -f conftest.er1
  3713. cat conftest.err >&5
  3714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3715. (exit $ac_status); } &&
  3716. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3718. (eval $ac_try) 2>&5
  3719. ac_status=$?
  3720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3721. (exit $ac_status); }; } &&
  3722. { ac_try='test -s conftest$ac_exeext'
  3723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3724. (eval $ac_try) 2>&5
  3725. ac_status=$?
  3726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3727. (exit $ac_status); }; }; then
  3728. ac_cv_lib_dns_gethostbyname=yes
  3729. else
  3730. echo "$as_me: failed program was:" >&5
  3731. sed 's/^/| /' conftest.$ac_ext >&5
  3732. ac_cv_lib_dns_gethostbyname=no
  3733. fi
  3734. rm -f conftest.err conftest.$ac_objext \
  3735. conftest$ac_exeext conftest.$ac_ext
  3736. LIBS=$ac_check_lib_save_LIBS
  3737. fi
  3738. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3739. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3740. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3741. cat >>confdefs.h <<_ACEOF
  3742. #define HAVE_LIBDNS 1
  3743. _ACEOF
  3744. LIBS="-ldns $LIBS"
  3745. fi
  3746. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  3747. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  3748. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  3749. echo $ECHO_N "(cached) $ECHO_C" >&6
  3750. else
  3751. ac_check_lib_save_LIBS=$LIBS
  3752. LIBS="-lz $LIBS"
  3753. cat >conftest.$ac_ext <<_ACEOF
  3754. /* confdefs.h. */
  3755. _ACEOF
  3756. cat confdefs.h >>conftest.$ac_ext
  3757. cat >>conftest.$ac_ext <<_ACEOF
  3758. /* end confdefs.h. */
  3759. /* Override any gcc2 internal prototype to avoid an error. */
  3760. #ifdef __cplusplus
  3761. extern "C"
  3762. #endif
  3763. /* We use char because int might match the return type of a gcc2
  3764. builtin and then its argument prototype would still apply. */
  3765. char gzopen ();
  3766. int
  3767. main ()
  3768. {
  3769. gzopen ();
  3770. ;
  3771. return 0;
  3772. }
  3773. _ACEOF
  3774. rm -f conftest.$ac_objext conftest$ac_exeext
  3775. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3776. (eval $ac_link) 2>conftest.er1
  3777. ac_status=$?
  3778. grep -v '^ *+' conftest.er1 >conftest.err
  3779. rm -f conftest.er1
  3780. cat conftest.err >&5
  3781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3782. (exit $ac_status); } &&
  3783. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3785. (eval $ac_try) 2>&5
  3786. ac_status=$?
  3787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3788. (exit $ac_status); }; } &&
  3789. { ac_try='test -s conftest$ac_exeext'
  3790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3791. (eval $ac_try) 2>&5
  3792. ac_status=$?
  3793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3794. (exit $ac_status); }; }; then
  3795. ac_cv_lib_z_gzopen=yes
  3796. else
  3797. echo "$as_me: failed program was:" >&5
  3798. sed 's/^/| /' conftest.$ac_ext >&5
  3799. ac_cv_lib_z_gzopen=no
  3800. fi
  3801. rm -f conftest.err conftest.$ac_objext \
  3802. conftest$ac_exeext conftest.$ac_ext
  3803. LIBS=$ac_check_lib_save_LIBS
  3804. fi
  3805. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  3806. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  3807. if test $ac_cv_lib_z_gzopen = yes; then
  3808. ZLIB="-lz"
  3809. fi
  3810. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  3811. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  3812. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  3813. echo $ECHO_N "(cached) $ECHO_C" >&6
  3814. else
  3815. ac_check_lib_save_LIBS=$LIBS
  3816. LIBS="-lssl -lcrypto $LIBS"
  3817. cat >conftest.$ac_ext <<_ACEOF
  3818. /* confdefs.h. */
  3819. _ACEOF
  3820. cat confdefs.h >>conftest.$ac_ext
  3821. cat >>conftest.$ac_ext <<_ACEOF
  3822. /* end confdefs.h. */
  3823. /* Override any gcc2 internal prototype to avoid an error. */
  3824. #ifdef __cplusplus
  3825. extern "C"
  3826. #endif
  3827. /* We use char because int might match the return type of a gcc2
  3828. builtin and then its argument prototype would still apply. */
  3829. char SSL_accept ();
  3830. int
  3831. main ()
  3832. {
  3833. SSL_accept ();
  3834. ;
  3835. return 0;
  3836. }
  3837. _ACEOF
  3838. rm -f conftest.$ac_objext conftest$ac_exeext
  3839. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3840. (eval $ac_link) 2>conftest.er1
  3841. ac_status=$?
  3842. grep -v '^ *+' conftest.er1 >conftest.err
  3843. rm -f conftest.er1
  3844. cat conftest.err >&5
  3845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3846. (exit $ac_status); } &&
  3847. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3849. (eval $ac_try) 2>&5
  3850. ac_status=$?
  3851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3852. (exit $ac_status); }; } &&
  3853. { ac_try='test -s conftest$ac_exeext'
  3854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3855. (eval $ac_try) 2>&5
  3856. ac_status=$?
  3857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3858. (exit $ac_status); }; }; then
  3859. ac_cv_lib_ssl_SSL_accept=yes
  3860. else
  3861. echo "$as_me: failed program was:" >&5
  3862. sed 's/^/| /' conftest.$ac_ext >&5
  3863. ac_cv_lib_ssl_SSL_accept=no
  3864. fi
  3865. rm -f conftest.err conftest.$ac_objext \
  3866. conftest$ac_exeext conftest.$ac_ext
  3867. LIBS=$ac_check_lib_save_LIBS
  3868. fi
  3869. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  3870. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  3871. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  3872. SSL="-lssl -lcrypto"
  3873. else
  3874. SSL=""
  3875. fi
  3876. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  3877. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  3878. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  3879. echo $ECHO_N "(cached) $ECHO_C" >&6
  3880. else
  3881. ac_check_lib_save_LIBS=$LIBS
  3882. LIBS="-ldl $LIBS"
  3883. cat >conftest.$ac_ext <<_ACEOF
  3884. /* confdefs.h. */
  3885. _ACEOF
  3886. cat confdefs.h >>conftest.$ac_ext
  3887. cat >>conftest.$ac_ext <<_ACEOF
  3888. /* end confdefs.h. */
  3889. /* Override any gcc2 internal prototype to avoid an error. */
  3890. #ifdef __cplusplus
  3891. extern "C"
  3892. #endif
  3893. /* We use char because int might match the return type of a gcc2
  3894. builtin and then its argument prototype would still apply. */
  3895. char dlopen ();
  3896. int
  3897. main ()
  3898. {
  3899. dlopen ();
  3900. ;
  3901. return 0;
  3902. }
  3903. _ACEOF
  3904. rm -f conftest.$ac_objext conftest$ac_exeext
  3905. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3906. (eval $ac_link) 2>conftest.er1
  3907. ac_status=$?
  3908. grep -v '^ *+' conftest.er1 >conftest.err
  3909. rm -f conftest.er1
  3910. cat conftest.err >&5
  3911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3912. (exit $ac_status); } &&
  3913. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3914. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3915. (eval $ac_try) 2>&5
  3916. ac_status=$?
  3917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3918. (exit $ac_status); }; } &&
  3919. { ac_try='test -s conftest$ac_exeext'
  3920. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3921. (eval $ac_try) 2>&5
  3922. ac_status=$?
  3923. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3924. (exit $ac_status); }; }; then
  3925. ac_cv_lib_dl_dlopen=yes
  3926. else
  3927. echo "$as_me: failed program was:" >&5
  3928. sed 's/^/| /' conftest.$ac_ext >&5
  3929. ac_cv_lib_dl_dlopen=no
  3930. fi
  3931. rm -f conftest.err conftest.$ac_objext \
  3932. conftest$ac_exeext conftest.$ac_ext
  3933. LIBS=$ac_check_lib_save_LIBS
  3934. fi
  3935. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  3936. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  3937. if test $ac_cv_lib_dl_dlopen = yes; then
  3938. cat >>confdefs.h <<_ACEOF
  3939. #define HAVE_LIBDL 1
  3940. _ACEOF
  3941. LIBS="-ldl $LIBS"
  3942. fi
  3943. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  3944. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  3945. if test "${ac_cv_lib_m_tan+set}" = set; then
  3946. echo $ECHO_N "(cached) $ECHO_C" >&6
  3947. else
  3948. ac_check_lib_save_LIBS=$LIBS
  3949. LIBS="-lm $LIBS"
  3950. cat >conftest.$ac_ext <<_ACEOF
  3951. /* confdefs.h. */
  3952. _ACEOF
  3953. cat confdefs.h >>conftest.$ac_ext
  3954. cat >>conftest.$ac_ext <<_ACEOF
  3955. /* end confdefs.h. */
  3956. /* Override any gcc2 internal prototype to avoid an error. */
  3957. #ifdef __cplusplus
  3958. extern "C"
  3959. #endif
  3960. /* We use char because int might match the return type of a gcc2
  3961. builtin and then its argument prototype would still apply. */
  3962. char tan ();
  3963. int
  3964. main ()
  3965. {
  3966. tan ();
  3967. ;
  3968. return 0;
  3969. }
  3970. _ACEOF
  3971. rm -f conftest.$ac_objext conftest$ac_exeext
  3972. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3973. (eval $ac_link) 2>conftest.er1
  3974. ac_status=$?
  3975. grep -v '^ *+' conftest.er1 >conftest.err
  3976. rm -f conftest.er1
  3977. cat conftest.err >&5
  3978. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3979. (exit $ac_status); } &&
  3980. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3981. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3982. (eval $ac_try) 2>&5
  3983. ac_status=$?
  3984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3985. (exit $ac_status); }; } &&
  3986. { ac_try='test -s conftest$ac_exeext'
  3987. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3988. (eval $ac_try) 2>&5
  3989. ac_status=$?
  3990. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3991. (exit $ac_status); }; }; then
  3992. ac_cv_lib_m_tan=yes
  3993. else
  3994. echo "$as_me: failed program was:" >&5
  3995. sed 's/^/| /' conftest.$ac_ext >&5
  3996. ac_cv_lib_m_tan=no
  3997. fi
  3998. rm -f conftest.err conftest.$ac_objext \
  3999. conftest$ac_exeext conftest.$ac_ext
  4000. LIBS=$ac_check_lib_save_LIBS
  4001. fi
  4002. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  4003. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  4004. if test $ac_cv_lib_m_tan = yes; then
  4005. EGG_MATH_LIB="-lm"
  4006. fi
  4007. # This is needed for Tcl libraries compiled with thread support
  4008. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  4009. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4010. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  4011. echo $ECHO_N "(cached) $ECHO_C" >&6
  4012. else
  4013. ac_check_lib_save_LIBS=$LIBS
  4014. LIBS="-lpthread $LIBS"
  4015. cat >conftest.$ac_ext <<_ACEOF
  4016. /* confdefs.h. */
  4017. _ACEOF
  4018. cat confdefs.h >>conftest.$ac_ext
  4019. cat >>conftest.$ac_ext <<_ACEOF
  4020. /* end confdefs.h. */
  4021. /* Override any gcc2 internal prototype to avoid an error. */
  4022. #ifdef __cplusplus
  4023. extern "C"
  4024. #endif
  4025. /* We use char because int might match the return type of a gcc2
  4026. builtin and then its argument prototype would still apply. */
  4027. char pthread_mutex_init ();
  4028. int
  4029. main ()
  4030. {
  4031. pthread_mutex_init ();
  4032. ;
  4033. return 0;
  4034. }
  4035. _ACEOF
  4036. rm -f conftest.$ac_objext conftest$ac_exeext
  4037. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4038. (eval $ac_link) 2>conftest.er1
  4039. ac_status=$?
  4040. grep -v '^ *+' conftest.er1 >conftest.err
  4041. rm -f conftest.er1
  4042. cat conftest.err >&5
  4043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4044. (exit $ac_status); } &&
  4045. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4047. (eval $ac_try) 2>&5
  4048. ac_status=$?
  4049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4050. (exit $ac_status); }; } &&
  4051. { ac_try='test -s conftest$ac_exeext'
  4052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4053. (eval $ac_try) 2>&5
  4054. ac_status=$?
  4055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4056. (exit $ac_status); }; }; then
  4057. ac_cv_lib_pthread_pthread_mutex_init=yes
  4058. else
  4059. echo "$as_me: failed program was:" >&5
  4060. sed 's/^/| /' conftest.$ac_ext >&5
  4061. ac_cv_lib_pthread_pthread_mutex_init=no
  4062. fi
  4063. rm -f conftest.err conftest.$ac_objext \
  4064. conftest$ac_exeext conftest.$ac_ext
  4065. LIBS=$ac_check_lib_save_LIBS
  4066. fi
  4067. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  4068. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  4069. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  4070. ac_cv_lib_pthread_pthread_mutex_init=yes
  4071. ac_cv_lib_pthread="-lpthread"
  4072. else
  4073. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  4074. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4075. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  4076. echo $ECHO_N "(cached) $ECHO_C" >&6
  4077. else
  4078. ac_check_lib_save_LIBS=$LIBS
  4079. LIBS="-lpthread $LIBS"
  4080. cat >conftest.$ac_ext <<_ACEOF
  4081. /* confdefs.h. */
  4082. _ACEOF
  4083. cat confdefs.h >>conftest.$ac_ext
  4084. cat >>conftest.$ac_ext <<_ACEOF
  4085. /* end confdefs.h. */
  4086. /* Override any gcc2 internal prototype to avoid an error. */
  4087. #ifdef __cplusplus
  4088. extern "C"
  4089. #endif
  4090. /* We use char because int might match the return type of a gcc2
  4091. builtin and then its argument prototype would still apply. */
  4092. char __pthread_mutex_init ();
  4093. int
  4094. main ()
  4095. {
  4096. __pthread_mutex_init ();
  4097. ;
  4098. return 0;
  4099. }
  4100. _ACEOF
  4101. rm -f conftest.$ac_objext conftest$ac_exeext
  4102. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4103. (eval $ac_link) 2>conftest.er1
  4104. ac_status=$?
  4105. grep -v '^ *+' conftest.er1 >conftest.err
  4106. rm -f conftest.er1
  4107. cat conftest.err >&5
  4108. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4109. (exit $ac_status); } &&
  4110. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4112. (eval $ac_try) 2>&5
  4113. ac_status=$?
  4114. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4115. (exit $ac_status); }; } &&
  4116. { ac_try='test -s conftest$ac_exeext'
  4117. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4118. (eval $ac_try) 2>&5
  4119. ac_status=$?
  4120. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4121. (exit $ac_status); }; }; then
  4122. ac_cv_lib_pthread___pthread_mutex_init=yes
  4123. else
  4124. echo "$as_me: failed program was:" >&5
  4125. sed 's/^/| /' conftest.$ac_ext >&5
  4126. ac_cv_lib_pthread___pthread_mutex_init=no
  4127. fi
  4128. rm -f conftest.err conftest.$ac_objext \
  4129. conftest$ac_exeext conftest.$ac_ext
  4130. LIBS=$ac_check_lib_save_LIBS
  4131. fi
  4132. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  4133. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  4134. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  4135. ac_cv_lib_pthread_pthread_mutex_init=yes
  4136. ac_cv_lib_pthread="-lpthread"
  4137. else
  4138. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  4139. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  4140. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  4141. echo $ECHO_N "(cached) $ECHO_C" >&6
  4142. else
  4143. ac_check_lib_save_LIBS=$LIBS
  4144. LIBS="-lpthreads $LIBS"
  4145. cat >conftest.$ac_ext <<_ACEOF
  4146. /* confdefs.h. */
  4147. _ACEOF
  4148. cat confdefs.h >>conftest.$ac_ext
  4149. cat >>conftest.$ac_ext <<_ACEOF
  4150. /* end confdefs.h. */
  4151. /* Override any gcc2 internal prototype to avoid an error. */
  4152. #ifdef __cplusplus
  4153. extern "C"
  4154. #endif
  4155. /* We use char because int might match the return type of a gcc2
  4156. builtin and then its argument prototype would still apply. */
  4157. char pthread_mutex_init ();
  4158. int
  4159. main ()
  4160. {
  4161. pthread_mutex_init ();
  4162. ;
  4163. return 0;
  4164. }
  4165. _ACEOF
  4166. rm -f conftest.$ac_objext conftest$ac_exeext
  4167. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4168. (eval $ac_link) 2>conftest.er1
  4169. ac_status=$?
  4170. grep -v '^ *+' conftest.er1 >conftest.err
  4171. rm -f conftest.er1
  4172. cat conftest.err >&5
  4173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4174. (exit $ac_status); } &&
  4175. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4177. (eval $ac_try) 2>&5
  4178. ac_status=$?
  4179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4180. (exit $ac_status); }; } &&
  4181. { ac_try='test -s conftest$ac_exeext'
  4182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4183. (eval $ac_try) 2>&5
  4184. ac_status=$?
  4185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4186. (exit $ac_status); }; }; then
  4187. ac_cv_lib_pthreads_pthread_mutex_init=yes
  4188. else
  4189. echo "$as_me: failed program was:" >&5
  4190. sed 's/^/| /' conftest.$ac_ext >&5
  4191. ac_cv_lib_pthreads_pthread_mutex_init=no
  4192. fi
  4193. rm -f conftest.err conftest.$ac_objext \
  4194. conftest$ac_exeext conftest.$ac_ext
  4195. LIBS=$ac_check_lib_save_LIBS
  4196. fi
  4197. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  4198. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  4199. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  4200. ac_cv_lib_pthread_pthread_mutex_init=yes
  4201. ac_cv_lib_pthread="-lpthreads"
  4202. else
  4203. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  4204. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  4205. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  4206. echo $ECHO_N "(cached) $ECHO_C" >&6
  4207. else
  4208. cat >conftest.$ac_ext <<_ACEOF
  4209. /* confdefs.h. */
  4210. _ACEOF
  4211. cat confdefs.h >>conftest.$ac_ext
  4212. cat >>conftest.$ac_ext <<_ACEOF
  4213. /* end confdefs.h. */
  4214. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  4215. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4216. #define pthread_mutex_init innocuous_pthread_mutex_init
  4217. /* System header to define __stub macros and hopefully few prototypes,
  4218. which can conflict with char pthread_mutex_init (); below.
  4219. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4220. <limits.h> exists even on freestanding compilers. */
  4221. #ifdef __STDC__
  4222. # include <limits.h>
  4223. #else
  4224. # include <assert.h>
  4225. #endif
  4226. #undef pthread_mutex_init
  4227. /* Override any gcc2 internal prototype to avoid an error. */
  4228. #ifdef __cplusplus
  4229. extern "C"
  4230. {
  4231. #endif
  4232. /* We use char because int might match the return type of a gcc2
  4233. builtin and then its argument prototype would still apply. */
  4234. char pthread_mutex_init ();
  4235. /* The GNU C library defines this for functions which it implements
  4236. to always fail with ENOSYS. Some functions are actually named
  4237. something starting with __ and the normal name is an alias. */
  4238. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  4239. choke me
  4240. #else
  4241. char (*f) () = pthread_mutex_init;
  4242. #endif
  4243. #ifdef __cplusplus
  4244. }
  4245. #endif
  4246. int
  4247. main ()
  4248. {
  4249. return f != pthread_mutex_init;
  4250. ;
  4251. return 0;
  4252. }
  4253. _ACEOF
  4254. rm -f conftest.$ac_objext conftest$ac_exeext
  4255. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4256. (eval $ac_link) 2>conftest.er1
  4257. ac_status=$?
  4258. grep -v '^ *+' conftest.er1 >conftest.err
  4259. rm -f conftest.er1
  4260. cat conftest.err >&5
  4261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4262. (exit $ac_status); } &&
  4263. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4264. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4265. (eval $ac_try) 2>&5
  4266. ac_status=$?
  4267. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4268. (exit $ac_status); }; } &&
  4269. { ac_try='test -s conftest$ac_exeext'
  4270. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4271. (eval $ac_try) 2>&5
  4272. ac_status=$?
  4273. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4274. (exit $ac_status); }; }; then
  4275. ac_cv_func_pthread_mutex_init=yes
  4276. else
  4277. echo "$as_me: failed program was:" >&5
  4278. sed 's/^/| /' conftest.$ac_ext >&5
  4279. ac_cv_func_pthread_mutex_init=no
  4280. fi
  4281. rm -f conftest.err conftest.$ac_objext \
  4282. conftest$ac_exeext conftest.$ac_ext
  4283. fi
  4284. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  4285. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  4286. if test $ac_cv_func_pthread_mutex_init = yes; then
  4287. ac_cv_lib_pthread_pthread_mutex_init=yes
  4288. ac_cv_lib_pthread=""
  4289. else
  4290. ac_cv_lib_pthread_pthread_mutex_init=no
  4291. fi
  4292. fi
  4293. fi
  4294. fi
  4295. if test "$SUNOS" = "yes"
  4296. then
  4297. # For suns without yp or something like that
  4298. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4299. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  4300. if test "${ac_cv_lib_dl_main+set}" = set; then
  4301. echo $ECHO_N "(cached) $ECHO_C" >&6
  4302. else
  4303. ac_check_lib_save_LIBS=$LIBS
  4304. LIBS="-ldl $LIBS"
  4305. cat >conftest.$ac_ext <<_ACEOF
  4306. /* confdefs.h. */
  4307. _ACEOF
  4308. cat confdefs.h >>conftest.$ac_ext
  4309. cat >>conftest.$ac_ext <<_ACEOF
  4310. /* end confdefs.h. */
  4311. int
  4312. main ()
  4313. {
  4314. main ();
  4315. ;
  4316. return 0;
  4317. }
  4318. _ACEOF
  4319. rm -f conftest.$ac_objext conftest$ac_exeext
  4320. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4321. (eval $ac_link) 2>conftest.er1
  4322. ac_status=$?
  4323. grep -v '^ *+' conftest.er1 >conftest.err
  4324. rm -f conftest.er1
  4325. cat conftest.err >&5
  4326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4327. (exit $ac_status); } &&
  4328. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4329. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4330. (eval $ac_try) 2>&5
  4331. ac_status=$?
  4332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4333. (exit $ac_status); }; } &&
  4334. { ac_try='test -s conftest$ac_exeext'
  4335. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4336. (eval $ac_try) 2>&5
  4337. ac_status=$?
  4338. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4339. (exit $ac_status); }; }; then
  4340. ac_cv_lib_dl_main=yes
  4341. else
  4342. echo "$as_me: failed program was:" >&5
  4343. sed 's/^/| /' conftest.$ac_ext >&5
  4344. ac_cv_lib_dl_main=no
  4345. fi
  4346. rm -f conftest.err conftest.$ac_objext \
  4347. conftest$ac_exeext conftest.$ac_ext
  4348. LIBS=$ac_check_lib_save_LIBS
  4349. fi
  4350. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4351. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  4352. if test $ac_cv_lib_dl_main = yes; then
  4353. cat >>confdefs.h <<_ACEOF
  4354. #define HAVE_LIBDL 1
  4355. _ACEOF
  4356. LIBS="-ldl $LIBS"
  4357. fi
  4358. else
  4359. if test "$HPUX" = "yes"
  4360. then
  4361. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  4362. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  4363. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  4364. echo $ECHO_N "(cached) $ECHO_C" >&6
  4365. else
  4366. ac_check_lib_save_LIBS=$LIBS
  4367. LIBS="-ldld $LIBS"
  4368. cat >conftest.$ac_ext <<_ACEOF
  4369. /* confdefs.h. */
  4370. _ACEOF
  4371. cat confdefs.h >>conftest.$ac_ext
  4372. cat >>conftest.$ac_ext <<_ACEOF
  4373. /* end confdefs.h. */
  4374. /* Override any gcc2 internal prototype to avoid an error. */
  4375. #ifdef __cplusplus
  4376. extern "C"
  4377. #endif
  4378. /* We use char because int might match the return type of a gcc2
  4379. builtin and then its argument prototype would still apply. */
  4380. char shl_load ();
  4381. int
  4382. main ()
  4383. {
  4384. shl_load ();
  4385. ;
  4386. return 0;
  4387. }
  4388. _ACEOF
  4389. rm -f conftest.$ac_objext conftest$ac_exeext
  4390. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4391. (eval $ac_link) 2>conftest.er1
  4392. ac_status=$?
  4393. grep -v '^ *+' conftest.er1 >conftest.err
  4394. rm -f conftest.er1
  4395. cat conftest.err >&5
  4396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4397. (exit $ac_status); } &&
  4398. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4399. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4400. (eval $ac_try) 2>&5
  4401. ac_status=$?
  4402. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4403. (exit $ac_status); }; } &&
  4404. { ac_try='test -s conftest$ac_exeext'
  4405. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4406. (eval $ac_try) 2>&5
  4407. ac_status=$?
  4408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4409. (exit $ac_status); }; }; then
  4410. ac_cv_lib_dld_shl_load=yes
  4411. else
  4412. echo "$as_me: failed program was:" >&5
  4413. sed 's/^/| /' conftest.$ac_ext >&5
  4414. ac_cv_lib_dld_shl_load=no
  4415. fi
  4416. rm -f conftest.err conftest.$ac_objext \
  4417. conftest$ac_exeext conftest.$ac_ext
  4418. LIBS=$ac_check_lib_save_LIBS
  4419. fi
  4420. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  4421. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  4422. if test $ac_cv_lib_dld_shl_load = yes; then
  4423. cat >>confdefs.h <<_ACEOF
  4424. #define HAVE_LIBDLD 1
  4425. _ACEOF
  4426. LIBS="-ldld $LIBS"
  4427. fi
  4428. fi
  4429. fi
  4430. fi
  4431. # Checks for header files
  4432. ac_header_dirent=no
  4433. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4434. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4435. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4436. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4437. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4438. echo $ECHO_N "(cached) $ECHO_C" >&6
  4439. else
  4440. cat >conftest.$ac_ext <<_ACEOF
  4441. /* confdefs.h. */
  4442. _ACEOF
  4443. cat confdefs.h >>conftest.$ac_ext
  4444. cat >>conftest.$ac_ext <<_ACEOF
  4445. /* end confdefs.h. */
  4446. #include <sys/types.h>
  4447. #include <$ac_hdr>
  4448. int
  4449. main ()
  4450. {
  4451. if ((DIR *) 0)
  4452. return 0;
  4453. ;
  4454. return 0;
  4455. }
  4456. _ACEOF
  4457. rm -f conftest.$ac_objext
  4458. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4459. (eval $ac_compile) 2>conftest.er1
  4460. ac_status=$?
  4461. grep -v '^ *+' conftest.er1 >conftest.err
  4462. rm -f conftest.er1
  4463. cat conftest.err >&5
  4464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4465. (exit $ac_status); } &&
  4466. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4467. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4468. (eval $ac_try) 2>&5
  4469. ac_status=$?
  4470. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4471. (exit $ac_status); }; } &&
  4472. { ac_try='test -s conftest.$ac_objext'
  4473. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4474. (eval $ac_try) 2>&5
  4475. ac_status=$?
  4476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4477. (exit $ac_status); }; }; then
  4478. eval "$as_ac_Header=yes"
  4479. else
  4480. echo "$as_me: failed program was:" >&5
  4481. sed 's/^/| /' conftest.$ac_ext >&5
  4482. eval "$as_ac_Header=no"
  4483. fi
  4484. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4485. fi
  4486. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4487. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4488. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4489. cat >>confdefs.h <<_ACEOF
  4490. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4491. _ACEOF
  4492. ac_header_dirent=$ac_hdr; break
  4493. fi
  4494. done
  4495. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4496. if test $ac_header_dirent = dirent.h; then
  4497. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4498. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4499. if test "${ac_cv_search_opendir+set}" = set; then
  4500. echo $ECHO_N "(cached) $ECHO_C" >&6
  4501. else
  4502. ac_func_search_save_LIBS=$LIBS
  4503. ac_cv_search_opendir=no
  4504. cat >conftest.$ac_ext <<_ACEOF
  4505. /* confdefs.h. */
  4506. _ACEOF
  4507. cat confdefs.h >>conftest.$ac_ext
  4508. cat >>conftest.$ac_ext <<_ACEOF
  4509. /* end confdefs.h. */
  4510. /* Override any gcc2 internal prototype to avoid an error. */
  4511. #ifdef __cplusplus
  4512. extern "C"
  4513. #endif
  4514. /* We use char because int might match the return type of a gcc2
  4515. builtin and then its argument prototype would still apply. */
  4516. char opendir ();
  4517. int
  4518. main ()
  4519. {
  4520. opendir ();
  4521. ;
  4522. return 0;
  4523. }
  4524. _ACEOF
  4525. rm -f conftest.$ac_objext conftest$ac_exeext
  4526. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4527. (eval $ac_link) 2>conftest.er1
  4528. ac_status=$?
  4529. grep -v '^ *+' conftest.er1 >conftest.err
  4530. rm -f conftest.er1
  4531. cat conftest.err >&5
  4532. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4533. (exit $ac_status); } &&
  4534. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4535. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4536. (eval $ac_try) 2>&5
  4537. ac_status=$?
  4538. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4539. (exit $ac_status); }; } &&
  4540. { ac_try='test -s conftest$ac_exeext'
  4541. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4542. (eval $ac_try) 2>&5
  4543. ac_status=$?
  4544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4545. (exit $ac_status); }; }; then
  4546. ac_cv_search_opendir="none required"
  4547. else
  4548. echo "$as_me: failed program was:" >&5
  4549. sed 's/^/| /' conftest.$ac_ext >&5
  4550. fi
  4551. rm -f conftest.err conftest.$ac_objext \
  4552. conftest$ac_exeext conftest.$ac_ext
  4553. if test "$ac_cv_search_opendir" = no; then
  4554. for ac_lib in dir; do
  4555. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4556. cat >conftest.$ac_ext <<_ACEOF
  4557. /* confdefs.h. */
  4558. _ACEOF
  4559. cat confdefs.h >>conftest.$ac_ext
  4560. cat >>conftest.$ac_ext <<_ACEOF
  4561. /* end confdefs.h. */
  4562. /* Override any gcc2 internal prototype to avoid an error. */
  4563. #ifdef __cplusplus
  4564. extern "C"
  4565. #endif
  4566. /* We use char because int might match the return type of a gcc2
  4567. builtin and then its argument prototype would still apply. */
  4568. char opendir ();
  4569. int
  4570. main ()
  4571. {
  4572. opendir ();
  4573. ;
  4574. return 0;
  4575. }
  4576. _ACEOF
  4577. rm -f conftest.$ac_objext conftest$ac_exeext
  4578. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4579. (eval $ac_link) 2>conftest.er1
  4580. ac_status=$?
  4581. grep -v '^ *+' conftest.er1 >conftest.err
  4582. rm -f conftest.er1
  4583. cat conftest.err >&5
  4584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4585. (exit $ac_status); } &&
  4586. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4588. (eval $ac_try) 2>&5
  4589. ac_status=$?
  4590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4591. (exit $ac_status); }; } &&
  4592. { ac_try='test -s conftest$ac_exeext'
  4593. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4594. (eval $ac_try) 2>&5
  4595. ac_status=$?
  4596. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4597. (exit $ac_status); }; }; then
  4598. ac_cv_search_opendir="-l$ac_lib"
  4599. break
  4600. else
  4601. echo "$as_me: failed program was:" >&5
  4602. sed 's/^/| /' conftest.$ac_ext >&5
  4603. fi
  4604. rm -f conftest.err conftest.$ac_objext \
  4605. conftest$ac_exeext conftest.$ac_ext
  4606. done
  4607. fi
  4608. LIBS=$ac_func_search_save_LIBS
  4609. fi
  4610. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4611. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4612. if test "$ac_cv_search_opendir" != no; then
  4613. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4614. fi
  4615. else
  4616. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4617. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4618. if test "${ac_cv_search_opendir+set}" = set; then
  4619. echo $ECHO_N "(cached) $ECHO_C" >&6
  4620. else
  4621. ac_func_search_save_LIBS=$LIBS
  4622. ac_cv_search_opendir=no
  4623. cat >conftest.$ac_ext <<_ACEOF
  4624. /* confdefs.h. */
  4625. _ACEOF
  4626. cat confdefs.h >>conftest.$ac_ext
  4627. cat >>conftest.$ac_ext <<_ACEOF
  4628. /* end confdefs.h. */
  4629. /* Override any gcc2 internal prototype to avoid an error. */
  4630. #ifdef __cplusplus
  4631. extern "C"
  4632. #endif
  4633. /* We use char because int might match the return type of a gcc2
  4634. builtin and then its argument prototype would still apply. */
  4635. char opendir ();
  4636. int
  4637. main ()
  4638. {
  4639. opendir ();
  4640. ;
  4641. return 0;
  4642. }
  4643. _ACEOF
  4644. rm -f conftest.$ac_objext conftest$ac_exeext
  4645. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4646. (eval $ac_link) 2>conftest.er1
  4647. ac_status=$?
  4648. grep -v '^ *+' conftest.er1 >conftest.err
  4649. rm -f conftest.er1
  4650. cat conftest.err >&5
  4651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4652. (exit $ac_status); } &&
  4653. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4654. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4655. (eval $ac_try) 2>&5
  4656. ac_status=$?
  4657. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4658. (exit $ac_status); }; } &&
  4659. { ac_try='test -s conftest$ac_exeext'
  4660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4661. (eval $ac_try) 2>&5
  4662. ac_status=$?
  4663. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4664. (exit $ac_status); }; }; then
  4665. ac_cv_search_opendir="none required"
  4666. else
  4667. echo "$as_me: failed program was:" >&5
  4668. sed 's/^/| /' conftest.$ac_ext >&5
  4669. fi
  4670. rm -f conftest.err conftest.$ac_objext \
  4671. conftest$ac_exeext conftest.$ac_ext
  4672. if test "$ac_cv_search_opendir" = no; then
  4673. for ac_lib in x; do
  4674. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4675. cat >conftest.$ac_ext <<_ACEOF
  4676. /* confdefs.h. */
  4677. _ACEOF
  4678. cat confdefs.h >>conftest.$ac_ext
  4679. cat >>conftest.$ac_ext <<_ACEOF
  4680. /* end confdefs.h. */
  4681. /* Override any gcc2 internal prototype to avoid an error. */
  4682. #ifdef __cplusplus
  4683. extern "C"
  4684. #endif
  4685. /* We use char because int might match the return type of a gcc2
  4686. builtin and then its argument prototype would still apply. */
  4687. char opendir ();
  4688. int
  4689. main ()
  4690. {
  4691. opendir ();
  4692. ;
  4693. return 0;
  4694. }
  4695. _ACEOF
  4696. rm -f conftest.$ac_objext conftest$ac_exeext
  4697. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4698. (eval $ac_link) 2>conftest.er1
  4699. ac_status=$?
  4700. grep -v '^ *+' conftest.er1 >conftest.err
  4701. rm -f conftest.er1
  4702. cat conftest.err >&5
  4703. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4704. (exit $ac_status); } &&
  4705. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4706. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4707. (eval $ac_try) 2>&5
  4708. ac_status=$?
  4709. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4710. (exit $ac_status); }; } &&
  4711. { ac_try='test -s conftest$ac_exeext'
  4712. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4713. (eval $ac_try) 2>&5
  4714. ac_status=$?
  4715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4716. (exit $ac_status); }; }; then
  4717. ac_cv_search_opendir="-l$ac_lib"
  4718. break
  4719. else
  4720. echo "$as_me: failed program was:" >&5
  4721. sed 's/^/| /' conftest.$ac_ext >&5
  4722. fi
  4723. rm -f conftest.err conftest.$ac_objext \
  4724. conftest$ac_exeext conftest.$ac_ext
  4725. done
  4726. fi
  4727. LIBS=$ac_func_search_save_LIBS
  4728. fi
  4729. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4730. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4731. if test "$ac_cv_search_opendir" != no; then
  4732. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4733. fi
  4734. fi
  4735. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4736. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4737. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4738. echo $ECHO_N "(cached) $ECHO_C" >&6
  4739. else
  4740. cat >conftest.$ac_ext <<_ACEOF
  4741. /* confdefs.h. */
  4742. _ACEOF
  4743. cat confdefs.h >>conftest.$ac_ext
  4744. cat >>conftest.$ac_ext <<_ACEOF
  4745. /* end confdefs.h. */
  4746. #include <sys/types.h>
  4747. #include <sys/wait.h>
  4748. #ifndef WEXITSTATUS
  4749. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4750. #endif
  4751. #ifndef WIFEXITED
  4752. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4753. #endif
  4754. int
  4755. main ()
  4756. {
  4757. int s;
  4758. wait (&s);
  4759. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4760. ;
  4761. return 0;
  4762. }
  4763. _ACEOF
  4764. rm -f conftest.$ac_objext
  4765. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4766. (eval $ac_compile) 2>conftest.er1
  4767. ac_status=$?
  4768. grep -v '^ *+' conftest.er1 >conftest.err
  4769. rm -f conftest.er1
  4770. cat conftest.err >&5
  4771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4772. (exit $ac_status); } &&
  4773. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4774. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4775. (eval $ac_try) 2>&5
  4776. ac_status=$?
  4777. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4778. (exit $ac_status); }; } &&
  4779. { ac_try='test -s conftest.$ac_objext'
  4780. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4781. (eval $ac_try) 2>&5
  4782. ac_status=$?
  4783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4784. (exit $ac_status); }; }; then
  4785. ac_cv_header_sys_wait_h=yes
  4786. else
  4787. echo "$as_me: failed program was:" >&5
  4788. sed 's/^/| /' conftest.$ac_ext >&5
  4789. ac_cv_header_sys_wait_h=no
  4790. fi
  4791. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4792. fi
  4793. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4794. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4795. if test $ac_cv_header_sys_wait_h = yes; then
  4796. cat >>confdefs.h <<\_ACEOF
  4797. #define HAVE_SYS_WAIT_H 1
  4798. _ACEOF
  4799. fi
  4800. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4801. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4802. if test "${ac_cv_header_time+set}" = set; then
  4803. echo $ECHO_N "(cached) $ECHO_C" >&6
  4804. else
  4805. cat >conftest.$ac_ext <<_ACEOF
  4806. /* confdefs.h. */
  4807. _ACEOF
  4808. cat confdefs.h >>conftest.$ac_ext
  4809. cat >>conftest.$ac_ext <<_ACEOF
  4810. /* end confdefs.h. */
  4811. #include <sys/types.h>
  4812. #include <sys/time.h>
  4813. #include <time.h>
  4814. int
  4815. main ()
  4816. {
  4817. if ((struct tm *) 0)
  4818. return 0;
  4819. ;
  4820. return 0;
  4821. }
  4822. _ACEOF
  4823. rm -f conftest.$ac_objext
  4824. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4825. (eval $ac_compile) 2>conftest.er1
  4826. ac_status=$?
  4827. grep -v '^ *+' conftest.er1 >conftest.err
  4828. rm -f conftest.er1
  4829. cat conftest.err >&5
  4830. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4831. (exit $ac_status); } &&
  4832. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4833. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4834. (eval $ac_try) 2>&5
  4835. ac_status=$?
  4836. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4837. (exit $ac_status); }; } &&
  4838. { ac_try='test -s conftest.$ac_objext'
  4839. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4840. (eval $ac_try) 2>&5
  4841. ac_status=$?
  4842. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4843. (exit $ac_status); }; }; then
  4844. ac_cv_header_time=yes
  4845. else
  4846. echo "$as_me: failed program was:" >&5
  4847. sed 's/^/| /' conftest.$ac_ext >&5
  4848. ac_cv_header_time=no
  4849. fi
  4850. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4851. fi
  4852. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4853. echo "${ECHO_T}$ac_cv_header_time" >&6
  4854. if test $ac_cv_header_time = yes; then
  4855. cat >>confdefs.h <<\_ACEOF
  4856. #define TIME_WITH_SYS_TIME 1
  4857. _ACEOF
  4858. fi
  4859. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4860. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4861. if test "${ac_cv_header_stat_broken+set}" = set; then
  4862. echo $ECHO_N "(cached) $ECHO_C" >&6
  4863. else
  4864. cat >conftest.$ac_ext <<_ACEOF
  4865. /* confdefs.h. */
  4866. _ACEOF
  4867. cat confdefs.h >>conftest.$ac_ext
  4868. cat >>conftest.$ac_ext <<_ACEOF
  4869. /* end confdefs.h. */
  4870. #include <sys/types.h>
  4871. #include <sys/stat.h>
  4872. #if defined(S_ISBLK) && defined(S_IFDIR)
  4873. # if S_ISBLK (S_IFDIR)
  4874. You lose.
  4875. # endif
  4876. #endif
  4877. #if defined(S_ISBLK) && defined(S_IFCHR)
  4878. # if S_ISBLK (S_IFCHR)
  4879. You lose.
  4880. # endif
  4881. #endif
  4882. #if defined(S_ISLNK) && defined(S_IFREG)
  4883. # if S_ISLNK (S_IFREG)
  4884. You lose.
  4885. # endif
  4886. #endif
  4887. #if defined(S_ISSOCK) && defined(S_IFREG)
  4888. # if S_ISSOCK (S_IFREG)
  4889. You lose.
  4890. # endif
  4891. #endif
  4892. _ACEOF
  4893. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4894. $EGREP "You lose" >/dev/null 2>&1; then
  4895. ac_cv_header_stat_broken=yes
  4896. else
  4897. ac_cv_header_stat_broken=no
  4898. fi
  4899. rm -f conftest*
  4900. fi
  4901. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4902. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4903. if test $ac_cv_header_stat_broken = yes; then
  4904. cat >>confdefs.h <<\_ACEOF
  4905. #define STAT_MACROS_BROKEN 1
  4906. _ACEOF
  4907. fi
  4908. #checkpoint
  4909. cat >confcache <<\_ACEOF
  4910. # This file is a shell script that caches the results of configure
  4911. # tests run on this system so they can be shared between configure
  4912. # scripts and configure runs, see configure's option --config-cache.
  4913. # It is not useful on other systems. If it contains results you don't
  4914. # want to keep, you may remove or edit it.
  4915. #
  4916. # config.status only pays attention to the cache file if you give it
  4917. # the --recheck option to rerun configure.
  4918. #
  4919. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4920. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4921. # following values.
  4922. _ACEOF
  4923. # The following way of writing the cache mishandles newlines in values,
  4924. # but we know of no workaround that is simple, portable, and efficient.
  4925. # So, don't put newlines in cache variables' values.
  4926. # Ultrix sh set writes to stderr and can't be redirected directly,
  4927. # and sets the high bit in the cache file unless we assign to the vars.
  4928. {
  4929. (set) 2>&1 |
  4930. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4931. *ac_space=\ *)
  4932. # `set' does not quote correctly, so add quotes (double-quote
  4933. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4934. sed -n \
  4935. "s/'/'\\\\''/g;
  4936. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4937. ;;
  4938. *)
  4939. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4940. sed -n \
  4941. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4942. ;;
  4943. esac;
  4944. } |
  4945. sed '
  4946. t clear
  4947. : clear
  4948. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4949. t end
  4950. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4951. : end' >>confcache
  4952. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4953. if test -w $cache_file; then
  4954. test "x$cache_file" != "x/dev/null"
  4955. cat confcache >$cache_file
  4956. else
  4957. echo "not updating unwritable cache $cache_file"
  4958. fi
  4959. fi
  4960. rm -f confcache
  4961. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4962. do
  4963. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4964. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4965. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4966. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4967. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4968. echo $ECHO_N "(cached) $ECHO_C" >&6
  4969. fi
  4970. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4971. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4972. else
  4973. # Is the header compilable?
  4974. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4975. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4976. cat >conftest.$ac_ext <<_ACEOF
  4977. /* confdefs.h. */
  4978. _ACEOF
  4979. cat confdefs.h >>conftest.$ac_ext
  4980. cat >>conftest.$ac_ext <<_ACEOF
  4981. /* end confdefs.h. */
  4982. $ac_includes_default
  4983. #include <$ac_header>
  4984. _ACEOF
  4985. rm -f conftest.$ac_objext
  4986. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4987. (eval $ac_compile) 2>conftest.er1
  4988. ac_status=$?
  4989. grep -v '^ *+' conftest.er1 >conftest.err
  4990. rm -f conftest.er1
  4991. cat conftest.err >&5
  4992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4993. (exit $ac_status); } &&
  4994. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4995. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4996. (eval $ac_try) 2>&5
  4997. ac_status=$?
  4998. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4999. (exit $ac_status); }; } &&
  5000. { ac_try='test -s conftest.$ac_objext'
  5001. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5002. (eval $ac_try) 2>&5
  5003. ac_status=$?
  5004. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5005. (exit $ac_status); }; }; then
  5006. ac_header_compiler=yes
  5007. else
  5008. echo "$as_me: failed program was:" >&5
  5009. sed 's/^/| /' conftest.$ac_ext >&5
  5010. ac_header_compiler=no
  5011. fi
  5012. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5013. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5014. echo "${ECHO_T}$ac_header_compiler" >&6
  5015. # Is the header present?
  5016. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5017. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5018. cat >conftest.$ac_ext <<_ACEOF
  5019. /* confdefs.h. */
  5020. _ACEOF
  5021. cat confdefs.h >>conftest.$ac_ext
  5022. cat >>conftest.$ac_ext <<_ACEOF
  5023. /* end confdefs.h. */
  5024. #include <$ac_header>
  5025. _ACEOF
  5026. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5027. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5028. ac_status=$?
  5029. grep -v '^ *+' conftest.er1 >conftest.err
  5030. rm -f conftest.er1
  5031. cat conftest.err >&5
  5032. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5033. (exit $ac_status); } >/dev/null; then
  5034. if test -s conftest.err; then
  5035. ac_cpp_err=$ac_c_preproc_warn_flag
  5036. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5037. else
  5038. ac_cpp_err=
  5039. fi
  5040. else
  5041. ac_cpp_err=yes
  5042. fi
  5043. if test -z "$ac_cpp_err"; then
  5044. ac_header_preproc=yes
  5045. else
  5046. echo "$as_me: failed program was:" >&5
  5047. sed 's/^/| /' conftest.$ac_ext >&5
  5048. ac_header_preproc=no
  5049. fi
  5050. rm -f conftest.err conftest.$ac_ext
  5051. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5052. echo "${ECHO_T}$ac_header_preproc" >&6
  5053. # So? What about this header?
  5054. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5055. yes:no: )
  5056. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5057. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5058. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5059. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5060. ac_header_preproc=yes
  5061. ;;
  5062. no:yes:* )
  5063. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5064. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5065. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5066. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5067. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5068. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5069. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5070. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5071. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5072. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5073. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5074. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5075. (
  5076. cat <<\_ASBOX
  5077. ## ------------------------------------------ ##
  5078. ## Report this to the AC_PACKAGE_NAME lists. ##
  5079. ## ------------------------------------------ ##
  5080. _ASBOX
  5081. ) |
  5082. sed "s/^/$as_me: WARNING: /" >&2
  5083. ;;
  5084. esac
  5085. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5086. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5087. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5088. echo $ECHO_N "(cached) $ECHO_C" >&6
  5089. else
  5090. eval "$as_ac_Header=\$ac_header_preproc"
  5091. fi
  5092. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5093. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5094. fi
  5095. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5096. cat >>confdefs.h <<_ACEOF
  5097. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5098. _ACEOF
  5099. fi
  5100. done
  5101. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5102. do
  5103. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5104. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5105. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5106. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5107. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5108. echo $ECHO_N "(cached) $ECHO_C" >&6
  5109. fi
  5110. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5111. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5112. else
  5113. # Is the header compilable?
  5114. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5115. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5116. cat >conftest.$ac_ext <<_ACEOF
  5117. /* confdefs.h. */
  5118. _ACEOF
  5119. cat confdefs.h >>conftest.$ac_ext
  5120. cat >>conftest.$ac_ext <<_ACEOF
  5121. /* end confdefs.h. */
  5122. $ac_includes_default
  5123. #include <$ac_header>
  5124. _ACEOF
  5125. rm -f conftest.$ac_objext
  5126. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5127. (eval $ac_compile) 2>conftest.er1
  5128. ac_status=$?
  5129. grep -v '^ *+' conftest.er1 >conftest.err
  5130. rm -f conftest.er1
  5131. cat conftest.err >&5
  5132. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5133. (exit $ac_status); } &&
  5134. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5135. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5136. (eval $ac_try) 2>&5
  5137. ac_status=$?
  5138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5139. (exit $ac_status); }; } &&
  5140. { ac_try='test -s conftest.$ac_objext'
  5141. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5142. (eval $ac_try) 2>&5
  5143. ac_status=$?
  5144. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5145. (exit $ac_status); }; }; then
  5146. ac_header_compiler=yes
  5147. else
  5148. echo "$as_me: failed program was:" >&5
  5149. sed 's/^/| /' conftest.$ac_ext >&5
  5150. ac_header_compiler=no
  5151. fi
  5152. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5153. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5154. echo "${ECHO_T}$ac_header_compiler" >&6
  5155. # Is the header present?
  5156. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5157. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5158. cat >conftest.$ac_ext <<_ACEOF
  5159. /* confdefs.h. */
  5160. _ACEOF
  5161. cat confdefs.h >>conftest.$ac_ext
  5162. cat >>conftest.$ac_ext <<_ACEOF
  5163. /* end confdefs.h. */
  5164. #include <$ac_header>
  5165. _ACEOF
  5166. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5167. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5168. ac_status=$?
  5169. grep -v '^ *+' conftest.er1 >conftest.err
  5170. rm -f conftest.er1
  5171. cat conftest.err >&5
  5172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5173. (exit $ac_status); } >/dev/null; then
  5174. if test -s conftest.err; then
  5175. ac_cpp_err=$ac_c_preproc_warn_flag
  5176. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5177. else
  5178. ac_cpp_err=
  5179. fi
  5180. else
  5181. ac_cpp_err=yes
  5182. fi
  5183. if test -z "$ac_cpp_err"; then
  5184. ac_header_preproc=yes
  5185. else
  5186. echo "$as_me: failed program was:" >&5
  5187. sed 's/^/| /' conftest.$ac_ext >&5
  5188. ac_header_preproc=no
  5189. fi
  5190. rm -f conftest.err conftest.$ac_ext
  5191. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5192. echo "${ECHO_T}$ac_header_preproc" >&6
  5193. # So? What about this header?
  5194. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5195. yes:no: )
  5196. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5197. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5198. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5199. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5200. ac_header_preproc=yes
  5201. ;;
  5202. no:yes:* )
  5203. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5204. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5205. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5206. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5207. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5208. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5209. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5210. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5211. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5212. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5213. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5214. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5215. (
  5216. cat <<\_ASBOX
  5217. ## ------------------------------------------ ##
  5218. ## Report this to the AC_PACKAGE_NAME lists. ##
  5219. ## ------------------------------------------ ##
  5220. _ASBOX
  5221. ) |
  5222. sed "s/^/$as_me: WARNING: /" >&2
  5223. ;;
  5224. esac
  5225. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5226. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5227. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5228. echo $ECHO_N "(cached) $ECHO_C" >&6
  5229. else
  5230. eval "$as_ac_Header=\$ac_header_preproc"
  5231. fi
  5232. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5233. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5234. fi
  5235. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5236. cat >>confdefs.h <<_ACEOF
  5237. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5238. _ACEOF
  5239. fi
  5240. done
  5241. #checkpoint
  5242. cat >confcache <<\_ACEOF
  5243. # This file is a shell script that caches the results of configure
  5244. # tests run on this system so they can be shared between configure
  5245. # scripts and configure runs, see configure's option --config-cache.
  5246. # It is not useful on other systems. If it contains results you don't
  5247. # want to keep, you may remove or edit it.
  5248. #
  5249. # config.status only pays attention to the cache file if you give it
  5250. # the --recheck option to rerun configure.
  5251. #
  5252. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5253. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5254. # following values.
  5255. _ACEOF
  5256. # The following way of writing the cache mishandles newlines in values,
  5257. # but we know of no workaround that is simple, portable, and efficient.
  5258. # So, don't put newlines in cache variables' values.
  5259. # Ultrix sh set writes to stderr and can't be redirected directly,
  5260. # and sets the high bit in the cache file unless we assign to the vars.
  5261. {
  5262. (set) 2>&1 |
  5263. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5264. *ac_space=\ *)
  5265. # `set' does not quote correctly, so add quotes (double-quote
  5266. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5267. sed -n \
  5268. "s/'/'\\\\''/g;
  5269. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5270. ;;
  5271. *)
  5272. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5273. sed -n \
  5274. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5275. ;;
  5276. esac;
  5277. } |
  5278. sed '
  5279. t clear
  5280. : clear
  5281. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5282. t end
  5283. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5284. : end' >>confcache
  5285. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5286. if test -w $cache_file; then
  5287. test "x$cache_file" != "x/dev/null"
  5288. cat confcache >$cache_file
  5289. else
  5290. echo "not updating unwritable cache $cache_file"
  5291. fi
  5292. fi
  5293. rm -f confcache
  5294. for ac_header in openssl/ssl.h openssl/crypto.h
  5295. do
  5296. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5297. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5298. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5299. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5300. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5301. echo $ECHO_N "(cached) $ECHO_C" >&6
  5302. fi
  5303. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5304. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5305. else
  5306. # Is the header compilable?
  5307. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5308. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5309. cat >conftest.$ac_ext <<_ACEOF
  5310. /* confdefs.h. */
  5311. _ACEOF
  5312. cat confdefs.h >>conftest.$ac_ext
  5313. cat >>conftest.$ac_ext <<_ACEOF
  5314. /* end confdefs.h. */
  5315. $ac_includes_default
  5316. #include <$ac_header>
  5317. _ACEOF
  5318. rm -f conftest.$ac_objext
  5319. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5320. (eval $ac_compile) 2>conftest.er1
  5321. ac_status=$?
  5322. grep -v '^ *+' conftest.er1 >conftest.err
  5323. rm -f conftest.er1
  5324. cat conftest.err >&5
  5325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5326. (exit $ac_status); } &&
  5327. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5329. (eval $ac_try) 2>&5
  5330. ac_status=$?
  5331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5332. (exit $ac_status); }; } &&
  5333. { ac_try='test -s conftest.$ac_objext'
  5334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5335. (eval $ac_try) 2>&5
  5336. ac_status=$?
  5337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5338. (exit $ac_status); }; }; then
  5339. ac_header_compiler=yes
  5340. else
  5341. echo "$as_me: failed program was:" >&5
  5342. sed 's/^/| /' conftest.$ac_ext >&5
  5343. ac_header_compiler=no
  5344. fi
  5345. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5346. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5347. echo "${ECHO_T}$ac_header_compiler" >&6
  5348. # Is the header present?
  5349. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5350. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5351. cat >conftest.$ac_ext <<_ACEOF
  5352. /* confdefs.h. */
  5353. _ACEOF
  5354. cat confdefs.h >>conftest.$ac_ext
  5355. cat >>conftest.$ac_ext <<_ACEOF
  5356. /* end confdefs.h. */
  5357. #include <$ac_header>
  5358. _ACEOF
  5359. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5360. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5361. ac_status=$?
  5362. grep -v '^ *+' conftest.er1 >conftest.err
  5363. rm -f conftest.er1
  5364. cat conftest.err >&5
  5365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5366. (exit $ac_status); } >/dev/null; then
  5367. if test -s conftest.err; then
  5368. ac_cpp_err=$ac_c_preproc_warn_flag
  5369. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5370. else
  5371. ac_cpp_err=
  5372. fi
  5373. else
  5374. ac_cpp_err=yes
  5375. fi
  5376. if test -z "$ac_cpp_err"; then
  5377. ac_header_preproc=yes
  5378. else
  5379. echo "$as_me: failed program was:" >&5
  5380. sed 's/^/| /' conftest.$ac_ext >&5
  5381. ac_header_preproc=no
  5382. fi
  5383. rm -f conftest.err conftest.$ac_ext
  5384. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5385. echo "${ECHO_T}$ac_header_preproc" >&6
  5386. # So? What about this header?
  5387. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5388. yes:no: )
  5389. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5390. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5391. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5392. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5393. ac_header_preproc=yes
  5394. ;;
  5395. no:yes:* )
  5396. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5397. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5398. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5399. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5400. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5401. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5402. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5403. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5404. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5405. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5406. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5407. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5408. (
  5409. cat <<\_ASBOX
  5410. ## ------------------------------------------ ##
  5411. ## Report this to the AC_PACKAGE_NAME lists. ##
  5412. ## ------------------------------------------ ##
  5413. _ASBOX
  5414. ) |
  5415. sed "s/^/$as_me: WARNING: /" >&2
  5416. ;;
  5417. esac
  5418. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5419. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5420. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5421. echo $ECHO_N "(cached) $ECHO_C" >&6
  5422. else
  5423. eval "$as_ac_Header=\$ac_header_preproc"
  5424. fi
  5425. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5426. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5427. fi
  5428. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5429. cat >>confdefs.h <<_ACEOF
  5430. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5431. _ACEOF
  5432. fi
  5433. done
  5434. for ac_header in zlib.h
  5435. do
  5436. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5437. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5438. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5439. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5440. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5441. echo $ECHO_N "(cached) $ECHO_C" >&6
  5442. fi
  5443. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5444. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5445. else
  5446. # Is the header compilable?
  5447. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5448. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5449. cat >conftest.$ac_ext <<_ACEOF
  5450. /* confdefs.h. */
  5451. _ACEOF
  5452. cat confdefs.h >>conftest.$ac_ext
  5453. cat >>conftest.$ac_ext <<_ACEOF
  5454. /* end confdefs.h. */
  5455. $ac_includes_default
  5456. #include <$ac_header>
  5457. _ACEOF
  5458. rm -f conftest.$ac_objext
  5459. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5460. (eval $ac_compile) 2>conftest.er1
  5461. ac_status=$?
  5462. grep -v '^ *+' conftest.er1 >conftest.err
  5463. rm -f conftest.er1
  5464. cat conftest.err >&5
  5465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5466. (exit $ac_status); } &&
  5467. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5468. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5469. (eval $ac_try) 2>&5
  5470. ac_status=$?
  5471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5472. (exit $ac_status); }; } &&
  5473. { ac_try='test -s conftest.$ac_objext'
  5474. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5475. (eval $ac_try) 2>&5
  5476. ac_status=$?
  5477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5478. (exit $ac_status); }; }; then
  5479. ac_header_compiler=yes
  5480. else
  5481. echo "$as_me: failed program was:" >&5
  5482. sed 's/^/| /' conftest.$ac_ext >&5
  5483. ac_header_compiler=no
  5484. fi
  5485. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5486. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5487. echo "${ECHO_T}$ac_header_compiler" >&6
  5488. # Is the header present?
  5489. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5490. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5491. cat >conftest.$ac_ext <<_ACEOF
  5492. /* confdefs.h. */
  5493. _ACEOF
  5494. cat confdefs.h >>conftest.$ac_ext
  5495. cat >>conftest.$ac_ext <<_ACEOF
  5496. /* end confdefs.h. */
  5497. #include <$ac_header>
  5498. _ACEOF
  5499. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5500. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5501. ac_status=$?
  5502. grep -v '^ *+' conftest.er1 >conftest.err
  5503. rm -f conftest.er1
  5504. cat conftest.err >&5
  5505. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5506. (exit $ac_status); } >/dev/null; then
  5507. if test -s conftest.err; then
  5508. ac_cpp_err=$ac_c_preproc_warn_flag
  5509. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5510. else
  5511. ac_cpp_err=
  5512. fi
  5513. else
  5514. ac_cpp_err=yes
  5515. fi
  5516. if test -z "$ac_cpp_err"; then
  5517. ac_header_preproc=yes
  5518. else
  5519. echo "$as_me: failed program was:" >&5
  5520. sed 's/^/| /' conftest.$ac_ext >&5
  5521. ac_header_preproc=no
  5522. fi
  5523. rm -f conftest.err conftest.$ac_ext
  5524. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5525. echo "${ECHO_T}$ac_header_preproc" >&6
  5526. # So? What about this header?
  5527. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5528. yes:no: )
  5529. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5530. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5531. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5532. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5533. ac_header_preproc=yes
  5534. ;;
  5535. no:yes:* )
  5536. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5537. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5538. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5539. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5540. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5541. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5542. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5543. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5544. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5545. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5546. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5547. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5548. (
  5549. cat <<\_ASBOX
  5550. ## ------------------------------------------ ##
  5551. ## Report this to the AC_PACKAGE_NAME lists. ##
  5552. ## ------------------------------------------ ##
  5553. _ASBOX
  5554. ) |
  5555. sed "s/^/$as_me: WARNING: /" >&2
  5556. ;;
  5557. esac
  5558. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5559. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5560. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5561. echo $ECHO_N "(cached) $ECHO_C" >&6
  5562. else
  5563. eval "$as_ac_Header=\$ac_header_preproc"
  5564. fi
  5565. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5566. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5567. fi
  5568. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5569. cat >>confdefs.h <<_ACEOF
  5570. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5571. _ACEOF
  5572. fi
  5573. done
  5574. if test "x${ZLIB}" = x; then
  5575. cat >&2 <<EOF
  5576. configure: error:
  5577. Your system does not provide a working zlib compression library.
  5578. It is required.
  5579. EOF
  5580. exit 1
  5581. else
  5582. if test "${ac_cv_header_zlib_h}" != yes; then
  5583. cat >&2 <<EOF
  5584. configure: error:
  5585. Your system does not provide the necessary zlib header file.
  5586. It is required.
  5587. EOF
  5588. exit 1
  5589. fi
  5590. fi
  5591. if test "x${SSL}" = x; then
  5592. cat >&2 <<EOF
  5593. configure: error:
  5594. Your system does not provide a working ssl library.
  5595. It is required. Download openssl at www.openssl.org
  5596. EOF
  5597. exit 1
  5598. else
  5599. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  5600. cat >&2 <<EOF
  5601. configure: error:
  5602. Your system does not provide the necessary ssl header file.
  5603. It is required. Download openssl at www.openssl.org
  5604. EOF
  5605. exit 1
  5606. fi
  5607. fi
  5608. # Checks for typedefs, structures, and compiler characteristics
  5609. echo "$as_me:$LINENO: checking for pid_t" >&5
  5610. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5611. if test "${ac_cv_type_pid_t+set}" = set; then
  5612. echo $ECHO_N "(cached) $ECHO_C" >&6
  5613. else
  5614. cat >conftest.$ac_ext <<_ACEOF
  5615. /* confdefs.h. */
  5616. _ACEOF
  5617. cat confdefs.h >>conftest.$ac_ext
  5618. cat >>conftest.$ac_ext <<_ACEOF
  5619. /* end confdefs.h. */
  5620. $ac_includes_default
  5621. int
  5622. main ()
  5623. {
  5624. if ((pid_t *) 0)
  5625. return 0;
  5626. if (sizeof (pid_t))
  5627. return 0;
  5628. ;
  5629. return 0;
  5630. }
  5631. _ACEOF
  5632. rm -f conftest.$ac_objext
  5633. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5634. (eval $ac_compile) 2>conftest.er1
  5635. ac_status=$?
  5636. grep -v '^ *+' conftest.er1 >conftest.err
  5637. rm -f conftest.er1
  5638. cat conftest.err >&5
  5639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5640. (exit $ac_status); } &&
  5641. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5642. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5643. (eval $ac_try) 2>&5
  5644. ac_status=$?
  5645. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5646. (exit $ac_status); }; } &&
  5647. { ac_try='test -s conftest.$ac_objext'
  5648. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5649. (eval $ac_try) 2>&5
  5650. ac_status=$?
  5651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5652. (exit $ac_status); }; }; then
  5653. ac_cv_type_pid_t=yes
  5654. else
  5655. echo "$as_me: failed program was:" >&5
  5656. sed 's/^/| /' conftest.$ac_ext >&5
  5657. ac_cv_type_pid_t=no
  5658. fi
  5659. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5660. fi
  5661. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5662. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5663. if test $ac_cv_type_pid_t = yes; then
  5664. :
  5665. else
  5666. cat >>confdefs.h <<_ACEOF
  5667. #define pid_t int
  5668. _ACEOF
  5669. fi
  5670. echo "$as_me:$LINENO: checking for size_t" >&5
  5671. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5672. if test "${ac_cv_type_size_t+set}" = set; then
  5673. echo $ECHO_N "(cached) $ECHO_C" >&6
  5674. else
  5675. cat >conftest.$ac_ext <<_ACEOF
  5676. /* confdefs.h. */
  5677. _ACEOF
  5678. cat confdefs.h >>conftest.$ac_ext
  5679. cat >>conftest.$ac_ext <<_ACEOF
  5680. /* end confdefs.h. */
  5681. $ac_includes_default
  5682. int
  5683. main ()
  5684. {
  5685. if ((size_t *) 0)
  5686. return 0;
  5687. if (sizeof (size_t))
  5688. return 0;
  5689. ;
  5690. return 0;
  5691. }
  5692. _ACEOF
  5693. rm -f conftest.$ac_objext
  5694. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5695. (eval $ac_compile) 2>conftest.er1
  5696. ac_status=$?
  5697. grep -v '^ *+' conftest.er1 >conftest.err
  5698. rm -f conftest.er1
  5699. cat conftest.err >&5
  5700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5701. (exit $ac_status); } &&
  5702. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5703. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5704. (eval $ac_try) 2>&5
  5705. ac_status=$?
  5706. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5707. (exit $ac_status); }; } &&
  5708. { ac_try='test -s conftest.$ac_objext'
  5709. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5710. (eval $ac_try) 2>&5
  5711. ac_status=$?
  5712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5713. (exit $ac_status); }; }; then
  5714. ac_cv_type_size_t=yes
  5715. else
  5716. echo "$as_me: failed program was:" >&5
  5717. sed 's/^/| /' conftest.$ac_ext >&5
  5718. ac_cv_type_size_t=no
  5719. fi
  5720. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5721. fi
  5722. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5723. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5724. if test $ac_cv_type_size_t = yes; then
  5725. :
  5726. else
  5727. cat >>confdefs.h <<_ACEOF
  5728. #define size_t unsigned
  5729. _ACEOF
  5730. fi
  5731. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5732. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5733. if test "${ac_cv_type_uid_t+set}" = set; then
  5734. echo $ECHO_N "(cached) $ECHO_C" >&6
  5735. else
  5736. cat >conftest.$ac_ext <<_ACEOF
  5737. /* confdefs.h. */
  5738. _ACEOF
  5739. cat confdefs.h >>conftest.$ac_ext
  5740. cat >>conftest.$ac_ext <<_ACEOF
  5741. /* end confdefs.h. */
  5742. #include <sys/types.h>
  5743. _ACEOF
  5744. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5745. $EGREP "uid_t" >/dev/null 2>&1; then
  5746. ac_cv_type_uid_t=yes
  5747. else
  5748. ac_cv_type_uid_t=no
  5749. fi
  5750. rm -f conftest*
  5751. fi
  5752. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5753. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5754. if test $ac_cv_type_uid_t = no; then
  5755. cat >>confdefs.h <<\_ACEOF
  5756. #define uid_t int
  5757. _ACEOF
  5758. cat >>confdefs.h <<\_ACEOF
  5759. #define gid_t int
  5760. _ACEOF
  5761. fi
  5762. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5763. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5764. if test "${ac_cv_c_const+set}" = set; then
  5765. echo $ECHO_N "(cached) $ECHO_C" >&6
  5766. else
  5767. cat >conftest.$ac_ext <<_ACEOF
  5768. /* confdefs.h. */
  5769. _ACEOF
  5770. cat confdefs.h >>conftest.$ac_ext
  5771. cat >>conftest.$ac_ext <<_ACEOF
  5772. /* end confdefs.h. */
  5773. int
  5774. main ()
  5775. {
  5776. /* FIXME: Include the comments suggested by Paul. */
  5777. #ifndef __cplusplus
  5778. /* Ultrix mips cc rejects this. */
  5779. typedef int charset[2];
  5780. const charset x;
  5781. /* SunOS 4.1.1 cc rejects this. */
  5782. char const *const *ccp;
  5783. char **p;
  5784. /* NEC SVR4.0.2 mips cc rejects this. */
  5785. struct point {int x, y;};
  5786. static struct point const zero = {0,0};
  5787. /* AIX XL C 1.02.0.0 rejects this.
  5788. It does not let you subtract one const X* pointer from another in
  5789. an arm of an if-expression whose if-part is not a constant
  5790. expression */
  5791. const char *g = "string";
  5792. ccp = &g + (g ? g-g : 0);
  5793. /* HPUX 7.0 cc rejects these. */
  5794. ++ccp;
  5795. p = (char**) ccp;
  5796. ccp = (char const *const *) p;
  5797. { /* SCO 3.2v4 cc rejects this. */
  5798. char *t;
  5799. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5800. *t++ = 0;
  5801. }
  5802. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5803. int x[] = {25, 17};
  5804. const int *foo = &x[0];
  5805. ++foo;
  5806. }
  5807. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5808. typedef const int *iptr;
  5809. iptr p = 0;
  5810. ++p;
  5811. }
  5812. { /* AIX XL C 1.02.0.0 rejects this saying
  5813. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5814. struct s { int j; const int *ap[3]; };
  5815. struct s *b; b->j = 5;
  5816. }
  5817. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5818. const int foo = 10;
  5819. }
  5820. #endif
  5821. ;
  5822. return 0;
  5823. }
  5824. _ACEOF
  5825. rm -f conftest.$ac_objext
  5826. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5827. (eval $ac_compile) 2>conftest.er1
  5828. ac_status=$?
  5829. grep -v '^ *+' conftest.er1 >conftest.err
  5830. rm -f conftest.er1
  5831. cat conftest.err >&5
  5832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5833. (exit $ac_status); } &&
  5834. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5836. (eval $ac_try) 2>&5
  5837. ac_status=$?
  5838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5839. (exit $ac_status); }; } &&
  5840. { ac_try='test -s conftest.$ac_objext'
  5841. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5842. (eval $ac_try) 2>&5
  5843. ac_status=$?
  5844. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5845. (exit $ac_status); }; }; then
  5846. ac_cv_c_const=yes
  5847. else
  5848. echo "$as_me: failed program was:" >&5
  5849. sed 's/^/| /' conftest.$ac_ext >&5
  5850. ac_cv_c_const=no
  5851. fi
  5852. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5853. fi
  5854. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5855. echo "${ECHO_T}$ac_cv_c_const" >&6
  5856. if test $ac_cv_c_const = no; then
  5857. cat >>confdefs.h <<\_ACEOF
  5858. #define const
  5859. _ACEOF
  5860. fi
  5861. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5862. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5863. if test "${ac_cv_c_bigendian+set}" = set; then
  5864. echo $ECHO_N "(cached) $ECHO_C" >&6
  5865. else
  5866. # See if sys/param.h defines the BYTE_ORDER macro.
  5867. cat >conftest.$ac_ext <<_ACEOF
  5868. /* confdefs.h. */
  5869. _ACEOF
  5870. cat confdefs.h >>conftest.$ac_ext
  5871. cat >>conftest.$ac_ext <<_ACEOF
  5872. /* end confdefs.h. */
  5873. #include <sys/types.h>
  5874. #include <sys/param.h>
  5875. int
  5876. main ()
  5877. {
  5878. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5879. bogus endian macros
  5880. #endif
  5881. ;
  5882. return 0;
  5883. }
  5884. _ACEOF
  5885. rm -f conftest.$ac_objext
  5886. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5887. (eval $ac_compile) 2>conftest.er1
  5888. ac_status=$?
  5889. grep -v '^ *+' conftest.er1 >conftest.err
  5890. rm -f conftest.er1
  5891. cat conftest.err >&5
  5892. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5893. (exit $ac_status); } &&
  5894. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5895. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5896. (eval $ac_try) 2>&5
  5897. ac_status=$?
  5898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5899. (exit $ac_status); }; } &&
  5900. { ac_try='test -s conftest.$ac_objext'
  5901. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5902. (eval $ac_try) 2>&5
  5903. ac_status=$?
  5904. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5905. (exit $ac_status); }; }; then
  5906. # It does; now see whether it defined to BIG_ENDIAN or not.
  5907. cat >conftest.$ac_ext <<_ACEOF
  5908. /* confdefs.h. */
  5909. _ACEOF
  5910. cat confdefs.h >>conftest.$ac_ext
  5911. cat >>conftest.$ac_ext <<_ACEOF
  5912. /* end confdefs.h. */
  5913. #include <sys/types.h>
  5914. #include <sys/param.h>
  5915. int
  5916. main ()
  5917. {
  5918. #if BYTE_ORDER != BIG_ENDIAN
  5919. not big endian
  5920. #endif
  5921. ;
  5922. return 0;
  5923. }
  5924. _ACEOF
  5925. rm -f conftest.$ac_objext
  5926. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5927. (eval $ac_compile) 2>conftest.er1
  5928. ac_status=$?
  5929. grep -v '^ *+' conftest.er1 >conftest.err
  5930. rm -f conftest.er1
  5931. cat conftest.err >&5
  5932. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5933. (exit $ac_status); } &&
  5934. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5935. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5936. (eval $ac_try) 2>&5
  5937. ac_status=$?
  5938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5939. (exit $ac_status); }; } &&
  5940. { ac_try='test -s conftest.$ac_objext'
  5941. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5942. (eval $ac_try) 2>&5
  5943. ac_status=$?
  5944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5945. (exit $ac_status); }; }; then
  5946. ac_cv_c_bigendian=yes
  5947. else
  5948. echo "$as_me: failed program was:" >&5
  5949. sed 's/^/| /' conftest.$ac_ext >&5
  5950. ac_cv_c_bigendian=no
  5951. fi
  5952. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5953. else
  5954. echo "$as_me: failed program was:" >&5
  5955. sed 's/^/| /' conftest.$ac_ext >&5
  5956. # It does not; compile a test program.
  5957. if test "$cross_compiling" = yes; then
  5958. # try to guess the endianness by grepping values into an object file
  5959. ac_cv_c_bigendian=unknown
  5960. cat >conftest.$ac_ext <<_ACEOF
  5961. /* confdefs.h. */
  5962. _ACEOF
  5963. cat confdefs.h >>conftest.$ac_ext
  5964. cat >>conftest.$ac_ext <<_ACEOF
  5965. /* end confdefs.h. */
  5966. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5967. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5968. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5969. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5970. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5971. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5972. int
  5973. main ()
  5974. {
  5975. _ascii (); _ebcdic ();
  5976. ;
  5977. return 0;
  5978. }
  5979. _ACEOF
  5980. rm -f conftest.$ac_objext
  5981. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5982. (eval $ac_compile) 2>conftest.er1
  5983. ac_status=$?
  5984. grep -v '^ *+' conftest.er1 >conftest.err
  5985. rm -f conftest.er1
  5986. cat conftest.err >&5
  5987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5988. (exit $ac_status); } &&
  5989. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5991. (eval $ac_try) 2>&5
  5992. ac_status=$?
  5993. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5994. (exit $ac_status); }; } &&
  5995. { ac_try='test -s conftest.$ac_objext'
  5996. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5997. (eval $ac_try) 2>&5
  5998. ac_status=$?
  5999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6000. (exit $ac_status); }; }; then
  6001. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  6002. ac_cv_c_bigendian=yes
  6003. fi
  6004. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  6005. if test "$ac_cv_c_bigendian" = unknown; then
  6006. ac_cv_c_bigendian=no
  6007. else
  6008. # finding both strings is unlikely to happen, but who knows?
  6009. ac_cv_c_bigendian=unknown
  6010. fi
  6011. fi
  6012. else
  6013. echo "$as_me: failed program was:" >&5
  6014. sed 's/^/| /' conftest.$ac_ext >&5
  6015. fi
  6016. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6017. else
  6018. cat >conftest.$ac_ext <<_ACEOF
  6019. /* confdefs.h. */
  6020. _ACEOF
  6021. cat confdefs.h >>conftest.$ac_ext
  6022. cat >>conftest.$ac_ext <<_ACEOF
  6023. /* end confdefs.h. */
  6024. int
  6025. main ()
  6026. {
  6027. /* Are we little or big endian? From Harbison&Steele. */
  6028. union
  6029. {
  6030. long l;
  6031. char c[sizeof (long)];
  6032. } u;
  6033. u.l = 1;
  6034. exit (u.c[sizeof (long) - 1] == 1);
  6035. }
  6036. _ACEOF
  6037. rm -f conftest$ac_exeext
  6038. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6039. (eval $ac_link) 2>&5
  6040. ac_status=$?
  6041. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6042. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6043. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6044. (eval $ac_try) 2>&5
  6045. ac_status=$?
  6046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6047. (exit $ac_status); }; }; then
  6048. ac_cv_c_bigendian=no
  6049. else
  6050. echo "$as_me: program exited with status $ac_status" >&5
  6051. echo "$as_me: failed program was:" >&5
  6052. sed 's/^/| /' conftest.$ac_ext >&5
  6053. ( exit $ac_status )
  6054. ac_cv_c_bigendian=yes
  6055. fi
  6056. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6057. fi
  6058. fi
  6059. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6060. fi
  6061. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6062. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6063. case $ac_cv_c_bigendian in
  6064. yes)
  6065. cat >>confdefs.h <<\_ACEOF
  6066. #define WORDS_BIGENDIAN 1
  6067. _ACEOF
  6068. ;;
  6069. no)
  6070. ;;
  6071. *)
  6072. { { echo "$as_me:$LINENO: error: unknown endianness
  6073. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6074. echo "$as_me: error: unknown endianness
  6075. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6076. { (exit 1); exit 1; }; } ;;
  6077. esac
  6078. echo "$as_me:$LINENO: checking for inline" >&5
  6079. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6080. if test "${ac_cv_c_inline+set}" = set; then
  6081. echo $ECHO_N "(cached) $ECHO_C" >&6
  6082. else
  6083. ac_cv_c_inline=no
  6084. for ac_kw in inline __inline__ __inline; do
  6085. cat >conftest.$ac_ext <<_ACEOF
  6086. /* confdefs.h. */
  6087. _ACEOF
  6088. cat confdefs.h >>conftest.$ac_ext
  6089. cat >>conftest.$ac_ext <<_ACEOF
  6090. /* end confdefs.h. */
  6091. #ifndef __cplusplus
  6092. typedef int foo_t;
  6093. static $ac_kw foo_t static_foo () {return 0; }
  6094. $ac_kw foo_t foo () {return 0; }
  6095. #endif
  6096. _ACEOF
  6097. rm -f conftest.$ac_objext
  6098. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6099. (eval $ac_compile) 2>conftest.er1
  6100. ac_status=$?
  6101. grep -v '^ *+' conftest.er1 >conftest.err
  6102. rm -f conftest.er1
  6103. cat conftest.err >&5
  6104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6105. (exit $ac_status); } &&
  6106. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6107. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6108. (eval $ac_try) 2>&5
  6109. ac_status=$?
  6110. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6111. (exit $ac_status); }; } &&
  6112. { ac_try='test -s conftest.$ac_objext'
  6113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6114. (eval $ac_try) 2>&5
  6115. ac_status=$?
  6116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6117. (exit $ac_status); }; }; then
  6118. ac_cv_c_inline=$ac_kw; break
  6119. else
  6120. echo "$as_me: failed program was:" >&5
  6121. sed 's/^/| /' conftest.$ac_ext >&5
  6122. fi
  6123. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6124. done
  6125. fi
  6126. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6127. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6128. case $ac_cv_c_inline in
  6129. inline | yes) ;;
  6130. *)
  6131. case $ac_cv_c_inline in
  6132. no) ac_val=;;
  6133. *) ac_val=$ac_cv_c_inline;;
  6134. esac
  6135. cat >>confdefs.h <<_ACEOF
  6136. #ifndef __cplusplus
  6137. #define inline $ac_val
  6138. #endif
  6139. _ACEOF
  6140. ;;
  6141. esac
  6142. echo "$as_me:$LINENO: checking for long" >&5
  6143. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6144. if test "${ac_cv_type_long+set}" = set; then
  6145. echo $ECHO_N "(cached) $ECHO_C" >&6
  6146. else
  6147. cat >conftest.$ac_ext <<_ACEOF
  6148. /* confdefs.h. */
  6149. _ACEOF
  6150. cat confdefs.h >>conftest.$ac_ext
  6151. cat >>conftest.$ac_ext <<_ACEOF
  6152. /* end confdefs.h. */
  6153. $ac_includes_default
  6154. int
  6155. main ()
  6156. {
  6157. if ((long *) 0)
  6158. return 0;
  6159. if (sizeof (long))
  6160. return 0;
  6161. ;
  6162. return 0;
  6163. }
  6164. _ACEOF
  6165. rm -f conftest.$ac_objext
  6166. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6167. (eval $ac_compile) 2>conftest.er1
  6168. ac_status=$?
  6169. grep -v '^ *+' conftest.er1 >conftest.err
  6170. rm -f conftest.er1
  6171. cat conftest.err >&5
  6172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6173. (exit $ac_status); } &&
  6174. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6175. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6176. (eval $ac_try) 2>&5
  6177. ac_status=$?
  6178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6179. (exit $ac_status); }; } &&
  6180. { ac_try='test -s conftest.$ac_objext'
  6181. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6182. (eval $ac_try) 2>&5
  6183. ac_status=$?
  6184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6185. (exit $ac_status); }; }; then
  6186. ac_cv_type_long=yes
  6187. else
  6188. echo "$as_me: failed program was:" >&5
  6189. sed 's/^/| /' conftest.$ac_ext >&5
  6190. ac_cv_type_long=no
  6191. fi
  6192. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6193. fi
  6194. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6195. echo "${ECHO_T}$ac_cv_type_long" >&6
  6196. echo "$as_me:$LINENO: checking size of long" >&5
  6197. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6198. if test "${ac_cv_sizeof_long+set}" = set; then
  6199. echo $ECHO_N "(cached) $ECHO_C" >&6
  6200. else
  6201. if test "$ac_cv_type_long" = yes; then
  6202. # The cast to unsigned long works around a bug in the HP C Compiler
  6203. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6204. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6205. # This bug is HP SR number 8606223364.
  6206. if test "$cross_compiling" = yes; then
  6207. # Depending upon the size, compute the lo and hi bounds.
  6208. cat >conftest.$ac_ext <<_ACEOF
  6209. /* confdefs.h. */
  6210. _ACEOF
  6211. cat confdefs.h >>conftest.$ac_ext
  6212. cat >>conftest.$ac_ext <<_ACEOF
  6213. /* end confdefs.h. */
  6214. $ac_includes_default
  6215. int
  6216. main ()
  6217. {
  6218. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6219. test_array [0] = 0
  6220. ;
  6221. return 0;
  6222. }
  6223. _ACEOF
  6224. rm -f conftest.$ac_objext
  6225. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6226. (eval $ac_compile) 2>conftest.er1
  6227. ac_status=$?
  6228. grep -v '^ *+' conftest.er1 >conftest.err
  6229. rm -f conftest.er1
  6230. cat conftest.err >&5
  6231. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6232. (exit $ac_status); } &&
  6233. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6234. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6235. (eval $ac_try) 2>&5
  6236. ac_status=$?
  6237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6238. (exit $ac_status); }; } &&
  6239. { ac_try='test -s conftest.$ac_objext'
  6240. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6241. (eval $ac_try) 2>&5
  6242. ac_status=$?
  6243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6244. (exit $ac_status); }; }; then
  6245. ac_lo=0 ac_mid=0
  6246. while :; do
  6247. cat >conftest.$ac_ext <<_ACEOF
  6248. /* confdefs.h. */
  6249. _ACEOF
  6250. cat confdefs.h >>conftest.$ac_ext
  6251. cat >>conftest.$ac_ext <<_ACEOF
  6252. /* end confdefs.h. */
  6253. $ac_includes_default
  6254. int
  6255. main ()
  6256. {
  6257. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6258. test_array [0] = 0
  6259. ;
  6260. return 0;
  6261. }
  6262. _ACEOF
  6263. rm -f conftest.$ac_objext
  6264. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6265. (eval $ac_compile) 2>conftest.er1
  6266. ac_status=$?
  6267. grep -v '^ *+' conftest.er1 >conftest.err
  6268. rm -f conftest.er1
  6269. cat conftest.err >&5
  6270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6271. (exit $ac_status); } &&
  6272. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6273. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6274. (eval $ac_try) 2>&5
  6275. ac_status=$?
  6276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6277. (exit $ac_status); }; } &&
  6278. { ac_try='test -s conftest.$ac_objext'
  6279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6280. (eval $ac_try) 2>&5
  6281. ac_status=$?
  6282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6283. (exit $ac_status); }; }; then
  6284. ac_hi=$ac_mid; break
  6285. else
  6286. echo "$as_me: failed program was:" >&5
  6287. sed 's/^/| /' conftest.$ac_ext >&5
  6288. ac_lo=`expr $ac_mid + 1`
  6289. if test $ac_lo -le $ac_mid; then
  6290. ac_lo= ac_hi=
  6291. break
  6292. fi
  6293. ac_mid=`expr 2 '*' $ac_mid + 1`
  6294. fi
  6295. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6296. done
  6297. else
  6298. echo "$as_me: failed program was:" >&5
  6299. sed 's/^/| /' conftest.$ac_ext >&5
  6300. cat >conftest.$ac_ext <<_ACEOF
  6301. /* confdefs.h. */
  6302. _ACEOF
  6303. cat confdefs.h >>conftest.$ac_ext
  6304. cat >>conftest.$ac_ext <<_ACEOF
  6305. /* end confdefs.h. */
  6306. $ac_includes_default
  6307. int
  6308. main ()
  6309. {
  6310. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6311. test_array [0] = 0
  6312. ;
  6313. return 0;
  6314. }
  6315. _ACEOF
  6316. rm -f conftest.$ac_objext
  6317. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6318. (eval $ac_compile) 2>conftest.er1
  6319. ac_status=$?
  6320. grep -v '^ *+' conftest.er1 >conftest.err
  6321. rm -f conftest.er1
  6322. cat conftest.err >&5
  6323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6324. (exit $ac_status); } &&
  6325. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6326. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6327. (eval $ac_try) 2>&5
  6328. ac_status=$?
  6329. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6330. (exit $ac_status); }; } &&
  6331. { ac_try='test -s conftest.$ac_objext'
  6332. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6333. (eval $ac_try) 2>&5
  6334. ac_status=$?
  6335. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6336. (exit $ac_status); }; }; then
  6337. ac_hi=-1 ac_mid=-1
  6338. while :; do
  6339. cat >conftest.$ac_ext <<_ACEOF
  6340. /* confdefs.h. */
  6341. _ACEOF
  6342. cat confdefs.h >>conftest.$ac_ext
  6343. cat >>conftest.$ac_ext <<_ACEOF
  6344. /* end confdefs.h. */
  6345. $ac_includes_default
  6346. int
  6347. main ()
  6348. {
  6349. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6350. test_array [0] = 0
  6351. ;
  6352. return 0;
  6353. }
  6354. _ACEOF
  6355. rm -f conftest.$ac_objext
  6356. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6357. (eval $ac_compile) 2>conftest.er1
  6358. ac_status=$?
  6359. grep -v '^ *+' conftest.er1 >conftest.err
  6360. rm -f conftest.er1
  6361. cat conftest.err >&5
  6362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6363. (exit $ac_status); } &&
  6364. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6365. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6366. (eval $ac_try) 2>&5
  6367. ac_status=$?
  6368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6369. (exit $ac_status); }; } &&
  6370. { ac_try='test -s conftest.$ac_objext'
  6371. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6372. (eval $ac_try) 2>&5
  6373. ac_status=$?
  6374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6375. (exit $ac_status); }; }; then
  6376. ac_lo=$ac_mid; break
  6377. else
  6378. echo "$as_me: failed program was:" >&5
  6379. sed 's/^/| /' conftest.$ac_ext >&5
  6380. ac_hi=`expr '(' $ac_mid ')' - 1`
  6381. if test $ac_mid -le $ac_hi; then
  6382. ac_lo= ac_hi=
  6383. break
  6384. fi
  6385. ac_mid=`expr 2 '*' $ac_mid`
  6386. fi
  6387. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6388. done
  6389. else
  6390. echo "$as_me: failed program was:" >&5
  6391. sed 's/^/| /' conftest.$ac_ext >&5
  6392. ac_lo= ac_hi=
  6393. fi
  6394. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6395. fi
  6396. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6397. # Binary search between lo and hi bounds.
  6398. while test "x$ac_lo" != "x$ac_hi"; do
  6399. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6400. cat >conftest.$ac_ext <<_ACEOF
  6401. /* confdefs.h. */
  6402. _ACEOF
  6403. cat confdefs.h >>conftest.$ac_ext
  6404. cat >>conftest.$ac_ext <<_ACEOF
  6405. /* end confdefs.h. */
  6406. $ac_includes_default
  6407. int
  6408. main ()
  6409. {
  6410. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6411. test_array [0] = 0
  6412. ;
  6413. return 0;
  6414. }
  6415. _ACEOF
  6416. rm -f conftest.$ac_objext
  6417. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6418. (eval $ac_compile) 2>conftest.er1
  6419. ac_status=$?
  6420. grep -v '^ *+' conftest.er1 >conftest.err
  6421. rm -f conftest.er1
  6422. cat conftest.err >&5
  6423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6424. (exit $ac_status); } &&
  6425. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6427. (eval $ac_try) 2>&5
  6428. ac_status=$?
  6429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6430. (exit $ac_status); }; } &&
  6431. { ac_try='test -s conftest.$ac_objext'
  6432. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6433. (eval $ac_try) 2>&5
  6434. ac_status=$?
  6435. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6436. (exit $ac_status); }; }; then
  6437. ac_hi=$ac_mid
  6438. else
  6439. echo "$as_me: failed program was:" >&5
  6440. sed 's/^/| /' conftest.$ac_ext >&5
  6441. ac_lo=`expr '(' $ac_mid ')' + 1`
  6442. fi
  6443. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6444. done
  6445. case $ac_lo in
  6446. ?*) ac_cv_sizeof_long=$ac_lo;;
  6447. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6448. See \`config.log' for more details." >&5
  6449. echo "$as_me: error: cannot compute sizeof (long), 77
  6450. See \`config.log' for more details." >&2;}
  6451. { (exit 1); exit 1; }; } ;;
  6452. esac
  6453. else
  6454. if test "$cross_compiling" = yes; then
  6455. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6456. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6457. { (exit 1); exit 1; }; }
  6458. else
  6459. cat >conftest.$ac_ext <<_ACEOF
  6460. /* confdefs.h. */
  6461. _ACEOF
  6462. cat confdefs.h >>conftest.$ac_ext
  6463. cat >>conftest.$ac_ext <<_ACEOF
  6464. /* end confdefs.h. */
  6465. $ac_includes_default
  6466. long longval () { return (long) (sizeof (long)); }
  6467. unsigned long ulongval () { return (long) (sizeof (long)); }
  6468. #include <stdio.h>
  6469. #include <stdlib.h>
  6470. int
  6471. main ()
  6472. {
  6473. FILE *f = fopen ("conftest.val", "w");
  6474. if (! f)
  6475. exit (1);
  6476. if (((long) (sizeof (long))) < 0)
  6477. {
  6478. long i = longval ();
  6479. if (i != ((long) (sizeof (long))))
  6480. exit (1);
  6481. fprintf (f, "%ld\n", i);
  6482. }
  6483. else
  6484. {
  6485. unsigned long i = ulongval ();
  6486. if (i != ((long) (sizeof (long))))
  6487. exit (1);
  6488. fprintf (f, "%lu\n", i);
  6489. }
  6490. exit (ferror (f) || fclose (f) != 0);
  6491. ;
  6492. return 0;
  6493. }
  6494. _ACEOF
  6495. rm -f conftest$ac_exeext
  6496. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6497. (eval $ac_link) 2>&5
  6498. ac_status=$?
  6499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6500. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6502. (eval $ac_try) 2>&5
  6503. ac_status=$?
  6504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6505. (exit $ac_status); }; }; then
  6506. ac_cv_sizeof_long=`cat conftest.val`
  6507. else
  6508. echo "$as_me: program exited with status $ac_status" >&5
  6509. echo "$as_me: failed program was:" >&5
  6510. sed 's/^/| /' conftest.$ac_ext >&5
  6511. ( exit $ac_status )
  6512. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6513. See \`config.log' for more details." >&5
  6514. echo "$as_me: error: cannot compute sizeof (long), 77
  6515. See \`config.log' for more details." >&2;}
  6516. { (exit 1); exit 1; }; }
  6517. fi
  6518. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6519. fi
  6520. fi
  6521. rm -f conftest.val
  6522. else
  6523. ac_cv_sizeof_long=0
  6524. fi
  6525. fi
  6526. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6527. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6528. cat >>confdefs.h <<_ACEOF
  6529. #define SIZEOF_LONG $ac_cv_sizeof_long
  6530. _ACEOF
  6531. echo "$as_me:$LINENO: checking for int" >&5
  6532. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6533. if test "${ac_cv_type_int+set}" = set; then
  6534. echo $ECHO_N "(cached) $ECHO_C" >&6
  6535. else
  6536. cat >conftest.$ac_ext <<_ACEOF
  6537. /* confdefs.h. */
  6538. _ACEOF
  6539. cat confdefs.h >>conftest.$ac_ext
  6540. cat >>conftest.$ac_ext <<_ACEOF
  6541. /* end confdefs.h. */
  6542. $ac_includes_default
  6543. int
  6544. main ()
  6545. {
  6546. if ((int *) 0)
  6547. return 0;
  6548. if (sizeof (int))
  6549. return 0;
  6550. ;
  6551. return 0;
  6552. }
  6553. _ACEOF
  6554. rm -f conftest.$ac_objext
  6555. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6556. (eval $ac_compile) 2>conftest.er1
  6557. ac_status=$?
  6558. grep -v '^ *+' conftest.er1 >conftest.err
  6559. rm -f conftest.er1
  6560. cat conftest.err >&5
  6561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6562. (exit $ac_status); } &&
  6563. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  6569. { ac_try='test -s conftest.$ac_objext'
  6570. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6571. (eval $ac_try) 2>&5
  6572. ac_status=$?
  6573. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6574. (exit $ac_status); }; }; then
  6575. ac_cv_type_int=yes
  6576. else
  6577. echo "$as_me: failed program was:" >&5
  6578. sed 's/^/| /' conftest.$ac_ext >&5
  6579. ac_cv_type_int=no
  6580. fi
  6581. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6582. fi
  6583. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6584. echo "${ECHO_T}$ac_cv_type_int" >&6
  6585. echo "$as_me:$LINENO: checking size of int" >&5
  6586. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6587. if test "${ac_cv_sizeof_int+set}" = set; then
  6588. echo $ECHO_N "(cached) $ECHO_C" >&6
  6589. else
  6590. if test "$ac_cv_type_int" = yes; then
  6591. # The cast to unsigned long works around a bug in the HP C Compiler
  6592. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6593. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6594. # This bug is HP SR number 8606223364.
  6595. if test "$cross_compiling" = yes; then
  6596. # Depending upon the size, compute the lo and hi bounds.
  6597. cat >conftest.$ac_ext <<_ACEOF
  6598. /* confdefs.h. */
  6599. _ACEOF
  6600. cat confdefs.h >>conftest.$ac_ext
  6601. cat >>conftest.$ac_ext <<_ACEOF
  6602. /* end confdefs.h. */
  6603. $ac_includes_default
  6604. int
  6605. main ()
  6606. {
  6607. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6608. test_array [0] = 0
  6609. ;
  6610. return 0;
  6611. }
  6612. _ACEOF
  6613. rm -f conftest.$ac_objext
  6614. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6615. (eval $ac_compile) 2>conftest.er1
  6616. ac_status=$?
  6617. grep -v '^ *+' conftest.er1 >conftest.err
  6618. rm -f conftest.er1
  6619. cat conftest.err >&5
  6620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6621. (exit $ac_status); } &&
  6622. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6624. (eval $ac_try) 2>&5
  6625. ac_status=$?
  6626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6627. (exit $ac_status); }; } &&
  6628. { ac_try='test -s conftest.$ac_objext'
  6629. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6630. (eval $ac_try) 2>&5
  6631. ac_status=$?
  6632. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6633. (exit $ac_status); }; }; then
  6634. ac_lo=0 ac_mid=0
  6635. while :; do
  6636. cat >conftest.$ac_ext <<_ACEOF
  6637. /* confdefs.h. */
  6638. _ACEOF
  6639. cat confdefs.h >>conftest.$ac_ext
  6640. cat >>conftest.$ac_ext <<_ACEOF
  6641. /* end confdefs.h. */
  6642. $ac_includes_default
  6643. int
  6644. main ()
  6645. {
  6646. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6647. test_array [0] = 0
  6648. ;
  6649. return 0;
  6650. }
  6651. _ACEOF
  6652. rm -f conftest.$ac_objext
  6653. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6654. (eval $ac_compile) 2>conftest.er1
  6655. ac_status=$?
  6656. grep -v '^ *+' conftest.er1 >conftest.err
  6657. rm -f conftest.er1
  6658. cat conftest.err >&5
  6659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6660. (exit $ac_status); } &&
  6661. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6662. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6663. (eval $ac_try) 2>&5
  6664. ac_status=$?
  6665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6666. (exit $ac_status); }; } &&
  6667. { ac_try='test -s conftest.$ac_objext'
  6668. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6669. (eval $ac_try) 2>&5
  6670. ac_status=$?
  6671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6672. (exit $ac_status); }; }; then
  6673. ac_hi=$ac_mid; break
  6674. else
  6675. echo "$as_me: failed program was:" >&5
  6676. sed 's/^/| /' conftest.$ac_ext >&5
  6677. ac_lo=`expr $ac_mid + 1`
  6678. if test $ac_lo -le $ac_mid; then
  6679. ac_lo= ac_hi=
  6680. break
  6681. fi
  6682. ac_mid=`expr 2 '*' $ac_mid + 1`
  6683. fi
  6684. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6685. done
  6686. else
  6687. echo "$as_me: failed program was:" >&5
  6688. sed 's/^/| /' conftest.$ac_ext >&5
  6689. cat >conftest.$ac_ext <<_ACEOF
  6690. /* confdefs.h. */
  6691. _ACEOF
  6692. cat confdefs.h >>conftest.$ac_ext
  6693. cat >>conftest.$ac_ext <<_ACEOF
  6694. /* end confdefs.h. */
  6695. $ac_includes_default
  6696. int
  6697. main ()
  6698. {
  6699. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6700. test_array [0] = 0
  6701. ;
  6702. return 0;
  6703. }
  6704. _ACEOF
  6705. rm -f conftest.$ac_objext
  6706. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6707. (eval $ac_compile) 2>conftest.er1
  6708. ac_status=$?
  6709. grep -v '^ *+' conftest.er1 >conftest.err
  6710. rm -f conftest.er1
  6711. cat conftest.err >&5
  6712. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6713. (exit $ac_status); } &&
  6714. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6715. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6716. (eval $ac_try) 2>&5
  6717. ac_status=$?
  6718. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6719. (exit $ac_status); }; } &&
  6720. { ac_try='test -s conftest.$ac_objext'
  6721. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6722. (eval $ac_try) 2>&5
  6723. ac_status=$?
  6724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6725. (exit $ac_status); }; }; then
  6726. ac_hi=-1 ac_mid=-1
  6727. while :; do
  6728. cat >conftest.$ac_ext <<_ACEOF
  6729. /* confdefs.h. */
  6730. _ACEOF
  6731. cat confdefs.h >>conftest.$ac_ext
  6732. cat >>conftest.$ac_ext <<_ACEOF
  6733. /* end confdefs.h. */
  6734. $ac_includes_default
  6735. int
  6736. main ()
  6737. {
  6738. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6739. test_array [0] = 0
  6740. ;
  6741. return 0;
  6742. }
  6743. _ACEOF
  6744. rm -f conftest.$ac_objext
  6745. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6746. (eval $ac_compile) 2>conftest.er1
  6747. ac_status=$?
  6748. grep -v '^ *+' conftest.er1 >conftest.err
  6749. rm -f conftest.er1
  6750. cat conftest.err >&5
  6751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6752. (exit $ac_status); } &&
  6753. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6755. (eval $ac_try) 2>&5
  6756. ac_status=$?
  6757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6758. (exit $ac_status); }; } &&
  6759. { ac_try='test -s conftest.$ac_objext'
  6760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6761. (eval $ac_try) 2>&5
  6762. ac_status=$?
  6763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6764. (exit $ac_status); }; }; then
  6765. ac_lo=$ac_mid; break
  6766. else
  6767. echo "$as_me: failed program was:" >&5
  6768. sed 's/^/| /' conftest.$ac_ext >&5
  6769. ac_hi=`expr '(' $ac_mid ')' - 1`
  6770. if test $ac_mid -le $ac_hi; then
  6771. ac_lo= ac_hi=
  6772. break
  6773. fi
  6774. ac_mid=`expr 2 '*' $ac_mid`
  6775. fi
  6776. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6777. done
  6778. else
  6779. echo "$as_me: failed program was:" >&5
  6780. sed 's/^/| /' conftest.$ac_ext >&5
  6781. ac_lo= ac_hi=
  6782. fi
  6783. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6784. fi
  6785. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6786. # Binary search between lo and hi bounds.
  6787. while test "x$ac_lo" != "x$ac_hi"; do
  6788. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6789. cat >conftest.$ac_ext <<_ACEOF
  6790. /* confdefs.h. */
  6791. _ACEOF
  6792. cat confdefs.h >>conftest.$ac_ext
  6793. cat >>conftest.$ac_ext <<_ACEOF
  6794. /* end confdefs.h. */
  6795. $ac_includes_default
  6796. int
  6797. main ()
  6798. {
  6799. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6800. test_array [0] = 0
  6801. ;
  6802. return 0;
  6803. }
  6804. _ACEOF
  6805. rm -f conftest.$ac_objext
  6806. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6807. (eval $ac_compile) 2>conftest.er1
  6808. ac_status=$?
  6809. grep -v '^ *+' conftest.er1 >conftest.err
  6810. rm -f conftest.er1
  6811. cat conftest.err >&5
  6812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6813. (exit $ac_status); } &&
  6814. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6816. (eval $ac_try) 2>&5
  6817. ac_status=$?
  6818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6819. (exit $ac_status); }; } &&
  6820. { ac_try='test -s conftest.$ac_objext'
  6821. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6822. (eval $ac_try) 2>&5
  6823. ac_status=$?
  6824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6825. (exit $ac_status); }; }; then
  6826. ac_hi=$ac_mid
  6827. else
  6828. echo "$as_me: failed program was:" >&5
  6829. sed 's/^/| /' conftest.$ac_ext >&5
  6830. ac_lo=`expr '(' $ac_mid ')' + 1`
  6831. fi
  6832. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6833. done
  6834. case $ac_lo in
  6835. ?*) ac_cv_sizeof_int=$ac_lo;;
  6836. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6837. See \`config.log' for more details." >&5
  6838. echo "$as_me: error: cannot compute sizeof (int), 77
  6839. See \`config.log' for more details." >&2;}
  6840. { (exit 1); exit 1; }; } ;;
  6841. esac
  6842. else
  6843. if test "$cross_compiling" = yes; then
  6844. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6845. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6846. { (exit 1); exit 1; }; }
  6847. else
  6848. cat >conftest.$ac_ext <<_ACEOF
  6849. /* confdefs.h. */
  6850. _ACEOF
  6851. cat confdefs.h >>conftest.$ac_ext
  6852. cat >>conftest.$ac_ext <<_ACEOF
  6853. /* end confdefs.h. */
  6854. $ac_includes_default
  6855. long longval () { return (long) (sizeof (int)); }
  6856. unsigned long ulongval () { return (long) (sizeof (int)); }
  6857. #include <stdio.h>
  6858. #include <stdlib.h>
  6859. int
  6860. main ()
  6861. {
  6862. FILE *f = fopen ("conftest.val", "w");
  6863. if (! f)
  6864. exit (1);
  6865. if (((long) (sizeof (int))) < 0)
  6866. {
  6867. long i = longval ();
  6868. if (i != ((long) (sizeof (int))))
  6869. exit (1);
  6870. fprintf (f, "%ld\n", i);
  6871. }
  6872. else
  6873. {
  6874. unsigned long i = ulongval ();
  6875. if (i != ((long) (sizeof (int))))
  6876. exit (1);
  6877. fprintf (f, "%lu\n", i);
  6878. }
  6879. exit (ferror (f) || fclose (f) != 0);
  6880. ;
  6881. return 0;
  6882. }
  6883. _ACEOF
  6884. rm -f conftest$ac_exeext
  6885. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6886. (eval $ac_link) 2>&5
  6887. ac_status=$?
  6888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6889. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6891. (eval $ac_try) 2>&5
  6892. ac_status=$?
  6893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6894. (exit $ac_status); }; }; then
  6895. ac_cv_sizeof_int=`cat conftest.val`
  6896. else
  6897. echo "$as_me: program exited with status $ac_status" >&5
  6898. echo "$as_me: failed program was:" >&5
  6899. sed 's/^/| /' conftest.$ac_ext >&5
  6900. ( exit $ac_status )
  6901. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6902. See \`config.log' for more details." >&5
  6903. echo "$as_me: error: cannot compute sizeof (int), 77
  6904. See \`config.log' for more details." >&2;}
  6905. { (exit 1); exit 1; }; }
  6906. fi
  6907. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6908. fi
  6909. fi
  6910. rm -f conftest.val
  6911. else
  6912. ac_cv_sizeof_int=0
  6913. fi
  6914. fi
  6915. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6916. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6917. cat >>confdefs.h <<_ACEOF
  6918. #define SIZEOF_INT $ac_cv_sizeof_int
  6919. _ACEOF
  6920. #checkpoint
  6921. cat >confcache <<\_ACEOF
  6922. # This file is a shell script that caches the results of configure
  6923. # tests run on this system so they can be shared between configure
  6924. # scripts and configure runs, see configure's option --config-cache.
  6925. # It is not useful on other systems. If it contains results you don't
  6926. # want to keep, you may remove or edit it.
  6927. #
  6928. # config.status only pays attention to the cache file if you give it
  6929. # the --recheck option to rerun configure.
  6930. #
  6931. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6932. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6933. # following values.
  6934. _ACEOF
  6935. # The following way of writing the cache mishandles newlines in values,
  6936. # but we know of no workaround that is simple, portable, and efficient.
  6937. # So, don't put newlines in cache variables' values.
  6938. # Ultrix sh set writes to stderr and can't be redirected directly,
  6939. # and sets the high bit in the cache file unless we assign to the vars.
  6940. {
  6941. (set) 2>&1 |
  6942. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6943. *ac_space=\ *)
  6944. # `set' does not quote correctly, so add quotes (double-quote
  6945. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6946. sed -n \
  6947. "s/'/'\\\\''/g;
  6948. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6949. ;;
  6950. *)
  6951. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6952. sed -n \
  6953. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6954. ;;
  6955. esac;
  6956. } |
  6957. sed '
  6958. t clear
  6959. : clear
  6960. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6961. t end
  6962. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6963. : end' >>confcache
  6964. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6965. if test -w $cache_file; then
  6966. test "x$cache_file" != "x/dev/null"
  6967. cat confcache >$cache_file
  6968. else
  6969. echo "not updating unwritable cache $cache_file"
  6970. fi
  6971. fi
  6972. rm -f confcache
  6973. echo "$as_me:$LINENO: checking for working volatile" >&5
  6974. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  6975. if test "${ac_cv_c_volatile+set}" = set; then
  6976. echo $ECHO_N "(cached) $ECHO_C" >&6
  6977. else
  6978. cat >conftest.$ac_ext <<_ACEOF
  6979. /* confdefs.h. */
  6980. _ACEOF
  6981. cat confdefs.h >>conftest.$ac_ext
  6982. cat >>conftest.$ac_ext <<_ACEOF
  6983. /* end confdefs.h. */
  6984. int
  6985. main ()
  6986. {
  6987. volatile int x;
  6988. int * volatile y;
  6989. ;
  6990. return 0;
  6991. }
  6992. _ACEOF
  6993. rm -f conftest.$ac_objext
  6994. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6995. (eval $ac_compile) 2>conftest.er1
  6996. ac_status=$?
  6997. grep -v '^ *+' conftest.er1 >conftest.err
  6998. rm -f conftest.er1
  6999. cat conftest.err >&5
  7000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7001. (exit $ac_status); } &&
  7002. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7003. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7004. (eval $ac_try) 2>&5
  7005. ac_status=$?
  7006. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7007. (exit $ac_status); }; } &&
  7008. { ac_try='test -s conftest.$ac_objext'
  7009. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7010. (eval $ac_try) 2>&5
  7011. ac_status=$?
  7012. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7013. (exit $ac_status); }; }; then
  7014. ac_cv_c_volatile=yes
  7015. else
  7016. echo "$as_me: failed program was:" >&5
  7017. sed 's/^/| /' conftest.$ac_ext >&5
  7018. ac_cv_c_volatile=no
  7019. fi
  7020. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7021. fi
  7022. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  7023. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  7024. if test $ac_cv_c_volatile = no; then
  7025. cat >>confdefs.h <<\_ACEOF
  7026. #define volatile
  7027. _ACEOF
  7028. fi
  7029. if test $ac_cv_c_compiler_gnu = yes; then
  7030. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  7031. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7032. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7033. echo $ECHO_N "(cached) $ECHO_C" >&6
  7034. else
  7035. ac_pattern="Autoconf.*'x'"
  7036. cat >conftest.$ac_ext <<_ACEOF
  7037. /* confdefs.h. */
  7038. _ACEOF
  7039. cat confdefs.h >>conftest.$ac_ext
  7040. cat >>conftest.$ac_ext <<_ACEOF
  7041. /* end confdefs.h. */
  7042. #include <sgtty.h>
  7043. Autoconf TIOCGETP
  7044. _ACEOF
  7045. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7046. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7047. ac_cv_prog_gcc_traditional=yes
  7048. else
  7049. ac_cv_prog_gcc_traditional=no
  7050. fi
  7051. rm -f conftest*
  7052. if test $ac_cv_prog_gcc_traditional = no; then
  7053. cat >conftest.$ac_ext <<_ACEOF
  7054. /* confdefs.h. */
  7055. _ACEOF
  7056. cat confdefs.h >>conftest.$ac_ext
  7057. cat >>conftest.$ac_ext <<_ACEOF
  7058. /* end confdefs.h. */
  7059. #include <termio.h>
  7060. Autoconf TCGETA
  7061. _ACEOF
  7062. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7063. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7064. ac_cv_prog_gcc_traditional=yes
  7065. fi
  7066. rm -f conftest*
  7067. fi
  7068. fi
  7069. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7070. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7071. if test $ac_cv_prog_gcc_traditional = yes; then
  7072. CC="$CC -traditional"
  7073. fi
  7074. fi
  7075. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7076. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7077. if test "${ac_cv_struct_tm+set}" = set; then
  7078. echo $ECHO_N "(cached) $ECHO_C" >&6
  7079. else
  7080. cat >conftest.$ac_ext <<_ACEOF
  7081. /* confdefs.h. */
  7082. _ACEOF
  7083. cat confdefs.h >>conftest.$ac_ext
  7084. cat >>conftest.$ac_ext <<_ACEOF
  7085. /* end confdefs.h. */
  7086. #include <sys/types.h>
  7087. #include <time.h>
  7088. int
  7089. main ()
  7090. {
  7091. struct tm *tp; tp->tm_sec;
  7092. ;
  7093. return 0;
  7094. }
  7095. _ACEOF
  7096. rm -f conftest.$ac_objext
  7097. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7098. (eval $ac_compile) 2>conftest.er1
  7099. ac_status=$?
  7100. grep -v '^ *+' conftest.er1 >conftest.err
  7101. rm -f conftest.er1
  7102. cat conftest.err >&5
  7103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7104. (exit $ac_status); } &&
  7105. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7107. (eval $ac_try) 2>&5
  7108. ac_status=$?
  7109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7110. (exit $ac_status); }; } &&
  7111. { ac_try='test -s conftest.$ac_objext'
  7112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7113. (eval $ac_try) 2>&5
  7114. ac_status=$?
  7115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7116. (exit $ac_status); }; }; then
  7117. ac_cv_struct_tm=time.h
  7118. else
  7119. echo "$as_me: failed program was:" >&5
  7120. sed 's/^/| /' conftest.$ac_ext >&5
  7121. ac_cv_struct_tm=sys/time.h
  7122. fi
  7123. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7124. fi
  7125. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7126. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7127. if test $ac_cv_struct_tm = sys/time.h; then
  7128. cat >>confdefs.h <<\_ACEOF
  7129. #define TM_IN_SYS_TIME 1
  7130. _ACEOF
  7131. fi
  7132. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7133. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7134. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7135. echo $ECHO_N "(cached) $ECHO_C" >&6
  7136. else
  7137. cat >conftest.$ac_ext <<_ACEOF
  7138. /* confdefs.h. */
  7139. _ACEOF
  7140. cat confdefs.h >>conftest.$ac_ext
  7141. cat >>conftest.$ac_ext <<_ACEOF
  7142. /* end confdefs.h. */
  7143. #include <sys/types.h>
  7144. #include <$ac_cv_struct_tm>
  7145. int
  7146. main ()
  7147. {
  7148. static struct tm ac_aggr;
  7149. if (ac_aggr.tm_zone)
  7150. return 0;
  7151. ;
  7152. return 0;
  7153. }
  7154. _ACEOF
  7155. rm -f conftest.$ac_objext
  7156. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7157. (eval $ac_compile) 2>conftest.er1
  7158. ac_status=$?
  7159. grep -v '^ *+' conftest.er1 >conftest.err
  7160. rm -f conftest.er1
  7161. cat conftest.err >&5
  7162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7163. (exit $ac_status); } &&
  7164. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7166. (eval $ac_try) 2>&5
  7167. ac_status=$?
  7168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7169. (exit $ac_status); }; } &&
  7170. { ac_try='test -s conftest.$ac_objext'
  7171. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7172. (eval $ac_try) 2>&5
  7173. ac_status=$?
  7174. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7175. (exit $ac_status); }; }; then
  7176. ac_cv_member_struct_tm_tm_zone=yes
  7177. else
  7178. echo "$as_me: failed program was:" >&5
  7179. sed 's/^/| /' conftest.$ac_ext >&5
  7180. cat >conftest.$ac_ext <<_ACEOF
  7181. /* confdefs.h. */
  7182. _ACEOF
  7183. cat confdefs.h >>conftest.$ac_ext
  7184. cat >>conftest.$ac_ext <<_ACEOF
  7185. /* end confdefs.h. */
  7186. #include <sys/types.h>
  7187. #include <$ac_cv_struct_tm>
  7188. int
  7189. main ()
  7190. {
  7191. static struct tm ac_aggr;
  7192. if (sizeof ac_aggr.tm_zone)
  7193. return 0;
  7194. ;
  7195. return 0;
  7196. }
  7197. _ACEOF
  7198. rm -f conftest.$ac_objext
  7199. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7200. (eval $ac_compile) 2>conftest.er1
  7201. ac_status=$?
  7202. grep -v '^ *+' conftest.er1 >conftest.err
  7203. rm -f conftest.er1
  7204. cat conftest.err >&5
  7205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7206. (exit $ac_status); } &&
  7207. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7209. (eval $ac_try) 2>&5
  7210. ac_status=$?
  7211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7212. (exit $ac_status); }; } &&
  7213. { ac_try='test -s conftest.$ac_objext'
  7214. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7215. (eval $ac_try) 2>&5
  7216. ac_status=$?
  7217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7218. (exit $ac_status); }; }; then
  7219. ac_cv_member_struct_tm_tm_zone=yes
  7220. else
  7221. echo "$as_me: failed program was:" >&5
  7222. sed 's/^/| /' conftest.$ac_ext >&5
  7223. ac_cv_member_struct_tm_tm_zone=no
  7224. fi
  7225. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7226. fi
  7227. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7228. fi
  7229. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7230. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7231. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7232. cat >>confdefs.h <<_ACEOF
  7233. #define HAVE_STRUCT_TM_TM_ZONE 1
  7234. _ACEOF
  7235. fi
  7236. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7237. cat >>confdefs.h <<\_ACEOF
  7238. #define HAVE_TM_ZONE 1
  7239. _ACEOF
  7240. else
  7241. echo "$as_me:$LINENO: checking for tzname" >&5
  7242. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7243. if test "${ac_cv_var_tzname+set}" = set; then
  7244. echo $ECHO_N "(cached) $ECHO_C" >&6
  7245. else
  7246. cat >conftest.$ac_ext <<_ACEOF
  7247. /* confdefs.h. */
  7248. _ACEOF
  7249. cat confdefs.h >>conftest.$ac_ext
  7250. cat >>conftest.$ac_ext <<_ACEOF
  7251. /* end confdefs.h. */
  7252. #include <time.h>
  7253. #ifndef tzname /* For SGI. */
  7254. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7255. #endif
  7256. int
  7257. main ()
  7258. {
  7259. atoi(*tzname);
  7260. ;
  7261. return 0;
  7262. }
  7263. _ACEOF
  7264. rm -f conftest.$ac_objext conftest$ac_exeext
  7265. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7266. (eval $ac_link) 2>conftest.er1
  7267. ac_status=$?
  7268. grep -v '^ *+' conftest.er1 >conftest.err
  7269. rm -f conftest.er1
  7270. cat conftest.err >&5
  7271. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7272. (exit $ac_status); } &&
  7273. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7275. (eval $ac_try) 2>&5
  7276. ac_status=$?
  7277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7278. (exit $ac_status); }; } &&
  7279. { ac_try='test -s conftest$ac_exeext'
  7280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7281. (eval $ac_try) 2>&5
  7282. ac_status=$?
  7283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7284. (exit $ac_status); }; }; then
  7285. ac_cv_var_tzname=yes
  7286. else
  7287. echo "$as_me: failed program was:" >&5
  7288. sed 's/^/| /' conftest.$ac_ext >&5
  7289. ac_cv_var_tzname=no
  7290. fi
  7291. rm -f conftest.err conftest.$ac_objext \
  7292. conftest$ac_exeext conftest.$ac_ext
  7293. fi
  7294. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7295. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7296. if test $ac_cv_var_tzname = yes; then
  7297. cat >>confdefs.h <<\_ACEOF
  7298. #define HAVE_TZNAME 1
  7299. _ACEOF
  7300. fi
  7301. fi
  7302. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7303. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7304. if test "${ac_cv_struct_tm+set}" = set; then
  7305. echo $ECHO_N "(cached) $ECHO_C" >&6
  7306. else
  7307. cat >conftest.$ac_ext <<_ACEOF
  7308. /* confdefs.h. */
  7309. _ACEOF
  7310. cat confdefs.h >>conftest.$ac_ext
  7311. cat >>conftest.$ac_ext <<_ACEOF
  7312. /* end confdefs.h. */
  7313. #include <sys/types.h>
  7314. #include <time.h>
  7315. int
  7316. main ()
  7317. {
  7318. struct tm *tp; tp->tm_sec;
  7319. ;
  7320. return 0;
  7321. }
  7322. _ACEOF
  7323. rm -f conftest.$ac_objext
  7324. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7325. (eval $ac_compile) 2>conftest.er1
  7326. ac_status=$?
  7327. grep -v '^ *+' conftest.er1 >conftest.err
  7328. rm -f conftest.er1
  7329. cat conftest.err >&5
  7330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7331. (exit $ac_status); } &&
  7332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7334. (eval $ac_try) 2>&5
  7335. ac_status=$?
  7336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7337. (exit $ac_status); }; } &&
  7338. { ac_try='test -s conftest.$ac_objext'
  7339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7340. (eval $ac_try) 2>&5
  7341. ac_status=$?
  7342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7343. (exit $ac_status); }; }; then
  7344. ac_cv_struct_tm=time.h
  7345. else
  7346. echo "$as_me: failed program was:" >&5
  7347. sed 's/^/| /' conftest.$ac_ext >&5
  7348. ac_cv_struct_tm=sys/time.h
  7349. fi
  7350. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7351. fi
  7352. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7353. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7354. if test $ac_cv_struct_tm = sys/time.h; then
  7355. cat >>confdefs.h <<\_ACEOF
  7356. #define TM_IN_SYS_TIME 1
  7357. _ACEOF
  7358. fi
  7359. #checkpoint
  7360. cat >confcache <<\_ACEOF
  7361. # This file is a shell script that caches the results of configure
  7362. # tests run on this system so they can be shared between configure
  7363. # scripts and configure runs, see configure's option --config-cache.
  7364. # It is not useful on other systems. If it contains results you don't
  7365. # want to keep, you may remove or edit it.
  7366. #
  7367. # config.status only pays attention to the cache file if you give it
  7368. # the --recheck option to rerun configure.
  7369. #
  7370. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7371. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7372. # following values.
  7373. _ACEOF
  7374. # The following way of writing the cache mishandles newlines in values,
  7375. # but we know of no workaround that is simple, portable, and efficient.
  7376. # So, don't put newlines in cache variables' values.
  7377. # Ultrix sh set writes to stderr and can't be redirected directly,
  7378. # and sets the high bit in the cache file unless we assign to the vars.
  7379. {
  7380. (set) 2>&1 |
  7381. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7382. *ac_space=\ *)
  7383. # `set' does not quote correctly, so add quotes (double-quote
  7384. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7385. sed -n \
  7386. "s/'/'\\\\''/g;
  7387. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7388. ;;
  7389. *)
  7390. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7391. sed -n \
  7392. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7393. ;;
  7394. esac;
  7395. } |
  7396. sed '
  7397. t clear
  7398. : clear
  7399. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7400. t end
  7401. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7402. : end' >>confcache
  7403. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7404. if test -w $cache_file; then
  7405. test "x$cache_file" != "x/dev/null"
  7406. cat confcache >$cache_file
  7407. else
  7408. echo "not updating unwritable cache $cache_file"
  7409. fi
  7410. fi
  7411. rm -f confcache
  7412. # Check for IPv6 support
  7413. #EGG_IPV6_SUPPORTED
  7414. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7415. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7416. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7417. if test "${enable_ipv6+set}" = set; then
  7418. enableval="$enable_ipv6"
  7419. ac_cv_dipv6="yes"
  7420. echo "$as_me:$LINENO: result: yes" >&5
  7421. echo "${ECHO_T}yes" >&6
  7422. else
  7423. ac_cv_dipv6="no"
  7424. if test "$egg_cv_ipv6_supported" = "no"; then
  7425. ac_cv_dipv6="no"
  7426. fi
  7427. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7428. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7429. fi;
  7430. if test "$ac_cv_dipv6" = "no"; then
  7431. cat >>confdefs.h <<\_ACEOF
  7432. #define USE_IPV6 1
  7433. _ACEOF
  7434. fi
  7435. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7436. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7437. if test "${egg_cv_socklen_t+set}" = set; then
  7438. echo $ECHO_N "(cached) $ECHO_C" >&6
  7439. else
  7440. if test "$cross_compiling" = yes; then
  7441. egg_cv_socklen_t=no
  7442. else
  7443. cat >conftest.$ac_ext <<_ACEOF
  7444. /* confdefs.h. */
  7445. _ACEOF
  7446. cat confdefs.h >>conftest.$ac_ext
  7447. cat >>conftest.$ac_ext <<_ACEOF
  7448. /* end confdefs.h. */
  7449. #include <unistd.h>
  7450. #include <sys/types.h>
  7451. #include <sys/socket.h>
  7452. #include <netinet/in.h>
  7453. #include <arpa/inet.h>
  7454. int main()
  7455. {
  7456. socklen_t test = sizeof(int);
  7457. return 0;
  7458. }
  7459. _ACEOF
  7460. rm -f conftest$ac_exeext
  7461. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7462. (eval $ac_link) 2>&5
  7463. ac_status=$?
  7464. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7465. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7466. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7467. (eval $ac_try) 2>&5
  7468. ac_status=$?
  7469. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7470. (exit $ac_status); }; }; then
  7471. egg_cv_socklen_t=yes
  7472. else
  7473. echo "$as_me: program exited with status $ac_status" >&5
  7474. echo "$as_me: failed program was:" >&5
  7475. sed 's/^/| /' conftest.$ac_ext >&5
  7476. ( exit $ac_status )
  7477. egg_cv_socklen_t=no
  7478. fi
  7479. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7480. fi
  7481. fi
  7482. if test "$egg_cv_socklen_t" = "yes"; then
  7483. cat >>confdefs.h <<\_ACEOF
  7484. #define HAVE_SOCKLEN_T 1
  7485. _ACEOF
  7486. echo "$as_me:$LINENO: result: yes" >&5
  7487. echo "${ECHO_T}yes" >&6
  7488. else
  7489. echo "$as_me:$LINENO: result: no" >&5
  7490. echo "${ECHO_T}no" >&6
  7491. fi
  7492. # Checks for library functions
  7493. #checkpoint
  7494. cat >confcache <<\_ACEOF
  7495. # This file is a shell script that caches the results of configure
  7496. # tests run on this system so they can be shared between configure
  7497. # scripts and configure runs, see configure's option --config-cache.
  7498. # It is not useful on other systems. If it contains results you don't
  7499. # want to keep, you may remove or edit it.
  7500. #
  7501. # config.status only pays attention to the cache file if you give it
  7502. # the --recheck option to rerun configure.
  7503. #
  7504. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7505. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7506. # following values.
  7507. _ACEOF
  7508. # The following way of writing the cache mishandles newlines in values,
  7509. # but we know of no workaround that is simple, portable, and efficient.
  7510. # So, don't put newlines in cache variables' values.
  7511. # Ultrix sh set writes to stderr and can't be redirected directly,
  7512. # and sets the high bit in the cache file unless we assign to the vars.
  7513. {
  7514. (set) 2>&1 |
  7515. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7516. *ac_space=\ *)
  7517. # `set' does not quote correctly, so add quotes (double-quote
  7518. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7519. sed -n \
  7520. "s/'/'\\\\''/g;
  7521. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7522. ;;
  7523. *)
  7524. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7525. sed -n \
  7526. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7527. ;;
  7528. esac;
  7529. } |
  7530. sed '
  7531. t clear
  7532. : clear
  7533. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7534. t end
  7535. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7536. : end' >>confcache
  7537. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7538. if test -w $cache_file; then
  7539. test "x$cache_file" != "x/dev/null"
  7540. cat confcache >$cache_file
  7541. else
  7542. echo "not updating unwritable cache $cache_file"
  7543. fi
  7544. fi
  7545. rm -f confcache
  7546. # Checks for library functions.
  7547. for ac_header in unistd.h vfork.h
  7548. do
  7549. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7550. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7551. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7552. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7553. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7554. echo $ECHO_N "(cached) $ECHO_C" >&6
  7555. fi
  7556. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7557. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7558. else
  7559. # Is the header compilable?
  7560. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7561. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7562. cat >conftest.$ac_ext <<_ACEOF
  7563. /* confdefs.h. */
  7564. _ACEOF
  7565. cat confdefs.h >>conftest.$ac_ext
  7566. cat >>conftest.$ac_ext <<_ACEOF
  7567. /* end confdefs.h. */
  7568. $ac_includes_default
  7569. #include <$ac_header>
  7570. _ACEOF
  7571. rm -f conftest.$ac_objext
  7572. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7573. (eval $ac_compile) 2>conftest.er1
  7574. ac_status=$?
  7575. grep -v '^ *+' conftest.er1 >conftest.err
  7576. rm -f conftest.er1
  7577. cat conftest.err >&5
  7578. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7579. (exit $ac_status); } &&
  7580. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7581. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7582. (eval $ac_try) 2>&5
  7583. ac_status=$?
  7584. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7585. (exit $ac_status); }; } &&
  7586. { ac_try='test -s conftest.$ac_objext'
  7587. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7588. (eval $ac_try) 2>&5
  7589. ac_status=$?
  7590. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7591. (exit $ac_status); }; }; then
  7592. ac_header_compiler=yes
  7593. else
  7594. echo "$as_me: failed program was:" >&5
  7595. sed 's/^/| /' conftest.$ac_ext >&5
  7596. ac_header_compiler=no
  7597. fi
  7598. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7599. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7600. echo "${ECHO_T}$ac_header_compiler" >&6
  7601. # Is the header present?
  7602. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7603. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7604. cat >conftest.$ac_ext <<_ACEOF
  7605. /* confdefs.h. */
  7606. _ACEOF
  7607. cat confdefs.h >>conftest.$ac_ext
  7608. cat >>conftest.$ac_ext <<_ACEOF
  7609. /* end confdefs.h. */
  7610. #include <$ac_header>
  7611. _ACEOF
  7612. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7613. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7614. ac_status=$?
  7615. grep -v '^ *+' conftest.er1 >conftest.err
  7616. rm -f conftest.er1
  7617. cat conftest.err >&5
  7618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7619. (exit $ac_status); } >/dev/null; then
  7620. if test -s conftest.err; then
  7621. ac_cpp_err=$ac_c_preproc_warn_flag
  7622. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7623. else
  7624. ac_cpp_err=
  7625. fi
  7626. else
  7627. ac_cpp_err=yes
  7628. fi
  7629. if test -z "$ac_cpp_err"; then
  7630. ac_header_preproc=yes
  7631. else
  7632. echo "$as_me: failed program was:" >&5
  7633. sed 's/^/| /' conftest.$ac_ext >&5
  7634. ac_header_preproc=no
  7635. fi
  7636. rm -f conftest.err conftest.$ac_ext
  7637. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7638. echo "${ECHO_T}$ac_header_preproc" >&6
  7639. # So? What about this header?
  7640. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7641. yes:no: )
  7642. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7643. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7644. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7645. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7646. ac_header_preproc=yes
  7647. ;;
  7648. no:yes:* )
  7649. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7650. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7651. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7652. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7653. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7654. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7655. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7656. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7657. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7658. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7659. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7660. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7661. (
  7662. cat <<\_ASBOX
  7663. ## ------------------------------------------ ##
  7664. ## Report this to the AC_PACKAGE_NAME lists. ##
  7665. ## ------------------------------------------ ##
  7666. _ASBOX
  7667. ) |
  7668. sed "s/^/$as_me: WARNING: /" >&2
  7669. ;;
  7670. esac
  7671. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7672. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7673. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7674. echo $ECHO_N "(cached) $ECHO_C" >&6
  7675. else
  7676. eval "$as_ac_Header=\$ac_header_preproc"
  7677. fi
  7678. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7679. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7680. fi
  7681. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7682. cat >>confdefs.h <<_ACEOF
  7683. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7684. _ACEOF
  7685. fi
  7686. done
  7687. for ac_func in fork vfork
  7688. do
  7689. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7690. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7691. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7692. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7693. echo $ECHO_N "(cached) $ECHO_C" >&6
  7694. else
  7695. cat >conftest.$ac_ext <<_ACEOF
  7696. /* confdefs.h. */
  7697. _ACEOF
  7698. cat confdefs.h >>conftest.$ac_ext
  7699. cat >>conftest.$ac_ext <<_ACEOF
  7700. /* end confdefs.h. */
  7701. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7702. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7703. #define $ac_func innocuous_$ac_func
  7704. /* System header to define __stub macros and hopefully few prototypes,
  7705. which can conflict with char $ac_func (); below.
  7706. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7707. <limits.h> exists even on freestanding compilers. */
  7708. #ifdef __STDC__
  7709. # include <limits.h>
  7710. #else
  7711. # include <assert.h>
  7712. #endif
  7713. #undef $ac_func
  7714. /* Override any gcc2 internal prototype to avoid an error. */
  7715. #ifdef __cplusplus
  7716. extern "C"
  7717. {
  7718. #endif
  7719. /* We use char because int might match the return type of a gcc2
  7720. builtin and then its argument prototype would still apply. */
  7721. char $ac_func ();
  7722. /* The GNU C library defines this for functions which it implements
  7723. to always fail with ENOSYS. Some functions are actually named
  7724. something starting with __ and the normal name is an alias. */
  7725. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7726. choke me
  7727. #else
  7728. char (*f) () = $ac_func;
  7729. #endif
  7730. #ifdef __cplusplus
  7731. }
  7732. #endif
  7733. int
  7734. main ()
  7735. {
  7736. return f != $ac_func;
  7737. ;
  7738. return 0;
  7739. }
  7740. _ACEOF
  7741. rm -f conftest.$ac_objext conftest$ac_exeext
  7742. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7743. (eval $ac_link) 2>conftest.er1
  7744. ac_status=$?
  7745. grep -v '^ *+' conftest.er1 >conftest.err
  7746. rm -f conftest.er1
  7747. cat conftest.err >&5
  7748. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7749. (exit $ac_status); } &&
  7750. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7751. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7752. (eval $ac_try) 2>&5
  7753. ac_status=$?
  7754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7755. (exit $ac_status); }; } &&
  7756. { ac_try='test -s conftest$ac_exeext'
  7757. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7758. (eval $ac_try) 2>&5
  7759. ac_status=$?
  7760. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7761. (exit $ac_status); }; }; then
  7762. eval "$as_ac_var=yes"
  7763. else
  7764. echo "$as_me: failed program was:" >&5
  7765. sed 's/^/| /' conftest.$ac_ext >&5
  7766. eval "$as_ac_var=no"
  7767. fi
  7768. rm -f conftest.err conftest.$ac_objext \
  7769. conftest$ac_exeext conftest.$ac_ext
  7770. fi
  7771. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7772. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7773. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7774. cat >>confdefs.h <<_ACEOF
  7775. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7776. _ACEOF
  7777. fi
  7778. done
  7779. if test "x$ac_cv_func_fork" = xyes; then
  7780. echo "$as_me:$LINENO: checking for working fork" >&5
  7781. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7782. if test "${ac_cv_func_fork_works+set}" = set; then
  7783. echo $ECHO_N "(cached) $ECHO_C" >&6
  7784. else
  7785. if test "$cross_compiling" = yes; then
  7786. ac_cv_func_fork_works=cross
  7787. else
  7788. cat >conftest.$ac_ext <<_ACEOF
  7789. /* By Ruediger Kuhlmann. */
  7790. #include <sys/types.h>
  7791. #if HAVE_UNISTD_H
  7792. # include <unistd.h>
  7793. #endif
  7794. /* Some systems only have a dummy stub for fork() */
  7795. int main ()
  7796. {
  7797. if (fork() < 0)
  7798. exit (1);
  7799. exit (0);
  7800. }
  7801. _ACEOF
  7802. rm -f conftest$ac_exeext
  7803. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7804. (eval $ac_link) 2>&5
  7805. ac_status=$?
  7806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7807. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7808. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7809. (eval $ac_try) 2>&5
  7810. ac_status=$?
  7811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7812. (exit $ac_status); }; }; then
  7813. ac_cv_func_fork_works=yes
  7814. else
  7815. echo "$as_me: program exited with status $ac_status" >&5
  7816. echo "$as_me: failed program was:" >&5
  7817. sed 's/^/| /' conftest.$ac_ext >&5
  7818. ( exit $ac_status )
  7819. ac_cv_func_fork_works=no
  7820. fi
  7821. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7822. fi
  7823. fi
  7824. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7825. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7826. else
  7827. ac_cv_func_fork_works=$ac_cv_func_fork
  7828. fi
  7829. if test "x$ac_cv_func_fork_works" = xcross; then
  7830. case $host in
  7831. *-*-amigaos* | *-*-msdosdjgpp*)
  7832. # Override, as these systems have only a dummy fork() stub
  7833. ac_cv_func_fork_works=no
  7834. ;;
  7835. *)
  7836. ac_cv_func_fork_works=yes
  7837. ;;
  7838. esac
  7839. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7840. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7841. fi
  7842. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7843. if test "x$ac_cv_func_vfork" = xyes; then
  7844. echo "$as_me:$LINENO: checking for working vfork" >&5
  7845. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7846. if test "${ac_cv_func_vfork_works+set}" = set; then
  7847. echo $ECHO_N "(cached) $ECHO_C" >&6
  7848. else
  7849. if test "$cross_compiling" = yes; then
  7850. ac_cv_func_vfork_works=cross
  7851. else
  7852. cat >conftest.$ac_ext <<_ACEOF
  7853. /* confdefs.h. */
  7854. _ACEOF
  7855. cat confdefs.h >>conftest.$ac_ext
  7856. cat >>conftest.$ac_ext <<_ACEOF
  7857. /* end confdefs.h. */
  7858. /* Thanks to Paul Eggert for this test. */
  7859. #include <stdio.h>
  7860. #include <stdlib.h>
  7861. #include <sys/types.h>
  7862. #include <sys/stat.h>
  7863. #include <sys/wait.h>
  7864. #if HAVE_UNISTD_H
  7865. # include <unistd.h>
  7866. #endif
  7867. #if HAVE_VFORK_H
  7868. # include <vfork.h>
  7869. #endif
  7870. /* On some sparc systems, changes by the child to local and incoming
  7871. argument registers are propagated back to the parent. The compiler
  7872. is told about this with #include <vfork.h>, but some compilers
  7873. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7874. static variable whose address is put into a register that is
  7875. clobbered by the vfork. */
  7876. static void
  7877. #ifdef __cplusplus
  7878. sparc_address_test (int arg)
  7879. # else
  7880. sparc_address_test (arg) int arg;
  7881. #endif
  7882. {
  7883. static pid_t child;
  7884. if (!child) {
  7885. child = vfork ();
  7886. if (child < 0) {
  7887. perror ("vfork");
  7888. _exit(2);
  7889. }
  7890. if (!child) {
  7891. arg = getpid();
  7892. write(-1, "", 0);
  7893. _exit (arg);
  7894. }
  7895. }
  7896. }
  7897. int
  7898. main ()
  7899. {
  7900. pid_t parent = getpid ();
  7901. pid_t child;
  7902. sparc_address_test (0);
  7903. child = vfork ();
  7904. if (child == 0) {
  7905. /* Here is another test for sparc vfork register problems. This
  7906. test uses lots of local variables, at least as many local
  7907. variables as main has allocated so far including compiler
  7908. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7909. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7910. reuse the register of parent for one of the local variables,
  7911. since it will think that parent can't possibly be used any more
  7912. in this routine. Assigning to the local variable will thus
  7913. munge parent in the parent process. */
  7914. pid_t
  7915. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7916. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7917. /* Convince the compiler that p..p7 are live; otherwise, it might
  7918. use the same hardware register for all 8 local variables. */
  7919. if (p != p1 || p != p2 || p != p3 || p != p4
  7920. || p != p5 || p != p6 || p != p7)
  7921. _exit(1);
  7922. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7923. from child file descriptors. If the child closes a descriptor
  7924. before it execs or exits, this munges the parent's descriptor
  7925. as well. Test for this by closing stdout in the child. */
  7926. _exit(close(fileno(stdout)) != 0);
  7927. } else {
  7928. int status;
  7929. struct stat st;
  7930. while (wait(&status) != child)
  7931. ;
  7932. exit(
  7933. /* Was there some problem with vforking? */
  7934. child < 0
  7935. /* Did the child fail? (This shouldn't happen.) */
  7936. || status
  7937. /* Did the vfork/compiler bug occur? */
  7938. || parent != getpid()
  7939. /* Did the file descriptor bug occur? */
  7940. || fstat(fileno(stdout), &st) != 0
  7941. );
  7942. }
  7943. }
  7944. _ACEOF
  7945. rm -f conftest$ac_exeext
  7946. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7947. (eval $ac_link) 2>&5
  7948. ac_status=$?
  7949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7950. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7952. (eval $ac_try) 2>&5
  7953. ac_status=$?
  7954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7955. (exit $ac_status); }; }; then
  7956. ac_cv_func_vfork_works=yes
  7957. else
  7958. echo "$as_me: program exited with status $ac_status" >&5
  7959. echo "$as_me: failed program was:" >&5
  7960. sed 's/^/| /' conftest.$ac_ext >&5
  7961. ( exit $ac_status )
  7962. ac_cv_func_vfork_works=no
  7963. fi
  7964. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7965. fi
  7966. fi
  7967. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7968. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  7969. fi;
  7970. if test "x$ac_cv_func_fork_works" = xcross; then
  7971. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7972. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7973. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7974. fi
  7975. if test "x$ac_cv_func_vfork_works" = xyes; then
  7976. cat >>confdefs.h <<\_ACEOF
  7977. #define HAVE_WORKING_VFORK 1
  7978. _ACEOF
  7979. else
  7980. cat >>confdefs.h <<\_ACEOF
  7981. #define vfork fork
  7982. _ACEOF
  7983. fi
  7984. if test "x$ac_cv_func_fork_works" = xyes; then
  7985. cat >>confdefs.h <<\_ACEOF
  7986. #define HAVE_WORKING_FORK 1
  7987. _ACEOF
  7988. fi
  7989. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7990. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7991. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7992. echo $ECHO_N "(cached) $ECHO_C" >&6
  7993. else
  7994. rm -f conftest.sym conftest.file
  7995. echo >conftest.file
  7996. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7997. if test "$cross_compiling" = yes; then
  7998. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7999. else
  8000. cat >conftest.$ac_ext <<_ACEOF
  8001. /* confdefs.h. */
  8002. _ACEOF
  8003. cat confdefs.h >>conftest.$ac_ext
  8004. cat >>conftest.$ac_ext <<_ACEOF
  8005. /* end confdefs.h. */
  8006. $ac_includes_default
  8007. int
  8008. main ()
  8009. {
  8010. struct stat sbuf;
  8011. /* Linux will dereference the symlink and fail.
  8012. That is better in the sense that it means we will not
  8013. have to compile and use the lstat wrapper. */
  8014. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8015. ;
  8016. return 0;
  8017. }
  8018. _ACEOF
  8019. rm -f conftest$ac_exeext
  8020. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8021. (eval $ac_link) 2>&5
  8022. ac_status=$?
  8023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8024. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8026. (eval $ac_try) 2>&5
  8027. ac_status=$?
  8028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8029. (exit $ac_status); }; }; then
  8030. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8031. else
  8032. echo "$as_me: program exited with status $ac_status" >&5
  8033. echo "$as_me: failed program was:" >&5
  8034. sed 's/^/| /' conftest.$ac_ext >&5
  8035. ( exit $ac_status )
  8036. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8037. fi
  8038. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8039. fi
  8040. else
  8041. # If the `ln -s' command failed, then we probably don't even
  8042. # have an lstat function.
  8043. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8044. fi
  8045. rm -f conftest.sym conftest.file
  8046. fi
  8047. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8048. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8049. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8050. cat >>confdefs.h <<_ACEOF
  8051. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8052. _ACEOF
  8053. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8054. case $LIBOBJS in
  8055. "lstat.$ac_objext" | \
  8056. *" lstat.$ac_objext" | \
  8057. "lstat.$ac_objext "* | \
  8058. *" lstat.$ac_objext "* ) ;;
  8059. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8060. esac
  8061. fi
  8062. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8063. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8064. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8065. echo $ECHO_N "(cached) $ECHO_C" >&6
  8066. else
  8067. if test "$cross_compiling" = yes; then
  8068. ac_cv_func_lstat_empty_string_bug=yes
  8069. else
  8070. cat >conftest.$ac_ext <<_ACEOF
  8071. /* confdefs.h. */
  8072. _ACEOF
  8073. cat confdefs.h >>conftest.$ac_ext
  8074. cat >>conftest.$ac_ext <<_ACEOF
  8075. /* end confdefs.h. */
  8076. $ac_includes_default
  8077. int
  8078. main ()
  8079. {
  8080. struct stat sbuf;
  8081. exit (lstat ("", &sbuf) ? 1 : 0);
  8082. ;
  8083. return 0;
  8084. }
  8085. _ACEOF
  8086. rm -f conftest$ac_exeext
  8087. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8088. (eval $ac_link) 2>&5
  8089. ac_status=$?
  8090. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8091. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8092. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8093. (eval $ac_try) 2>&5
  8094. ac_status=$?
  8095. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8096. (exit $ac_status); }; }; then
  8097. ac_cv_func_lstat_empty_string_bug=yes
  8098. else
  8099. echo "$as_me: program exited with status $ac_status" >&5
  8100. echo "$as_me: failed program was:" >&5
  8101. sed 's/^/| /' conftest.$ac_ext >&5
  8102. ( exit $ac_status )
  8103. ac_cv_func_lstat_empty_string_bug=no
  8104. fi
  8105. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8106. fi
  8107. fi
  8108. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8109. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8110. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8111. case $LIBOBJS in
  8112. "lstat.$ac_objext" | \
  8113. *" lstat.$ac_objext" | \
  8114. "lstat.$ac_objext "* | \
  8115. *" lstat.$ac_objext "* ) ;;
  8116. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8117. esac
  8118. cat >>confdefs.h <<_ACEOF
  8119. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8120. _ACEOF
  8121. fi
  8122. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8123. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8124. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8125. echo $ECHO_N "(cached) $ECHO_C" >&6
  8126. else
  8127. rm -f conftest.sym conftest.file
  8128. echo >conftest.file
  8129. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8130. if test "$cross_compiling" = yes; then
  8131. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8132. else
  8133. cat >conftest.$ac_ext <<_ACEOF
  8134. /* confdefs.h. */
  8135. _ACEOF
  8136. cat confdefs.h >>conftest.$ac_ext
  8137. cat >>conftest.$ac_ext <<_ACEOF
  8138. /* end confdefs.h. */
  8139. $ac_includes_default
  8140. int
  8141. main ()
  8142. {
  8143. struct stat sbuf;
  8144. /* Linux will dereference the symlink and fail.
  8145. That is better in the sense that it means we will not
  8146. have to compile and use the lstat wrapper. */
  8147. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8148. ;
  8149. return 0;
  8150. }
  8151. _ACEOF
  8152. rm -f conftest$ac_exeext
  8153. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8154. (eval $ac_link) 2>&5
  8155. ac_status=$?
  8156. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8157. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8158. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8159. (eval $ac_try) 2>&5
  8160. ac_status=$?
  8161. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8162. (exit $ac_status); }; }; then
  8163. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8164. else
  8165. echo "$as_me: program exited with status $ac_status" >&5
  8166. echo "$as_me: failed program was:" >&5
  8167. sed 's/^/| /' conftest.$ac_ext >&5
  8168. ( exit $ac_status )
  8169. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8170. fi
  8171. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8172. fi
  8173. else
  8174. # If the `ln -s' command failed, then we probably don't even
  8175. # have an lstat function.
  8176. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8177. fi
  8178. rm -f conftest.sym conftest.file
  8179. fi
  8180. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8181. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8182. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8183. cat >>confdefs.h <<_ACEOF
  8184. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8185. _ACEOF
  8186. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8187. case $LIBOBJS in
  8188. "lstat.$ac_objext" | \
  8189. *" lstat.$ac_objext" | \
  8190. "lstat.$ac_objext "* | \
  8191. *" lstat.$ac_objext "* ) ;;
  8192. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8193. esac
  8194. fi
  8195. for ac_header in stdlib.h
  8196. do
  8197. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8198. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8199. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8200. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8201. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8202. echo $ECHO_N "(cached) $ECHO_C" >&6
  8203. fi
  8204. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8205. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8206. else
  8207. # Is the header compilable?
  8208. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8209. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8210. cat >conftest.$ac_ext <<_ACEOF
  8211. /* confdefs.h. */
  8212. _ACEOF
  8213. cat confdefs.h >>conftest.$ac_ext
  8214. cat >>conftest.$ac_ext <<_ACEOF
  8215. /* end confdefs.h. */
  8216. $ac_includes_default
  8217. #include <$ac_header>
  8218. _ACEOF
  8219. rm -f conftest.$ac_objext
  8220. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8221. (eval $ac_compile) 2>conftest.er1
  8222. ac_status=$?
  8223. grep -v '^ *+' conftest.er1 >conftest.err
  8224. rm -f conftest.er1
  8225. cat conftest.err >&5
  8226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8227. (exit $ac_status); } &&
  8228. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8229. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8230. (eval $ac_try) 2>&5
  8231. ac_status=$?
  8232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8233. (exit $ac_status); }; } &&
  8234. { ac_try='test -s conftest.$ac_objext'
  8235. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8236. (eval $ac_try) 2>&5
  8237. ac_status=$?
  8238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8239. (exit $ac_status); }; }; then
  8240. ac_header_compiler=yes
  8241. else
  8242. echo "$as_me: failed program was:" >&5
  8243. sed 's/^/| /' conftest.$ac_ext >&5
  8244. ac_header_compiler=no
  8245. fi
  8246. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8247. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8248. echo "${ECHO_T}$ac_header_compiler" >&6
  8249. # Is the header present?
  8250. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8251. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8252. cat >conftest.$ac_ext <<_ACEOF
  8253. /* confdefs.h. */
  8254. _ACEOF
  8255. cat confdefs.h >>conftest.$ac_ext
  8256. cat >>conftest.$ac_ext <<_ACEOF
  8257. /* end confdefs.h. */
  8258. #include <$ac_header>
  8259. _ACEOF
  8260. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8261. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8262. ac_status=$?
  8263. grep -v '^ *+' conftest.er1 >conftest.err
  8264. rm -f conftest.er1
  8265. cat conftest.err >&5
  8266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8267. (exit $ac_status); } >/dev/null; then
  8268. if test -s conftest.err; then
  8269. ac_cpp_err=$ac_c_preproc_warn_flag
  8270. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8271. else
  8272. ac_cpp_err=
  8273. fi
  8274. else
  8275. ac_cpp_err=yes
  8276. fi
  8277. if test -z "$ac_cpp_err"; then
  8278. ac_header_preproc=yes
  8279. else
  8280. echo "$as_me: failed program was:" >&5
  8281. sed 's/^/| /' conftest.$ac_ext >&5
  8282. ac_header_preproc=no
  8283. fi
  8284. rm -f conftest.err conftest.$ac_ext
  8285. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8286. echo "${ECHO_T}$ac_header_preproc" >&6
  8287. # So? What about this header?
  8288. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8289. yes:no: )
  8290. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8291. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8292. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8293. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8294. ac_header_preproc=yes
  8295. ;;
  8296. no:yes:* )
  8297. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8298. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8299. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8300. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8301. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8302. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8303. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8304. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8305. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8306. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8307. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8308. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8309. (
  8310. cat <<\_ASBOX
  8311. ## ------------------------------------------ ##
  8312. ## Report this to the AC_PACKAGE_NAME lists. ##
  8313. ## ------------------------------------------ ##
  8314. _ASBOX
  8315. ) |
  8316. sed "s/^/$as_me: WARNING: /" >&2
  8317. ;;
  8318. esac
  8319. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8320. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8321. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8322. echo $ECHO_N "(cached) $ECHO_C" >&6
  8323. else
  8324. eval "$as_ac_Header=\$ac_header_preproc"
  8325. fi
  8326. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8327. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8328. fi
  8329. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8330. cat >>confdefs.h <<_ACEOF
  8331. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8332. _ACEOF
  8333. fi
  8334. done
  8335. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8336. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8337. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8338. echo $ECHO_N "(cached) $ECHO_C" >&6
  8339. else
  8340. if test "$cross_compiling" = yes; then
  8341. ac_cv_func_malloc_0_nonnull=no
  8342. else
  8343. cat >conftest.$ac_ext <<_ACEOF
  8344. /* confdefs.h. */
  8345. _ACEOF
  8346. cat confdefs.h >>conftest.$ac_ext
  8347. cat >>conftest.$ac_ext <<_ACEOF
  8348. /* end confdefs.h. */
  8349. #if STDC_HEADERS || HAVE_STDLIB_H
  8350. # include <stdlib.h>
  8351. #else
  8352. char *malloc ();
  8353. #endif
  8354. int
  8355. main ()
  8356. {
  8357. exit (malloc (0) ? 0 : 1);
  8358. ;
  8359. return 0;
  8360. }
  8361. _ACEOF
  8362. rm -f conftest$ac_exeext
  8363. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8364. (eval $ac_link) 2>&5
  8365. ac_status=$?
  8366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8367. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8368. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8369. (eval $ac_try) 2>&5
  8370. ac_status=$?
  8371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8372. (exit $ac_status); }; }; then
  8373. ac_cv_func_malloc_0_nonnull=yes
  8374. else
  8375. echo "$as_me: program exited with status $ac_status" >&5
  8376. echo "$as_me: failed program was:" >&5
  8377. sed 's/^/| /' conftest.$ac_ext >&5
  8378. ( exit $ac_status )
  8379. ac_cv_func_malloc_0_nonnull=no
  8380. fi
  8381. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8382. fi
  8383. fi
  8384. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8385. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8386. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8387. cat >>confdefs.h <<\_ACEOF
  8388. #define HAVE_MALLOC 1
  8389. _ACEOF
  8390. else
  8391. cat >>confdefs.h <<\_ACEOF
  8392. #define HAVE_MALLOC 0
  8393. _ACEOF
  8394. case $LIBOBJS in
  8395. "malloc.$ac_objext" | \
  8396. *" malloc.$ac_objext" | \
  8397. "malloc.$ac_objext "* | \
  8398. *" malloc.$ac_objext "* ) ;;
  8399. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8400. esac
  8401. cat >>confdefs.h <<\_ACEOF
  8402. #define malloc rpl_malloc
  8403. _ACEOF
  8404. fi
  8405. for ac_header in stdlib.h sys/time.h unistd.h
  8406. do
  8407. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8408. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8409. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8410. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8411. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8412. echo $ECHO_N "(cached) $ECHO_C" >&6
  8413. fi
  8414. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8415. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8416. else
  8417. # Is the header compilable?
  8418. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8419. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8420. cat >conftest.$ac_ext <<_ACEOF
  8421. /* confdefs.h. */
  8422. _ACEOF
  8423. cat confdefs.h >>conftest.$ac_ext
  8424. cat >>conftest.$ac_ext <<_ACEOF
  8425. /* end confdefs.h. */
  8426. $ac_includes_default
  8427. #include <$ac_header>
  8428. _ACEOF
  8429. rm -f conftest.$ac_objext
  8430. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8431. (eval $ac_compile) 2>conftest.er1
  8432. ac_status=$?
  8433. grep -v '^ *+' conftest.er1 >conftest.err
  8434. rm -f conftest.er1
  8435. cat conftest.err >&5
  8436. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8437. (exit $ac_status); } &&
  8438. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8439. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8440. (eval $ac_try) 2>&5
  8441. ac_status=$?
  8442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8443. (exit $ac_status); }; } &&
  8444. { ac_try='test -s conftest.$ac_objext'
  8445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8446. (eval $ac_try) 2>&5
  8447. ac_status=$?
  8448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8449. (exit $ac_status); }; }; then
  8450. ac_header_compiler=yes
  8451. else
  8452. echo "$as_me: failed program was:" >&5
  8453. sed 's/^/| /' conftest.$ac_ext >&5
  8454. ac_header_compiler=no
  8455. fi
  8456. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8457. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8458. echo "${ECHO_T}$ac_header_compiler" >&6
  8459. # Is the header present?
  8460. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8461. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8462. cat >conftest.$ac_ext <<_ACEOF
  8463. /* confdefs.h. */
  8464. _ACEOF
  8465. cat confdefs.h >>conftest.$ac_ext
  8466. cat >>conftest.$ac_ext <<_ACEOF
  8467. /* end confdefs.h. */
  8468. #include <$ac_header>
  8469. _ACEOF
  8470. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8471. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8472. ac_status=$?
  8473. grep -v '^ *+' conftest.er1 >conftest.err
  8474. rm -f conftest.er1
  8475. cat conftest.err >&5
  8476. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8477. (exit $ac_status); } >/dev/null; then
  8478. if test -s conftest.err; then
  8479. ac_cpp_err=$ac_c_preproc_warn_flag
  8480. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8481. else
  8482. ac_cpp_err=
  8483. fi
  8484. else
  8485. ac_cpp_err=yes
  8486. fi
  8487. if test -z "$ac_cpp_err"; then
  8488. ac_header_preproc=yes
  8489. else
  8490. echo "$as_me: failed program was:" >&5
  8491. sed 's/^/| /' conftest.$ac_ext >&5
  8492. ac_header_preproc=no
  8493. fi
  8494. rm -f conftest.err conftest.$ac_ext
  8495. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8496. echo "${ECHO_T}$ac_header_preproc" >&6
  8497. # So? What about this header?
  8498. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8499. yes:no: )
  8500. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8501. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8502. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8503. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8504. ac_header_preproc=yes
  8505. ;;
  8506. no:yes:* )
  8507. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8508. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8509. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8510. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8511. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8512. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8513. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8514. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8515. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8516. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8517. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8518. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8519. (
  8520. cat <<\_ASBOX
  8521. ## ------------------------------------------ ##
  8522. ## Report this to the AC_PACKAGE_NAME lists. ##
  8523. ## ------------------------------------------ ##
  8524. _ASBOX
  8525. ) |
  8526. sed "s/^/$as_me: WARNING: /" >&2
  8527. ;;
  8528. esac
  8529. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8530. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8531. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8532. echo $ECHO_N "(cached) $ECHO_C" >&6
  8533. else
  8534. eval "$as_ac_Header=\$ac_header_preproc"
  8535. fi
  8536. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8537. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8538. fi
  8539. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8540. cat >>confdefs.h <<_ACEOF
  8541. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8542. _ACEOF
  8543. fi
  8544. done
  8545. for ac_func in alarm
  8546. do
  8547. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8548. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8549. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8550. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8551. echo $ECHO_N "(cached) $ECHO_C" >&6
  8552. else
  8553. cat >conftest.$ac_ext <<_ACEOF
  8554. /* confdefs.h. */
  8555. _ACEOF
  8556. cat confdefs.h >>conftest.$ac_ext
  8557. cat >>conftest.$ac_ext <<_ACEOF
  8558. /* end confdefs.h. */
  8559. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8560. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8561. #define $ac_func innocuous_$ac_func
  8562. /* System header to define __stub macros and hopefully few prototypes,
  8563. which can conflict with char $ac_func (); below.
  8564. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8565. <limits.h> exists even on freestanding compilers. */
  8566. #ifdef __STDC__
  8567. # include <limits.h>
  8568. #else
  8569. # include <assert.h>
  8570. #endif
  8571. #undef $ac_func
  8572. /* Override any gcc2 internal prototype to avoid an error. */
  8573. #ifdef __cplusplus
  8574. extern "C"
  8575. {
  8576. #endif
  8577. /* We use char because int might match the return type of a gcc2
  8578. builtin and then its argument prototype would still apply. */
  8579. char $ac_func ();
  8580. /* The GNU C library defines this for functions which it implements
  8581. to always fail with ENOSYS. Some functions are actually named
  8582. something starting with __ and the normal name is an alias. */
  8583. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8584. choke me
  8585. #else
  8586. char (*f) () = $ac_func;
  8587. #endif
  8588. #ifdef __cplusplus
  8589. }
  8590. #endif
  8591. int
  8592. main ()
  8593. {
  8594. return f != $ac_func;
  8595. ;
  8596. return 0;
  8597. }
  8598. _ACEOF
  8599. rm -f conftest.$ac_objext conftest$ac_exeext
  8600. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8601. (eval $ac_link) 2>conftest.er1
  8602. ac_status=$?
  8603. grep -v '^ *+' conftest.er1 >conftest.err
  8604. rm -f conftest.er1
  8605. cat conftest.err >&5
  8606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8607. (exit $ac_status); } &&
  8608. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8610. (eval $ac_try) 2>&5
  8611. ac_status=$?
  8612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8613. (exit $ac_status); }; } &&
  8614. { ac_try='test -s conftest$ac_exeext'
  8615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8616. (eval $ac_try) 2>&5
  8617. ac_status=$?
  8618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8619. (exit $ac_status); }; }; then
  8620. eval "$as_ac_var=yes"
  8621. else
  8622. echo "$as_me: failed program was:" >&5
  8623. sed 's/^/| /' conftest.$ac_ext >&5
  8624. eval "$as_ac_var=no"
  8625. fi
  8626. rm -f conftest.err conftest.$ac_objext \
  8627. conftest$ac_exeext conftest.$ac_ext
  8628. fi
  8629. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8630. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8631. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8632. cat >>confdefs.h <<_ACEOF
  8633. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8634. _ACEOF
  8635. fi
  8636. done
  8637. echo "$as_me:$LINENO: checking for working mktime" >&5
  8638. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8639. if test "${ac_cv_func_working_mktime+set}" = set; then
  8640. echo $ECHO_N "(cached) $ECHO_C" >&6
  8641. else
  8642. if test "$cross_compiling" = yes; then
  8643. ac_cv_func_working_mktime=no
  8644. else
  8645. cat >conftest.$ac_ext <<_ACEOF
  8646. /* confdefs.h. */
  8647. _ACEOF
  8648. cat confdefs.h >>conftest.$ac_ext
  8649. cat >>conftest.$ac_ext <<_ACEOF
  8650. /* end confdefs.h. */
  8651. /* Test program from Paul Eggert and Tony Leneis. */
  8652. #if TIME_WITH_SYS_TIME
  8653. # include <sys/time.h>
  8654. # include <time.h>
  8655. #else
  8656. # if HAVE_SYS_TIME_H
  8657. # include <sys/time.h>
  8658. # else
  8659. # include <time.h>
  8660. # endif
  8661. #endif
  8662. #if HAVE_STDLIB_H
  8663. # include <stdlib.h>
  8664. #endif
  8665. #if HAVE_UNISTD_H
  8666. # include <unistd.h>
  8667. #endif
  8668. #if !HAVE_ALARM
  8669. # define alarm(X) /* empty */
  8670. #endif
  8671. /* Work around redefinition to rpl_putenv by other config tests. */
  8672. #undef putenv
  8673. static time_t time_t_max;
  8674. static time_t time_t_min;
  8675. /* Values we'll use to set the TZ environment variable. */
  8676. static char *tz_strings[] = {
  8677. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8678. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8679. };
  8680. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8681. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8682. Based on a problem report from Andreas Jaeger. */
  8683. static void
  8684. spring_forward_gap ()
  8685. {
  8686. /* glibc (up to about 1998-10-07) failed this test. */
  8687. struct tm tm;
  8688. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8689. instead of "TZ=America/Vancouver" in order to detect the bug even
  8690. on systems that don't support the Olson extension, or don't have the
  8691. full zoneinfo tables installed. */
  8692. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8693. tm.tm_year = 98;
  8694. tm.tm_mon = 3;
  8695. tm.tm_mday = 5;
  8696. tm.tm_hour = 2;
  8697. tm.tm_min = 0;
  8698. tm.tm_sec = 0;
  8699. tm.tm_isdst = -1;
  8700. if (mktime (&tm) == (time_t)-1)
  8701. exit (1);
  8702. }
  8703. static void
  8704. mktime_test1 (now)
  8705. time_t now;
  8706. {
  8707. struct tm *lt;
  8708. if ((lt = localtime (&now)) && mktime (lt) != now)
  8709. exit (1);
  8710. }
  8711. static void
  8712. mktime_test (now)
  8713. time_t now;
  8714. {
  8715. mktime_test1 (now);
  8716. mktime_test1 ((time_t) (time_t_max - now));
  8717. mktime_test1 ((time_t) (time_t_min + now));
  8718. }
  8719. static void
  8720. irix_6_4_bug ()
  8721. {
  8722. /* Based on code from Ariel Faigon. */
  8723. struct tm tm;
  8724. tm.tm_year = 96;
  8725. tm.tm_mon = 3;
  8726. tm.tm_mday = 0;
  8727. tm.tm_hour = 0;
  8728. tm.tm_min = 0;
  8729. tm.tm_sec = 0;
  8730. tm.tm_isdst = -1;
  8731. mktime (&tm);
  8732. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8733. exit (1);
  8734. }
  8735. static void
  8736. bigtime_test (j)
  8737. int j;
  8738. {
  8739. struct tm tm;
  8740. time_t now;
  8741. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8742. now = mktime (&tm);
  8743. if (now != (time_t) -1)
  8744. {
  8745. struct tm *lt = localtime (&now);
  8746. if (! (lt
  8747. && lt->tm_year == tm.tm_year
  8748. && lt->tm_mon == tm.tm_mon
  8749. && lt->tm_mday == tm.tm_mday
  8750. && lt->tm_hour == tm.tm_hour
  8751. && lt->tm_min == tm.tm_min
  8752. && lt->tm_sec == tm.tm_sec
  8753. && lt->tm_yday == tm.tm_yday
  8754. && lt->tm_wday == tm.tm_wday
  8755. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8756. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8757. exit (1);
  8758. }
  8759. }
  8760. int
  8761. main ()
  8762. {
  8763. time_t t, delta;
  8764. int i, j;
  8765. /* This test makes some buggy mktime implementations loop.
  8766. Give up after 60 seconds; a mktime slower than that
  8767. isn't worth using anyway. */
  8768. alarm (60);
  8769. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8770. continue;
  8771. time_t_max--;
  8772. if ((time_t) -1 < 0)
  8773. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8774. continue;
  8775. delta = time_t_max / 997; /* a suitable prime number */
  8776. for (i = 0; i < N_STRINGS; i++)
  8777. {
  8778. if (tz_strings[i])
  8779. putenv (tz_strings[i]);
  8780. for (t = 0; t <= time_t_max - delta; t += delta)
  8781. mktime_test (t);
  8782. mktime_test ((time_t) 1);
  8783. mktime_test ((time_t) (60 * 60));
  8784. mktime_test ((time_t) (60 * 60 * 24));
  8785. for (j = 1; 0 < j; j *= 2)
  8786. bigtime_test (j);
  8787. bigtime_test (j - 1);
  8788. }
  8789. irix_6_4_bug ();
  8790. spring_forward_gap ();
  8791. exit (0);
  8792. }
  8793. _ACEOF
  8794. rm -f conftest$ac_exeext
  8795. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8796. (eval $ac_link) 2>&5
  8797. ac_status=$?
  8798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8799. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8800. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8801. (eval $ac_try) 2>&5
  8802. ac_status=$?
  8803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8804. (exit $ac_status); }; }; then
  8805. ac_cv_func_working_mktime=yes
  8806. else
  8807. echo "$as_me: program exited with status $ac_status" >&5
  8808. echo "$as_me: failed program was:" >&5
  8809. sed 's/^/| /' conftest.$ac_ext >&5
  8810. ( exit $ac_status )
  8811. ac_cv_func_working_mktime=no
  8812. fi
  8813. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8814. fi
  8815. fi
  8816. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8817. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8818. if test $ac_cv_func_working_mktime = no; then
  8819. case $LIBOBJS in
  8820. "mktime.$ac_objext" | \
  8821. *" mktime.$ac_objext" | \
  8822. "mktime.$ac_objext "* | \
  8823. *" mktime.$ac_objext "* ) ;;
  8824. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8825. esac
  8826. fi
  8827. for ac_header in stdlib.h unistd.h
  8828. do
  8829. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8830. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8831. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8832. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8833. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8834. echo $ECHO_N "(cached) $ECHO_C" >&6
  8835. fi
  8836. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8837. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8838. else
  8839. # Is the header compilable?
  8840. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8841. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8842. cat >conftest.$ac_ext <<_ACEOF
  8843. /* confdefs.h. */
  8844. _ACEOF
  8845. cat confdefs.h >>conftest.$ac_ext
  8846. cat >>conftest.$ac_ext <<_ACEOF
  8847. /* end confdefs.h. */
  8848. $ac_includes_default
  8849. #include <$ac_header>
  8850. _ACEOF
  8851. rm -f conftest.$ac_objext
  8852. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8853. (eval $ac_compile) 2>conftest.er1
  8854. ac_status=$?
  8855. grep -v '^ *+' conftest.er1 >conftest.err
  8856. rm -f conftest.er1
  8857. cat conftest.err >&5
  8858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8859. (exit $ac_status); } &&
  8860. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8861. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8862. (eval $ac_try) 2>&5
  8863. ac_status=$?
  8864. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8865. (exit $ac_status); }; } &&
  8866. { ac_try='test -s conftest.$ac_objext'
  8867. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8868. (eval $ac_try) 2>&5
  8869. ac_status=$?
  8870. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8871. (exit $ac_status); }; }; then
  8872. ac_header_compiler=yes
  8873. else
  8874. echo "$as_me: failed program was:" >&5
  8875. sed 's/^/| /' conftest.$ac_ext >&5
  8876. ac_header_compiler=no
  8877. fi
  8878. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8879. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8880. echo "${ECHO_T}$ac_header_compiler" >&6
  8881. # Is the header present?
  8882. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8883. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8884. cat >conftest.$ac_ext <<_ACEOF
  8885. /* confdefs.h. */
  8886. _ACEOF
  8887. cat confdefs.h >>conftest.$ac_ext
  8888. cat >>conftest.$ac_ext <<_ACEOF
  8889. /* end confdefs.h. */
  8890. #include <$ac_header>
  8891. _ACEOF
  8892. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8893. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8894. ac_status=$?
  8895. grep -v '^ *+' conftest.er1 >conftest.err
  8896. rm -f conftest.er1
  8897. cat conftest.err >&5
  8898. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8899. (exit $ac_status); } >/dev/null; then
  8900. if test -s conftest.err; then
  8901. ac_cpp_err=$ac_c_preproc_warn_flag
  8902. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8903. else
  8904. ac_cpp_err=
  8905. fi
  8906. else
  8907. ac_cpp_err=yes
  8908. fi
  8909. if test -z "$ac_cpp_err"; then
  8910. ac_header_preproc=yes
  8911. else
  8912. echo "$as_me: failed program was:" >&5
  8913. sed 's/^/| /' conftest.$ac_ext >&5
  8914. ac_header_preproc=no
  8915. fi
  8916. rm -f conftest.err conftest.$ac_ext
  8917. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8918. echo "${ECHO_T}$ac_header_preproc" >&6
  8919. # So? What about this header?
  8920. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8921. yes:no: )
  8922. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8923. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8924. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8925. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8926. ac_header_preproc=yes
  8927. ;;
  8928. no:yes:* )
  8929. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8930. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8931. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8932. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8933. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8934. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8935. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8936. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8937. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8938. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8939. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8940. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8941. (
  8942. cat <<\_ASBOX
  8943. ## ------------------------------------------ ##
  8944. ## Report this to the AC_PACKAGE_NAME lists. ##
  8945. ## ------------------------------------------ ##
  8946. _ASBOX
  8947. ) |
  8948. sed "s/^/$as_me: WARNING: /" >&2
  8949. ;;
  8950. esac
  8951. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8952. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8953. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8954. echo $ECHO_N "(cached) $ECHO_C" >&6
  8955. else
  8956. eval "$as_ac_Header=\$ac_header_preproc"
  8957. fi
  8958. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8959. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8960. fi
  8961. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8962. cat >>confdefs.h <<_ACEOF
  8963. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8964. _ACEOF
  8965. fi
  8966. done
  8967. for ac_func in getpagesize
  8968. do
  8969. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8970. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8971. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8972. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8973. echo $ECHO_N "(cached) $ECHO_C" >&6
  8974. else
  8975. cat >conftest.$ac_ext <<_ACEOF
  8976. /* confdefs.h. */
  8977. _ACEOF
  8978. cat confdefs.h >>conftest.$ac_ext
  8979. cat >>conftest.$ac_ext <<_ACEOF
  8980. /* end confdefs.h. */
  8981. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8982. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8983. #define $ac_func innocuous_$ac_func
  8984. /* System header to define __stub macros and hopefully few prototypes,
  8985. which can conflict with char $ac_func (); below.
  8986. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8987. <limits.h> exists even on freestanding compilers. */
  8988. #ifdef __STDC__
  8989. # include <limits.h>
  8990. #else
  8991. # include <assert.h>
  8992. #endif
  8993. #undef $ac_func
  8994. /* Override any gcc2 internal prototype to avoid an error. */
  8995. #ifdef __cplusplus
  8996. extern "C"
  8997. {
  8998. #endif
  8999. /* We use char because int might match the return type of a gcc2
  9000. builtin and then its argument prototype would still apply. */
  9001. char $ac_func ();
  9002. /* The GNU C library defines this for functions which it implements
  9003. to always fail with ENOSYS. Some functions are actually named
  9004. something starting with __ and the normal name is an alias. */
  9005. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9006. choke me
  9007. #else
  9008. char (*f) () = $ac_func;
  9009. #endif
  9010. #ifdef __cplusplus
  9011. }
  9012. #endif
  9013. int
  9014. main ()
  9015. {
  9016. return f != $ac_func;
  9017. ;
  9018. return 0;
  9019. }
  9020. _ACEOF
  9021. rm -f conftest.$ac_objext conftest$ac_exeext
  9022. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9023. (eval $ac_link) 2>conftest.er1
  9024. ac_status=$?
  9025. grep -v '^ *+' conftest.er1 >conftest.err
  9026. rm -f conftest.er1
  9027. cat conftest.err >&5
  9028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9029. (exit $ac_status); } &&
  9030. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9032. (eval $ac_try) 2>&5
  9033. ac_status=$?
  9034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9035. (exit $ac_status); }; } &&
  9036. { ac_try='test -s conftest$ac_exeext'
  9037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9038. (eval $ac_try) 2>&5
  9039. ac_status=$?
  9040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9041. (exit $ac_status); }; }; then
  9042. eval "$as_ac_var=yes"
  9043. else
  9044. echo "$as_me: failed program was:" >&5
  9045. sed 's/^/| /' conftest.$ac_ext >&5
  9046. eval "$as_ac_var=no"
  9047. fi
  9048. rm -f conftest.err conftest.$ac_objext \
  9049. conftest$ac_exeext conftest.$ac_ext
  9050. fi
  9051. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9052. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9053. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9054. cat >>confdefs.h <<_ACEOF
  9055. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9056. _ACEOF
  9057. fi
  9058. done
  9059. echo "$as_me:$LINENO: checking for working mmap" >&5
  9060. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9061. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9062. echo $ECHO_N "(cached) $ECHO_C" >&6
  9063. else
  9064. if test "$cross_compiling" = yes; then
  9065. ac_cv_func_mmap_fixed_mapped=no
  9066. else
  9067. cat >conftest.$ac_ext <<_ACEOF
  9068. /* confdefs.h. */
  9069. _ACEOF
  9070. cat confdefs.h >>conftest.$ac_ext
  9071. cat >>conftest.$ac_ext <<_ACEOF
  9072. /* end confdefs.h. */
  9073. $ac_includes_default
  9074. /* malloc might have been renamed as rpl_malloc. */
  9075. #undef malloc
  9076. /* Thanks to Mike Haertel and Jim Avera for this test.
  9077. Here is a matrix of mmap possibilities:
  9078. mmap private not fixed
  9079. mmap private fixed at somewhere currently unmapped
  9080. mmap private fixed at somewhere already mapped
  9081. mmap shared not fixed
  9082. mmap shared fixed at somewhere currently unmapped
  9083. mmap shared fixed at somewhere already mapped
  9084. For private mappings, we should verify that changes cannot be read()
  9085. back from the file, nor mmap's back from the file at a different
  9086. address. (There have been systems where private was not correctly
  9087. implemented like the infamous i386 svr4.0, and systems where the
  9088. VM page cache was not coherent with the file system buffer cache
  9089. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9090. For shared mappings, we should conversely verify that changes get
  9091. propagated back to all the places they're supposed to be.
  9092. Grep wants private fixed already mapped.
  9093. The main things grep needs to know about mmap are:
  9094. * does it exist and is it safe to write into the mmap'd area
  9095. * how to use it (BSD variants) */
  9096. #include <fcntl.h>
  9097. #include <sys/mman.h>
  9098. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9099. char *malloc ();
  9100. #endif
  9101. /* This mess was copied from the GNU getpagesize.h. */
  9102. #if !HAVE_GETPAGESIZE
  9103. /* Assume that all systems that can run configure have sys/param.h. */
  9104. # if !HAVE_SYS_PARAM_H
  9105. # define HAVE_SYS_PARAM_H 1
  9106. # endif
  9107. # ifdef _SC_PAGESIZE
  9108. # define getpagesize() sysconf(_SC_PAGESIZE)
  9109. # else /* no _SC_PAGESIZE */
  9110. # if HAVE_SYS_PARAM_H
  9111. # include <sys/param.h>
  9112. # ifdef EXEC_PAGESIZE
  9113. # define getpagesize() EXEC_PAGESIZE
  9114. # else /* no EXEC_PAGESIZE */
  9115. # ifdef NBPG
  9116. # define getpagesize() NBPG * CLSIZE
  9117. # ifndef CLSIZE
  9118. # define CLSIZE 1
  9119. # endif /* no CLSIZE */
  9120. # else /* no NBPG */
  9121. # ifdef NBPC
  9122. # define getpagesize() NBPC
  9123. # else /* no NBPC */
  9124. # ifdef PAGESIZE
  9125. # define getpagesize() PAGESIZE
  9126. # endif /* PAGESIZE */
  9127. # endif /* no NBPC */
  9128. # endif /* no NBPG */
  9129. # endif /* no EXEC_PAGESIZE */
  9130. # else /* no HAVE_SYS_PARAM_H */
  9131. # define getpagesize() 8192 /* punt totally */
  9132. # endif /* no HAVE_SYS_PARAM_H */
  9133. # endif /* no _SC_PAGESIZE */
  9134. #endif /* no HAVE_GETPAGESIZE */
  9135. int
  9136. main ()
  9137. {
  9138. char *data, *data2, *data3;
  9139. int i, pagesize;
  9140. int fd;
  9141. pagesize = getpagesize ();
  9142. /* First, make a file with some known garbage in it. */
  9143. data = (char *) malloc (pagesize);
  9144. if (!data)
  9145. exit (1);
  9146. for (i = 0; i < pagesize; ++i)
  9147. *(data + i) = rand ();
  9148. umask (0);
  9149. fd = creat ("conftest.mmap", 0600);
  9150. if (fd < 0)
  9151. exit (1);
  9152. if (write (fd, data, pagesize) != pagesize)
  9153. exit (1);
  9154. close (fd);
  9155. /* Next, try to mmap the file at a fixed address which already has
  9156. something else allocated at it. If we can, also make sure that
  9157. we see the same garbage. */
  9158. fd = open ("conftest.mmap", O_RDWR);
  9159. if (fd < 0)
  9160. exit (1);
  9161. data2 = (char *) malloc (2 * pagesize);
  9162. if (!data2)
  9163. exit (1);
  9164. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9165. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9166. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9167. exit (1);
  9168. for (i = 0; i < pagesize; ++i)
  9169. if (*(data + i) != *(data2 + i))
  9170. exit (1);
  9171. /* Finally, make sure that changes to the mapped area do not
  9172. percolate back to the file as seen by read(). (This is a bug on
  9173. some variants of i386 svr4.0.) */
  9174. for (i = 0; i < pagesize; ++i)
  9175. *(data2 + i) = *(data2 + i) + 1;
  9176. data3 = (char *) malloc (pagesize);
  9177. if (!data3)
  9178. exit (1);
  9179. if (read (fd, data3, pagesize) != pagesize)
  9180. exit (1);
  9181. for (i = 0; i < pagesize; ++i)
  9182. if (*(data + i) != *(data3 + i))
  9183. exit (1);
  9184. close (fd);
  9185. exit (0);
  9186. }
  9187. _ACEOF
  9188. rm -f conftest$ac_exeext
  9189. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9190. (eval $ac_link) 2>&5
  9191. ac_status=$?
  9192. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9193. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9194. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9195. (eval $ac_try) 2>&5
  9196. ac_status=$?
  9197. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9198. (exit $ac_status); }; }; then
  9199. ac_cv_func_mmap_fixed_mapped=yes
  9200. else
  9201. echo "$as_me: program exited with status $ac_status" >&5
  9202. echo "$as_me: failed program was:" >&5
  9203. sed 's/^/| /' conftest.$ac_ext >&5
  9204. ( exit $ac_status )
  9205. ac_cv_func_mmap_fixed_mapped=no
  9206. fi
  9207. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9208. fi
  9209. fi
  9210. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9211. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9212. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9213. cat >>confdefs.h <<\_ACEOF
  9214. #define HAVE_MMAP 1
  9215. _ACEOF
  9216. fi
  9217. rm -f conftest.mmap
  9218. for ac_header in stdlib.h
  9219. do
  9220. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9221. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9222. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9223. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9224. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9225. echo $ECHO_N "(cached) $ECHO_C" >&6
  9226. fi
  9227. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9228. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9229. else
  9230. # Is the header compilable?
  9231. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9232. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9233. cat >conftest.$ac_ext <<_ACEOF
  9234. /* confdefs.h. */
  9235. _ACEOF
  9236. cat confdefs.h >>conftest.$ac_ext
  9237. cat >>conftest.$ac_ext <<_ACEOF
  9238. /* end confdefs.h. */
  9239. $ac_includes_default
  9240. #include <$ac_header>
  9241. _ACEOF
  9242. rm -f conftest.$ac_objext
  9243. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9244. (eval $ac_compile) 2>conftest.er1
  9245. ac_status=$?
  9246. grep -v '^ *+' conftest.er1 >conftest.err
  9247. rm -f conftest.er1
  9248. cat conftest.err >&5
  9249. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9250. (exit $ac_status); } &&
  9251. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9252. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9253. (eval $ac_try) 2>&5
  9254. ac_status=$?
  9255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9256. (exit $ac_status); }; } &&
  9257. { ac_try='test -s conftest.$ac_objext'
  9258. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9259. (eval $ac_try) 2>&5
  9260. ac_status=$?
  9261. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9262. (exit $ac_status); }; }; then
  9263. ac_header_compiler=yes
  9264. else
  9265. echo "$as_me: failed program was:" >&5
  9266. sed 's/^/| /' conftest.$ac_ext >&5
  9267. ac_header_compiler=no
  9268. fi
  9269. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9270. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9271. echo "${ECHO_T}$ac_header_compiler" >&6
  9272. # Is the header present?
  9273. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9274. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9275. cat >conftest.$ac_ext <<_ACEOF
  9276. /* confdefs.h. */
  9277. _ACEOF
  9278. cat confdefs.h >>conftest.$ac_ext
  9279. cat >>conftest.$ac_ext <<_ACEOF
  9280. /* end confdefs.h. */
  9281. #include <$ac_header>
  9282. _ACEOF
  9283. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9284. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9285. ac_status=$?
  9286. grep -v '^ *+' conftest.er1 >conftest.err
  9287. rm -f conftest.er1
  9288. cat conftest.err >&5
  9289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9290. (exit $ac_status); } >/dev/null; then
  9291. if test -s conftest.err; then
  9292. ac_cpp_err=$ac_c_preproc_warn_flag
  9293. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9294. else
  9295. ac_cpp_err=
  9296. fi
  9297. else
  9298. ac_cpp_err=yes
  9299. fi
  9300. if test -z "$ac_cpp_err"; then
  9301. ac_header_preproc=yes
  9302. else
  9303. echo "$as_me: failed program was:" >&5
  9304. sed 's/^/| /' conftest.$ac_ext >&5
  9305. ac_header_preproc=no
  9306. fi
  9307. rm -f conftest.err conftest.$ac_ext
  9308. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9309. echo "${ECHO_T}$ac_header_preproc" >&6
  9310. # So? What about this header?
  9311. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9312. yes:no: )
  9313. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9314. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9315. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9316. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9317. ac_header_preproc=yes
  9318. ;;
  9319. no:yes:* )
  9320. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9321. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9322. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9323. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9324. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9325. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9326. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9327. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9328. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9329. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9330. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9331. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9332. (
  9333. cat <<\_ASBOX
  9334. ## ------------------------------------------ ##
  9335. ## Report this to the AC_PACKAGE_NAME lists. ##
  9336. ## ------------------------------------------ ##
  9337. _ASBOX
  9338. ) |
  9339. sed "s/^/$as_me: WARNING: /" >&2
  9340. ;;
  9341. esac
  9342. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9343. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9344. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9345. echo $ECHO_N "(cached) $ECHO_C" >&6
  9346. else
  9347. eval "$as_ac_Header=\$ac_header_preproc"
  9348. fi
  9349. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9350. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9351. fi
  9352. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9353. cat >>confdefs.h <<_ACEOF
  9354. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9355. _ACEOF
  9356. fi
  9357. done
  9358. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9359. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9360. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9361. echo $ECHO_N "(cached) $ECHO_C" >&6
  9362. else
  9363. if test "$cross_compiling" = yes; then
  9364. ac_cv_func_realloc_0_nonnull=no
  9365. else
  9366. cat >conftest.$ac_ext <<_ACEOF
  9367. /* confdefs.h. */
  9368. _ACEOF
  9369. cat confdefs.h >>conftest.$ac_ext
  9370. cat >>conftest.$ac_ext <<_ACEOF
  9371. /* end confdefs.h. */
  9372. #if STDC_HEADERS || HAVE_STDLIB_H
  9373. # include <stdlib.h>
  9374. #else
  9375. char *realloc ();
  9376. #endif
  9377. int
  9378. main ()
  9379. {
  9380. exit (realloc (0, 0) ? 0 : 1);
  9381. ;
  9382. return 0;
  9383. }
  9384. _ACEOF
  9385. rm -f conftest$ac_exeext
  9386. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9387. (eval $ac_link) 2>&5
  9388. ac_status=$?
  9389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9390. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9391. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9392. (eval $ac_try) 2>&5
  9393. ac_status=$?
  9394. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9395. (exit $ac_status); }; }; then
  9396. ac_cv_func_realloc_0_nonnull=yes
  9397. else
  9398. echo "$as_me: program exited with status $ac_status" >&5
  9399. echo "$as_me: failed program was:" >&5
  9400. sed 's/^/| /' conftest.$ac_ext >&5
  9401. ( exit $ac_status )
  9402. ac_cv_func_realloc_0_nonnull=no
  9403. fi
  9404. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9405. fi
  9406. fi
  9407. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9408. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9409. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9410. cat >>confdefs.h <<\_ACEOF
  9411. #define HAVE_REALLOC 1
  9412. _ACEOF
  9413. else
  9414. cat >>confdefs.h <<\_ACEOF
  9415. #define HAVE_REALLOC 0
  9416. _ACEOF
  9417. case $LIBOBJS in
  9418. "realloc.$ac_objext" | \
  9419. *" realloc.$ac_objext" | \
  9420. "realloc.$ac_objext "* | \
  9421. *" realloc.$ac_objext "* ) ;;
  9422. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9423. esac
  9424. cat >>confdefs.h <<\_ACEOF
  9425. #define realloc rpl_realloc
  9426. _ACEOF
  9427. fi
  9428. for ac_header in sys/select.h sys/socket.h
  9429. do
  9430. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9431. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9432. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9433. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9434. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9435. echo $ECHO_N "(cached) $ECHO_C" >&6
  9436. fi
  9437. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9438. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9439. else
  9440. # Is the header compilable?
  9441. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9442. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9443. cat >conftest.$ac_ext <<_ACEOF
  9444. /* confdefs.h. */
  9445. _ACEOF
  9446. cat confdefs.h >>conftest.$ac_ext
  9447. cat >>conftest.$ac_ext <<_ACEOF
  9448. /* end confdefs.h. */
  9449. $ac_includes_default
  9450. #include <$ac_header>
  9451. _ACEOF
  9452. rm -f conftest.$ac_objext
  9453. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9454. (eval $ac_compile) 2>conftest.er1
  9455. ac_status=$?
  9456. grep -v '^ *+' conftest.er1 >conftest.err
  9457. rm -f conftest.er1
  9458. cat conftest.err >&5
  9459. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9460. (exit $ac_status); } &&
  9461. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9462. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9463. (eval $ac_try) 2>&5
  9464. ac_status=$?
  9465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9466. (exit $ac_status); }; } &&
  9467. { ac_try='test -s conftest.$ac_objext'
  9468. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9469. (eval $ac_try) 2>&5
  9470. ac_status=$?
  9471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9472. (exit $ac_status); }; }; then
  9473. ac_header_compiler=yes
  9474. else
  9475. echo "$as_me: failed program was:" >&5
  9476. sed 's/^/| /' conftest.$ac_ext >&5
  9477. ac_header_compiler=no
  9478. fi
  9479. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9480. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9481. echo "${ECHO_T}$ac_header_compiler" >&6
  9482. # Is the header present?
  9483. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9484. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9485. cat >conftest.$ac_ext <<_ACEOF
  9486. /* confdefs.h. */
  9487. _ACEOF
  9488. cat confdefs.h >>conftest.$ac_ext
  9489. cat >>conftest.$ac_ext <<_ACEOF
  9490. /* end confdefs.h. */
  9491. #include <$ac_header>
  9492. _ACEOF
  9493. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9494. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9495. ac_status=$?
  9496. grep -v '^ *+' conftest.er1 >conftest.err
  9497. rm -f conftest.er1
  9498. cat conftest.err >&5
  9499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9500. (exit $ac_status); } >/dev/null; then
  9501. if test -s conftest.err; then
  9502. ac_cpp_err=$ac_c_preproc_warn_flag
  9503. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9504. else
  9505. ac_cpp_err=
  9506. fi
  9507. else
  9508. ac_cpp_err=yes
  9509. fi
  9510. if test -z "$ac_cpp_err"; then
  9511. ac_header_preproc=yes
  9512. else
  9513. echo "$as_me: failed program was:" >&5
  9514. sed 's/^/| /' conftest.$ac_ext >&5
  9515. ac_header_preproc=no
  9516. fi
  9517. rm -f conftest.err conftest.$ac_ext
  9518. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9519. echo "${ECHO_T}$ac_header_preproc" >&6
  9520. # So? What about this header?
  9521. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9522. yes:no: )
  9523. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9524. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9525. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9526. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9527. ac_header_preproc=yes
  9528. ;;
  9529. no:yes:* )
  9530. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9531. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9532. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9533. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9534. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9535. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9536. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9537. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9538. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9539. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9540. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9541. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9542. (
  9543. cat <<\_ASBOX
  9544. ## ------------------------------------------ ##
  9545. ## Report this to the AC_PACKAGE_NAME lists. ##
  9546. ## ------------------------------------------ ##
  9547. _ASBOX
  9548. ) |
  9549. sed "s/^/$as_me: WARNING: /" >&2
  9550. ;;
  9551. esac
  9552. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9553. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9554. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9555. echo $ECHO_N "(cached) $ECHO_C" >&6
  9556. else
  9557. eval "$as_ac_Header=\$ac_header_preproc"
  9558. fi
  9559. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9560. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9561. fi
  9562. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9563. cat >>confdefs.h <<_ACEOF
  9564. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9565. _ACEOF
  9566. fi
  9567. done
  9568. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9569. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9570. if test "${ac_cv_func_select_args+set}" = set; then
  9571. echo $ECHO_N "(cached) $ECHO_C" >&6
  9572. else
  9573. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9574. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9575. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9576. cat >conftest.$ac_ext <<_ACEOF
  9577. /* confdefs.h. */
  9578. _ACEOF
  9579. cat confdefs.h >>conftest.$ac_ext
  9580. cat >>conftest.$ac_ext <<_ACEOF
  9581. /* end confdefs.h. */
  9582. $ac_includes_default
  9583. #if HAVE_SYS_SELECT_H
  9584. # include <sys/select.h>
  9585. #endif
  9586. #if HAVE_SYS_SOCKET_H
  9587. # include <sys/socket.h>
  9588. #endif
  9589. int
  9590. main ()
  9591. {
  9592. extern int select ($ac_arg1,
  9593. $ac_arg234, $ac_arg234, $ac_arg234,
  9594. $ac_arg5);
  9595. ;
  9596. return 0;
  9597. }
  9598. _ACEOF
  9599. rm -f conftest.$ac_objext
  9600. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9601. (eval $ac_compile) 2>conftest.er1
  9602. ac_status=$?
  9603. grep -v '^ *+' conftest.er1 >conftest.err
  9604. rm -f conftest.er1
  9605. cat conftest.err >&5
  9606. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9607. (exit $ac_status); } &&
  9608. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9609. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9610. (eval $ac_try) 2>&5
  9611. ac_status=$?
  9612. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9613. (exit $ac_status); }; } &&
  9614. { ac_try='test -s conftest.$ac_objext'
  9615. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9616. (eval $ac_try) 2>&5
  9617. ac_status=$?
  9618. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9619. (exit $ac_status); }; }; then
  9620. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9621. else
  9622. echo "$as_me: failed program was:" >&5
  9623. sed 's/^/| /' conftest.$ac_ext >&5
  9624. fi
  9625. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9626. done
  9627. done
  9628. done
  9629. # Provide a safe default value.
  9630. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9631. fi
  9632. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9633. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9634. ac_save_IFS=$IFS; IFS=','
  9635. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9636. IFS=$ac_save_IFS
  9637. shift
  9638. cat >>confdefs.h <<_ACEOF
  9639. #define SELECT_TYPE_ARG1 $1
  9640. _ACEOF
  9641. cat >>confdefs.h <<_ACEOF
  9642. #define SELECT_TYPE_ARG234 ($2)
  9643. _ACEOF
  9644. cat >>confdefs.h <<_ACEOF
  9645. #define SELECT_TYPE_ARG5 ($3)
  9646. _ACEOF
  9647. rm -f conftest*
  9648. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9649. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9650. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9651. echo $ECHO_N "(cached) $ECHO_C" >&6
  9652. else
  9653. if test "$cross_compiling" = yes; then
  9654. ac_cv_func_stat_empty_string_bug=yes
  9655. else
  9656. cat >conftest.$ac_ext <<_ACEOF
  9657. /* confdefs.h. */
  9658. _ACEOF
  9659. cat confdefs.h >>conftest.$ac_ext
  9660. cat >>conftest.$ac_ext <<_ACEOF
  9661. /* end confdefs.h. */
  9662. $ac_includes_default
  9663. int
  9664. main ()
  9665. {
  9666. struct stat sbuf;
  9667. exit (stat ("", &sbuf) ? 1 : 0);
  9668. ;
  9669. return 0;
  9670. }
  9671. _ACEOF
  9672. rm -f conftest$ac_exeext
  9673. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9674. (eval $ac_link) 2>&5
  9675. ac_status=$?
  9676. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9677. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9678. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9679. (eval $ac_try) 2>&5
  9680. ac_status=$?
  9681. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9682. (exit $ac_status); }; }; then
  9683. ac_cv_func_stat_empty_string_bug=yes
  9684. else
  9685. echo "$as_me: program exited with status $ac_status" >&5
  9686. echo "$as_me: failed program was:" >&5
  9687. sed 's/^/| /' conftest.$ac_ext >&5
  9688. ( exit $ac_status )
  9689. ac_cv_func_stat_empty_string_bug=no
  9690. fi
  9691. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9692. fi
  9693. fi
  9694. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9695. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9696. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9697. case $LIBOBJS in
  9698. "stat.$ac_objext" | \
  9699. *" stat.$ac_objext" | \
  9700. "stat.$ac_objext "* | \
  9701. *" stat.$ac_objext "* ) ;;
  9702. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9703. esac
  9704. cat >>confdefs.h <<_ACEOF
  9705. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9706. _ACEOF
  9707. fi
  9708. for ac_func in strftime
  9709. do
  9710. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9711. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9712. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9713. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9714. echo $ECHO_N "(cached) $ECHO_C" >&6
  9715. else
  9716. cat >conftest.$ac_ext <<_ACEOF
  9717. /* confdefs.h. */
  9718. _ACEOF
  9719. cat confdefs.h >>conftest.$ac_ext
  9720. cat >>conftest.$ac_ext <<_ACEOF
  9721. /* end confdefs.h. */
  9722. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9723. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9724. #define $ac_func innocuous_$ac_func
  9725. /* System header to define __stub macros and hopefully few prototypes,
  9726. which can conflict with char $ac_func (); below.
  9727. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9728. <limits.h> exists even on freestanding compilers. */
  9729. #ifdef __STDC__
  9730. # include <limits.h>
  9731. #else
  9732. # include <assert.h>
  9733. #endif
  9734. #undef $ac_func
  9735. /* Override any gcc2 internal prototype to avoid an error. */
  9736. #ifdef __cplusplus
  9737. extern "C"
  9738. {
  9739. #endif
  9740. /* We use char because int might match the return type of a gcc2
  9741. builtin and then its argument prototype would still apply. */
  9742. char $ac_func ();
  9743. /* The GNU C library defines this for functions which it implements
  9744. to always fail with ENOSYS. Some functions are actually named
  9745. something starting with __ and the normal name is an alias. */
  9746. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9747. choke me
  9748. #else
  9749. char (*f) () = $ac_func;
  9750. #endif
  9751. #ifdef __cplusplus
  9752. }
  9753. #endif
  9754. int
  9755. main ()
  9756. {
  9757. return f != $ac_func;
  9758. ;
  9759. return 0;
  9760. }
  9761. _ACEOF
  9762. rm -f conftest.$ac_objext conftest$ac_exeext
  9763. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9764. (eval $ac_link) 2>conftest.er1
  9765. ac_status=$?
  9766. grep -v '^ *+' conftest.er1 >conftest.err
  9767. rm -f conftest.er1
  9768. cat conftest.err >&5
  9769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9770. (exit $ac_status); } &&
  9771. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9773. (eval $ac_try) 2>&5
  9774. ac_status=$?
  9775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9776. (exit $ac_status); }; } &&
  9777. { ac_try='test -s conftest$ac_exeext'
  9778. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9779. (eval $ac_try) 2>&5
  9780. ac_status=$?
  9781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9782. (exit $ac_status); }; }; then
  9783. eval "$as_ac_var=yes"
  9784. else
  9785. echo "$as_me: failed program was:" >&5
  9786. sed 's/^/| /' conftest.$ac_ext >&5
  9787. eval "$as_ac_var=no"
  9788. fi
  9789. rm -f conftest.err conftest.$ac_objext \
  9790. conftest$ac_exeext conftest.$ac_ext
  9791. fi
  9792. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9793. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9794. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9795. cat >>confdefs.h <<_ACEOF
  9796. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9797. _ACEOF
  9798. else
  9799. # strftime is in -lintl on SCO UNIX.
  9800. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9801. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9802. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9803. echo $ECHO_N "(cached) $ECHO_C" >&6
  9804. else
  9805. ac_check_lib_save_LIBS=$LIBS
  9806. LIBS="-lintl $LIBS"
  9807. cat >conftest.$ac_ext <<_ACEOF
  9808. /* confdefs.h. */
  9809. _ACEOF
  9810. cat confdefs.h >>conftest.$ac_ext
  9811. cat >>conftest.$ac_ext <<_ACEOF
  9812. /* end confdefs.h. */
  9813. /* Override any gcc2 internal prototype to avoid an error. */
  9814. #ifdef __cplusplus
  9815. extern "C"
  9816. #endif
  9817. /* We use char because int might match the return type of a gcc2
  9818. builtin and then its argument prototype would still apply. */
  9819. char strftime ();
  9820. int
  9821. main ()
  9822. {
  9823. strftime ();
  9824. ;
  9825. return 0;
  9826. }
  9827. _ACEOF
  9828. rm -f conftest.$ac_objext conftest$ac_exeext
  9829. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9830. (eval $ac_link) 2>conftest.er1
  9831. ac_status=$?
  9832. grep -v '^ *+' conftest.er1 >conftest.err
  9833. rm -f conftest.er1
  9834. cat conftest.err >&5
  9835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9836. (exit $ac_status); } &&
  9837. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9838. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9839. (eval $ac_try) 2>&5
  9840. ac_status=$?
  9841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9842. (exit $ac_status); }; } &&
  9843. { ac_try='test -s conftest$ac_exeext'
  9844. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9845. (eval $ac_try) 2>&5
  9846. ac_status=$?
  9847. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9848. (exit $ac_status); }; }; then
  9849. ac_cv_lib_intl_strftime=yes
  9850. else
  9851. echo "$as_me: failed program was:" >&5
  9852. sed 's/^/| /' conftest.$ac_ext >&5
  9853. ac_cv_lib_intl_strftime=no
  9854. fi
  9855. rm -f conftest.err conftest.$ac_objext \
  9856. conftest$ac_exeext conftest.$ac_ext
  9857. LIBS=$ac_check_lib_save_LIBS
  9858. fi
  9859. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9860. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9861. if test $ac_cv_lib_intl_strftime = yes; then
  9862. cat >>confdefs.h <<\_ACEOF
  9863. #define HAVE_STRFTIME 1
  9864. _ACEOF
  9865. LIBS="-lintl $LIBS"
  9866. fi
  9867. fi
  9868. done
  9869. #checkpoint
  9870. cat >confcache <<\_ACEOF
  9871. # This file is a shell script that caches the results of configure
  9872. # tests run on this system so they can be shared between configure
  9873. # scripts and configure runs, see configure's option --config-cache.
  9874. # It is not useful on other systems. If it contains results you don't
  9875. # want to keep, you may remove or edit it.
  9876. #
  9877. # config.status only pays attention to the cache file if you give it
  9878. # the --recheck option to rerun configure.
  9879. #
  9880. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9881. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9882. # following values.
  9883. _ACEOF
  9884. # The following way of writing the cache mishandles newlines in values,
  9885. # but we know of no workaround that is simple, portable, and efficient.
  9886. # So, don't put newlines in cache variables' values.
  9887. # Ultrix sh set writes to stderr and can't be redirected directly,
  9888. # and sets the high bit in the cache file unless we assign to the vars.
  9889. {
  9890. (set) 2>&1 |
  9891. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9892. *ac_space=\ *)
  9893. # `set' does not quote correctly, so add quotes (double-quote
  9894. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9895. sed -n \
  9896. "s/'/'\\\\''/g;
  9897. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9898. ;;
  9899. *)
  9900. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9901. sed -n \
  9902. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9903. ;;
  9904. esac;
  9905. } |
  9906. sed '
  9907. t clear
  9908. : clear
  9909. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9910. t end
  9911. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9912. : end' >>confcache
  9913. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9914. if test -w $cache_file; then
  9915. test "x$cache_file" != "x/dev/null"
  9916. cat confcache >$cache_file
  9917. else
  9918. echo "not updating unwritable cache $cache_file"
  9919. fi
  9920. fi
  9921. rm -f confcache
  9922. for ac_func in clock dprintf fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  9923. do
  9924. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9925. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9926. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9927. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9928. echo $ECHO_N "(cached) $ECHO_C" >&6
  9929. else
  9930. cat >conftest.$ac_ext <<_ACEOF
  9931. /* confdefs.h. */
  9932. _ACEOF
  9933. cat confdefs.h >>conftest.$ac_ext
  9934. cat >>conftest.$ac_ext <<_ACEOF
  9935. /* end confdefs.h. */
  9936. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9937. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9938. #define $ac_func innocuous_$ac_func
  9939. /* System header to define __stub macros and hopefully few prototypes,
  9940. which can conflict with char $ac_func (); below.
  9941. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9942. <limits.h> exists even on freestanding compilers. */
  9943. #ifdef __STDC__
  9944. # include <limits.h>
  9945. #else
  9946. # include <assert.h>
  9947. #endif
  9948. #undef $ac_func
  9949. /* Override any gcc2 internal prototype to avoid an error. */
  9950. #ifdef __cplusplus
  9951. extern "C"
  9952. {
  9953. #endif
  9954. /* We use char because int might match the return type of a gcc2
  9955. builtin and then its argument prototype would still apply. */
  9956. char $ac_func ();
  9957. /* The GNU C library defines this for functions which it implements
  9958. to always fail with ENOSYS. Some functions are actually named
  9959. something starting with __ and the normal name is an alias. */
  9960. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9961. choke me
  9962. #else
  9963. char (*f) () = $ac_func;
  9964. #endif
  9965. #ifdef __cplusplus
  9966. }
  9967. #endif
  9968. int
  9969. main ()
  9970. {
  9971. return f != $ac_func;
  9972. ;
  9973. return 0;
  9974. }
  9975. _ACEOF
  9976. rm -f conftest.$ac_objext conftest$ac_exeext
  9977. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9978. (eval $ac_link) 2>conftest.er1
  9979. ac_status=$?
  9980. grep -v '^ *+' conftest.er1 >conftest.err
  9981. rm -f conftest.er1
  9982. cat conftest.err >&5
  9983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9984. (exit $ac_status); } &&
  9985. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9987. (eval $ac_try) 2>&5
  9988. ac_status=$?
  9989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9990. (exit $ac_status); }; } &&
  9991. { ac_try='test -s conftest$ac_exeext'
  9992. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9993. (eval $ac_try) 2>&5
  9994. ac_status=$?
  9995. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9996. (exit $ac_status); }; }; then
  9997. eval "$as_ac_var=yes"
  9998. else
  9999. echo "$as_me: failed program was:" >&5
  10000. sed 's/^/| /' conftest.$ac_ext >&5
  10001. eval "$as_ac_var=no"
  10002. fi
  10003. rm -f conftest.err conftest.$ac_objext \
  10004. conftest$ac_exeext conftest.$ac_ext
  10005. fi
  10006. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10007. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10008. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10009. cat >>confdefs.h <<_ACEOF
  10010. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10011. _ACEOF
  10012. fi
  10013. done
  10014. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  10015. do
  10016. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10017. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10018. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10019. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10020. echo $ECHO_N "(cached) $ECHO_C" >&6
  10021. else
  10022. cat >conftest.$ac_ext <<_ACEOF
  10023. /* confdefs.h. */
  10024. _ACEOF
  10025. cat confdefs.h >>conftest.$ac_ext
  10026. cat >>conftest.$ac_ext <<_ACEOF
  10027. /* end confdefs.h. */
  10028. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10029. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10030. #define $ac_func innocuous_$ac_func
  10031. /* System header to define __stub macros and hopefully few prototypes,
  10032. which can conflict with char $ac_func (); below.
  10033. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10034. <limits.h> exists even on freestanding compilers. */
  10035. #ifdef __STDC__
  10036. # include <limits.h>
  10037. #else
  10038. # include <assert.h>
  10039. #endif
  10040. #undef $ac_func
  10041. /* Override any gcc2 internal prototype to avoid an error. */
  10042. #ifdef __cplusplus
  10043. extern "C"
  10044. {
  10045. #endif
  10046. /* We use char because int might match the return type of a gcc2
  10047. builtin and then its argument prototype would still apply. */
  10048. char $ac_func ();
  10049. /* The GNU C library defines this for functions which it implements
  10050. to always fail with ENOSYS. Some functions are actually named
  10051. something starting with __ and the normal name is an alias. */
  10052. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10053. choke me
  10054. #else
  10055. char (*f) () = $ac_func;
  10056. #endif
  10057. #ifdef __cplusplus
  10058. }
  10059. #endif
  10060. int
  10061. main ()
  10062. {
  10063. return f != $ac_func;
  10064. ;
  10065. return 0;
  10066. }
  10067. _ACEOF
  10068. rm -f conftest.$ac_objext conftest$ac_exeext
  10069. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10070. (eval $ac_link) 2>conftest.er1
  10071. ac_status=$?
  10072. grep -v '^ *+' conftest.er1 >conftest.err
  10073. rm -f conftest.er1
  10074. cat conftest.err >&5
  10075. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10076. (exit $ac_status); } &&
  10077. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10078. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10079. (eval $ac_try) 2>&5
  10080. ac_status=$?
  10081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10082. (exit $ac_status); }; } &&
  10083. { ac_try='test -s conftest$ac_exeext'
  10084. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10085. (eval $ac_try) 2>&5
  10086. ac_status=$?
  10087. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10088. (exit $ac_status); }; }; then
  10089. eval "$as_ac_var=yes"
  10090. else
  10091. echo "$as_me: failed program was:" >&5
  10092. sed 's/^/| /' conftest.$ac_ext >&5
  10093. eval "$as_ac_var=no"
  10094. fi
  10095. rm -f conftest.err conftest.$ac_objext \
  10096. conftest$ac_exeext conftest.$ac_ext
  10097. fi
  10098. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10099. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10100. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10101. cat >>confdefs.h <<_ACEOF
  10102. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10103. _ACEOF
  10104. fi
  10105. done
  10106. #checkpoint
  10107. cat >confcache <<\_ACEOF
  10108. # This file is a shell script that caches the results of configure
  10109. # tests run on this system so they can be shared between configure
  10110. # scripts and configure runs, see configure's option --config-cache.
  10111. # It is not useful on other systems. If it contains results you don't
  10112. # want to keep, you may remove or edit it.
  10113. #
  10114. # config.status only pays attention to the cache file if you give it
  10115. # the --recheck option to rerun configure.
  10116. #
  10117. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10118. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10119. # following values.
  10120. _ACEOF
  10121. # The following way of writing the cache mishandles newlines in values,
  10122. # but we know of no workaround that is simple, portable, and efficient.
  10123. # So, don't put newlines in cache variables' values.
  10124. # Ultrix sh set writes to stderr and can't be redirected directly,
  10125. # and sets the high bit in the cache file unless we assign to the vars.
  10126. {
  10127. (set) 2>&1 |
  10128. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10129. *ac_space=\ *)
  10130. # `set' does not quote correctly, so add quotes (double-quote
  10131. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10132. sed -n \
  10133. "s/'/'\\\\''/g;
  10134. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10135. ;;
  10136. *)
  10137. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10138. sed -n \
  10139. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10140. ;;
  10141. esac;
  10142. } |
  10143. sed '
  10144. t clear
  10145. : clear
  10146. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10147. t end
  10148. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10149. : end' >>confcache
  10150. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10151. if test -w $cache_file; then
  10152. test "x$cache_file" != "x/dev/null"
  10153. cat confcache >$cache_file
  10154. else
  10155. echo "not updating unwritable cache $cache_file"
  10156. fi
  10157. fi
  10158. rm -f confcache
  10159. for ac_func in strcasecmp strncasecmp vsnprintf
  10160. do
  10161. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10162. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10163. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10164. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10165. echo $ECHO_N "(cached) $ECHO_C" >&6
  10166. else
  10167. cat >conftest.$ac_ext <<_ACEOF
  10168. /* confdefs.h. */
  10169. _ACEOF
  10170. cat confdefs.h >>conftest.$ac_ext
  10171. cat >>conftest.$ac_ext <<_ACEOF
  10172. /* end confdefs.h. */
  10173. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10174. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10175. #define $ac_func innocuous_$ac_func
  10176. /* System header to define __stub macros and hopefully few prototypes,
  10177. which can conflict with char $ac_func (); below.
  10178. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10179. <limits.h> exists even on freestanding compilers. */
  10180. #ifdef __STDC__
  10181. # include <limits.h>
  10182. #else
  10183. # include <assert.h>
  10184. #endif
  10185. #undef $ac_func
  10186. /* Override any gcc2 internal prototype to avoid an error. */
  10187. #ifdef __cplusplus
  10188. extern "C"
  10189. {
  10190. #endif
  10191. /* We use char because int might match the return type of a gcc2
  10192. builtin and then its argument prototype would still apply. */
  10193. char $ac_func ();
  10194. /* The GNU C library defines this for functions which it implements
  10195. to always fail with ENOSYS. Some functions are actually named
  10196. something starting with __ and the normal name is an alias. */
  10197. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10198. choke me
  10199. #else
  10200. char (*f) () = $ac_func;
  10201. #endif
  10202. #ifdef __cplusplus
  10203. }
  10204. #endif
  10205. int
  10206. main ()
  10207. {
  10208. return f != $ac_func;
  10209. ;
  10210. return 0;
  10211. }
  10212. _ACEOF
  10213. rm -f conftest.$ac_objext conftest$ac_exeext
  10214. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10215. (eval $ac_link) 2>conftest.er1
  10216. ac_status=$?
  10217. grep -v '^ *+' conftest.er1 >conftest.err
  10218. rm -f conftest.er1
  10219. cat conftest.err >&5
  10220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10221. (exit $ac_status); } &&
  10222. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10224. (eval $ac_try) 2>&5
  10225. ac_status=$?
  10226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10227. (exit $ac_status); }; } &&
  10228. { ac_try='test -s conftest$ac_exeext'
  10229. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10230. (eval $ac_try) 2>&5
  10231. ac_status=$?
  10232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10233. (exit $ac_status); }; }; then
  10234. eval "$as_ac_var=yes"
  10235. else
  10236. echo "$as_me: failed program was:" >&5
  10237. sed 's/^/| /' conftest.$ac_ext >&5
  10238. eval "$as_ac_var=no"
  10239. fi
  10240. rm -f conftest.err conftest.$ac_objext \
  10241. conftest$ac_exeext conftest.$ac_ext
  10242. fi
  10243. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10244. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10245. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10246. cat >>confdefs.h <<_ACEOF
  10247. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10248. _ACEOF
  10249. fi
  10250. done
  10251. #autoscan suggested this....
  10252. #These are recommended by autoscan, but no code supports it currently
  10253. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday inet_ntoa mbrlen mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10254. for ac_func in vsprintf
  10255. do
  10256. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10257. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10258. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10259. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10260. echo $ECHO_N "(cached) $ECHO_C" >&6
  10261. else
  10262. cat >conftest.$ac_ext <<_ACEOF
  10263. /* confdefs.h. */
  10264. _ACEOF
  10265. cat confdefs.h >>conftest.$ac_ext
  10266. cat >>conftest.$ac_ext <<_ACEOF
  10267. /* end confdefs.h. */
  10268. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10269. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10270. #define $ac_func innocuous_$ac_func
  10271. /* System header to define __stub macros and hopefully few prototypes,
  10272. which can conflict with char $ac_func (); below.
  10273. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10274. <limits.h> exists even on freestanding compilers. */
  10275. #ifdef __STDC__
  10276. # include <limits.h>
  10277. #else
  10278. # include <assert.h>
  10279. #endif
  10280. #undef $ac_func
  10281. /* Override any gcc2 internal prototype to avoid an error. */
  10282. #ifdef __cplusplus
  10283. extern "C"
  10284. {
  10285. #endif
  10286. /* We use char because int might match the return type of a gcc2
  10287. builtin and then its argument prototype would still apply. */
  10288. char $ac_func ();
  10289. /* The GNU C library defines this for functions which it implements
  10290. to always fail with ENOSYS. Some functions are actually named
  10291. something starting with __ and the normal name is an alias. */
  10292. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10293. choke me
  10294. #else
  10295. char (*f) () = $ac_func;
  10296. #endif
  10297. #ifdef __cplusplus
  10298. }
  10299. #endif
  10300. int
  10301. main ()
  10302. {
  10303. return f != $ac_func;
  10304. ;
  10305. return 0;
  10306. }
  10307. _ACEOF
  10308. rm -f conftest.$ac_objext conftest$ac_exeext
  10309. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10310. (eval $ac_link) 2>conftest.er1
  10311. ac_status=$?
  10312. grep -v '^ *+' conftest.er1 >conftest.err
  10313. rm -f conftest.er1
  10314. cat conftest.err >&5
  10315. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10316. (exit $ac_status); } &&
  10317. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10318. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10319. (eval $ac_try) 2>&5
  10320. ac_status=$?
  10321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10322. (exit $ac_status); }; } &&
  10323. { ac_try='test -s conftest$ac_exeext'
  10324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10325. (eval $ac_try) 2>&5
  10326. ac_status=$?
  10327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10328. (exit $ac_status); }; }; then
  10329. eval "$as_ac_var=yes"
  10330. else
  10331. echo "$as_me: failed program was:" >&5
  10332. sed 's/^/| /' conftest.$ac_ext >&5
  10333. eval "$as_ac_var=no"
  10334. fi
  10335. rm -f conftest.err conftest.$ac_objext \
  10336. conftest$ac_exeext conftest.$ac_ext
  10337. fi
  10338. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10339. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10340. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10341. cat >>confdefs.h <<_ACEOF
  10342. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10343. _ACEOF
  10344. fi
  10345. done
  10346. if test "$ac_cv_func_vsprintf" = "no"
  10347. then
  10348. cat << 'EOF' >&2
  10349. configure: error:
  10350. Your system does not have the sprintf/vsprintf libraries.
  10351. These are required to compile almost anything. Sorry.
  10352. EOF
  10353. exit 1
  10354. fi
  10355. for ac_func in uname
  10356. do
  10357. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10358. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10359. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10360. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10361. echo $ECHO_N "(cached) $ECHO_C" >&6
  10362. else
  10363. cat >conftest.$ac_ext <<_ACEOF
  10364. /* confdefs.h. */
  10365. _ACEOF
  10366. cat confdefs.h >>conftest.$ac_ext
  10367. cat >>conftest.$ac_ext <<_ACEOF
  10368. /* end confdefs.h. */
  10369. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10370. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10371. #define $ac_func innocuous_$ac_func
  10372. /* System header to define __stub macros and hopefully few prototypes,
  10373. which can conflict with char $ac_func (); below.
  10374. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10375. <limits.h> exists even on freestanding compilers. */
  10376. #ifdef __STDC__
  10377. # include <limits.h>
  10378. #else
  10379. # include <assert.h>
  10380. #endif
  10381. #undef $ac_func
  10382. /* Override any gcc2 internal prototype to avoid an error. */
  10383. #ifdef __cplusplus
  10384. extern "C"
  10385. {
  10386. #endif
  10387. /* We use char because int might match the return type of a gcc2
  10388. builtin and then its argument prototype would still apply. */
  10389. char $ac_func ();
  10390. /* The GNU C library defines this for functions which it implements
  10391. to always fail with ENOSYS. Some functions are actually named
  10392. something starting with __ and the normal name is an alias. */
  10393. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10394. choke me
  10395. #else
  10396. char (*f) () = $ac_func;
  10397. #endif
  10398. #ifdef __cplusplus
  10399. }
  10400. #endif
  10401. int
  10402. main ()
  10403. {
  10404. return f != $ac_func;
  10405. ;
  10406. return 0;
  10407. }
  10408. _ACEOF
  10409. rm -f conftest.$ac_objext conftest$ac_exeext
  10410. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10411. (eval $ac_link) 2>conftest.er1
  10412. ac_status=$?
  10413. grep -v '^ *+' conftest.er1 >conftest.err
  10414. rm -f conftest.er1
  10415. cat conftest.err >&5
  10416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10417. (exit $ac_status); } &&
  10418. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10419. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10420. (eval $ac_try) 2>&5
  10421. ac_status=$?
  10422. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10423. (exit $ac_status); }; } &&
  10424. { ac_try='test -s conftest$ac_exeext'
  10425. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10426. (eval $ac_try) 2>&5
  10427. ac_status=$?
  10428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10429. (exit $ac_status); }; }; then
  10430. eval "$as_ac_var=yes"
  10431. else
  10432. echo "$as_me: failed program was:" >&5
  10433. sed 's/^/| /' conftest.$ac_ext >&5
  10434. eval "$as_ac_var=no"
  10435. fi
  10436. rm -f conftest.err conftest.$ac_objext \
  10437. conftest$ac_exeext conftest.$ac_ext
  10438. fi
  10439. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10440. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10441. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10442. cat >>confdefs.h <<_ACEOF
  10443. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10444. _ACEOF
  10445. fi
  10446. done
  10447. if test "$ac_cv_func_uname" = "no"
  10448. then
  10449. cat << 'EOF' >&2
  10450. configure: error:
  10451. Your system does not have the uname() function.
  10452. This is required for the botpack.
  10453. EOF
  10454. exit 1
  10455. fi
  10456. # Make sure we have stdc headers, since we can't compile without them
  10457. if test "$ac_cv_header_stdc" = "no"
  10458. then
  10459. cat << 'EOF' >&2
  10460. configure: error:
  10461. Your system must support ANSI C Header files.
  10462. These are required for the language support. Sorry.
  10463. EOF
  10464. exit 1
  10465. fi
  10466. #checkpoint
  10467. cat >confcache <<\_ACEOF
  10468. # This file is a shell script that caches the results of configure
  10469. # tests run on this system so they can be shared between configure
  10470. # scripts and configure runs, see configure's option --config-cache.
  10471. # It is not useful on other systems. If it contains results you don't
  10472. # want to keep, you may remove or edit it.
  10473. #
  10474. # config.status only pays attention to the cache file if you give it
  10475. # the --recheck option to rerun configure.
  10476. #
  10477. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10478. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10479. # following values.
  10480. _ACEOF
  10481. # The following way of writing the cache mishandles newlines in values,
  10482. # but we know of no workaround that is simple, portable, and efficient.
  10483. # So, don't put newlines in cache variables' values.
  10484. # Ultrix sh set writes to stderr and can't be redirected directly,
  10485. # and sets the high bit in the cache file unless we assign to the vars.
  10486. {
  10487. (set) 2>&1 |
  10488. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10489. *ac_space=\ *)
  10490. # `set' does not quote correctly, so add quotes (double-quote
  10491. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10492. sed -n \
  10493. "s/'/'\\\\''/g;
  10494. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10495. ;;
  10496. *)
  10497. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10498. sed -n \
  10499. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10500. ;;
  10501. esac;
  10502. } |
  10503. sed '
  10504. t clear
  10505. : clear
  10506. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10507. t end
  10508. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10509. : end' >>confcache
  10510. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10511. if test -w $cache_file; then
  10512. test "x$cache_file" != "x/dev/null"
  10513. cat confcache >$cache_file
  10514. else
  10515. echo "not updating unwritable cache $cache_file"
  10516. fi
  10517. fi
  10518. rm -f confcache
  10519. # Where is Tcl? Is it here?
  10520. # ---------- begin robey's Tcl thingies
  10521. # (well, what used to be robey's Tcl thingies...)
  10522. # Latest tested Tcl version to recommend if Tcl isn't found
  10523. tclrecommendver="8.4"
  10524. # Site recommended to download Tcl from
  10525. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  10526. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  10527. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  10528. tcl8.0 tcl80"
  10529. # Tcl library filename suffixes
  10530. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  10531. # Tcl library search paths
  10532. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  10533. /usr/local/lib /usr/local/pkgs/tcl/lib \
  10534. /usr/lib /lib /usr/i486-linuxaout/lib \
  10535. /beos/system/lib /sys/lib"
  10536. # Tcl header filenames
  10537. tclheadernames="tcl.h"
  10538. # Tcl header search paths
  10539. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  10540. /usr/local/include /usr/local/pkgs/tcl/include \
  10541. /usr/include /beos/system/include /beos/devel/include \
  10542. /sys/include"
  10543. # oohh new configure --variables for those with multiple Tcl libs
  10544. # Check whether --with-tcllib or --without-tcllib was given.
  10545. if test "${with_tcllib+set}" = set; then
  10546. withval="$with_tcllib"
  10547. tcllibname="$withval"
  10548. fi;
  10549. # Check whether --with-tclinc or --without-tclinc was given.
  10550. if test "${with_tclinc+set}" = set; then
  10551. withval="$with_tclinc"
  10552. tclincname="$withval"
  10553. fi;
  10554. WARN=0
  10555. # Make sure either both or neither $tcllibname and $tclincname are set
  10556. if test ! "${tcllibname-x}" = "x"
  10557. then
  10558. if test "${tclincname-x}" = "x"
  10559. then
  10560. WARN=1
  10561. tcllibname=""
  10562. TCLLIB=""
  10563. TCLINC=""
  10564. fi
  10565. else
  10566. if test ! "${tclincname-x}" = "x"
  10567. then
  10568. WARN=1
  10569. tclincname=""
  10570. TCLLIB=""
  10571. TCLINC=""
  10572. fi
  10573. fi
  10574. if test "$WARN" = 1
  10575. then
  10576. cat << 'EOF' >&2
  10577. configure: warning:
  10578. You must specify both --with-tcllib and --with-tclinc for them to work.
  10579. configure will now attempt to autodetect both the Tcl library and header...
  10580. EOF
  10581. fi
  10582. WARN=0
  10583. # Make sure either both or neither $TCLLIB and $TCLINC are set
  10584. if test ! "${TCLLIB-x}" = "x"
  10585. then
  10586. if test "${TCLINC-x}" = "x"
  10587. then
  10588. WARN=1
  10589. WVAR1=TCLLIB
  10590. WVAR2=TCLINC
  10591. TCLLIB=""
  10592. fi
  10593. else
  10594. if test ! "${TCLINC-x}" = "x"
  10595. then
  10596. WARN=1
  10597. WVAR1=TCLINC
  10598. WVAR2=TCLLIB
  10599. TCLINC=""
  10600. fi
  10601. fi
  10602. if test "$WARN" = 1
  10603. then
  10604. cat << EOF >&2
  10605. configure: warning:
  10606. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  10607. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10608. configure will now attempt to autodetect both the Tcl library and header...
  10609. EOF
  10610. fi
  10611. # Look for Tcl library: if $tcllibname is set, check there first
  10612. if test ! "${tcllibname-x}" = "x"
  10613. then
  10614. if test -f "$tcllibname" && test -r "$tcllibname"
  10615. then
  10616. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  10617. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  10618. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  10619. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  10620. else
  10621. cat << EOF >&2
  10622. configure: warning:
  10623. The file '$tcllibname' given to option --with-tcllib is not valid.
  10624. configure will now attempt to autodetect both the Tcl library and header...
  10625. EOF
  10626. tcllibname=""
  10627. tclincname=""
  10628. TCLLIB=""
  10629. TCLLIBFN=""
  10630. TCLINC=""
  10631. TCLINCFN=""
  10632. fi
  10633. fi
  10634. # Look for Tcl header: if $tclincname is set, check there first
  10635. if test ! "${tclincname-x}" = "x"
  10636. then
  10637. if test -f "$tclincname" && test -r "$tclincname"
  10638. then
  10639. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  10640. TCLINCFN=`$BASENAME $tclincname`
  10641. else
  10642. cat << EOF >&2
  10643. configure: warning:
  10644. The file '$tclincname' given to option --with-tclinc is not valid.
  10645. configure will now attempt to autodetect both the Tcl library and header...
  10646. EOF
  10647. tcllibname=""
  10648. tclincname=""
  10649. TCLLIB=""
  10650. TCLLIBFN=""
  10651. TCLINC=""
  10652. TCLINCFN=""
  10653. fi
  10654. fi
  10655. # Look for Tcl library: if $TCLLIB is set, check there first
  10656. if test "${TCLLIBFN-x}" = "x"
  10657. then
  10658. if test ! "${TCLLIB-x}" = "x"
  10659. then
  10660. if test -d "$TCLLIB"
  10661. then
  10662. for tcllibfns in $tcllibnames
  10663. do
  10664. for tcllibext in $tcllibextensions
  10665. do
  10666. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  10667. then
  10668. TCLLIBFN="$tcllibfns$tcllibext"
  10669. TCLLIBEXT="$tcllibext"
  10670. TCLLIBFNS="$tcllibfns"
  10671. break 2
  10672. fi
  10673. done
  10674. done
  10675. fi
  10676. if test "${TCLLIBFN-x}" = "x"
  10677. then
  10678. cat << 'EOF' >&2
  10679. configure: warning:
  10680. Environment variable TCLLIB was set, but incorrect.
  10681. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10682. configure will now attempt to autodetect both the Tcl library and header...
  10683. EOF
  10684. TCLLIB=""
  10685. TCLLIBFN=""
  10686. TCLINC=""
  10687. TCLINCFN=""
  10688. fi
  10689. fi
  10690. fi
  10691. # Look for Tcl header: if $TCLINC is set, check there first
  10692. if test "${TCLINCFN-x}" = "x"
  10693. then
  10694. if test ! "${TCLINC-x}" = "x"
  10695. then
  10696. if test -d "$TCLINC"
  10697. then
  10698. for tclheaderfn in $tclheadernames
  10699. do
  10700. if test -r "$TCLINC/$tclheaderfn"
  10701. then
  10702. TCLINCFN="$tclheaderfn"
  10703. break
  10704. fi
  10705. done
  10706. fi
  10707. if test "${TCLINCFN-x}" = "x"
  10708. then
  10709. cat << 'EOF' >&2
  10710. configure: warning:
  10711. Environment variable TCLINC was set, but incorrect.
  10712. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10713. configure will now attempt to autodetect both the Tcl library and header...
  10714. EOF
  10715. TCLLIB=""
  10716. TCLLIBFN=""
  10717. TCLINC=""
  10718. TCLINCFN=""
  10719. fi
  10720. fi
  10721. fi
  10722. echo "$as_me:$LINENO: checking for Tcl library" >&5
  10723. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  10724. # Attempt autodetect for $TCLLIBFN if it's not set
  10725. if test ! "${TCLLIBFN-x}" = "x"
  10726. then
  10727. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  10728. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  10729. else
  10730. for tcllibfns in $tcllibnames
  10731. do
  10732. for tcllibext in $tcllibextensions
  10733. do
  10734. for tcllibpath in $tcllibpaths
  10735. do
  10736. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  10737. then
  10738. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  10739. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  10740. TCLLIB="$tcllibpath"
  10741. TCLLIBFN="$tcllibfns$tcllibext"
  10742. TCLLIBEXT="$tcllibext"
  10743. TCLLIBFNS="$tcllibfns"
  10744. break 3
  10745. fi
  10746. done
  10747. done
  10748. done
  10749. fi
  10750. # Show if $TCLLIBFN wasn't found
  10751. if test "${TCLLIBFN-x}" = "x"
  10752. then
  10753. echo "$as_me:$LINENO: result: not found" >&5
  10754. echo "${ECHO_T}not found" >&6
  10755. fi
  10756. echo "$as_me:$LINENO: checking for Tcl header" >&5
  10757. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  10758. # Attempt autodetect for $TCLINCFN if it's not set
  10759. if test ! "${TCLINCFN-x}" = "x"
  10760. then
  10761. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  10762. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  10763. else
  10764. for tclheaderpath in $tclheaderpaths
  10765. do
  10766. for tclheaderfn in $tclheadernames
  10767. do
  10768. if test -r "$tclheaderpath/$tclheaderfn"
  10769. then
  10770. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  10771. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  10772. TCLINC="$tclheaderpath"
  10773. TCLINCFN="$tclheaderfn"
  10774. break 2
  10775. fi
  10776. done
  10777. done
  10778. # FreeBSD hack ...
  10779. if test "${TCLINCFN-x}" = "x"
  10780. then
  10781. for tcllibfns in $tcllibnames
  10782. do
  10783. for tclheaderpath in $tclheaderpaths
  10784. do
  10785. for tclheaderfn in $tclheadernames
  10786. do
  10787. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  10788. then
  10789. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  10790. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  10791. TCLINC="$tclheaderpath/$tcllibfns"
  10792. TCLINCFN="$tclheaderfn"
  10793. break 3
  10794. fi
  10795. done
  10796. done
  10797. done
  10798. fi
  10799. fi
  10800. # Show if $TCLINCFN wasn't found
  10801. if test "${TCLINCFN-x}" = "x"
  10802. then
  10803. echo "$as_me:$LINENO: result: not found" >&5
  10804. echo "${ECHO_T}not found" >&6
  10805. fi
  10806. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  10807. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  10808. egg_tcl_changed=yes
  10809. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  10810. if test ! "$egg_tcl_id" = ":::"
  10811. then
  10812. egg_tcl_cached=yes
  10813. if test "${egg_cv_var_tcl_id+set}" = set; then
  10814. echo $ECHO_N "(cached) $ECHO_C" >&6
  10815. else
  10816. egg_cv_var_tcl_id="$egg_tcl_id"
  10817. egg_tcl_cached=no
  10818. fi
  10819. if test "$egg_tcl_cached" = "yes"
  10820. then
  10821. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  10822. then
  10823. egg_tcl_changed=no
  10824. else
  10825. egg_cv_var_tcl_id="$egg_tcl_id"
  10826. fi
  10827. fi
  10828. fi
  10829. if test "$egg_tcl_changed" = "yes"
  10830. then
  10831. echo "$as_me:$LINENO: result: yes" >&5
  10832. echo "${ECHO_T}yes" >&6
  10833. else
  10834. echo "$as_me:$LINENO: result: no" >&5
  10835. echo "${ECHO_T}no" >&6
  10836. fi
  10837. #checkpoint
  10838. cat >confcache <<\_ACEOF
  10839. # This file is a shell script that caches the results of configure
  10840. # tests run on this system so they can be shared between configure
  10841. # scripts and configure runs, see configure's option --config-cache.
  10842. # It is not useful on other systems. If it contains results you don't
  10843. # want to keep, you may remove or edit it.
  10844. #
  10845. # config.status only pays attention to the cache file if you give it
  10846. # the --recheck option to rerun configure.
  10847. #
  10848. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10849. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10850. # following values.
  10851. _ACEOF
  10852. # The following way of writing the cache mishandles newlines in values,
  10853. # but we know of no workaround that is simple, portable, and efficient.
  10854. # So, don't put newlines in cache variables' values.
  10855. # Ultrix sh set writes to stderr and can't be redirected directly,
  10856. # and sets the high bit in the cache file unless we assign to the vars.
  10857. {
  10858. (set) 2>&1 |
  10859. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10860. *ac_space=\ *)
  10861. # `set' does not quote correctly, so add quotes (double-quote
  10862. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10863. sed -n \
  10864. "s/'/'\\\\''/g;
  10865. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10866. ;;
  10867. *)
  10868. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10869. sed -n \
  10870. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10871. ;;
  10872. esac;
  10873. } |
  10874. sed '
  10875. t clear
  10876. : clear
  10877. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10878. t end
  10879. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10880. : end' >>confcache
  10881. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10882. if test -w $cache_file; then
  10883. test "x$cache_file" != "x/dev/null"
  10884. cat confcache >$cache_file
  10885. else
  10886. echo "not updating unwritable cache $cache_file"
  10887. fi
  10888. fi
  10889. rm -f confcache
  10890. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  10891. TCL_FOUND=0
  10892. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  10893. then
  10894. TCL_FOUND=1
  10895. # Check Tcl's version
  10896. if test "$egg_tcl_changed" = "yes"
  10897. then
  10898. unset egg_cv_var_tcl_version
  10899. fi
  10900. echo "$as_me:$LINENO: checking for Tcl version" >&5
  10901. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  10902. if test "${egg_cv_var_tcl_version+set}" = set; then
  10903. echo $ECHO_N "(cached) $ECHO_C" >&6
  10904. else
  10905. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  10906. fi
  10907. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  10908. then
  10909. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  10910. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  10911. else
  10912. echo "$as_me:$LINENO: result: not found" >&5
  10913. echo "${ECHO_T}not found" >&6
  10914. TCL_FOUND=0
  10915. fi
  10916. # Check Tcl's patch level (if available)
  10917. if test "$egg_tcl_changed" = "yes"
  10918. then
  10919. unset egg_cv_var_tcl_patch_level
  10920. fi
  10921. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  10922. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  10923. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  10924. echo $ECHO_N "(cached) $ECHO_C" >&6
  10925. else
  10926. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  10927. fi
  10928. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  10929. then
  10930. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  10931. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  10932. else
  10933. egg_cv_var_tcl_patch_level="unknown"
  10934. echo "$as_me:$LINENO: result: unknown" >&5
  10935. echo "${ECHO_T}unknown" >&6
  10936. fi
  10937. fi
  10938. # Check if we found Tcl's version
  10939. if test "$TCL_FOUND" = 0
  10940. then
  10941. cat << 'EOF' >&2
  10942. configure: error:
  10943. I can't find Tcl on this system.
  10944. The download website is at:
  10945. http://www.tcl.tk/software/tcltk/download84.html
  10946. A nice direct link for the tarball is:
  10947. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  10948. OR
  10949. Just type: ./build -T
  10950. EOF
  10951. exit 1
  10952. fi
  10953. # Is this version of Tcl too old for us to use ?
  10954. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  10955. if test "$TCL_VER_PRE80" = "yes"
  10956. then
  10957. cat << EOF >&2
  10958. configure: error:
  10959. Your Tcl version is much too old for Eggdrop to use.
  10960. I suggest you download and compile a more recent version.
  10961. The most reliable current version is $tclrecommendver and
  10962. can be downloaded from $tclrecommendsite
  10963. EOF
  10964. exit 1
  10965. fi
  10966. # Set variables for Tcl library tests
  10967. TCL_TEST_LIB="$TCLLIBFNS"
  10968. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  10969. if test ! "${ac_cv_lib_pthread-x}" = "x"
  10970. then
  10971. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  10972. fi
  10973. if test "$egg_tcl_changed" = "yes"
  10974. then
  10975. unset egg_cv_var_tcl_free
  10976. fi
  10977. # Check for Tcl_Free()
  10978. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  10979. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  10980. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  10981. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  10982. echo $ECHO_N "(cached) $ECHO_C" >&6
  10983. else
  10984. ac_check_lib_save_LIBS=$LIBS
  10985. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  10986. cat >conftest.$ac_ext <<_ACEOF
  10987. /* confdefs.h. */
  10988. _ACEOF
  10989. cat confdefs.h >>conftest.$ac_ext
  10990. cat >>conftest.$ac_ext <<_ACEOF
  10991. /* end confdefs.h. */
  10992. /* Override any gcc2 internal prototype to avoid an error. */
  10993. #ifdef __cplusplus
  10994. extern "C"
  10995. #endif
  10996. /* We use char because int might match the return type of a gcc2
  10997. builtin and then its argument prototype would still apply. */
  10998. char Tcl_Free ();
  10999. int
  11000. main ()
  11001. {
  11002. Tcl_Free ();
  11003. ;
  11004. return 0;
  11005. }
  11006. _ACEOF
  11007. rm -f conftest.$ac_objext conftest$ac_exeext
  11008. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11009. (eval $ac_link) 2>conftest.er1
  11010. ac_status=$?
  11011. grep -v '^ *+' conftest.er1 >conftest.err
  11012. rm -f conftest.er1
  11013. cat conftest.err >&5
  11014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11015. (exit $ac_status); } &&
  11016. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11018. (eval $ac_try) 2>&5
  11019. ac_status=$?
  11020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11021. (exit $ac_status); }; } &&
  11022. { ac_try='test -s conftest$ac_exeext'
  11023. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11024. (eval $ac_try) 2>&5
  11025. ac_status=$?
  11026. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11027. (exit $ac_status); }; }; then
  11028. eval "$as_ac_Lib=yes"
  11029. else
  11030. echo "$as_me: failed program was:" >&5
  11031. sed 's/^/| /' conftest.$ac_ext >&5
  11032. eval "$as_ac_Lib=no"
  11033. fi
  11034. rm -f conftest.err conftest.$ac_objext \
  11035. conftest$ac_exeext conftest.$ac_ext
  11036. LIBS=$ac_check_lib_save_LIBS
  11037. fi
  11038. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11039. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11040. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11041. egg_cv_var_tcl_free="yes"
  11042. else
  11043. egg_cv_var_tcl_free="no"
  11044. fi
  11045. if test "$egg_cv_var_tcl_free" = "yes"
  11046. then
  11047. cat >>confdefs.h <<\_ACEOF
  11048. #define HAVE_TCL_FREE 1
  11049. _ACEOF
  11050. fi
  11051. if test "$egg_tcl_changed" = "yes"
  11052. then
  11053. unset egg_cv_var_tcl_threaded
  11054. fi
  11055. # Check for TclpFinalizeThreadData()
  11056. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  11057. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  11058. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11059. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11060. echo $ECHO_N "(cached) $ECHO_C" >&6
  11061. else
  11062. ac_check_lib_save_LIBS=$LIBS
  11063. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11064. cat >conftest.$ac_ext <<_ACEOF
  11065. /* confdefs.h. */
  11066. _ACEOF
  11067. cat confdefs.h >>conftest.$ac_ext
  11068. cat >>conftest.$ac_ext <<_ACEOF
  11069. /* end confdefs.h. */
  11070. /* Override any gcc2 internal prototype to avoid an error. */
  11071. #ifdef __cplusplus
  11072. extern "C"
  11073. #endif
  11074. /* We use char because int might match the return type of a gcc2
  11075. builtin and then its argument prototype would still apply. */
  11076. char TclpFinalizeThreadData ();
  11077. int
  11078. main ()
  11079. {
  11080. TclpFinalizeThreadData ();
  11081. ;
  11082. return 0;
  11083. }
  11084. _ACEOF
  11085. rm -f conftest.$ac_objext conftest$ac_exeext
  11086. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11087. (eval $ac_link) 2>conftest.er1
  11088. ac_status=$?
  11089. grep -v '^ *+' conftest.er1 >conftest.err
  11090. rm -f conftest.er1
  11091. cat conftest.err >&5
  11092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11093. (exit $ac_status); } &&
  11094. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11095. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11096. (eval $ac_try) 2>&5
  11097. ac_status=$?
  11098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11099. (exit $ac_status); }; } &&
  11100. { ac_try='test -s conftest$ac_exeext'
  11101. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11102. (eval $ac_try) 2>&5
  11103. ac_status=$?
  11104. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11105. (exit $ac_status); }; }; then
  11106. eval "$as_ac_Lib=yes"
  11107. else
  11108. echo "$as_me: failed program was:" >&5
  11109. sed 's/^/| /' conftest.$ac_ext >&5
  11110. eval "$as_ac_Lib=no"
  11111. fi
  11112. rm -f conftest.err conftest.$ac_objext \
  11113. conftest$ac_exeext conftest.$ac_ext
  11114. LIBS=$ac_check_lib_save_LIBS
  11115. fi
  11116. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11117. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11118. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11119. egg_cv_var_tcl_threaded="yes"
  11120. else
  11121. egg_cv_var_tcl_threaded="no"
  11122. fi
  11123. enable_tcl_threads=no
  11124. if test "$egg_cv_var_tcl_threaded" = "yes"
  11125. then
  11126. if test "$enable_tcl_threads" = "no"
  11127. then
  11128. cat << 'EOF' >&2
  11129. configure: warning:
  11130. You have disabled threads support on a system with a threaded Tcl library.
  11131. Tcl features that rely on scheduled events may not function properly.
  11132. EOF
  11133. fi
  11134. # Add pthread library to $LIBS if we need it
  11135. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11136. then
  11137. LIBS="$ac_cv_lib_pthread $LIBS"
  11138. fi
  11139. fi
  11140. if test "$EGG_CYGWIN" = "yes"
  11141. then
  11142. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11143. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11144. else
  11145. if test ! "$TCLLIBEXT" = ".a"
  11146. then
  11147. cat << 'EOF' >&2
  11148. configure: warning:
  11149. Your Tcl library is not compiled statically.
  11150. You will need to compile Tcl statically to successfully compile wraith.
  11151. EOF
  11152. exit 1
  11153. else
  11154. # Was the --with-tcllib option given ?
  11155. if test ! "${tcllibname-x}" = "x"
  11156. then
  11157. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11158. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  11159. else
  11160. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11161. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11162. fi
  11163. fi
  11164. fi
  11165. ac_config_commands="$ac_config_commands replace-if-changed"
  11166. #checkpoint
  11167. cat >confcache <<\_ACEOF
  11168. # This file is a shell script that caches the results of configure
  11169. # tests run on this system so they can be shared between configure
  11170. # scripts and configure runs, see configure's option --config-cache.
  11171. # It is not useful on other systems. If it contains results you don't
  11172. # want to keep, you may remove or edit it.
  11173. #
  11174. # config.status only pays attention to the cache file if you give it
  11175. # the --recheck option to rerun configure.
  11176. #
  11177. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11178. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11179. # following values.
  11180. _ACEOF
  11181. # The following way of writing the cache mishandles newlines in values,
  11182. # but we know of no workaround that is simple, portable, and efficient.
  11183. # So, don't put newlines in cache variables' values.
  11184. # Ultrix sh set writes to stderr and can't be redirected directly,
  11185. # and sets the high bit in the cache file unless we assign to the vars.
  11186. {
  11187. (set) 2>&1 |
  11188. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11189. *ac_space=\ *)
  11190. # `set' does not quote correctly, so add quotes (double-quote
  11191. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11192. sed -n \
  11193. "s/'/'\\\\''/g;
  11194. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11195. ;;
  11196. *)
  11197. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11198. sed -n \
  11199. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11200. ;;
  11201. esac;
  11202. } |
  11203. sed '
  11204. t clear
  11205. : clear
  11206. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11207. t end
  11208. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11209. : end' >>confcache
  11210. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11211. if test -w $cache_file; then
  11212. test "x$cache_file" != "x/dev/null"
  11213. cat confcache >$cache_file
  11214. else
  11215. echo "not updating unwritable cache $cache_file"
  11216. fi
  11217. fi
  11218. rm -f confcache
  11219. # ---------- end of (what used to be) robey's Tcl thingies
  11220. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  11221. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $5}' | sed -e 's/\;//g'`
  11222. if ! test -f $srcdir/pack/pack.cfg; then
  11223. cat << 'EOF' >&2
  11224. configure: error:
  11225. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  11226. EOF
  11227. exit 1
  11228. fi
  11229. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  11230. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  11231. cat >>confdefs.h <<_ACEOF
  11232. #define EGG_VERSION $version_num
  11233. _ACEOF
  11234. case "$srcdir" in
  11235. [\\/]* | ?:[\\/]*)
  11236. MOD_UPDIR=""
  11237. ;;
  11238. *)
  11239. MOD_UPDIR="../"
  11240. ;;
  11241. esac
  11242. ac_config_commands="$ac_config_commands catch-make-rebuild"
  11243. files="src/Makefile.in src/compat/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"
  11244. for mf in $files; do
  11245. # Strip MF so we end up with the name of the file.
  11246. # echo "MF: $mf"
  11247. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11248. dirpart=`(dirname "$mf") 2>/dev/null ||
  11249. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11250. X"$mf" : 'X\(//\)[^/]' \| \
  11251. X"$mf" : 'X\(//\)$' \| \
  11252. X"$mf" : 'X\(/\)' \| \
  11253. . : '\(.\)' 2>/dev/null ||
  11254. echo X"$mf" |
  11255. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11256. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11257. /^X\(\/\/\)$/{ s//\1/; q; }
  11258. /^X\(\/\).*/{ s//\1/; q; }
  11259. s/.*/./; q'`
  11260. # echo "dirpart: $dirpart mf: $mf"
  11261. rm -rf "$dirpart/.deps/"
  11262. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  11263. for file in `sed -n -e '
  11264. /^OBJS = .*\\\\$/ {
  11265. s/^OBJS = //
  11266. :loop
  11267. s/\\\\$//
  11268. p
  11269. n
  11270. /\\\\$/ b loop
  11271. p
  11272. }
  11273. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  11274. do
  11275. base=`basename $file .o`
  11276. test -f "$dirpart/$base.c" || continue
  11277. # fdir=`AS_DIRNAME(["$file"])`
  11278. # AS_MKDIR_P([$dirpart/$fdir])
  11279. # echo "creating $dirpart/.deps/$base.Po"
  11280. echo '# dummy' > "$dirpart/.deps/$base.Po"
  11281. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  11282. echo "_$base.c:" >> "$dirpart/.deps/includes"
  11283. done
  11284. done
  11285. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile"
  11286. cat >confcache <<\_ACEOF
  11287. # This file is a shell script that caches the results of configure
  11288. # tests run on this system so they can be shared between configure
  11289. # scripts and configure runs, see configure's option --config-cache.
  11290. # It is not useful on other systems. If it contains results you don't
  11291. # want to keep, you may remove or edit it.
  11292. #
  11293. # config.status only pays attention to the cache file if you give it
  11294. # the --recheck option to rerun configure.
  11295. #
  11296. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11297. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11298. # following values.
  11299. _ACEOF
  11300. # The following way of writing the cache mishandles newlines in values,
  11301. # but we know of no workaround that is simple, portable, and efficient.
  11302. # So, don't put newlines in cache variables' values.
  11303. # Ultrix sh set writes to stderr and can't be redirected directly,
  11304. # and sets the high bit in the cache file unless we assign to the vars.
  11305. {
  11306. (set) 2>&1 |
  11307. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11308. *ac_space=\ *)
  11309. # `set' does not quote correctly, so add quotes (double-quote
  11310. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11311. sed -n \
  11312. "s/'/'\\\\''/g;
  11313. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11314. ;;
  11315. *)
  11316. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11317. sed -n \
  11318. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11319. ;;
  11320. esac;
  11321. } |
  11322. sed '
  11323. t clear
  11324. : clear
  11325. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11326. t end
  11327. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11328. : end' >>confcache
  11329. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11330. if test -w $cache_file; then
  11331. test "x$cache_file" != "x/dev/null"
  11332. cat confcache >$cache_file
  11333. else
  11334. echo "not updating unwritable cache $cache_file"
  11335. fi
  11336. fi
  11337. rm -f confcache
  11338. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11339. # Let make expand exec_prefix.
  11340. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11341. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11342. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11343. # trailing colons and then remove the whole line if VPATH becomes empty
  11344. # (actually we leave an empty line to preserve line numbers).
  11345. if test "x$srcdir" = x.; then
  11346. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11347. s/:*\$(srcdir):*/:/;
  11348. s/:*\${srcdir}:*/:/;
  11349. s/:*@srcdir@:*/:/;
  11350. s/^\([^=]*=[ ]*\):*/\1/;
  11351. s/:*$//;
  11352. s/^[^=]*=[ ]*$//;
  11353. }'
  11354. fi
  11355. DEFS=-DHAVE_CONFIG_H
  11356. ac_libobjs=
  11357. ac_ltlibobjs=
  11358. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11359. # 1. Remove the extension, and $U if already installed.
  11360. ac_i=`echo "$ac_i" |
  11361. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11362. # 2. Add them.
  11363. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11364. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11365. done
  11366. LIBOBJS=$ac_libobjs
  11367. LTLIBOBJS=$ac_ltlibobjs
  11368. : ${CONFIG_STATUS=./config.status}
  11369. ac_clean_files_save=$ac_clean_files
  11370. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11371. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11372. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11373. cat >$CONFIG_STATUS <<_ACEOF
  11374. #! $SHELL
  11375. # Generated by $as_me.
  11376. # Run this file to recreate the current configuration.
  11377. # Compiler output produced by configure, useful for debugging
  11378. # configure, is in config.log if it exists.
  11379. debug=false
  11380. ac_cs_recheck=false
  11381. ac_cs_silent=false
  11382. SHELL=\${CONFIG_SHELL-$SHELL}
  11383. _ACEOF
  11384. cat >>$CONFIG_STATUS <<\_ACEOF
  11385. ## --------------------- ##
  11386. ## M4sh Initialization. ##
  11387. ## --------------------- ##
  11388. # Be Bourne compatible
  11389. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11390. emulate sh
  11391. NULLCMD=:
  11392. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11393. # is contrary to our usage. Disable this feature.
  11394. alias -g '${1+"$@"}'='"$@"'
  11395. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11396. set -o posix
  11397. fi
  11398. DUALCASE=1; export DUALCASE # for MKS sh
  11399. # Support unset when possible.
  11400. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11401. as_unset=unset
  11402. else
  11403. as_unset=false
  11404. fi
  11405. # Work around bugs in pre-3.0 UWIN ksh.
  11406. $as_unset ENV MAIL MAILPATH
  11407. PS1='$ '
  11408. PS2='> '
  11409. PS4='+ '
  11410. # NLS nuisances.
  11411. for as_var in \
  11412. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11413. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11414. LC_TELEPHONE LC_TIME
  11415. do
  11416. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11417. eval $as_var=C; export $as_var
  11418. else
  11419. $as_unset $as_var
  11420. fi
  11421. done
  11422. # Required to use basename.
  11423. if expr a : '\(a\)' >/dev/null 2>&1; then
  11424. as_expr=expr
  11425. else
  11426. as_expr=false
  11427. fi
  11428. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11429. as_basename=basename
  11430. else
  11431. as_basename=false
  11432. fi
  11433. # Name of the executable.
  11434. as_me=`$as_basename "$0" ||
  11435. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11436. X"$0" : 'X\(//\)$' \| \
  11437. X"$0" : 'X\(/\)$' \| \
  11438. . : '\(.\)' 2>/dev/null ||
  11439. echo X/"$0" |
  11440. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11441. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11442. /^X\/\(\/\).*/{ s//\1/; q; }
  11443. s/.*/./; q'`
  11444. # PATH needs CR, and LINENO needs CR and PATH.
  11445. # Avoid depending upon Character Ranges.
  11446. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11447. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11448. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11449. as_cr_digits='0123456789'
  11450. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11451. # The user is always right.
  11452. if test "${PATH_SEPARATOR+set}" != set; then
  11453. echo "#! /bin/sh" >conf$$.sh
  11454. echo "exit 0" >>conf$$.sh
  11455. chmod +x conf$$.sh
  11456. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11457. PATH_SEPARATOR=';'
  11458. else
  11459. PATH_SEPARATOR=:
  11460. fi
  11461. rm -f conf$$.sh
  11462. fi
  11463. as_lineno_1=$LINENO
  11464. as_lineno_2=$LINENO
  11465. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11466. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11467. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11468. # Find who we are. Look in the path if we contain no path at all
  11469. # relative or not.
  11470. case $0 in
  11471. *[\\/]* ) as_myself=$0 ;;
  11472. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11473. for as_dir in $PATH
  11474. do
  11475. IFS=$as_save_IFS
  11476. test -z "$as_dir" && as_dir=.
  11477. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11478. done
  11479. ;;
  11480. esac
  11481. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11482. # in which case we are not to be found in the path.
  11483. if test "x$as_myself" = x; then
  11484. as_myself=$0
  11485. fi
  11486. if test ! -f "$as_myself"; then
  11487. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11488. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11489. { (exit 1); exit 1; }; }
  11490. fi
  11491. case $CONFIG_SHELL in
  11492. '')
  11493. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11494. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11495. do
  11496. IFS=$as_save_IFS
  11497. test -z "$as_dir" && as_dir=.
  11498. for as_base in sh bash ksh sh5; do
  11499. case $as_dir in
  11500. /*)
  11501. if ("$as_dir/$as_base" -c '
  11502. as_lineno_1=$LINENO
  11503. as_lineno_2=$LINENO
  11504. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11505. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11506. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11507. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11508. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11509. CONFIG_SHELL=$as_dir/$as_base
  11510. export CONFIG_SHELL
  11511. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11512. fi;;
  11513. esac
  11514. done
  11515. done
  11516. ;;
  11517. esac
  11518. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11519. # uniformly replaced by the line number. The first 'sed' inserts a
  11520. # line-number line before each line; the second 'sed' does the real
  11521. # work. The second script uses 'N' to pair each line-number line
  11522. # with the numbered line, and appends trailing '-' during
  11523. # substitution so that $LINENO is not a special case at line end.
  11524. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11525. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11526. sed '=' <$as_myself |
  11527. sed '
  11528. N
  11529. s,$,-,
  11530. : loop
  11531. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11532. t loop
  11533. s,-$,,
  11534. s,^['$as_cr_digits']*\n,,
  11535. ' >$as_me.lineno &&
  11536. chmod +x $as_me.lineno ||
  11537. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11538. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11539. { (exit 1); exit 1; }; }
  11540. # Don't try to exec as it changes $[0], causing all sort of problems
  11541. # (the dirname of $[0] is not the place where we might find the
  11542. # original and so on. Autoconf is especially sensible to this).
  11543. . ./$as_me.lineno
  11544. # Exit status is that of the last command.
  11545. exit
  11546. }
  11547. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11548. *c*,-n*) ECHO_N= ECHO_C='
  11549. ' ECHO_T=' ' ;;
  11550. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11551. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11552. esac
  11553. if expr a : '\(a\)' >/dev/null 2>&1; then
  11554. as_expr=expr
  11555. else
  11556. as_expr=false
  11557. fi
  11558. rm -f conf$$ conf$$.exe conf$$.file
  11559. echo >conf$$.file
  11560. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11561. # We could just check for DJGPP; but this test a) works b) is more generic
  11562. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11563. if test -f conf$$.exe; then
  11564. # Don't use ln at all; we don't have any links
  11565. as_ln_s='cp -p'
  11566. else
  11567. as_ln_s='ln -s'
  11568. fi
  11569. elif ln conf$$.file conf$$ 2>/dev/null; then
  11570. as_ln_s=ln
  11571. else
  11572. as_ln_s='cp -p'
  11573. fi
  11574. rm -f conf$$ conf$$.exe conf$$.file
  11575. if mkdir -p . 2>/dev/null; then
  11576. as_mkdir_p=:
  11577. else
  11578. test -d ./-p && rmdir ./-p
  11579. as_mkdir_p=false
  11580. fi
  11581. as_executable_p="test -f"
  11582. # Sed expression to map a string onto a valid CPP name.
  11583. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11584. # Sed expression to map a string onto a valid variable name.
  11585. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11586. # IFS
  11587. # We need space, tab and new line, in precisely that order.
  11588. as_nl='
  11589. '
  11590. IFS=" $as_nl"
  11591. # CDPATH.
  11592. $as_unset CDPATH
  11593. exec 6>&1
  11594. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11595. # report actual input values of CONFIG_FILES etc. instead of their
  11596. # values after options handling. Logging --version etc. is OK.
  11597. exec 5>>config.log
  11598. {
  11599. echo
  11600. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11601. ## Running $as_me. ##
  11602. _ASBOX
  11603. } >&5
  11604. cat >&5 <<_CSEOF
  11605. This file was extended by $as_me, which was
  11606. generated by GNU Autoconf 2.59. Invocation command line was
  11607. CONFIG_FILES = $CONFIG_FILES
  11608. CONFIG_HEADERS = $CONFIG_HEADERS
  11609. CONFIG_LINKS = $CONFIG_LINKS
  11610. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11611. $ $0 $@
  11612. _CSEOF
  11613. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11614. echo >&5
  11615. _ACEOF
  11616. # Files that config.status was made for.
  11617. if test -n "$ac_config_files"; then
  11618. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11619. fi
  11620. if test -n "$ac_config_headers"; then
  11621. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11622. fi
  11623. if test -n "$ac_config_links"; then
  11624. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11625. fi
  11626. if test -n "$ac_config_commands"; then
  11627. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11628. fi
  11629. cat >>$CONFIG_STATUS <<\_ACEOF
  11630. ac_cs_usage="\
  11631. \`$as_me' instantiates files from templates according to the
  11632. current configuration.
  11633. Usage: $0 [OPTIONS] [FILE]...
  11634. -h, --help print this help, then exit
  11635. -V, --version print version number, then exit
  11636. -q, --quiet do not print progress messages
  11637. -d, --debug don't remove temporary files
  11638. --recheck update $as_me by reconfiguring in the same conditions
  11639. --file=FILE[:TEMPLATE]
  11640. instantiate the configuration file FILE
  11641. --header=FILE[:TEMPLATE]
  11642. instantiate the configuration header FILE
  11643. Configuration files:
  11644. $config_files
  11645. Configuration headers:
  11646. $config_headers
  11647. Configuration commands:
  11648. $config_commands
  11649. Report bugs to <bug-autoconf@gnu.org>."
  11650. _ACEOF
  11651. cat >>$CONFIG_STATUS <<_ACEOF
  11652. ac_cs_version="\\
  11653. config.status
  11654. configured by $0, generated by GNU Autoconf 2.59,
  11655. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11656. Copyright (C) 2003 Free Software Foundation, Inc.
  11657. This config.status script is free software; the Free Software Foundation
  11658. gives unlimited permission to copy, distribute and modify it."
  11659. srcdir=$srcdir
  11660. _ACEOF
  11661. cat >>$CONFIG_STATUS <<\_ACEOF
  11662. # If no file are specified by the user, then we need to provide default
  11663. # value. By we need to know if files were specified by the user.
  11664. ac_need_defaults=:
  11665. while test $# != 0
  11666. do
  11667. case $1 in
  11668. --*=*)
  11669. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11670. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11671. ac_shift=:
  11672. ;;
  11673. -*)
  11674. ac_option=$1
  11675. ac_optarg=$2
  11676. ac_shift=shift
  11677. ;;
  11678. *) # This is not an option, so the user has probably given explicit
  11679. # arguments.
  11680. ac_option=$1
  11681. ac_need_defaults=false;;
  11682. esac
  11683. case $ac_option in
  11684. # Handling of the options.
  11685. _ACEOF
  11686. cat >>$CONFIG_STATUS <<\_ACEOF
  11687. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11688. ac_cs_recheck=: ;;
  11689. --version | --vers* | -V )
  11690. echo "$ac_cs_version"; exit 0 ;;
  11691. --he | --h)
  11692. # Conflict between --help and --header
  11693. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11694. Try \`$0 --help' for more information." >&5
  11695. echo "$as_me: error: ambiguous option: $1
  11696. Try \`$0 --help' for more information." >&2;}
  11697. { (exit 1); exit 1; }; };;
  11698. --help | --hel | -h )
  11699. echo "$ac_cs_usage"; exit 0 ;;
  11700. --debug | --d* | -d )
  11701. debug=: ;;
  11702. --file | --fil | --fi | --f )
  11703. $ac_shift
  11704. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11705. ac_need_defaults=false;;
  11706. --header | --heade | --head | --hea )
  11707. $ac_shift
  11708. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11709. ac_need_defaults=false;;
  11710. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11711. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11712. ac_cs_silent=: ;;
  11713. # This is an error.
  11714. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11715. Try \`$0 --help' for more information." >&5
  11716. echo "$as_me: error: unrecognized option: $1
  11717. Try \`$0 --help' for more information." >&2;}
  11718. { (exit 1); exit 1; }; } ;;
  11719. *) ac_config_targets="$ac_config_targets $1" ;;
  11720. esac
  11721. shift
  11722. done
  11723. ac_configure_extra_args=
  11724. if $ac_cs_silent; then
  11725. exec 6>/dev/null
  11726. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11727. fi
  11728. _ACEOF
  11729. cat >>$CONFIG_STATUS <<_ACEOF
  11730. if \$ac_cs_recheck; then
  11731. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11732. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11733. fi
  11734. _ACEOF
  11735. cat >>$CONFIG_STATUS <<_ACEOF
  11736. #
  11737. # INIT-COMMANDS section.
  11738. #
  11739. egg_tclinc="$TCLINC"
  11740. egg_tclincfn="$TCLINCFN"
  11741. _ACEOF
  11742. cat >>$CONFIG_STATUS <<\_ACEOF
  11743. for ac_config_target in $ac_config_targets
  11744. do
  11745. case "$ac_config_target" in
  11746. # Handling of arguments.
  11747. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11748. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11749. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11750. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11751. "replace-if-changed" ) CONFIG_COMMANDS="$CONFIG_COMMANDS replace-if-changed" ;;
  11752. "catch-make-rebuild" ) CONFIG_COMMANDS="$CONFIG_COMMANDS catch-make-rebuild" ;;
  11753. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11754. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11755. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11756. { (exit 1); exit 1; }; };;
  11757. esac
  11758. done
  11759. # If the user did not use the arguments to specify the items to instantiate,
  11760. # then the envvar interface is used. Set only those that are not.
  11761. # We use the long form for the default assignment because of an extremely
  11762. # bizarre bug on SunOS 4.1.3.
  11763. if $ac_need_defaults; then
  11764. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11765. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11766. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11767. fi
  11768. # Have a temporary directory for convenience. Make it in the build tree
  11769. # simply because there is no reason to put it here, and in addition,
  11770. # creating and moving files from /tmp can sometimes cause problems.
  11771. # Create a temporary directory, and hook for its removal unless debugging.
  11772. $debug ||
  11773. {
  11774. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11775. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11776. }
  11777. # Create a (secure) tmp directory for tmp files.
  11778. {
  11779. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11780. test -n "$tmp" && test -d "$tmp"
  11781. } ||
  11782. {
  11783. tmp=./confstat$$-$RANDOM
  11784. (umask 077 && mkdir $tmp)
  11785. } ||
  11786. {
  11787. echo "$me: cannot create a temporary directory in ." >&2
  11788. { (exit 1); exit 1; }
  11789. }
  11790. _ACEOF
  11791. cat >>$CONFIG_STATUS <<_ACEOF
  11792. #
  11793. # CONFIG_FILES section.
  11794. #
  11795. # No need to generate the scripts if there are no CONFIG_FILES.
  11796. # This happens for instance when ./config.status config.h
  11797. if test -n "\$CONFIG_FILES"; then
  11798. # Protect against being on the right side of a sed subst in config.status.
  11799. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11800. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11801. s,@SHELL@,$SHELL,;t t
  11802. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11803. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11804. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11805. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11806. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11807. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11808. s,@exec_prefix@,$exec_prefix,;t t
  11809. s,@prefix@,$prefix,;t t
  11810. s,@program_transform_name@,$program_transform_name,;t t
  11811. s,@bindir@,$bindir,;t t
  11812. s,@sbindir@,$sbindir,;t t
  11813. s,@libexecdir@,$libexecdir,;t t
  11814. s,@datadir@,$datadir,;t t
  11815. s,@sysconfdir@,$sysconfdir,;t t
  11816. s,@sharedstatedir@,$sharedstatedir,;t t
  11817. s,@localstatedir@,$localstatedir,;t t
  11818. s,@libdir@,$libdir,;t t
  11819. s,@includedir@,$includedir,;t t
  11820. s,@oldincludedir@,$oldincludedir,;t t
  11821. s,@infodir@,$infodir,;t t
  11822. s,@mandir@,$mandir,;t t
  11823. s,@build_alias@,$build_alias,;t t
  11824. s,@host_alias@,$host_alias,;t t
  11825. s,@target_alias@,$target_alias,;t t
  11826. s,@DEFS@,$DEFS,;t t
  11827. s,@ECHO_C@,$ECHO_C,;t t
  11828. s,@ECHO_N@,$ECHO_N,;t t
  11829. s,@ECHO_T@,$ECHO_T,;t t
  11830. s,@LIBS@,$LIBS,;t t
  11831. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11832. s,@CC@,$CC,;t t
  11833. s,@CFLAGS@,$CFLAGS,;t t
  11834. s,@LDFLAGS@,$LDFLAGS,;t t
  11835. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11836. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11837. s,@EXEEXT@,$EXEEXT,;t t
  11838. s,@OBJEXT@,$OBJEXT,;t t
  11839. s,@CPP@,$CPP,;t t
  11840. s,@EGREP@,$EGREP,;t t
  11841. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11842. s,@CCDEBUG@,$CCDEBUG,;t t
  11843. s,@SET_MAKE@,$SET_MAKE,;t t
  11844. s,@HEAD_1@,$HEAD_1,;t t
  11845. s,@STRIP@,$STRIP,;t t
  11846. s,@AWK@,$AWK,;t t
  11847. s,@BASENAME@,$BASENAME,;t t
  11848. s,@CCACHE@,$CCACHE,;t t
  11849. s,@DISTCC@,$DISTCC,;t t
  11850. s,@UNAME@,$UNAME,;t t
  11851. s,@ZLIB@,$ZLIB,;t t
  11852. s,@SSL@,$SSL,;t t
  11853. s,@LIBOBJS@,$LIBOBJS,;t t
  11854. s,@TCLLIB@,$TCLLIB,;t t
  11855. s,@TCLLIBFN@,$TCLLIBFN,;t t
  11856. s,@TCLINC@,$TCLINC,;t t
  11857. s,@TCLINCFN@,$TCLINCFN,;t t
  11858. s,@TCL_REQS@,$TCL_REQS,;t t
  11859. s,@TCL_LIBS@,$TCL_LIBS,;t t
  11860. s,@VERSION@,$VERSION,;t t
  11861. s,@NUMVER@,$NUMVER,;t t
  11862. s,@PACKNAME@,$PACKNAME,;t t
  11863. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11864. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11865. CEOF
  11866. _ACEOF
  11867. cat >>$CONFIG_STATUS <<\_ACEOF
  11868. # Split the substitutions into bite-sized pieces for seds with
  11869. # small command number limits, like on Digital OSF/1 and HP-UX.
  11870. ac_max_sed_lines=48
  11871. ac_sed_frag=1 # Number of current file.
  11872. ac_beg=1 # First line for current file.
  11873. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11874. ac_more_lines=:
  11875. ac_sed_cmds=
  11876. while $ac_more_lines; do
  11877. if test $ac_beg -gt 1; then
  11878. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11879. else
  11880. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11881. fi
  11882. if test ! -s $tmp/subs.frag; then
  11883. ac_more_lines=false
  11884. else
  11885. # The purpose of the label and of the branching condition is to
  11886. # speed up the sed processing (if there are no `@' at all, there
  11887. # is no need to browse any of the substitutions).
  11888. # These are the two extra sed commands mentioned above.
  11889. (echo ':t
  11890. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11891. if test -z "$ac_sed_cmds"; then
  11892. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11893. else
  11894. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11895. fi
  11896. ac_sed_frag=`expr $ac_sed_frag + 1`
  11897. ac_beg=$ac_end
  11898. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11899. fi
  11900. done
  11901. if test -z "$ac_sed_cmds"; then
  11902. ac_sed_cmds=cat
  11903. fi
  11904. fi # test -n "$CONFIG_FILES"
  11905. _ACEOF
  11906. cat >>$CONFIG_STATUS <<\_ACEOF
  11907. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11908. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11909. case $ac_file in
  11910. - | *:- | *:-:* ) # input from stdin
  11911. cat >$tmp/stdin
  11912. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11913. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11914. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11915. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11916. * ) ac_file_in=$ac_file.in ;;
  11917. esac
  11918. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11919. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11920. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11921. X"$ac_file" : 'X\(//\)[^/]' \| \
  11922. X"$ac_file" : 'X\(//\)$' \| \
  11923. X"$ac_file" : 'X\(/\)' \| \
  11924. . : '\(.\)' 2>/dev/null ||
  11925. echo X"$ac_file" |
  11926. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11927. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11928. /^X\(\/\/\)$/{ s//\1/; q; }
  11929. /^X\(\/\).*/{ s//\1/; q; }
  11930. s/.*/./; q'`
  11931. { if $as_mkdir_p; then
  11932. mkdir -p "$ac_dir"
  11933. else
  11934. as_dir="$ac_dir"
  11935. as_dirs=
  11936. while test ! -d "$as_dir"; do
  11937. as_dirs="$as_dir $as_dirs"
  11938. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11939. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11940. X"$as_dir" : 'X\(//\)[^/]' \| \
  11941. X"$as_dir" : 'X\(//\)$' \| \
  11942. X"$as_dir" : 'X\(/\)' \| \
  11943. . : '\(.\)' 2>/dev/null ||
  11944. echo X"$as_dir" |
  11945. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11946. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11947. /^X\(\/\/\)$/{ s//\1/; q; }
  11948. /^X\(\/\).*/{ s//\1/; q; }
  11949. s/.*/./; q'`
  11950. done
  11951. test ! -n "$as_dirs" || mkdir $as_dirs
  11952. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11953. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11954. { (exit 1); exit 1; }; }; }
  11955. ac_builddir=.
  11956. if test "$ac_dir" != .; then
  11957. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11958. # A "../" for each directory in $ac_dir_suffix.
  11959. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11960. else
  11961. ac_dir_suffix= ac_top_builddir=
  11962. fi
  11963. case $srcdir in
  11964. .) # No --srcdir option. We are building in place.
  11965. ac_srcdir=.
  11966. if test -z "$ac_top_builddir"; then
  11967. ac_top_srcdir=.
  11968. else
  11969. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11970. fi ;;
  11971. [\\/]* | ?:[\\/]* ) # Absolute path.
  11972. ac_srcdir=$srcdir$ac_dir_suffix;
  11973. ac_top_srcdir=$srcdir ;;
  11974. *) # Relative path.
  11975. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11976. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11977. esac
  11978. # Do not use `cd foo && pwd` to compute absolute paths, because
  11979. # the directories may not exist.
  11980. case `pwd` in
  11981. .) ac_abs_builddir="$ac_dir";;
  11982. *)
  11983. case "$ac_dir" in
  11984. .) ac_abs_builddir=`pwd`;;
  11985. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11986. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11987. esac;;
  11988. esac
  11989. case $ac_abs_builddir in
  11990. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11991. *)
  11992. case ${ac_top_builddir}. in
  11993. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11994. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11995. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11996. esac;;
  11997. esac
  11998. case $ac_abs_builddir in
  11999. .) ac_abs_srcdir=$ac_srcdir;;
  12000. *)
  12001. case $ac_srcdir in
  12002. .) ac_abs_srcdir=$ac_abs_builddir;;
  12003. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12004. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12005. esac;;
  12006. esac
  12007. case $ac_abs_builddir in
  12008. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12009. *)
  12010. case $ac_top_srcdir in
  12011. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12012. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12013. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12014. esac;;
  12015. esac
  12016. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12017. # use $as_me), people would be surprised to read:
  12018. # /* config.h. Generated by config.status. */
  12019. if test x"$ac_file" = x-; then
  12020. configure_input=
  12021. else
  12022. configure_input="$ac_file. "
  12023. fi
  12024. configure_input=$configure_input"Generated from `echo $ac_file_in |
  12025. sed 's,.*/,,'` by configure."
  12026. # First look for the input files in the build tree, otherwise in the
  12027. # src tree.
  12028. ac_file_inputs=`IFS=:
  12029. for f in $ac_file_in; do
  12030. case $f in
  12031. -) echo $tmp/stdin ;;
  12032. [\\/$]*)
  12033. # Absolute (can't be DOS-style, as IFS=:)
  12034. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12035. echo "$as_me: error: cannot find input file: $f" >&2;}
  12036. { (exit 1); exit 1; }; }
  12037. echo "$f";;
  12038. *) # Relative
  12039. if test -f "$f"; then
  12040. # Build tree
  12041. echo "$f"
  12042. elif test -f "$srcdir/$f"; then
  12043. # Source tree
  12044. echo "$srcdir/$f"
  12045. else
  12046. # /dev/null tree
  12047. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12048. echo "$as_me: error: cannot find input file: $f" >&2;}
  12049. { (exit 1); exit 1; }; }
  12050. fi;;
  12051. esac
  12052. done` || { (exit 1); exit 1; }
  12053. if test x"$ac_file" != x-; then
  12054. { echo "$as_me:$LINENO: creating $ac_file" >&5
  12055. echo "$as_me: creating $ac_file" >&6;}
  12056. rm -f "$ac_file"
  12057. fi
  12058. _ACEOF
  12059. cat >>$CONFIG_STATUS <<_ACEOF
  12060. sed "$ac_vpsub
  12061. $extrasub
  12062. _ACEOF
  12063. cat >>$CONFIG_STATUS <<\_ACEOF
  12064. :t
  12065. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12066. s,@configure_input@,$configure_input,;t t
  12067. s,@srcdir@,$ac_srcdir,;t t
  12068. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  12069. s,@top_srcdir@,$ac_top_srcdir,;t t
  12070. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  12071. s,@builddir@,$ac_builddir,;t t
  12072. s,@abs_builddir@,$ac_abs_builddir,;t t
  12073. s,@top_builddir@,$ac_top_builddir,;t t
  12074. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  12075. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  12076. rm -f $tmp/stdin
  12077. if test x"$ac_file" != x-; then
  12078. mv $tmp/out $ac_file
  12079. else
  12080. cat $tmp/out
  12081. rm -f $tmp/out
  12082. fi
  12083. done
  12084. _ACEOF
  12085. cat >>$CONFIG_STATUS <<\_ACEOF
  12086. #
  12087. # CONFIG_HEADER section.
  12088. #
  12089. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12090. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12091. #
  12092. # ac_d sets the value in "#define NAME VALUE" lines.
  12093. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12094. ac_dB='[ ].*$,\1#\2'
  12095. ac_dC=' '
  12096. ac_dD=',;t'
  12097. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12098. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12099. ac_uB='$,\1#\2define\3'
  12100. ac_uC=' '
  12101. ac_uD=',;t'
  12102. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12103. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12104. case $ac_file in
  12105. - | *:- | *:-:* ) # input from stdin
  12106. cat >$tmp/stdin
  12107. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12108. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12109. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12110. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12111. * ) ac_file_in=$ac_file.in ;;
  12112. esac
  12113. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12114. echo "$as_me: creating $ac_file" >&6;}
  12115. # First look for the input files in the build tree, otherwise in the
  12116. # src tree.
  12117. ac_file_inputs=`IFS=:
  12118. for f in $ac_file_in; do
  12119. case $f in
  12120. -) echo $tmp/stdin ;;
  12121. [\\/$]*)
  12122. # Absolute (can't be DOS-style, as IFS=:)
  12123. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12124. echo "$as_me: error: cannot find input file: $f" >&2;}
  12125. { (exit 1); exit 1; }; }
  12126. # Do quote $f, to prevent DOS paths from being IFS'd.
  12127. echo "$f";;
  12128. *) # Relative
  12129. if test -f "$f"; then
  12130. # Build tree
  12131. echo "$f"
  12132. elif test -f "$srcdir/$f"; then
  12133. # Source tree
  12134. echo "$srcdir/$f"
  12135. else
  12136. # /dev/null tree
  12137. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12138. echo "$as_me: error: cannot find input file: $f" >&2;}
  12139. { (exit 1); exit 1; }; }
  12140. fi;;
  12141. esac
  12142. done` || { (exit 1); exit 1; }
  12143. # Remove the trailing spaces.
  12144. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12145. _ACEOF
  12146. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  12147. # `conftest.undefs', that substitutes the proper values into
  12148. # config.h.in to produce config.h. The first handles `#define'
  12149. # templates, and the second `#undef' templates.
  12150. # And first: Protect against being on the right side of a sed subst in
  12151. # config.status. Protect against being in an unquoted here document
  12152. # in config.status.
  12153. rm -f conftest.defines conftest.undefs
  12154. # Using a here document instead of a string reduces the quoting nightmare.
  12155. # Putting comments in sed scripts is not portable.
  12156. #
  12157. # `end' is used to avoid that the second main sed command (meant for
  12158. # 0-ary CPP macros) applies to n-ary macro definitions.
  12159. # See the Autoconf documentation for `clear'.
  12160. cat >confdef2sed.sed <<\_ACEOF
  12161. s/[\\&,]/\\&/g
  12162. s,[\\$`],\\&,g
  12163. t clear
  12164. : clear
  12165. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12166. t end
  12167. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12168. : end
  12169. _ACEOF
  12170. # If some macros were called several times there might be several times
  12171. # the same #defines, which is useless. Nevertheless, we may not want to
  12172. # sort them, since we want the *last* AC-DEFINE to be honored.
  12173. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12174. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12175. rm -f confdef2sed.sed
  12176. # This sed command replaces #undef with comments. This is necessary, for
  12177. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12178. # on some systems where configure will not decide to define it.
  12179. cat >>conftest.undefs <<\_ACEOF
  12180. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12181. _ACEOF
  12182. # Break up conftest.defines because some shells have a limit on the size
  12183. # of here documents, and old seds have small limits too (100 cmds).
  12184. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12185. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12186. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12187. echo ' :' >>$CONFIG_STATUS
  12188. rm -f conftest.tail
  12189. while grep . conftest.defines >/dev/null
  12190. do
  12191. # Write a limited-size here document to $tmp/defines.sed.
  12192. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12193. # Speed up: don't consider the non `#define' lines.
  12194. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12195. # Work around the forget-to-reset-the-flag bug.
  12196. echo 't clr' >>$CONFIG_STATUS
  12197. echo ': clr' >>$CONFIG_STATUS
  12198. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12199. echo 'CEOF
  12200. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12201. rm -f $tmp/in
  12202. mv $tmp/out $tmp/in
  12203. ' >>$CONFIG_STATUS
  12204. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12205. rm -f conftest.defines
  12206. mv conftest.tail conftest.defines
  12207. done
  12208. rm -f conftest.defines
  12209. echo ' fi # grep' >>$CONFIG_STATUS
  12210. echo >>$CONFIG_STATUS
  12211. # Break up conftest.undefs because some shells have a limit on the size
  12212. # of here documents, and old seds have small limits too (100 cmds).
  12213. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12214. rm -f conftest.tail
  12215. while grep . conftest.undefs >/dev/null
  12216. do
  12217. # Write a limited-size here document to $tmp/undefs.sed.
  12218. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12219. # Speed up: don't consider the non `#undef'
  12220. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12221. # Work around the forget-to-reset-the-flag bug.
  12222. echo 't clr' >>$CONFIG_STATUS
  12223. echo ': clr' >>$CONFIG_STATUS
  12224. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12225. echo 'CEOF
  12226. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12227. rm -f $tmp/in
  12228. mv $tmp/out $tmp/in
  12229. ' >>$CONFIG_STATUS
  12230. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12231. rm -f conftest.undefs
  12232. mv conftest.tail conftest.undefs
  12233. done
  12234. rm -f conftest.undefs
  12235. cat >>$CONFIG_STATUS <<\_ACEOF
  12236. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12237. # use $as_me), people would be surprised to read:
  12238. # /* config.h. Generated by config.status. */
  12239. if test x"$ac_file" = x-; then
  12240. echo "/* Generated by configure. */" >$tmp/config.h
  12241. else
  12242. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12243. fi
  12244. cat $tmp/in >>$tmp/config.h
  12245. rm -f $tmp/in
  12246. if test x"$ac_file" != x-; then
  12247. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12248. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12249. echo "$as_me: $ac_file is unchanged" >&6;}
  12250. else
  12251. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12252. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12253. X"$ac_file" : 'X\(//\)[^/]' \| \
  12254. X"$ac_file" : 'X\(//\)$' \| \
  12255. X"$ac_file" : 'X\(/\)' \| \
  12256. . : '\(.\)' 2>/dev/null ||
  12257. echo X"$ac_file" |
  12258. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12259. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12260. /^X\(\/\/\)$/{ s//\1/; q; }
  12261. /^X\(\/\).*/{ s//\1/; q; }
  12262. s/.*/./; q'`
  12263. { if $as_mkdir_p; then
  12264. mkdir -p "$ac_dir"
  12265. else
  12266. as_dir="$ac_dir"
  12267. as_dirs=
  12268. while test ! -d "$as_dir"; do
  12269. as_dirs="$as_dir $as_dirs"
  12270. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12271. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12272. X"$as_dir" : 'X\(//\)[^/]' \| \
  12273. X"$as_dir" : 'X\(//\)$' \| \
  12274. X"$as_dir" : 'X\(/\)' \| \
  12275. . : '\(.\)' 2>/dev/null ||
  12276. echo X"$as_dir" |
  12277. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12278. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12279. /^X\(\/\/\)$/{ s//\1/; q; }
  12280. /^X\(\/\).*/{ s//\1/; q; }
  12281. s/.*/./; q'`
  12282. done
  12283. test ! -n "$as_dirs" || mkdir $as_dirs
  12284. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12285. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12286. { (exit 1); exit 1; }; }; }
  12287. rm -f $ac_file
  12288. mv $tmp/config.h $ac_file
  12289. fi
  12290. else
  12291. cat $tmp/config.h
  12292. rm -f $tmp/config.h
  12293. fi
  12294. done
  12295. _ACEOF
  12296. cat >>$CONFIG_STATUS <<\_ACEOF
  12297. #
  12298. # CONFIG_COMMANDS section.
  12299. #
  12300. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  12301. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  12302. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12303. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  12304. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12305. X"$ac_dest" : 'X\(//\)[^/]' \| \
  12306. X"$ac_dest" : 'X\(//\)$' \| \
  12307. X"$ac_dest" : 'X\(/\)' \| \
  12308. . : '\(.\)' 2>/dev/null ||
  12309. echo X"$ac_dest" |
  12310. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12311. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12312. /^X\(\/\/\)$/{ s//\1/; q; }
  12313. /^X\(\/\).*/{ s//\1/; q; }
  12314. s/.*/./; q'`
  12315. { if $as_mkdir_p; then
  12316. mkdir -p "$ac_dir"
  12317. else
  12318. as_dir="$ac_dir"
  12319. as_dirs=
  12320. while test ! -d "$as_dir"; do
  12321. as_dirs="$as_dir $as_dirs"
  12322. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12323. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12324. X"$as_dir" : 'X\(//\)[^/]' \| \
  12325. X"$as_dir" : 'X\(//\)$' \| \
  12326. X"$as_dir" : 'X\(/\)' \| \
  12327. . : '\(.\)' 2>/dev/null ||
  12328. echo X"$as_dir" |
  12329. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12330. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12331. /^X\(\/\/\)$/{ s//\1/; q; }
  12332. /^X\(\/\).*/{ s//\1/; q; }
  12333. s/.*/./; q'`
  12334. done
  12335. test ! -n "$as_dirs" || mkdir $as_dirs
  12336. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12337. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12338. { (exit 1); exit 1; }; }; }
  12339. ac_builddir=.
  12340. if test "$ac_dir" != .; then
  12341. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12342. # A "../" for each directory in $ac_dir_suffix.
  12343. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12344. else
  12345. ac_dir_suffix= ac_top_builddir=
  12346. fi
  12347. case $srcdir in
  12348. .) # No --srcdir option. We are building in place.
  12349. ac_srcdir=.
  12350. if test -z "$ac_top_builddir"; then
  12351. ac_top_srcdir=.
  12352. else
  12353. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12354. fi ;;
  12355. [\\/]* | ?:[\\/]* ) # Absolute path.
  12356. ac_srcdir=$srcdir$ac_dir_suffix;
  12357. ac_top_srcdir=$srcdir ;;
  12358. *) # Relative path.
  12359. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12360. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12361. esac
  12362. # Do not use `cd foo && pwd` to compute absolute paths, because
  12363. # the directories may not exist.
  12364. case `pwd` in
  12365. .) ac_abs_builddir="$ac_dir";;
  12366. *)
  12367. case "$ac_dir" in
  12368. .) ac_abs_builddir=`pwd`;;
  12369. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12370. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12371. esac;;
  12372. esac
  12373. case $ac_abs_builddir in
  12374. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12375. *)
  12376. case ${ac_top_builddir}. in
  12377. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12378. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12379. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12380. esac;;
  12381. esac
  12382. case $ac_abs_builddir in
  12383. .) ac_abs_srcdir=$ac_srcdir;;
  12384. *)
  12385. case $ac_srcdir in
  12386. .) ac_abs_srcdir=$ac_abs_builddir;;
  12387. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12388. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12389. esac;;
  12390. esac
  12391. case $ac_abs_builddir in
  12392. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12393. *)
  12394. case $ac_top_srcdir in
  12395. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12396. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12397. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12398. esac;;
  12399. esac
  12400. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  12401. echo "$as_me: executing $ac_dest commands" >&6;}
  12402. case $ac_dest in
  12403. replace-if-changed )
  12404. egg_replace_file="lush.h"
  12405. cat > conftest.out << EOF
  12406. /* Ignore me but do not erase me. I am a kludge. */
  12407. #include "${egg_tclinc}/${egg_tclincfn}"
  12408. EOF
  12409. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file; then
  12410. echo "lush.h is unchanged"
  12411. else
  12412. echo "creating lush.h"
  12413. mv conftest.out $egg_replace_file
  12414. fi
  12415. rm -f conftest.out
  12416. ;;
  12417. catch-make-rebuild )
  12418. if test -f .modules; then
  12419. $srcdir/misc/modconfig --top_srcdir="$srcdir/src" Makefile
  12420. fi
  12421. ;;
  12422. esac
  12423. done
  12424. _ACEOF
  12425. cat >>$CONFIG_STATUS <<\_ACEOF
  12426. { (exit 0); exit 0; }
  12427. _ACEOF
  12428. chmod +x $CONFIG_STATUS
  12429. ac_clean_files=$ac_clean_files_save
  12430. # configure is writing to config.log, and then calls config.status.
  12431. # config.status does its own redirection, appending to config.log.
  12432. # Unfortunately, on DOS this fails, as config.log is still kept open
  12433. # by configure, so config.status won't be able to write to it; its
  12434. # output is simply discarded. So we exec the FD to /dev/null,
  12435. # effectively closing config.log, so it can be properly (re)opened and
  12436. # appended to by config.status. When coming back to configure, we
  12437. # need to make the FD available again.
  12438. if test "$no_create" != yes; then
  12439. ac_cs_success=:
  12440. ac_config_status_args=
  12441. test "$silent" = yes &&
  12442. ac_config_status_args="$ac_config_status_args --quiet"
  12443. exec 5>/dev/null
  12444. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12445. exec 5>>config.log
  12446. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12447. # would make configure fail if this is the last instruction.
  12448. $ac_cs_success || { (exit 1); exit 1; }
  12449. fi