configure 382 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.1 .
  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 SET_MAKE HEAD_1 STRIP AWK BASENAME 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 library containing strerror" >&5
  2296. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  2297. if test "${ac_cv_search_strerror+set}" = set; then
  2298. echo $ECHO_N "(cached) $ECHO_C" >&6
  2299. else
  2300. ac_func_search_save_LIBS=$LIBS
  2301. ac_cv_search_strerror=no
  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_search_strerror="none required"
  2345. else
  2346. echo "$as_me: failed program was:" >&5
  2347. sed 's/^/| /' conftest.$ac_ext >&5
  2348. fi
  2349. rm -f conftest.err conftest.$ac_objext \
  2350. conftest$ac_exeext conftest.$ac_ext
  2351. if test "$ac_cv_search_strerror" = no; then
  2352. for ac_lib in cposix; do
  2353. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2354. cat >conftest.$ac_ext <<_ACEOF
  2355. /* confdefs.h. */
  2356. _ACEOF
  2357. cat confdefs.h >>conftest.$ac_ext
  2358. cat >>conftest.$ac_ext <<_ACEOF
  2359. /* end confdefs.h. */
  2360. /* Override any gcc2 internal prototype to avoid an error. */
  2361. #ifdef __cplusplus
  2362. extern "C"
  2363. #endif
  2364. /* We use char because int might match the return type of a gcc2
  2365. builtin and then its argument prototype would still apply. */
  2366. char strerror ();
  2367. int
  2368. main ()
  2369. {
  2370. strerror ();
  2371. ;
  2372. return 0;
  2373. }
  2374. _ACEOF
  2375. rm -f conftest.$ac_objext conftest$ac_exeext
  2376. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2377. (eval $ac_link) 2>conftest.er1
  2378. ac_status=$?
  2379. grep -v '^ *+' conftest.er1 >conftest.err
  2380. rm -f conftest.er1
  2381. cat conftest.err >&5
  2382. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2383. (exit $ac_status); } &&
  2384. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2385. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2386. (eval $ac_try) 2>&5
  2387. ac_status=$?
  2388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2389. (exit $ac_status); }; } &&
  2390. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  2396. ac_cv_search_strerror="-l$ac_lib"
  2397. break
  2398. else
  2399. echo "$as_me: failed program was:" >&5
  2400. sed 's/^/| /' conftest.$ac_ext >&5
  2401. fi
  2402. rm -f conftest.err conftest.$ac_objext \
  2403. conftest$ac_exeext conftest.$ac_ext
  2404. done
  2405. fi
  2406. LIBS=$ac_func_search_save_LIBS
  2407. fi
  2408. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2409. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2410. if test "$ac_cv_search_strerror" != no; then
  2411. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2412. fi
  2413. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2414. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2415. if test "${ac_cv_header_stdc+set}" = set; then
  2416. echo $ECHO_N "(cached) $ECHO_C" >&6
  2417. else
  2418. cat >conftest.$ac_ext <<_ACEOF
  2419. /* confdefs.h. */
  2420. _ACEOF
  2421. cat confdefs.h >>conftest.$ac_ext
  2422. cat >>conftest.$ac_ext <<_ACEOF
  2423. /* end confdefs.h. */
  2424. #include <stdlib.h>
  2425. #include <stdarg.h>
  2426. #include <string.h>
  2427. #include <float.h>
  2428. int
  2429. main ()
  2430. {
  2431. ;
  2432. return 0;
  2433. }
  2434. _ACEOF
  2435. rm -f conftest.$ac_objext
  2436. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2437. (eval $ac_compile) 2>conftest.er1
  2438. ac_status=$?
  2439. grep -v '^ *+' conftest.er1 >conftest.err
  2440. rm -f conftest.er1
  2441. cat conftest.err >&5
  2442. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2443. (exit $ac_status); } &&
  2444. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2445. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2446. (eval $ac_try) 2>&5
  2447. ac_status=$?
  2448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2449. (exit $ac_status); }; } &&
  2450. { ac_try='test -s conftest.$ac_objext'
  2451. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2452. (eval $ac_try) 2>&5
  2453. ac_status=$?
  2454. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2455. (exit $ac_status); }; }; then
  2456. ac_cv_header_stdc=yes
  2457. else
  2458. echo "$as_me: failed program was:" >&5
  2459. sed 's/^/| /' conftest.$ac_ext >&5
  2460. ac_cv_header_stdc=no
  2461. fi
  2462. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2463. if test $ac_cv_header_stdc = yes; then
  2464. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2465. cat >conftest.$ac_ext <<_ACEOF
  2466. /* confdefs.h. */
  2467. _ACEOF
  2468. cat confdefs.h >>conftest.$ac_ext
  2469. cat >>conftest.$ac_ext <<_ACEOF
  2470. /* end confdefs.h. */
  2471. #include <string.h>
  2472. _ACEOF
  2473. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2474. $EGREP "memchr" >/dev/null 2>&1; then
  2475. :
  2476. else
  2477. ac_cv_header_stdc=no
  2478. fi
  2479. rm -f conftest*
  2480. fi
  2481. if test $ac_cv_header_stdc = yes; then
  2482. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2483. cat >conftest.$ac_ext <<_ACEOF
  2484. /* confdefs.h. */
  2485. _ACEOF
  2486. cat confdefs.h >>conftest.$ac_ext
  2487. cat >>conftest.$ac_ext <<_ACEOF
  2488. /* end confdefs.h. */
  2489. #include <stdlib.h>
  2490. _ACEOF
  2491. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2492. $EGREP "free" >/dev/null 2>&1; then
  2493. :
  2494. else
  2495. ac_cv_header_stdc=no
  2496. fi
  2497. rm -f conftest*
  2498. fi
  2499. if test $ac_cv_header_stdc = yes; then
  2500. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2501. if test "$cross_compiling" = yes; then
  2502. :
  2503. else
  2504. cat >conftest.$ac_ext <<_ACEOF
  2505. /* confdefs.h. */
  2506. _ACEOF
  2507. cat confdefs.h >>conftest.$ac_ext
  2508. cat >>conftest.$ac_ext <<_ACEOF
  2509. /* end confdefs.h. */
  2510. #include <ctype.h>
  2511. #if ((' ' & 0x0FF) == 0x020)
  2512. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2513. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2514. #else
  2515. # define ISLOWER(c) \
  2516. (('a' <= (c) && (c) <= 'i') \
  2517. || ('j' <= (c) && (c) <= 'r') \
  2518. || ('s' <= (c) && (c) <= 'z'))
  2519. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2520. #endif
  2521. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2522. int
  2523. main ()
  2524. {
  2525. int i;
  2526. for (i = 0; i < 256; i++)
  2527. if (XOR (islower (i), ISLOWER (i))
  2528. || toupper (i) != TOUPPER (i))
  2529. exit(2);
  2530. exit (0);
  2531. }
  2532. _ACEOF
  2533. rm -f conftest$ac_exeext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2535. (eval $ac_link) 2>&5
  2536. ac_status=$?
  2537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2538. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2539. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2540. (eval $ac_try) 2>&5
  2541. ac_status=$?
  2542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2543. (exit $ac_status); }; }; then
  2544. :
  2545. else
  2546. echo "$as_me: program exited with status $ac_status" >&5
  2547. echo "$as_me: failed program was:" >&5
  2548. sed 's/^/| /' conftest.$ac_ext >&5
  2549. ( exit $ac_status )
  2550. ac_cv_header_stdc=no
  2551. fi
  2552. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2553. fi
  2554. fi
  2555. fi
  2556. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2557. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2558. if test $ac_cv_header_stdc = yes; then
  2559. cat >>confdefs.h <<\_ACEOF
  2560. #define STDC_HEADERS 1
  2561. _ACEOF
  2562. fi
  2563. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2564. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2565. inttypes.h stdint.h unistd.h
  2566. do
  2567. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2568. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2569. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2570. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2571. echo $ECHO_N "(cached) $ECHO_C" >&6
  2572. else
  2573. cat >conftest.$ac_ext <<_ACEOF
  2574. /* confdefs.h. */
  2575. _ACEOF
  2576. cat confdefs.h >>conftest.$ac_ext
  2577. cat >>conftest.$ac_ext <<_ACEOF
  2578. /* end confdefs.h. */
  2579. $ac_includes_default
  2580. #include <$ac_header>
  2581. _ACEOF
  2582. rm -f conftest.$ac_objext
  2583. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2584. (eval $ac_compile) 2>conftest.er1
  2585. ac_status=$?
  2586. grep -v '^ *+' conftest.er1 >conftest.err
  2587. rm -f conftest.er1
  2588. cat conftest.err >&5
  2589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2590. (exit $ac_status); } &&
  2591. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2592. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2593. (eval $ac_try) 2>&5
  2594. ac_status=$?
  2595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2596. (exit $ac_status); }; } &&
  2597. { ac_try='test -s conftest.$ac_objext'
  2598. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2599. (eval $ac_try) 2>&5
  2600. ac_status=$?
  2601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2602. (exit $ac_status); }; }; then
  2603. eval "$as_ac_Header=yes"
  2604. else
  2605. echo "$as_me: failed program was:" >&5
  2606. sed 's/^/| /' conftest.$ac_ext >&5
  2607. eval "$as_ac_Header=no"
  2608. fi
  2609. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2610. fi
  2611. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2612. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2613. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2614. cat >>confdefs.h <<_ACEOF
  2615. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2616. _ACEOF
  2617. fi
  2618. done
  2619. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2620. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2621. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2622. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2623. echo $ECHO_N "(cached) $ECHO_C" >&6
  2624. fi
  2625. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2626. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2627. else
  2628. # Is the header compilable?
  2629. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2630. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2631. cat >conftest.$ac_ext <<_ACEOF
  2632. /* confdefs.h. */
  2633. _ACEOF
  2634. cat confdefs.h >>conftest.$ac_ext
  2635. cat >>conftest.$ac_ext <<_ACEOF
  2636. /* end confdefs.h. */
  2637. $ac_includes_default
  2638. #include <minix/config.h>
  2639. _ACEOF
  2640. rm -f conftest.$ac_objext
  2641. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2642. (eval $ac_compile) 2>conftest.er1
  2643. ac_status=$?
  2644. grep -v '^ *+' conftest.er1 >conftest.err
  2645. rm -f conftest.er1
  2646. cat conftest.err >&5
  2647. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2648. (exit $ac_status); } &&
  2649. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2650. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2651. (eval $ac_try) 2>&5
  2652. ac_status=$?
  2653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2654. (exit $ac_status); }; } &&
  2655. { ac_try='test -s conftest.$ac_objext'
  2656. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2657. (eval $ac_try) 2>&5
  2658. ac_status=$?
  2659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2660. (exit $ac_status); }; }; then
  2661. ac_header_compiler=yes
  2662. else
  2663. echo "$as_me: failed program was:" >&5
  2664. sed 's/^/| /' conftest.$ac_ext >&5
  2665. ac_header_compiler=no
  2666. fi
  2667. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2668. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2669. echo "${ECHO_T}$ac_header_compiler" >&6
  2670. # Is the header present?
  2671. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2672. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2673. cat >conftest.$ac_ext <<_ACEOF
  2674. /* confdefs.h. */
  2675. _ACEOF
  2676. cat confdefs.h >>conftest.$ac_ext
  2677. cat >>conftest.$ac_ext <<_ACEOF
  2678. /* end confdefs.h. */
  2679. #include <minix/config.h>
  2680. _ACEOF
  2681. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2682. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2683. ac_status=$?
  2684. grep -v '^ *+' conftest.er1 >conftest.err
  2685. rm -f conftest.er1
  2686. cat conftest.err >&5
  2687. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2688. (exit $ac_status); } >/dev/null; then
  2689. if test -s conftest.err; then
  2690. ac_cpp_err=$ac_c_preproc_warn_flag
  2691. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2692. else
  2693. ac_cpp_err=
  2694. fi
  2695. else
  2696. ac_cpp_err=yes
  2697. fi
  2698. if test -z "$ac_cpp_err"; then
  2699. ac_header_preproc=yes
  2700. else
  2701. echo "$as_me: failed program was:" >&5
  2702. sed 's/^/| /' conftest.$ac_ext >&5
  2703. ac_header_preproc=no
  2704. fi
  2705. rm -f conftest.err conftest.$ac_ext
  2706. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2707. echo "${ECHO_T}$ac_header_preproc" >&6
  2708. # So? What about this header?
  2709. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  2710. yes:no: )
  2711. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2712. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2713. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2714. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2715. ac_header_preproc=yes
  2716. ;;
  2717. no:yes:* )
  2718. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2719. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2720. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2721. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2722. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2723. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2724. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2725. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2726. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2727. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2728. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2729. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2730. (
  2731. cat <<\_ASBOX
  2732. ## ------------------------------------------ ##
  2733. ## Report this to the AC_PACKAGE_NAME lists. ##
  2734. ## ------------------------------------------ ##
  2735. _ASBOX
  2736. ) |
  2737. sed "s/^/$as_me: WARNING: /" >&2
  2738. ;;
  2739. esac
  2740. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2741. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2742. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2743. echo $ECHO_N "(cached) $ECHO_C" >&6
  2744. else
  2745. ac_cv_header_minix_config_h=$ac_header_preproc
  2746. fi
  2747. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2748. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2749. fi
  2750. if test $ac_cv_header_minix_config_h = yes; then
  2751. MINIX=yes
  2752. else
  2753. MINIX=
  2754. fi
  2755. if test "$MINIX" = yes; then
  2756. cat >>confdefs.h <<\_ACEOF
  2757. #define _POSIX_SOURCE 1
  2758. _ACEOF
  2759. cat >>confdefs.h <<\_ACEOF
  2760. #define _POSIX_1_SOURCE 2
  2761. _ACEOF
  2762. cat >>confdefs.h <<\_ACEOF
  2763. #define _MINIX 1
  2764. _ACEOF
  2765. fi
  2766. #checkpoint
  2767. cat >confcache <<\_ACEOF
  2768. # This file is a shell script that caches the results of configure
  2769. # tests run on this system so they can be shared between configure
  2770. # scripts and configure runs, see configure's option --config-cache.
  2771. # It is not useful on other systems. If it contains results you don't
  2772. # want to keep, you may remove or edit it.
  2773. #
  2774. # config.status only pays attention to the cache file if you give it
  2775. # the --recheck option to rerun configure.
  2776. #
  2777. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2778. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2779. # following values.
  2780. _ACEOF
  2781. # The following way of writing the cache mishandles newlines in values,
  2782. # but we know of no workaround that is simple, portable, and efficient.
  2783. # So, don't put newlines in cache variables' values.
  2784. # Ultrix sh set writes to stderr and can't be redirected directly,
  2785. # and sets the high bit in the cache file unless we assign to the vars.
  2786. {
  2787. (set) 2>&1 |
  2788. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2789. *ac_space=\ *)
  2790. # `set' does not quote correctly, so add quotes (double-quote
  2791. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2792. sed -n \
  2793. "s/'/'\\\\''/g;
  2794. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2795. ;;
  2796. *)
  2797. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2798. sed -n \
  2799. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2800. ;;
  2801. esac;
  2802. } |
  2803. sed '
  2804. t clear
  2805. : clear
  2806. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2807. t end
  2808. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2809. : end' >>confcache
  2810. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2811. if test -w $cache_file; then
  2812. test "x$cache_file" != "x/dev/null"
  2813. cat confcache >$cache_file
  2814. else
  2815. echo "not updating unwritable cache $cache_file"
  2816. fi
  2817. fi
  2818. rm -f confcache
  2819. # Speedup compile
  2820. if test -z "$no_pipe"
  2821. then
  2822. if test -n "$GCC"
  2823. then
  2824. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2825. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2826. if test "${egg_cv_var_ccpipe+set}" = set; then
  2827. echo $ECHO_N "(cached) $ECHO_C" >&6
  2828. else
  2829. ac_old_CC="$CC"
  2830. CC="$CC -pipe"
  2831. cat >conftest.$ac_ext <<_ACEOF
  2832. /* confdefs.h. */
  2833. _ACEOF
  2834. cat confdefs.h >>conftest.$ac_ext
  2835. cat >>conftest.$ac_ext <<_ACEOF
  2836. /* end confdefs.h. */
  2837. int
  2838. main ()
  2839. {
  2840. ;
  2841. return 0;
  2842. }
  2843. _ACEOF
  2844. rm -f conftest.$ac_objext
  2845. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2846. (eval $ac_compile) 2>conftest.er1
  2847. ac_status=$?
  2848. grep -v '^ *+' conftest.er1 >conftest.err
  2849. rm -f conftest.er1
  2850. cat conftest.err >&5
  2851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2852. (exit $ac_status); } &&
  2853. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2855. (eval $ac_try) 2>&5
  2856. ac_status=$?
  2857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2858. (exit $ac_status); }; } &&
  2859. { ac_try='test -s conftest.$ac_objext'
  2860. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2861. (eval $ac_try) 2>&5
  2862. ac_status=$?
  2863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2864. (exit $ac_status); }; }; then
  2865. egg_cv_var_ccpipe="yes"
  2866. else
  2867. echo "$as_me: failed program was:" >&5
  2868. sed 's/^/| /' conftest.$ac_ext >&5
  2869. egg_cv_var_ccpipe="no"
  2870. fi
  2871. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2872. CC="$ac_old_CC"
  2873. fi
  2874. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2875. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2876. if test "$egg_cv_var_ccpipe" = "yes"
  2877. then
  2878. CC="$CC -pipe"
  2879. fi
  2880. fi
  2881. fi
  2882. # Create static binaries
  2883. if test -z "$no_static"
  2884. then
  2885. if test -n "$GCC"
  2886. then
  2887. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  2888. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  2889. if test "${egg_cv_var_ccstatic+set}" = set; then
  2890. echo $ECHO_N "(cached) $ECHO_C" >&6
  2891. else
  2892. ac_old_CC="$CC"
  2893. CC="$CC -static"
  2894. cat >conftest.$ac_ext <<_ACEOF
  2895. /* confdefs.h. */
  2896. _ACEOF
  2897. cat confdefs.h >>conftest.$ac_ext
  2898. cat >>conftest.$ac_ext <<_ACEOF
  2899. /* end confdefs.h. */
  2900. int
  2901. main ()
  2902. {
  2903. ;
  2904. return 0;
  2905. }
  2906. _ACEOF
  2907. rm -f conftest.$ac_objext
  2908. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2909. (eval $ac_compile) 2>conftest.er1
  2910. ac_status=$?
  2911. grep -v '^ *+' conftest.er1 >conftest.err
  2912. rm -f conftest.er1
  2913. cat conftest.err >&5
  2914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2915. (exit $ac_status); } &&
  2916. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  2917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2918. (eval $ac_try) 2>&5
  2919. ac_status=$?
  2920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2921. (exit $ac_status); }; } &&
  2922. { ac_try='test -s conftest.$ac_objext'
  2923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2924. (eval $ac_try) 2>&5
  2925. ac_status=$?
  2926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2927. (exit $ac_status); }; }; then
  2928. egg_cv_var_ccstatic="yes"
  2929. else
  2930. echo "$as_me: failed program was:" >&5
  2931. sed 's/^/| /' conftest.$ac_ext >&5
  2932. egg_cv_var_ccstatic="no"
  2933. fi
  2934. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2935. CC="$ac_old_CC"
  2936. fi
  2937. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  2938. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  2939. if test "$egg_cv_var_ccstatic" = "yes"
  2940. then
  2941. CC="$CC -static"
  2942. else
  2943. cat << 'EOF' >&2
  2944. configure: error:
  2945. Your C compiler does not support -static.
  2946. This compile flag is required for the botpack.
  2947. EOF
  2948. exit 1
  2949. fi
  2950. fi
  2951. fi
  2952. # Checks for programs
  2953. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2954. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2955. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2956. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2957. echo $ECHO_N "(cached) $ECHO_C" >&6
  2958. else
  2959. cat >conftest.make <<\_ACEOF
  2960. all:
  2961. @echo 'ac_maketemp="$(MAKE)"'
  2962. _ACEOF
  2963. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2964. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2965. if test -n "$ac_maketemp"; then
  2966. eval ac_cv_prog_make_${ac_make}_set=yes
  2967. else
  2968. eval ac_cv_prog_make_${ac_make}_set=no
  2969. fi
  2970. rm -f conftest.make
  2971. fi
  2972. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2973. echo "$as_me:$LINENO: result: yes" >&5
  2974. echo "${ECHO_T}yes" >&6
  2975. SET_MAKE=
  2976. else
  2977. echo "$as_me:$LINENO: result: no" >&5
  2978. echo "${ECHO_T}no" >&6
  2979. SET_MAKE="MAKE=${MAKE-make}"
  2980. fi
  2981. cat << 'EOF' > conftest.head
  2982. a
  2983. b
  2984. c
  2985. EOF
  2986. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2987. do
  2988. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2989. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2990. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2991. echo $ECHO_N "(cached) $ECHO_C" >&6
  2992. else
  2993. if test -n "$HEAD_1"
  2994. then
  2995. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2996. else
  2997. if test "`cat conftest.head | $ac_prog`" = "a";
  2998. then
  2999. echo "$as_me:$LINENO: result: yes" >&5
  3000. echo "${ECHO_T}yes" >&6
  3001. ac_cv_prog_HEAD_1=$ac_prog
  3002. else
  3003. echo "$as_me:$LINENO: result: no" >&5
  3004. echo "${ECHO_T}no" >&6
  3005. fi
  3006. fi
  3007. fi
  3008. test -n "$ac_cv_prog_HEAD_1" && break
  3009. done
  3010. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3011. then
  3012. cat << 'EOF' >&2
  3013. configure: error:
  3014. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3015. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3016. EOF
  3017. exit 1
  3018. fi
  3019. rm -f conftest.head
  3020. HEAD_1=$ac_cv_prog_HEAD_1
  3021. # Extract the first word of "strip", so it can be a program name with args.
  3022. set dummy strip; ac_word=$2
  3023. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3024. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3025. if test "${ac_cv_prog_STRIP+set}" = set; then
  3026. echo $ECHO_N "(cached) $ECHO_C" >&6
  3027. else
  3028. if test -n "$STRIP"; then
  3029. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3030. else
  3031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3032. for as_dir in $PATH
  3033. do
  3034. IFS=$as_save_IFS
  3035. test -z "$as_dir" && as_dir=.
  3036. for ac_exec_ext in '' $ac_executable_extensions; do
  3037. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3038. ac_cv_prog_STRIP="strip"
  3039. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3040. break 2
  3041. fi
  3042. done
  3043. done
  3044. fi
  3045. fi
  3046. STRIP=$ac_cv_prog_STRIP
  3047. if test -n "$STRIP"; then
  3048. echo "$as_me:$LINENO: result: $STRIP" >&5
  3049. echo "${ECHO_T}$STRIP" >&6
  3050. else
  3051. echo "$as_me:$LINENO: result: no" >&5
  3052. echo "${ECHO_T}no" >&6
  3053. fi
  3054. if test "${STRIP-x}" = "x"
  3055. then
  3056. STRIP=touch
  3057. fi
  3058. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3059. for ac_prog in gawk mawk nawk awk
  3060. do
  3061. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3062. set dummy $ac_prog; ac_word=$2
  3063. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3064. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3065. if test "${ac_cv_prog_AWK+set}" = set; then
  3066. echo $ECHO_N "(cached) $ECHO_C" >&6
  3067. else
  3068. if test -n "$AWK"; then
  3069. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3070. else
  3071. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3072. for as_dir in $PATH
  3073. do
  3074. IFS=$as_save_IFS
  3075. test -z "$as_dir" && as_dir=.
  3076. for ac_exec_ext in '' $ac_executable_extensions; do
  3077. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3078. ac_cv_prog_AWK="$ac_prog"
  3079. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3080. break 2
  3081. fi
  3082. done
  3083. done
  3084. fi
  3085. fi
  3086. AWK=$ac_cv_prog_AWK
  3087. if test -n "$AWK"; then
  3088. echo "$as_me:$LINENO: result: $AWK" >&5
  3089. echo "${ECHO_T}$AWK" >&6
  3090. else
  3091. echo "$as_me:$LINENO: result: no" >&5
  3092. echo "${ECHO_T}no" >&6
  3093. fi
  3094. test -n "$AWK" && break
  3095. done
  3096. if test "${AWK-x}" = "x"
  3097. then
  3098. cat << 'EOF' >&2
  3099. configure: error:
  3100. This system seems to lack a working 'awk' command.
  3101. A working 'awk' command is required to compile Eggdrop.
  3102. EOF
  3103. exit 1
  3104. fi
  3105. # basename is needed for Tcl library and header checks
  3106. # Extract the first word of "basename", so it can be a program name with args.
  3107. set dummy basename; 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_BASENAME+set}" = set; then
  3111. echo $ECHO_N "(cached) $ECHO_C" >&6
  3112. else
  3113. if test -n "$BASENAME"; then
  3114. ac_cv_prog_BASENAME="$BASENAME" # 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_BASENAME="basename"
  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. BASENAME=$ac_cv_prog_BASENAME
  3132. if test -n "$BASENAME"; then
  3133. echo "$as_me:$LINENO: result: $BASENAME" >&5
  3134. echo "${ECHO_T}$BASENAME" >&6
  3135. else
  3136. echo "$as_me:$LINENO: result: no" >&5
  3137. echo "${ECHO_T}no" >&6
  3138. fi
  3139. if test "${BASENAME-x}" = "x"
  3140. then
  3141. cat << 'EOF' >&2
  3142. configure: error:
  3143. This system seems to lack a working 'basename' command.
  3144. A working 'basename' command is required to compile Eggdrop.
  3145. EOF
  3146. exit 1
  3147. fi
  3148. # Extract the first word of "uname", so it can be a program name with args.
  3149. set dummy uname; ac_word=$2
  3150. echo "$as_me:$LINENO: checking for $ac_word" >&5
  3151. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  3152. if test "${ac_cv_prog_UNAME+set}" = set; then
  3153. echo $ECHO_N "(cached) $ECHO_C" >&6
  3154. else
  3155. if test -n "$UNAME"; then
  3156. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3157. else
  3158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3159. for as_dir in $PATH
  3160. do
  3161. IFS=$as_save_IFS
  3162. test -z "$as_dir" && as_dir=.
  3163. for ac_exec_ext in '' $ac_executable_extensions; do
  3164. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3165. ac_cv_prog_UNAME="uname"
  3166. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3167. break 2
  3168. fi
  3169. done
  3170. done
  3171. fi
  3172. fi
  3173. UNAME=$ac_cv_prog_UNAME
  3174. if test -n "$UNAME"; then
  3175. echo "$as_me:$LINENO: result: $UNAME" >&5
  3176. echo "${ECHO_T}$UNAME" >&6
  3177. else
  3178. echo "$as_me:$LINENO: result: no" >&5
  3179. echo "${ECHO_T}no" >&6
  3180. fi
  3181. # Test the os and set the module linking settings
  3182. LINUX=no
  3183. IRIX=no
  3184. SUNOS=no
  3185. HPUX=no
  3186. EGG_CYGWIN=no
  3187. echo "$as_me:$LINENO: checking system type" >&5
  3188. echo $ECHO_N "checking system type... $ECHO_C" >&6
  3189. if test "${egg_cv_var_system_type+set}" = set; then
  3190. echo $ECHO_N "(cached) $ECHO_C" >&6
  3191. else
  3192. egg_cv_var_system_type=`$UNAME -s`
  3193. fi
  3194. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3195. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3196. echo "$as_me:$LINENO: checking system release" >&5
  3197. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3198. if test "${egg_cv_var_system_release+set}" = set; then
  3199. echo $ECHO_N "(cached) $ECHO_C" >&6
  3200. else
  3201. egg_cv_var_system_release=`$UNAME -r`
  3202. fi
  3203. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3204. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3205. case "$egg_cv_var_system_type" in
  3206. BSD/OS)
  3207. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3208. 2)
  3209. ;;
  3210. *)
  3211. CFLAGS="$CFLAGS -Wall"
  3212. ;;
  3213. esac
  3214. ;;
  3215. CYGWI*)
  3216. case "`echo $egg_cv_var_system_release | cut -c 1-3`" in
  3217. 1.*)
  3218. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3219. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3220. WIN32FLAGS=
  3221. cat >conftest.$ac_ext <<_ACEOF
  3222. /* confdefs.h. */
  3223. _ACEOF
  3224. cat confdefs.h >>conftest.$ac_ext
  3225. cat >>conftest.$ac_ext <<_ACEOF
  3226. /* end confdefs.h. */
  3227. int
  3228. main ()
  3229. {
  3230. #ifndef WIN32
  3231. # ifndef _WIN32
  3232. # error WIN32 or _WIN32 not defined
  3233. # endif
  3234. #endif
  3235. ;
  3236. return 0;
  3237. }
  3238. _ACEOF
  3239. rm -f conftest.$ac_objext
  3240. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3241. (eval $ac_compile) 2>conftest.er1
  3242. ac_status=$?
  3243. grep -v '^ *+' conftest.er1 >conftest.err
  3244. rm -f conftest.er1
  3245. cat conftest.err >&5
  3246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3247. (exit $ac_status); } &&
  3248. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3249. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3250. (eval $ac_try) 2>&5
  3251. ac_status=$?
  3252. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3253. (exit $ac_status); }; } &&
  3254. { ac_try='test -s conftest.$ac_objext'
  3255. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3256. (eval $ac_try) 2>&5
  3257. ac_status=$?
  3258. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3259. (exit $ac_status); }; }; then
  3260. echo "$as_me:$LINENO: result: present by default" >&5
  3261. echo "${ECHO_T}present by default" >&6
  3262. else
  3263. echo "$as_me: failed program was:" >&5
  3264. sed 's/^/| /' conftest.$ac_ext >&5
  3265. ac_compile_save="$ac_compile"
  3266. save_CC="$CC"
  3267. ac_compile="$ac_compile -mwin32"
  3268. CC="$CC -mwin32"
  3269. cat >conftest.$ac_ext <<_ACEOF
  3270. /* confdefs.h. */
  3271. _ACEOF
  3272. cat confdefs.h >>conftest.$ac_ext
  3273. cat >>conftest.$ac_ext <<_ACEOF
  3274. /* end confdefs.h. */
  3275. int
  3276. main ()
  3277. {
  3278. #ifndef WIN32
  3279. # ifndef _WIN32
  3280. # error WIN32 or _WIN32 not defined
  3281. # endif
  3282. #endif
  3283. ;
  3284. return 0;
  3285. }
  3286. _ACEOF
  3287. rm -f conftest.$ac_objext
  3288. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3289. (eval $ac_compile) 2>conftest.er1
  3290. ac_status=$?
  3291. grep -v '^ *+' conftest.er1 >conftest.err
  3292. rm -f conftest.er1
  3293. cat conftest.err >&5
  3294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3295. (exit $ac_status); } &&
  3296. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3297. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3298. (eval $ac_try) 2>&5
  3299. ac_status=$?
  3300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3301. (exit $ac_status); }; } &&
  3302. { ac_try='test -s conftest.$ac_objext'
  3303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3304. (eval $ac_try) 2>&5
  3305. ac_status=$?
  3306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3307. (exit $ac_status); }; }; then
  3308. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3309. echo "${ECHO_T}found via -mwin32" >&6
  3310. ac_compile="$ac_compile_save"
  3311. CC="$save_CC"
  3312. WIN32FLAGS="-mwin32"
  3313. else
  3314. echo "$as_me: failed program was:" >&5
  3315. sed 's/^/| /' conftest.$ac_ext >&5
  3316. ac_compile="$ac_compile_save"
  3317. CC="$save_CC"
  3318. echo "$as_me:$LINENO: result: not found" >&5
  3319. echo "${ECHO_T}not found" >&6
  3320. fi
  3321. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3322. fi
  3323. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3324. CC="$CC $WIN32FLAGS"
  3325. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3326. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3327. if test -r /usr/lib/binmode.o
  3328. then
  3329. echo "$as_me:$LINENO: result: yes" >&5
  3330. echo "${ECHO_T}yes" >&6
  3331. LIBS="$LIBS /usr/lib/binmode.o"
  3332. else
  3333. echo "$as_me:$LINENO: result: no" >&5
  3334. echo "${ECHO_T}no" >&6
  3335. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3336. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3337. fi
  3338. ;;
  3339. *)
  3340. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3341. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3342. ;;
  3343. esac
  3344. EGG_CYGWIN=yes
  3345. cat >>confdefs.h <<\_ACEOF
  3346. #define CYGWIN_HACKS 1
  3347. _ACEOF
  3348. ;;
  3349. HP-UX)
  3350. HPUX=yes
  3351. cat >>confdefs.h <<\_ACEOF
  3352. #define HPUX_HACKS 1
  3353. _ACEOF
  3354. if test "`echo $egg_cv_var_system_release | cut -d . -f 2`" = "10"
  3355. then
  3356. cat >>confdefs.h <<\_ACEOF
  3357. #define HPUX10_HACKS 1
  3358. _ACEOF
  3359. fi
  3360. ;;
  3361. dell)
  3362. echo "$as_me:$LINENO: result: Dell SVR4" >&5
  3363. echo "${ECHO_T}Dell SVR4" >&6
  3364. ;;
  3365. IRIX)
  3366. IRIX=yes
  3367. ;;
  3368. Ultrix)
  3369. SHELL=/bin/sh5
  3370. ;;
  3371. SINIX*)
  3372. ;;
  3373. BeOS)
  3374. ;;
  3375. Linux)
  3376. LINUX=yes
  3377. CFLAGS="$CFLAGS -Wall"
  3378. ;;
  3379. Lynx)
  3380. ;;
  3381. QNX)
  3382. ;;
  3383. OSF1)
  3384. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3385. V*)
  3386. # FIXME: we should check this in a separate test
  3387. # Digital OSF uses an ancient version of gawk
  3388. if test "$AWK" = "gawk"
  3389. then
  3390. AWK=awk
  3391. fi
  3392. ;;
  3393. 1.0|1.1|1.2)
  3394. cat >>confdefs.h <<\_ACEOF
  3395. #define OSF1_HACKS 1
  3396. _ACEOF
  3397. ;;
  3398. 1.*)
  3399. cat >>confdefs.h <<\_ACEOF
  3400. #define OSF1_HACKS 1
  3401. _ACEOF
  3402. ;;
  3403. *)
  3404. ;;
  3405. esac
  3406. cat >>confdefs.h <<\_ACEOF
  3407. #define STOP_UAC 1
  3408. _ACEOF
  3409. cat >>confdefs.h <<\_ACEOF
  3410. #define BROKEN_SNPRINTF 1
  3411. _ACEOF
  3412. ;;
  3413. SunOS)
  3414. if ! test "`echo $egg_cv_var_system_release | cut -d . -f 1`" = "5"
  3415. then
  3416. # SunOS 4
  3417. SUNOS=yes
  3418. fi
  3419. ;;
  3420. *BSD)
  3421. # FreeBSD/OpenBSD/NetBSD
  3422. ;;
  3423. *)
  3424. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3425. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3426. if test -r /mach
  3427. then
  3428. echo "$as_me:$LINENO: result: yes" >&5
  3429. echo "${ECHO_T}yes" >&6
  3430. cat >>confdefs.h <<\_ACEOF
  3431. #define BORGCUBES 1
  3432. _ACEOF
  3433. else
  3434. echo "$as_me:$LINENO: result: no" >&5
  3435. echo "${ECHO_T}no" >&6
  3436. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3437. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3438. if test -r /cmds
  3439. then
  3440. echo "$as_me:$LINENO: result: yes" >&5
  3441. echo "${ECHO_T}yes" >&6
  3442. else
  3443. echo "$as_me:$LINENO: result: no" >&5
  3444. echo "${ECHO_T}no" >&6
  3445. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3446. echo "${ECHO_T}Something unknown!" >&6
  3447. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3448. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3449. fi
  3450. fi
  3451. ;;
  3452. esac
  3453. #checkpoint
  3454. cat >confcache <<\_ACEOF
  3455. # This file is a shell script that caches the results of configure
  3456. # tests run on this system so they can be shared between configure
  3457. # scripts and configure runs, see configure's option --config-cache.
  3458. # It is not useful on other systems. If it contains results you don't
  3459. # want to keep, you may remove or edit it.
  3460. #
  3461. # config.status only pays attention to the cache file if you give it
  3462. # the --recheck option to rerun configure.
  3463. #
  3464. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3465. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3466. # following values.
  3467. _ACEOF
  3468. # The following way of writing the cache mishandles newlines in values,
  3469. # but we know of no workaround that is simple, portable, and efficient.
  3470. # So, don't put newlines in cache variables' values.
  3471. # Ultrix sh set writes to stderr and can't be redirected directly,
  3472. # and sets the high bit in the cache file unless we assign to the vars.
  3473. {
  3474. (set) 2>&1 |
  3475. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3476. *ac_space=\ *)
  3477. # `set' does not quote correctly, so add quotes (double-quote
  3478. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3479. sed -n \
  3480. "s/'/'\\\\''/g;
  3481. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3482. ;;
  3483. *)
  3484. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3485. sed -n \
  3486. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3487. ;;
  3488. esac;
  3489. } |
  3490. sed '
  3491. t clear
  3492. : clear
  3493. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3494. t end
  3495. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3496. : end' >>confcache
  3497. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3498. if test -w $cache_file; then
  3499. test "x$cache_file" != "x/dev/null"
  3500. cat confcache >$cache_file
  3501. else
  3502. echo "not updating unwritable cache $cache_file"
  3503. fi
  3504. fi
  3505. rm -f confcache
  3506. # Checks for system libraries
  3507. # FIXME: this needs to be fixed so that it works on IRIX
  3508. if test "$IRIX" = "yes"
  3509. then
  3510. { echo "$as_me:$LINENO: WARNING: Skipping library tests because they CONFUSE Irix." >&5
  3511. echo "$as_me: WARNING: Skipping library tests because they CONFUSE Irix." >&2;}
  3512. else
  3513. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3514. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3515. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3516. echo $ECHO_N "(cached) $ECHO_C" >&6
  3517. else
  3518. ac_check_lib_save_LIBS=$LIBS
  3519. LIBS="-lsocket $LIBS"
  3520. cat >conftest.$ac_ext <<_ACEOF
  3521. /* confdefs.h. */
  3522. _ACEOF
  3523. cat confdefs.h >>conftest.$ac_ext
  3524. cat >>conftest.$ac_ext <<_ACEOF
  3525. /* end confdefs.h. */
  3526. /* Override any gcc2 internal prototype to avoid an error. */
  3527. #ifdef __cplusplus
  3528. extern "C"
  3529. #endif
  3530. /* We use char because int might match the return type of a gcc2
  3531. builtin and then its argument prototype would still apply. */
  3532. char socket ();
  3533. int
  3534. main ()
  3535. {
  3536. socket ();
  3537. ;
  3538. return 0;
  3539. }
  3540. _ACEOF
  3541. rm -f conftest.$ac_objext conftest$ac_exeext
  3542. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3543. (eval $ac_link) 2>conftest.er1
  3544. ac_status=$?
  3545. grep -v '^ *+' conftest.er1 >conftest.err
  3546. rm -f conftest.er1
  3547. cat conftest.err >&5
  3548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3549. (exit $ac_status); } &&
  3550. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3552. (eval $ac_try) 2>&5
  3553. ac_status=$?
  3554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3555. (exit $ac_status); }; } &&
  3556. { ac_try='test -s conftest$ac_exeext'
  3557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3558. (eval $ac_try) 2>&5
  3559. ac_status=$?
  3560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3561. (exit $ac_status); }; }; then
  3562. ac_cv_lib_socket_socket=yes
  3563. else
  3564. echo "$as_me: failed program was:" >&5
  3565. sed 's/^/| /' conftest.$ac_ext >&5
  3566. ac_cv_lib_socket_socket=no
  3567. fi
  3568. rm -f conftest.err conftest.$ac_objext \
  3569. conftest$ac_exeext conftest.$ac_ext
  3570. LIBS=$ac_check_lib_save_LIBS
  3571. fi
  3572. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3573. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3574. if test $ac_cv_lib_socket_socket = yes; then
  3575. cat >>confdefs.h <<_ACEOF
  3576. #define HAVE_LIBSOCKET 1
  3577. _ACEOF
  3578. LIBS="-lsocket $LIBS"
  3579. fi
  3580. echo "$as_me:$LINENO: checking for connect in -lnsl" >&5
  3581. echo $ECHO_N "checking for connect in -lnsl... $ECHO_C" >&6
  3582. if test "${ac_cv_lib_nsl_connect+set}" = set; then
  3583. echo $ECHO_N "(cached) $ECHO_C" >&6
  3584. else
  3585. ac_check_lib_save_LIBS=$LIBS
  3586. LIBS="-lnsl $LIBS"
  3587. cat >conftest.$ac_ext <<_ACEOF
  3588. /* confdefs.h. */
  3589. _ACEOF
  3590. cat confdefs.h >>conftest.$ac_ext
  3591. cat >>conftest.$ac_ext <<_ACEOF
  3592. /* end confdefs.h. */
  3593. /* Override any gcc2 internal prototype to avoid an error. */
  3594. #ifdef __cplusplus
  3595. extern "C"
  3596. #endif
  3597. /* We use char because int might match the return type of a gcc2
  3598. builtin and then its argument prototype would still apply. */
  3599. char connect ();
  3600. int
  3601. main ()
  3602. {
  3603. connect ();
  3604. ;
  3605. return 0;
  3606. }
  3607. _ACEOF
  3608. rm -f conftest.$ac_objext conftest$ac_exeext
  3609. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3610. (eval $ac_link) 2>conftest.er1
  3611. ac_status=$?
  3612. grep -v '^ *+' conftest.er1 >conftest.err
  3613. rm -f conftest.er1
  3614. cat conftest.err >&5
  3615. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3616. (exit $ac_status); } &&
  3617. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3618. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3619. (eval $ac_try) 2>&5
  3620. ac_status=$?
  3621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3622. (exit $ac_status); }; } &&
  3623. { ac_try='test -s conftest$ac_exeext'
  3624. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3625. (eval $ac_try) 2>&5
  3626. ac_status=$?
  3627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3628. (exit $ac_status); }; }; then
  3629. ac_cv_lib_nsl_connect=yes
  3630. else
  3631. echo "$as_me: failed program was:" >&5
  3632. sed 's/^/| /' conftest.$ac_ext >&5
  3633. ac_cv_lib_nsl_connect=no
  3634. fi
  3635. rm -f conftest.err conftest.$ac_objext \
  3636. conftest$ac_exeext conftest.$ac_ext
  3637. LIBS=$ac_check_lib_save_LIBS
  3638. fi
  3639. echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_connect" >&5
  3640. echo "${ECHO_T}$ac_cv_lib_nsl_connect" >&6
  3641. if test $ac_cv_lib_nsl_connect = yes; then
  3642. cat >>confdefs.h <<_ACEOF
  3643. #define HAVE_LIBNSL 1
  3644. _ACEOF
  3645. LIBS="-lnsl $LIBS"
  3646. fi
  3647. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3648. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3649. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3650. echo $ECHO_N "(cached) $ECHO_C" >&6
  3651. else
  3652. ac_check_lib_save_LIBS=$LIBS
  3653. LIBS="-ldns $LIBS"
  3654. cat >conftest.$ac_ext <<_ACEOF
  3655. /* confdefs.h. */
  3656. _ACEOF
  3657. cat confdefs.h >>conftest.$ac_ext
  3658. cat >>conftest.$ac_ext <<_ACEOF
  3659. /* end confdefs.h. */
  3660. /* Override any gcc2 internal prototype to avoid an error. */
  3661. #ifdef __cplusplus
  3662. extern "C"
  3663. #endif
  3664. /* We use char because int might match the return type of a gcc2
  3665. builtin and then its argument prototype would still apply. */
  3666. char gethostbyname ();
  3667. int
  3668. main ()
  3669. {
  3670. gethostbyname ();
  3671. ;
  3672. return 0;
  3673. }
  3674. _ACEOF
  3675. rm -f conftest.$ac_objext conftest$ac_exeext
  3676. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3677. (eval $ac_link) 2>conftest.er1
  3678. ac_status=$?
  3679. grep -v '^ *+' conftest.er1 >conftest.err
  3680. rm -f conftest.er1
  3681. cat conftest.err >&5
  3682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3683. (exit $ac_status); } &&
  3684. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3685. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3686. (eval $ac_try) 2>&5
  3687. ac_status=$?
  3688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3689. (exit $ac_status); }; } &&
  3690. { ac_try='test -s conftest$ac_exeext'
  3691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3692. (eval $ac_try) 2>&5
  3693. ac_status=$?
  3694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3695. (exit $ac_status); }; }; then
  3696. ac_cv_lib_dns_gethostbyname=yes
  3697. else
  3698. echo "$as_me: failed program was:" >&5
  3699. sed 's/^/| /' conftest.$ac_ext >&5
  3700. ac_cv_lib_dns_gethostbyname=no
  3701. fi
  3702. rm -f conftest.err conftest.$ac_objext \
  3703. conftest$ac_exeext conftest.$ac_ext
  3704. LIBS=$ac_check_lib_save_LIBS
  3705. fi
  3706. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3707. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3708. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3709. cat >>confdefs.h <<_ACEOF
  3710. #define HAVE_LIBDNS 1
  3711. _ACEOF
  3712. LIBS="-ldns $LIBS"
  3713. fi
  3714. echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
  3715. echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
  3716. if test "${ac_cv_lib_z_gzopen+set}" = set; then
  3717. echo $ECHO_N "(cached) $ECHO_C" >&6
  3718. else
  3719. ac_check_lib_save_LIBS=$LIBS
  3720. LIBS="-lz $LIBS"
  3721. cat >conftest.$ac_ext <<_ACEOF
  3722. /* confdefs.h. */
  3723. _ACEOF
  3724. cat confdefs.h >>conftest.$ac_ext
  3725. cat >>conftest.$ac_ext <<_ACEOF
  3726. /* end confdefs.h. */
  3727. /* Override any gcc2 internal prototype to avoid an error. */
  3728. #ifdef __cplusplus
  3729. extern "C"
  3730. #endif
  3731. /* We use char because int might match the return type of a gcc2
  3732. builtin and then its argument prototype would still apply. */
  3733. char gzopen ();
  3734. int
  3735. main ()
  3736. {
  3737. gzopen ();
  3738. ;
  3739. return 0;
  3740. }
  3741. _ACEOF
  3742. rm -f conftest.$ac_objext conftest$ac_exeext
  3743. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3744. (eval $ac_link) 2>conftest.er1
  3745. ac_status=$?
  3746. grep -v '^ *+' conftest.er1 >conftest.err
  3747. rm -f conftest.er1
  3748. cat conftest.err >&5
  3749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3750. (exit $ac_status); } &&
  3751. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3753. (eval $ac_try) 2>&5
  3754. ac_status=$?
  3755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3756. (exit $ac_status); }; } &&
  3757. { ac_try='test -s conftest$ac_exeext'
  3758. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3759. (eval $ac_try) 2>&5
  3760. ac_status=$?
  3761. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3762. (exit $ac_status); }; }; then
  3763. ac_cv_lib_z_gzopen=yes
  3764. else
  3765. echo "$as_me: failed program was:" >&5
  3766. sed 's/^/| /' conftest.$ac_ext >&5
  3767. ac_cv_lib_z_gzopen=no
  3768. fi
  3769. rm -f conftest.err conftest.$ac_objext \
  3770. conftest$ac_exeext conftest.$ac_ext
  3771. LIBS=$ac_check_lib_save_LIBS
  3772. fi
  3773. echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
  3774. echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
  3775. if test $ac_cv_lib_z_gzopen = yes; then
  3776. ZLIB="-lz"
  3777. fi
  3778. echo "$as_me:$LINENO: checking for SSL_accept in -lssl" >&5
  3779. echo $ECHO_N "checking for SSL_accept in -lssl... $ECHO_C" >&6
  3780. if test "${ac_cv_lib_ssl_SSL_accept+set}" = set; then
  3781. echo $ECHO_N "(cached) $ECHO_C" >&6
  3782. else
  3783. ac_check_lib_save_LIBS=$LIBS
  3784. LIBS="-lssl -lcrypto $LIBS"
  3785. cat >conftest.$ac_ext <<_ACEOF
  3786. /* confdefs.h. */
  3787. _ACEOF
  3788. cat confdefs.h >>conftest.$ac_ext
  3789. cat >>conftest.$ac_ext <<_ACEOF
  3790. /* end confdefs.h. */
  3791. /* Override any gcc2 internal prototype to avoid an error. */
  3792. #ifdef __cplusplus
  3793. extern "C"
  3794. #endif
  3795. /* We use char because int might match the return type of a gcc2
  3796. builtin and then its argument prototype would still apply. */
  3797. char SSL_accept ();
  3798. int
  3799. main ()
  3800. {
  3801. SSL_accept ();
  3802. ;
  3803. return 0;
  3804. }
  3805. _ACEOF
  3806. rm -f conftest.$ac_objext conftest$ac_exeext
  3807. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3808. (eval $ac_link) 2>conftest.er1
  3809. ac_status=$?
  3810. grep -v '^ *+' conftest.er1 >conftest.err
  3811. rm -f conftest.er1
  3812. cat conftest.err >&5
  3813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3814. (exit $ac_status); } &&
  3815. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3816. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3817. (eval $ac_try) 2>&5
  3818. ac_status=$?
  3819. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3820. (exit $ac_status); }; } &&
  3821. { ac_try='test -s conftest$ac_exeext'
  3822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3823. (eval $ac_try) 2>&5
  3824. ac_status=$?
  3825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3826. (exit $ac_status); }; }; then
  3827. ac_cv_lib_ssl_SSL_accept=yes
  3828. else
  3829. echo "$as_me: failed program was:" >&5
  3830. sed 's/^/| /' conftest.$ac_ext >&5
  3831. ac_cv_lib_ssl_SSL_accept=no
  3832. fi
  3833. rm -f conftest.err conftest.$ac_objext \
  3834. conftest$ac_exeext conftest.$ac_ext
  3835. LIBS=$ac_check_lib_save_LIBS
  3836. fi
  3837. echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_accept" >&5
  3838. echo "${ECHO_T}$ac_cv_lib_ssl_SSL_accept" >&6
  3839. if test $ac_cv_lib_ssl_SSL_accept = yes; then
  3840. SSL="-lssl -lcrypto"
  3841. else
  3842. SSL=""
  3843. fi
  3844. echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  3845. echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  3846. if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  3847. echo $ECHO_N "(cached) $ECHO_C" >&6
  3848. else
  3849. ac_check_lib_save_LIBS=$LIBS
  3850. LIBS="-ldl $LIBS"
  3851. cat >conftest.$ac_ext <<_ACEOF
  3852. /* confdefs.h. */
  3853. _ACEOF
  3854. cat confdefs.h >>conftest.$ac_ext
  3855. cat >>conftest.$ac_ext <<_ACEOF
  3856. /* end confdefs.h. */
  3857. /* Override any gcc2 internal prototype to avoid an error. */
  3858. #ifdef __cplusplus
  3859. extern "C"
  3860. #endif
  3861. /* We use char because int might match the return type of a gcc2
  3862. builtin and then its argument prototype would still apply. */
  3863. char dlopen ();
  3864. int
  3865. main ()
  3866. {
  3867. dlopen ();
  3868. ;
  3869. return 0;
  3870. }
  3871. _ACEOF
  3872. rm -f conftest.$ac_objext conftest$ac_exeext
  3873. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3874. (eval $ac_link) 2>conftest.er1
  3875. ac_status=$?
  3876. grep -v '^ *+' conftest.er1 >conftest.err
  3877. rm -f conftest.er1
  3878. cat conftest.err >&5
  3879. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3880. (exit $ac_status); } &&
  3881. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3882. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3883. (eval $ac_try) 2>&5
  3884. ac_status=$?
  3885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3886. (exit $ac_status); }; } &&
  3887. { ac_try='test -s conftest$ac_exeext'
  3888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3889. (eval $ac_try) 2>&5
  3890. ac_status=$?
  3891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3892. (exit $ac_status); }; }; then
  3893. ac_cv_lib_dl_dlopen=yes
  3894. else
  3895. echo "$as_me: failed program was:" >&5
  3896. sed 's/^/| /' conftest.$ac_ext >&5
  3897. ac_cv_lib_dl_dlopen=no
  3898. fi
  3899. rm -f conftest.err conftest.$ac_objext \
  3900. conftest$ac_exeext conftest.$ac_ext
  3901. LIBS=$ac_check_lib_save_LIBS
  3902. fi
  3903. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  3904. echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  3905. if test $ac_cv_lib_dl_dlopen = yes; then
  3906. cat >>confdefs.h <<_ACEOF
  3907. #define HAVE_LIBDL 1
  3908. _ACEOF
  3909. LIBS="-ldl $LIBS"
  3910. fi
  3911. echo "$as_me:$LINENO: checking for tan in -lm" >&5
  3912. echo $ECHO_N "checking for tan in -lm... $ECHO_C" >&6
  3913. if test "${ac_cv_lib_m_tan+set}" = set; then
  3914. echo $ECHO_N "(cached) $ECHO_C" >&6
  3915. else
  3916. ac_check_lib_save_LIBS=$LIBS
  3917. LIBS="-lm $LIBS"
  3918. cat >conftest.$ac_ext <<_ACEOF
  3919. /* confdefs.h. */
  3920. _ACEOF
  3921. cat confdefs.h >>conftest.$ac_ext
  3922. cat >>conftest.$ac_ext <<_ACEOF
  3923. /* end confdefs.h. */
  3924. /* Override any gcc2 internal prototype to avoid an error. */
  3925. #ifdef __cplusplus
  3926. extern "C"
  3927. #endif
  3928. /* We use char because int might match the return type of a gcc2
  3929. builtin and then its argument prototype would still apply. */
  3930. char tan ();
  3931. int
  3932. main ()
  3933. {
  3934. tan ();
  3935. ;
  3936. return 0;
  3937. }
  3938. _ACEOF
  3939. rm -f conftest.$ac_objext conftest$ac_exeext
  3940. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3941. (eval $ac_link) 2>conftest.er1
  3942. ac_status=$?
  3943. grep -v '^ *+' conftest.er1 >conftest.err
  3944. rm -f conftest.er1
  3945. cat conftest.err >&5
  3946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3947. (exit $ac_status); } &&
  3948. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  3949. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3950. (eval $ac_try) 2>&5
  3951. ac_status=$?
  3952. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3953. (exit $ac_status); }; } &&
  3954. { ac_try='test -s conftest$ac_exeext'
  3955. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3956. (eval $ac_try) 2>&5
  3957. ac_status=$?
  3958. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3959. (exit $ac_status); }; }; then
  3960. ac_cv_lib_m_tan=yes
  3961. else
  3962. echo "$as_me: failed program was:" >&5
  3963. sed 's/^/| /' conftest.$ac_ext >&5
  3964. ac_cv_lib_m_tan=no
  3965. fi
  3966. rm -f conftest.err conftest.$ac_objext \
  3967. conftest$ac_exeext conftest.$ac_ext
  3968. LIBS=$ac_check_lib_save_LIBS
  3969. fi
  3970. echo "$as_me:$LINENO: result: $ac_cv_lib_m_tan" >&5
  3971. echo "${ECHO_T}$ac_cv_lib_m_tan" >&6
  3972. if test $ac_cv_lib_m_tan = yes; then
  3973. EGG_MATH_LIB="-lm"
  3974. fi
  3975. # This is needed for Tcl libraries compiled with thread support
  3976. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
  3977. echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6
  3978. if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
  3979. echo $ECHO_N "(cached) $ECHO_C" >&6
  3980. else
  3981. ac_check_lib_save_LIBS=$LIBS
  3982. LIBS="-lpthread $LIBS"
  3983. cat >conftest.$ac_ext <<_ACEOF
  3984. /* confdefs.h. */
  3985. _ACEOF
  3986. cat confdefs.h >>conftest.$ac_ext
  3987. cat >>conftest.$ac_ext <<_ACEOF
  3988. /* end confdefs.h. */
  3989. /* Override any gcc2 internal prototype to avoid an error. */
  3990. #ifdef __cplusplus
  3991. extern "C"
  3992. #endif
  3993. /* We use char because int might match the return type of a gcc2
  3994. builtin and then its argument prototype would still apply. */
  3995. char pthread_mutex_init ();
  3996. int
  3997. main ()
  3998. {
  3999. pthread_mutex_init ();
  4000. ;
  4001. return 0;
  4002. }
  4003. _ACEOF
  4004. rm -f conftest.$ac_objext conftest$ac_exeext
  4005. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4006. (eval $ac_link) 2>conftest.er1
  4007. ac_status=$?
  4008. grep -v '^ *+' conftest.er1 >conftest.err
  4009. rm -f conftest.er1
  4010. cat conftest.err >&5
  4011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4012. (exit $ac_status); } &&
  4013. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4014. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4015. (eval $ac_try) 2>&5
  4016. ac_status=$?
  4017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4018. (exit $ac_status); }; } &&
  4019. { ac_try='test -s conftest$ac_exeext'
  4020. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4021. (eval $ac_try) 2>&5
  4022. ac_status=$?
  4023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4024. (exit $ac_status); }; }; then
  4025. ac_cv_lib_pthread_pthread_mutex_init=yes
  4026. else
  4027. echo "$as_me: failed program was:" >&5
  4028. sed 's/^/| /' conftest.$ac_ext >&5
  4029. ac_cv_lib_pthread_pthread_mutex_init=no
  4030. fi
  4031. rm -f conftest.err conftest.$ac_objext \
  4032. conftest$ac_exeext conftest.$ac_ext
  4033. LIBS=$ac_check_lib_save_LIBS
  4034. fi
  4035. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
  4036. echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6
  4037. if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
  4038. ac_cv_lib_pthread_pthread_mutex_init=yes
  4039. ac_cv_lib_pthread="-lpthread"
  4040. else
  4041. echo "$as_me:$LINENO: checking for __pthread_mutex_init in -lpthread" >&5
  4042. echo $ECHO_N "checking for __pthread_mutex_init in -lpthread... $ECHO_C" >&6
  4043. if test "${ac_cv_lib_pthread___pthread_mutex_init+set}" = set; then
  4044. echo $ECHO_N "(cached) $ECHO_C" >&6
  4045. else
  4046. ac_check_lib_save_LIBS=$LIBS
  4047. LIBS="-lpthread $LIBS"
  4048. cat >conftest.$ac_ext <<_ACEOF
  4049. /* confdefs.h. */
  4050. _ACEOF
  4051. cat confdefs.h >>conftest.$ac_ext
  4052. cat >>conftest.$ac_ext <<_ACEOF
  4053. /* end confdefs.h. */
  4054. /* Override any gcc2 internal prototype to avoid an error. */
  4055. #ifdef __cplusplus
  4056. extern "C"
  4057. #endif
  4058. /* We use char because int might match the return type of a gcc2
  4059. builtin and then its argument prototype would still apply. */
  4060. char __pthread_mutex_init ();
  4061. int
  4062. main ()
  4063. {
  4064. __pthread_mutex_init ();
  4065. ;
  4066. return 0;
  4067. }
  4068. _ACEOF
  4069. rm -f conftest.$ac_objext conftest$ac_exeext
  4070. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4071. (eval $ac_link) 2>conftest.er1
  4072. ac_status=$?
  4073. grep -v '^ *+' conftest.er1 >conftest.err
  4074. rm -f conftest.er1
  4075. cat conftest.err >&5
  4076. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4077. (exit $ac_status); } &&
  4078. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4079. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4080. (eval $ac_try) 2>&5
  4081. ac_status=$?
  4082. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4083. (exit $ac_status); }; } &&
  4084. { ac_try='test -s conftest$ac_exeext'
  4085. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4086. (eval $ac_try) 2>&5
  4087. ac_status=$?
  4088. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4089. (exit $ac_status); }; }; then
  4090. ac_cv_lib_pthread___pthread_mutex_init=yes
  4091. else
  4092. echo "$as_me: failed program was:" >&5
  4093. sed 's/^/| /' conftest.$ac_ext >&5
  4094. ac_cv_lib_pthread___pthread_mutex_init=no
  4095. fi
  4096. rm -f conftest.err conftest.$ac_objext \
  4097. conftest$ac_exeext conftest.$ac_ext
  4098. LIBS=$ac_check_lib_save_LIBS
  4099. fi
  4100. echo "$as_me:$LINENO: result: $ac_cv_lib_pthread___pthread_mutex_init" >&5
  4101. echo "${ECHO_T}$ac_cv_lib_pthread___pthread_mutex_init" >&6
  4102. if test $ac_cv_lib_pthread___pthread_mutex_init = yes; then
  4103. ac_cv_lib_pthread_pthread_mutex_init=yes
  4104. ac_cv_lib_pthread="-lpthread"
  4105. else
  4106. echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthreads" >&5
  4107. echo $ECHO_N "checking for pthread_mutex_init in -lpthreads... $ECHO_C" >&6
  4108. if test "${ac_cv_lib_pthreads_pthread_mutex_init+set}" = set; then
  4109. echo $ECHO_N "(cached) $ECHO_C" >&6
  4110. else
  4111. ac_check_lib_save_LIBS=$LIBS
  4112. LIBS="-lpthreads $LIBS"
  4113. cat >conftest.$ac_ext <<_ACEOF
  4114. /* confdefs.h. */
  4115. _ACEOF
  4116. cat confdefs.h >>conftest.$ac_ext
  4117. cat >>conftest.$ac_ext <<_ACEOF
  4118. /* end confdefs.h. */
  4119. /* Override any gcc2 internal prototype to avoid an error. */
  4120. #ifdef __cplusplus
  4121. extern "C"
  4122. #endif
  4123. /* We use char because int might match the return type of a gcc2
  4124. builtin and then its argument prototype would still apply. */
  4125. char pthread_mutex_init ();
  4126. int
  4127. main ()
  4128. {
  4129. pthread_mutex_init ();
  4130. ;
  4131. return 0;
  4132. }
  4133. _ACEOF
  4134. rm -f conftest.$ac_objext conftest$ac_exeext
  4135. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4136. (eval $ac_link) 2>conftest.er1
  4137. ac_status=$?
  4138. grep -v '^ *+' conftest.er1 >conftest.err
  4139. rm -f conftest.er1
  4140. cat conftest.err >&5
  4141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4142. (exit $ac_status); } &&
  4143. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4144. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4145. (eval $ac_try) 2>&5
  4146. ac_status=$?
  4147. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4148. (exit $ac_status); }; } &&
  4149. { ac_try='test -s conftest$ac_exeext'
  4150. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4151. (eval $ac_try) 2>&5
  4152. ac_status=$?
  4153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4154. (exit $ac_status); }; }; then
  4155. ac_cv_lib_pthreads_pthread_mutex_init=yes
  4156. else
  4157. echo "$as_me: failed program was:" >&5
  4158. sed 's/^/| /' conftest.$ac_ext >&5
  4159. ac_cv_lib_pthreads_pthread_mutex_init=no
  4160. fi
  4161. rm -f conftest.err conftest.$ac_objext \
  4162. conftest$ac_exeext conftest.$ac_ext
  4163. LIBS=$ac_check_lib_save_LIBS
  4164. fi
  4165. echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_pthread_mutex_init" >&5
  4166. echo "${ECHO_T}$ac_cv_lib_pthreads_pthread_mutex_init" >&6
  4167. if test $ac_cv_lib_pthreads_pthread_mutex_init = yes; then
  4168. ac_cv_lib_pthread_pthread_mutex_init=yes
  4169. ac_cv_lib_pthread="-lpthreads"
  4170. else
  4171. echo "$as_me:$LINENO: checking for pthread_mutex_init" >&5
  4172. echo $ECHO_N "checking for pthread_mutex_init... $ECHO_C" >&6
  4173. if test "${ac_cv_func_pthread_mutex_init+set}" = set; then
  4174. echo $ECHO_N "(cached) $ECHO_C" >&6
  4175. else
  4176. cat >conftest.$ac_ext <<_ACEOF
  4177. /* confdefs.h. */
  4178. _ACEOF
  4179. cat confdefs.h >>conftest.$ac_ext
  4180. cat >>conftest.$ac_ext <<_ACEOF
  4181. /* end confdefs.h. */
  4182. /* Define pthread_mutex_init to an innocuous variant, in case <limits.h> declares pthread_mutex_init.
  4183. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  4184. #define pthread_mutex_init innocuous_pthread_mutex_init
  4185. /* System header to define __stub macros and hopefully few prototypes,
  4186. which can conflict with char pthread_mutex_init (); below.
  4187. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  4188. <limits.h> exists even on freestanding compilers. */
  4189. #ifdef __STDC__
  4190. # include <limits.h>
  4191. #else
  4192. # include <assert.h>
  4193. #endif
  4194. #undef pthread_mutex_init
  4195. /* Override any gcc2 internal prototype to avoid an error. */
  4196. #ifdef __cplusplus
  4197. extern "C"
  4198. {
  4199. #endif
  4200. /* We use char because int might match the return type of a gcc2
  4201. builtin and then its argument prototype would still apply. */
  4202. char pthread_mutex_init ();
  4203. /* The GNU C library defines this for functions which it implements
  4204. to always fail with ENOSYS. Some functions are actually named
  4205. something starting with __ and the normal name is an alias. */
  4206. #if defined (__stub_pthread_mutex_init) || defined (__stub___pthread_mutex_init)
  4207. choke me
  4208. #else
  4209. char (*f) () = pthread_mutex_init;
  4210. #endif
  4211. #ifdef __cplusplus
  4212. }
  4213. #endif
  4214. int
  4215. main ()
  4216. {
  4217. return f != pthread_mutex_init;
  4218. ;
  4219. return 0;
  4220. }
  4221. _ACEOF
  4222. rm -f conftest.$ac_objext conftest$ac_exeext
  4223. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4224. (eval $ac_link) 2>conftest.er1
  4225. ac_status=$?
  4226. grep -v '^ *+' conftest.er1 >conftest.err
  4227. rm -f conftest.er1
  4228. cat conftest.err >&5
  4229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4230. (exit $ac_status); } &&
  4231. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4233. (eval $ac_try) 2>&5
  4234. ac_status=$?
  4235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4236. (exit $ac_status); }; } &&
  4237. { ac_try='test -s conftest$ac_exeext'
  4238. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4239. (eval $ac_try) 2>&5
  4240. ac_status=$?
  4241. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4242. (exit $ac_status); }; }; then
  4243. ac_cv_func_pthread_mutex_init=yes
  4244. else
  4245. echo "$as_me: failed program was:" >&5
  4246. sed 's/^/| /' conftest.$ac_ext >&5
  4247. ac_cv_func_pthread_mutex_init=no
  4248. fi
  4249. rm -f conftest.err conftest.$ac_objext \
  4250. conftest$ac_exeext conftest.$ac_ext
  4251. fi
  4252. echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_init" >&5
  4253. echo "${ECHO_T}$ac_cv_func_pthread_mutex_init" >&6
  4254. if test $ac_cv_func_pthread_mutex_init = yes; then
  4255. ac_cv_lib_pthread_pthread_mutex_init=yes
  4256. ac_cv_lib_pthread=""
  4257. else
  4258. ac_cv_lib_pthread_pthread_mutex_init=no
  4259. fi
  4260. fi
  4261. fi
  4262. fi
  4263. if test "$SUNOS" = "yes"
  4264. then
  4265. # For suns without yp or something like that
  4266. echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4267. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6
  4268. if test "${ac_cv_lib_dl_main+set}" = set; then
  4269. echo $ECHO_N "(cached) $ECHO_C" >&6
  4270. else
  4271. ac_check_lib_save_LIBS=$LIBS
  4272. LIBS="-ldl $LIBS"
  4273. cat >conftest.$ac_ext <<_ACEOF
  4274. /* confdefs.h. */
  4275. _ACEOF
  4276. cat confdefs.h >>conftest.$ac_ext
  4277. cat >>conftest.$ac_ext <<_ACEOF
  4278. /* end confdefs.h. */
  4279. int
  4280. main ()
  4281. {
  4282. main ();
  4283. ;
  4284. return 0;
  4285. }
  4286. _ACEOF
  4287. rm -f conftest.$ac_objext conftest$ac_exeext
  4288. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4289. (eval $ac_link) 2>conftest.er1
  4290. ac_status=$?
  4291. grep -v '^ *+' conftest.er1 >conftest.err
  4292. rm -f conftest.er1
  4293. cat conftest.err >&5
  4294. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4295. (exit $ac_status); } &&
  4296. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4297. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4298. (eval $ac_try) 2>&5
  4299. ac_status=$?
  4300. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4301. (exit $ac_status); }; } &&
  4302. { ac_try='test -s conftest$ac_exeext'
  4303. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4304. (eval $ac_try) 2>&5
  4305. ac_status=$?
  4306. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4307. (exit $ac_status); }; }; then
  4308. ac_cv_lib_dl_main=yes
  4309. else
  4310. echo "$as_me: failed program was:" >&5
  4311. sed 's/^/| /' conftest.$ac_ext >&5
  4312. ac_cv_lib_dl_main=no
  4313. fi
  4314. rm -f conftest.err conftest.$ac_objext \
  4315. conftest$ac_exeext conftest.$ac_ext
  4316. LIBS=$ac_check_lib_save_LIBS
  4317. fi
  4318. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4319. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6
  4320. if test $ac_cv_lib_dl_main = yes; then
  4321. cat >>confdefs.h <<_ACEOF
  4322. #define HAVE_LIBDL 1
  4323. _ACEOF
  4324. LIBS="-ldl $LIBS"
  4325. fi
  4326. else
  4327. if test "$HPUX" = "yes"
  4328. then
  4329. echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  4330. echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  4331. if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  4332. echo $ECHO_N "(cached) $ECHO_C" >&6
  4333. else
  4334. ac_check_lib_save_LIBS=$LIBS
  4335. LIBS="-ldld $LIBS"
  4336. cat >conftest.$ac_ext <<_ACEOF
  4337. /* confdefs.h. */
  4338. _ACEOF
  4339. cat confdefs.h >>conftest.$ac_ext
  4340. cat >>conftest.$ac_ext <<_ACEOF
  4341. /* end confdefs.h. */
  4342. /* Override any gcc2 internal prototype to avoid an error. */
  4343. #ifdef __cplusplus
  4344. extern "C"
  4345. #endif
  4346. /* We use char because int might match the return type of a gcc2
  4347. builtin and then its argument prototype would still apply. */
  4348. char shl_load ();
  4349. int
  4350. main ()
  4351. {
  4352. shl_load ();
  4353. ;
  4354. return 0;
  4355. }
  4356. _ACEOF
  4357. rm -f conftest.$ac_objext conftest$ac_exeext
  4358. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4359. (eval $ac_link) 2>conftest.er1
  4360. ac_status=$?
  4361. grep -v '^ *+' conftest.er1 >conftest.err
  4362. rm -f conftest.er1
  4363. cat conftest.err >&5
  4364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4365. (exit $ac_status); } &&
  4366. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4368. (eval $ac_try) 2>&5
  4369. ac_status=$?
  4370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4371. (exit $ac_status); }; } &&
  4372. { ac_try='test -s conftest$ac_exeext'
  4373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4374. (eval $ac_try) 2>&5
  4375. ac_status=$?
  4376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4377. (exit $ac_status); }; }; then
  4378. ac_cv_lib_dld_shl_load=yes
  4379. else
  4380. echo "$as_me: failed program was:" >&5
  4381. sed 's/^/| /' conftest.$ac_ext >&5
  4382. ac_cv_lib_dld_shl_load=no
  4383. fi
  4384. rm -f conftest.err conftest.$ac_objext \
  4385. conftest$ac_exeext conftest.$ac_ext
  4386. LIBS=$ac_check_lib_save_LIBS
  4387. fi
  4388. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  4389. echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  4390. if test $ac_cv_lib_dld_shl_load = yes; then
  4391. cat >>confdefs.h <<_ACEOF
  4392. #define HAVE_LIBDLD 1
  4393. _ACEOF
  4394. LIBS="-ldld $LIBS"
  4395. fi
  4396. fi
  4397. fi
  4398. fi
  4399. # Checks for header files
  4400. ac_header_dirent=no
  4401. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4402. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4403. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4404. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4405. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4406. echo $ECHO_N "(cached) $ECHO_C" >&6
  4407. else
  4408. cat >conftest.$ac_ext <<_ACEOF
  4409. /* confdefs.h. */
  4410. _ACEOF
  4411. cat confdefs.h >>conftest.$ac_ext
  4412. cat >>conftest.$ac_ext <<_ACEOF
  4413. /* end confdefs.h. */
  4414. #include <sys/types.h>
  4415. #include <$ac_hdr>
  4416. int
  4417. main ()
  4418. {
  4419. if ((DIR *) 0)
  4420. return 0;
  4421. ;
  4422. return 0;
  4423. }
  4424. _ACEOF
  4425. rm -f conftest.$ac_objext
  4426. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4427. (eval $ac_compile) 2>conftest.er1
  4428. ac_status=$?
  4429. grep -v '^ *+' conftest.er1 >conftest.err
  4430. rm -f conftest.er1
  4431. cat conftest.err >&5
  4432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4433. (exit $ac_status); } &&
  4434. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4435. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4436. (eval $ac_try) 2>&5
  4437. ac_status=$?
  4438. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4439. (exit $ac_status); }; } &&
  4440. { ac_try='test -s conftest.$ac_objext'
  4441. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4442. (eval $ac_try) 2>&5
  4443. ac_status=$?
  4444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4445. (exit $ac_status); }; }; then
  4446. eval "$as_ac_Header=yes"
  4447. else
  4448. echo "$as_me: failed program was:" >&5
  4449. sed 's/^/| /' conftest.$ac_ext >&5
  4450. eval "$as_ac_Header=no"
  4451. fi
  4452. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4453. fi
  4454. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4455. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4456. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4457. cat >>confdefs.h <<_ACEOF
  4458. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4459. _ACEOF
  4460. ac_header_dirent=$ac_hdr; break
  4461. fi
  4462. done
  4463. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4464. if test $ac_header_dirent = dirent.h; then
  4465. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4466. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4467. if test "${ac_cv_search_opendir+set}" = set; then
  4468. echo $ECHO_N "(cached) $ECHO_C" >&6
  4469. else
  4470. ac_func_search_save_LIBS=$LIBS
  4471. ac_cv_search_opendir=no
  4472. cat >conftest.$ac_ext <<_ACEOF
  4473. /* confdefs.h. */
  4474. _ACEOF
  4475. cat confdefs.h >>conftest.$ac_ext
  4476. cat >>conftest.$ac_ext <<_ACEOF
  4477. /* end confdefs.h. */
  4478. /* Override any gcc2 internal prototype to avoid an error. */
  4479. #ifdef __cplusplus
  4480. extern "C"
  4481. #endif
  4482. /* We use char because int might match the return type of a gcc2
  4483. builtin and then its argument prototype would still apply. */
  4484. char opendir ();
  4485. int
  4486. main ()
  4487. {
  4488. opendir ();
  4489. ;
  4490. return 0;
  4491. }
  4492. _ACEOF
  4493. rm -f conftest.$ac_objext conftest$ac_exeext
  4494. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4495. (eval $ac_link) 2>conftest.er1
  4496. ac_status=$?
  4497. grep -v '^ *+' conftest.er1 >conftest.err
  4498. rm -f conftest.er1
  4499. cat conftest.err >&5
  4500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4501. (exit $ac_status); } &&
  4502. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4503. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4504. (eval $ac_try) 2>&5
  4505. ac_status=$?
  4506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4507. (exit $ac_status); }; } &&
  4508. { ac_try='test -s conftest$ac_exeext'
  4509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4510. (eval $ac_try) 2>&5
  4511. ac_status=$?
  4512. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4513. (exit $ac_status); }; }; then
  4514. ac_cv_search_opendir="none required"
  4515. else
  4516. echo "$as_me: failed program was:" >&5
  4517. sed 's/^/| /' conftest.$ac_ext >&5
  4518. fi
  4519. rm -f conftest.err conftest.$ac_objext \
  4520. conftest$ac_exeext conftest.$ac_ext
  4521. if test "$ac_cv_search_opendir" = no; then
  4522. for ac_lib in dir; do
  4523. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4524. cat >conftest.$ac_ext <<_ACEOF
  4525. /* confdefs.h. */
  4526. _ACEOF
  4527. cat confdefs.h >>conftest.$ac_ext
  4528. cat >>conftest.$ac_ext <<_ACEOF
  4529. /* end confdefs.h. */
  4530. /* Override any gcc2 internal prototype to avoid an error. */
  4531. #ifdef __cplusplus
  4532. extern "C"
  4533. #endif
  4534. /* We use char because int might match the return type of a gcc2
  4535. builtin and then its argument prototype would still apply. */
  4536. char opendir ();
  4537. int
  4538. main ()
  4539. {
  4540. opendir ();
  4541. ;
  4542. return 0;
  4543. }
  4544. _ACEOF
  4545. rm -f conftest.$ac_objext conftest$ac_exeext
  4546. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4547. (eval $ac_link) 2>conftest.er1
  4548. ac_status=$?
  4549. grep -v '^ *+' conftest.er1 >conftest.err
  4550. rm -f conftest.er1
  4551. cat conftest.err >&5
  4552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4553. (exit $ac_status); } &&
  4554. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4556. (eval $ac_try) 2>&5
  4557. ac_status=$?
  4558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4559. (exit $ac_status); }; } &&
  4560. { ac_try='test -s conftest$ac_exeext'
  4561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4562. (eval $ac_try) 2>&5
  4563. ac_status=$?
  4564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4565. (exit $ac_status); }; }; then
  4566. ac_cv_search_opendir="-l$ac_lib"
  4567. break
  4568. else
  4569. echo "$as_me: failed program was:" >&5
  4570. sed 's/^/| /' conftest.$ac_ext >&5
  4571. fi
  4572. rm -f conftest.err conftest.$ac_objext \
  4573. conftest$ac_exeext conftest.$ac_ext
  4574. done
  4575. fi
  4576. LIBS=$ac_func_search_save_LIBS
  4577. fi
  4578. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4579. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4580. if test "$ac_cv_search_opendir" != no; then
  4581. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4582. fi
  4583. else
  4584. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4585. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4586. if test "${ac_cv_search_opendir+set}" = set; then
  4587. echo $ECHO_N "(cached) $ECHO_C" >&6
  4588. else
  4589. ac_func_search_save_LIBS=$LIBS
  4590. ac_cv_search_opendir=no
  4591. cat >conftest.$ac_ext <<_ACEOF
  4592. /* confdefs.h. */
  4593. _ACEOF
  4594. cat confdefs.h >>conftest.$ac_ext
  4595. cat >>conftest.$ac_ext <<_ACEOF
  4596. /* end confdefs.h. */
  4597. /* Override any gcc2 internal prototype to avoid an error. */
  4598. #ifdef __cplusplus
  4599. extern "C"
  4600. #endif
  4601. /* We use char because int might match the return type of a gcc2
  4602. builtin and then its argument prototype would still apply. */
  4603. char opendir ();
  4604. int
  4605. main ()
  4606. {
  4607. opendir ();
  4608. ;
  4609. return 0;
  4610. }
  4611. _ACEOF
  4612. rm -f conftest.$ac_objext conftest$ac_exeext
  4613. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4614. (eval $ac_link) 2>conftest.er1
  4615. ac_status=$?
  4616. grep -v '^ *+' conftest.er1 >conftest.err
  4617. rm -f conftest.er1
  4618. cat conftest.err >&5
  4619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4620. (exit $ac_status); } &&
  4621. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4622. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4623. (eval $ac_try) 2>&5
  4624. ac_status=$?
  4625. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4626. (exit $ac_status); }; } &&
  4627. { ac_try='test -s conftest$ac_exeext'
  4628. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4629. (eval $ac_try) 2>&5
  4630. ac_status=$?
  4631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4632. (exit $ac_status); }; }; then
  4633. ac_cv_search_opendir="none required"
  4634. else
  4635. echo "$as_me: failed program was:" >&5
  4636. sed 's/^/| /' conftest.$ac_ext >&5
  4637. fi
  4638. rm -f conftest.err conftest.$ac_objext \
  4639. conftest$ac_exeext conftest.$ac_ext
  4640. if test "$ac_cv_search_opendir" = no; then
  4641. for ac_lib in x; do
  4642. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4643. cat >conftest.$ac_ext <<_ACEOF
  4644. /* confdefs.h. */
  4645. _ACEOF
  4646. cat confdefs.h >>conftest.$ac_ext
  4647. cat >>conftest.$ac_ext <<_ACEOF
  4648. /* end confdefs.h. */
  4649. /* Override any gcc2 internal prototype to avoid an error. */
  4650. #ifdef __cplusplus
  4651. extern "C"
  4652. #endif
  4653. /* We use char because int might match the return type of a gcc2
  4654. builtin and then its argument prototype would still apply. */
  4655. char opendir ();
  4656. int
  4657. main ()
  4658. {
  4659. opendir ();
  4660. ;
  4661. return 0;
  4662. }
  4663. _ACEOF
  4664. rm -f conftest.$ac_objext conftest$ac_exeext
  4665. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4666. (eval $ac_link) 2>conftest.er1
  4667. ac_status=$?
  4668. grep -v '^ *+' conftest.er1 >conftest.err
  4669. rm -f conftest.er1
  4670. cat conftest.err >&5
  4671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4672. (exit $ac_status); } &&
  4673. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4674. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4675. (eval $ac_try) 2>&5
  4676. ac_status=$?
  4677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4678. (exit $ac_status); }; } &&
  4679. { ac_try='test -s conftest$ac_exeext'
  4680. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4681. (eval $ac_try) 2>&5
  4682. ac_status=$?
  4683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4684. (exit $ac_status); }; }; then
  4685. ac_cv_search_opendir="-l$ac_lib"
  4686. break
  4687. else
  4688. echo "$as_me: failed program was:" >&5
  4689. sed 's/^/| /' conftest.$ac_ext >&5
  4690. fi
  4691. rm -f conftest.err conftest.$ac_objext \
  4692. conftest$ac_exeext conftest.$ac_ext
  4693. done
  4694. fi
  4695. LIBS=$ac_func_search_save_LIBS
  4696. fi
  4697. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4698. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4699. if test "$ac_cv_search_opendir" != no; then
  4700. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4701. fi
  4702. fi
  4703. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4704. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4705. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4706. echo $ECHO_N "(cached) $ECHO_C" >&6
  4707. else
  4708. cat >conftest.$ac_ext <<_ACEOF
  4709. /* confdefs.h. */
  4710. _ACEOF
  4711. cat confdefs.h >>conftest.$ac_ext
  4712. cat >>conftest.$ac_ext <<_ACEOF
  4713. /* end confdefs.h. */
  4714. #include <sys/types.h>
  4715. #include <sys/wait.h>
  4716. #ifndef WEXITSTATUS
  4717. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4718. #endif
  4719. #ifndef WIFEXITED
  4720. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4721. #endif
  4722. int
  4723. main ()
  4724. {
  4725. int s;
  4726. wait (&s);
  4727. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4728. ;
  4729. return 0;
  4730. }
  4731. _ACEOF
  4732. rm -f conftest.$ac_objext
  4733. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4734. (eval $ac_compile) 2>conftest.er1
  4735. ac_status=$?
  4736. grep -v '^ *+' conftest.er1 >conftest.err
  4737. rm -f conftest.er1
  4738. cat conftest.err >&5
  4739. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4740. (exit $ac_status); } &&
  4741. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4742. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4743. (eval $ac_try) 2>&5
  4744. ac_status=$?
  4745. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4746. (exit $ac_status); }; } &&
  4747. { ac_try='test -s conftest.$ac_objext'
  4748. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4749. (eval $ac_try) 2>&5
  4750. ac_status=$?
  4751. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4752. (exit $ac_status); }; }; then
  4753. ac_cv_header_sys_wait_h=yes
  4754. else
  4755. echo "$as_me: failed program was:" >&5
  4756. sed 's/^/| /' conftest.$ac_ext >&5
  4757. ac_cv_header_sys_wait_h=no
  4758. fi
  4759. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4760. fi
  4761. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4762. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4763. if test $ac_cv_header_sys_wait_h = yes; then
  4764. cat >>confdefs.h <<\_ACEOF
  4765. #define HAVE_SYS_WAIT_H 1
  4766. _ACEOF
  4767. fi
  4768. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4769. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4770. if test "${ac_cv_header_time+set}" = set; then
  4771. echo $ECHO_N "(cached) $ECHO_C" >&6
  4772. else
  4773. cat >conftest.$ac_ext <<_ACEOF
  4774. /* confdefs.h. */
  4775. _ACEOF
  4776. cat confdefs.h >>conftest.$ac_ext
  4777. cat >>conftest.$ac_ext <<_ACEOF
  4778. /* end confdefs.h. */
  4779. #include <sys/types.h>
  4780. #include <sys/time.h>
  4781. #include <time.h>
  4782. int
  4783. main ()
  4784. {
  4785. if ((struct tm *) 0)
  4786. return 0;
  4787. ;
  4788. return 0;
  4789. }
  4790. _ACEOF
  4791. rm -f conftest.$ac_objext
  4792. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4793. (eval $ac_compile) 2>conftest.er1
  4794. ac_status=$?
  4795. grep -v '^ *+' conftest.er1 >conftest.err
  4796. rm -f conftest.er1
  4797. cat conftest.err >&5
  4798. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4799. (exit $ac_status); } &&
  4800. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4801. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4802. (eval $ac_try) 2>&5
  4803. ac_status=$?
  4804. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4805. (exit $ac_status); }; } &&
  4806. { ac_try='test -s conftest.$ac_objext'
  4807. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4808. (eval $ac_try) 2>&5
  4809. ac_status=$?
  4810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4811. (exit $ac_status); }; }; then
  4812. ac_cv_header_time=yes
  4813. else
  4814. echo "$as_me: failed program was:" >&5
  4815. sed 's/^/| /' conftest.$ac_ext >&5
  4816. ac_cv_header_time=no
  4817. fi
  4818. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4819. fi
  4820. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4821. echo "${ECHO_T}$ac_cv_header_time" >&6
  4822. if test $ac_cv_header_time = yes; then
  4823. cat >>confdefs.h <<\_ACEOF
  4824. #define TIME_WITH_SYS_TIME 1
  4825. _ACEOF
  4826. fi
  4827. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4828. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4829. if test "${ac_cv_header_stat_broken+set}" = set; then
  4830. echo $ECHO_N "(cached) $ECHO_C" >&6
  4831. else
  4832. cat >conftest.$ac_ext <<_ACEOF
  4833. /* confdefs.h. */
  4834. _ACEOF
  4835. cat confdefs.h >>conftest.$ac_ext
  4836. cat >>conftest.$ac_ext <<_ACEOF
  4837. /* end confdefs.h. */
  4838. #include <sys/types.h>
  4839. #include <sys/stat.h>
  4840. #if defined(S_ISBLK) && defined(S_IFDIR)
  4841. # if S_ISBLK (S_IFDIR)
  4842. You lose.
  4843. # endif
  4844. #endif
  4845. #if defined(S_ISBLK) && defined(S_IFCHR)
  4846. # if S_ISBLK (S_IFCHR)
  4847. You lose.
  4848. # endif
  4849. #endif
  4850. #if defined(S_ISLNK) && defined(S_IFREG)
  4851. # if S_ISLNK (S_IFREG)
  4852. You lose.
  4853. # endif
  4854. #endif
  4855. #if defined(S_ISSOCK) && defined(S_IFREG)
  4856. # if S_ISSOCK (S_IFREG)
  4857. You lose.
  4858. # endif
  4859. #endif
  4860. _ACEOF
  4861. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4862. $EGREP "You lose" >/dev/null 2>&1; then
  4863. ac_cv_header_stat_broken=yes
  4864. else
  4865. ac_cv_header_stat_broken=no
  4866. fi
  4867. rm -f conftest*
  4868. fi
  4869. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4870. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4871. if test $ac_cv_header_stat_broken = yes; then
  4872. cat >>confdefs.h <<\_ACEOF
  4873. #define STAT_MACROS_BROKEN 1
  4874. _ACEOF
  4875. fi
  4876. #checkpoint
  4877. cat >confcache <<\_ACEOF
  4878. # This file is a shell script that caches the results of configure
  4879. # tests run on this system so they can be shared between configure
  4880. # scripts and configure runs, see configure's option --config-cache.
  4881. # It is not useful on other systems. If it contains results you don't
  4882. # want to keep, you may remove or edit it.
  4883. #
  4884. # config.status only pays attention to the cache file if you give it
  4885. # the --recheck option to rerun configure.
  4886. #
  4887. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4888. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4889. # following values.
  4890. _ACEOF
  4891. # The following way of writing the cache mishandles newlines in values,
  4892. # but we know of no workaround that is simple, portable, and efficient.
  4893. # So, don't put newlines in cache variables' values.
  4894. # Ultrix sh set writes to stderr and can't be redirected directly,
  4895. # and sets the high bit in the cache file unless we assign to the vars.
  4896. {
  4897. (set) 2>&1 |
  4898. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4899. *ac_space=\ *)
  4900. # `set' does not quote correctly, so add quotes (double-quote
  4901. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4902. sed -n \
  4903. "s/'/'\\\\''/g;
  4904. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4905. ;;
  4906. *)
  4907. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4908. sed -n \
  4909. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4910. ;;
  4911. esac;
  4912. } |
  4913. sed '
  4914. t clear
  4915. : clear
  4916. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4917. t end
  4918. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4919. : end' >>confcache
  4920. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4921. if test -w $cache_file; then
  4922. test "x$cache_file" != "x/dev/null"
  4923. cat confcache >$cache_file
  4924. else
  4925. echo "not updating unwritable cache $cache_file"
  4926. fi
  4927. fi
  4928. rm -f confcache
  4929. for ac_header in arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4930. do
  4931. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4932. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4933. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4934. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4935. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4936. echo $ECHO_N "(cached) $ECHO_C" >&6
  4937. fi
  4938. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4939. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4940. else
  4941. # Is the header compilable?
  4942. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4943. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4944. cat >conftest.$ac_ext <<_ACEOF
  4945. /* confdefs.h. */
  4946. _ACEOF
  4947. cat confdefs.h >>conftest.$ac_ext
  4948. cat >>conftest.$ac_ext <<_ACEOF
  4949. /* end confdefs.h. */
  4950. $ac_includes_default
  4951. #include <$ac_header>
  4952. _ACEOF
  4953. rm -f conftest.$ac_objext
  4954. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4955. (eval $ac_compile) 2>conftest.er1
  4956. ac_status=$?
  4957. grep -v '^ *+' conftest.er1 >conftest.err
  4958. rm -f conftest.er1
  4959. cat conftest.err >&5
  4960. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4961. (exit $ac_status); } &&
  4962. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  4963. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4964. (eval $ac_try) 2>&5
  4965. ac_status=$?
  4966. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4967. (exit $ac_status); }; } &&
  4968. { ac_try='test -s conftest.$ac_objext'
  4969. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4970. (eval $ac_try) 2>&5
  4971. ac_status=$?
  4972. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4973. (exit $ac_status); }; }; then
  4974. ac_header_compiler=yes
  4975. else
  4976. echo "$as_me: failed program was:" >&5
  4977. sed 's/^/| /' conftest.$ac_ext >&5
  4978. ac_header_compiler=no
  4979. fi
  4980. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4981. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4982. echo "${ECHO_T}$ac_header_compiler" >&6
  4983. # Is the header present?
  4984. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4985. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4986. cat >conftest.$ac_ext <<_ACEOF
  4987. /* confdefs.h. */
  4988. _ACEOF
  4989. cat confdefs.h >>conftest.$ac_ext
  4990. cat >>conftest.$ac_ext <<_ACEOF
  4991. /* end confdefs.h. */
  4992. #include <$ac_header>
  4993. _ACEOF
  4994. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4995. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4996. ac_status=$?
  4997. grep -v '^ *+' conftest.er1 >conftest.err
  4998. rm -f conftest.er1
  4999. cat conftest.err >&5
  5000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5001. (exit $ac_status); } >/dev/null; then
  5002. if test -s conftest.err; then
  5003. ac_cpp_err=$ac_c_preproc_warn_flag
  5004. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5005. else
  5006. ac_cpp_err=
  5007. fi
  5008. else
  5009. ac_cpp_err=yes
  5010. fi
  5011. if test -z "$ac_cpp_err"; then
  5012. ac_header_preproc=yes
  5013. else
  5014. echo "$as_me: failed program was:" >&5
  5015. sed 's/^/| /' conftest.$ac_ext >&5
  5016. ac_header_preproc=no
  5017. fi
  5018. rm -f conftest.err conftest.$ac_ext
  5019. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5020. echo "${ECHO_T}$ac_header_preproc" >&6
  5021. # So? What about this header?
  5022. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5023. yes:no: )
  5024. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5025. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5026. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5027. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5028. ac_header_preproc=yes
  5029. ;;
  5030. no:yes:* )
  5031. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5032. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5033. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5034. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5035. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5036. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5037. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5038. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5039. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5040. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5041. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5042. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5043. (
  5044. cat <<\_ASBOX
  5045. ## ------------------------------------------ ##
  5046. ## Report this to the AC_PACKAGE_NAME lists. ##
  5047. ## ------------------------------------------ ##
  5048. _ASBOX
  5049. ) |
  5050. sed "s/^/$as_me: WARNING: /" >&2
  5051. ;;
  5052. esac
  5053. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5054. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5055. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5056. echo $ECHO_N "(cached) $ECHO_C" >&6
  5057. else
  5058. eval "$as_ac_Header=\$ac_header_preproc"
  5059. fi
  5060. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5061. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5062. fi
  5063. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5064. cat >>confdefs.h <<_ACEOF
  5065. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5066. _ACEOF
  5067. fi
  5068. done
  5069. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5070. do
  5071. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5072. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5073. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5074. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5075. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5076. echo $ECHO_N "(cached) $ECHO_C" >&6
  5077. fi
  5078. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5079. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5080. else
  5081. # Is the header compilable?
  5082. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5083. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5084. cat >conftest.$ac_ext <<_ACEOF
  5085. /* confdefs.h. */
  5086. _ACEOF
  5087. cat confdefs.h >>conftest.$ac_ext
  5088. cat >>conftest.$ac_ext <<_ACEOF
  5089. /* end confdefs.h. */
  5090. $ac_includes_default
  5091. #include <$ac_header>
  5092. _ACEOF
  5093. rm -f conftest.$ac_objext
  5094. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5095. (eval $ac_compile) 2>conftest.er1
  5096. ac_status=$?
  5097. grep -v '^ *+' conftest.er1 >conftest.err
  5098. rm -f conftest.er1
  5099. cat conftest.err >&5
  5100. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5101. (exit $ac_status); } &&
  5102. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5103. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5104. (eval $ac_try) 2>&5
  5105. ac_status=$?
  5106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5107. (exit $ac_status); }; } &&
  5108. { ac_try='test -s conftest.$ac_objext'
  5109. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5110. (eval $ac_try) 2>&5
  5111. ac_status=$?
  5112. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5113. (exit $ac_status); }; }; then
  5114. ac_header_compiler=yes
  5115. else
  5116. echo "$as_me: failed program was:" >&5
  5117. sed 's/^/| /' conftest.$ac_ext >&5
  5118. ac_header_compiler=no
  5119. fi
  5120. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5121. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5122. echo "${ECHO_T}$ac_header_compiler" >&6
  5123. # Is the header present?
  5124. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5125. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5126. cat >conftest.$ac_ext <<_ACEOF
  5127. /* confdefs.h. */
  5128. _ACEOF
  5129. cat confdefs.h >>conftest.$ac_ext
  5130. cat >>conftest.$ac_ext <<_ACEOF
  5131. /* end confdefs.h. */
  5132. #include <$ac_header>
  5133. _ACEOF
  5134. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5135. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5136. ac_status=$?
  5137. grep -v '^ *+' conftest.er1 >conftest.err
  5138. rm -f conftest.er1
  5139. cat conftest.err >&5
  5140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5141. (exit $ac_status); } >/dev/null; then
  5142. if test -s conftest.err; then
  5143. ac_cpp_err=$ac_c_preproc_warn_flag
  5144. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5145. else
  5146. ac_cpp_err=
  5147. fi
  5148. else
  5149. ac_cpp_err=yes
  5150. fi
  5151. if test -z "$ac_cpp_err"; then
  5152. ac_header_preproc=yes
  5153. else
  5154. echo "$as_me: failed program was:" >&5
  5155. sed 's/^/| /' conftest.$ac_ext >&5
  5156. ac_header_preproc=no
  5157. fi
  5158. rm -f conftest.err conftest.$ac_ext
  5159. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5160. echo "${ECHO_T}$ac_header_preproc" >&6
  5161. # So? What about this header?
  5162. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5163. yes:no: )
  5164. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5165. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5166. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5167. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5168. ac_header_preproc=yes
  5169. ;;
  5170. no:yes:* )
  5171. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5172. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5173. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5174. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5175. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5176. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5177. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5178. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5179. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5180. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5181. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5182. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5183. (
  5184. cat <<\_ASBOX
  5185. ## ------------------------------------------ ##
  5186. ## Report this to the AC_PACKAGE_NAME lists. ##
  5187. ## ------------------------------------------ ##
  5188. _ASBOX
  5189. ) |
  5190. sed "s/^/$as_me: WARNING: /" >&2
  5191. ;;
  5192. esac
  5193. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5194. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5195. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5196. echo $ECHO_N "(cached) $ECHO_C" >&6
  5197. else
  5198. eval "$as_ac_Header=\$ac_header_preproc"
  5199. fi
  5200. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5201. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5202. fi
  5203. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5204. cat >>confdefs.h <<_ACEOF
  5205. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5206. _ACEOF
  5207. fi
  5208. done
  5209. #checkpoint
  5210. cat >confcache <<\_ACEOF
  5211. # This file is a shell script that caches the results of configure
  5212. # tests run on this system so they can be shared between configure
  5213. # scripts and configure runs, see configure's option --config-cache.
  5214. # It is not useful on other systems. If it contains results you don't
  5215. # want to keep, you may remove or edit it.
  5216. #
  5217. # config.status only pays attention to the cache file if you give it
  5218. # the --recheck option to rerun configure.
  5219. #
  5220. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5221. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5222. # following values.
  5223. _ACEOF
  5224. # The following way of writing the cache mishandles newlines in values,
  5225. # but we know of no workaround that is simple, portable, and efficient.
  5226. # So, don't put newlines in cache variables' values.
  5227. # Ultrix sh set writes to stderr and can't be redirected directly,
  5228. # and sets the high bit in the cache file unless we assign to the vars.
  5229. {
  5230. (set) 2>&1 |
  5231. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5232. *ac_space=\ *)
  5233. # `set' does not quote correctly, so add quotes (double-quote
  5234. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5235. sed -n \
  5236. "s/'/'\\\\''/g;
  5237. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5238. ;;
  5239. *)
  5240. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5241. sed -n \
  5242. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5243. ;;
  5244. esac;
  5245. } |
  5246. sed '
  5247. t clear
  5248. : clear
  5249. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5250. t end
  5251. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5252. : end' >>confcache
  5253. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5254. if test -w $cache_file; then
  5255. test "x$cache_file" != "x/dev/null"
  5256. cat confcache >$cache_file
  5257. else
  5258. echo "not updating unwritable cache $cache_file"
  5259. fi
  5260. fi
  5261. rm -f confcache
  5262. for ac_header in openssl/ssl.h openssl/crypto.h
  5263. do
  5264. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5265. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5266. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5267. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5268. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5269. echo $ECHO_N "(cached) $ECHO_C" >&6
  5270. fi
  5271. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5272. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5273. else
  5274. # Is the header compilable?
  5275. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5276. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5277. cat >conftest.$ac_ext <<_ACEOF
  5278. /* confdefs.h. */
  5279. _ACEOF
  5280. cat confdefs.h >>conftest.$ac_ext
  5281. cat >>conftest.$ac_ext <<_ACEOF
  5282. /* end confdefs.h. */
  5283. $ac_includes_default
  5284. #include <$ac_header>
  5285. _ACEOF
  5286. rm -f conftest.$ac_objext
  5287. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5288. (eval $ac_compile) 2>conftest.er1
  5289. ac_status=$?
  5290. grep -v '^ *+' conftest.er1 >conftest.err
  5291. rm -f conftest.er1
  5292. cat conftest.err >&5
  5293. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5294. (exit $ac_status); } &&
  5295. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5296. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5297. (eval $ac_try) 2>&5
  5298. ac_status=$?
  5299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5300. (exit $ac_status); }; } &&
  5301. { ac_try='test -s conftest.$ac_objext'
  5302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5303. (eval $ac_try) 2>&5
  5304. ac_status=$?
  5305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5306. (exit $ac_status); }; }; then
  5307. ac_header_compiler=yes
  5308. else
  5309. echo "$as_me: failed program was:" >&5
  5310. sed 's/^/| /' conftest.$ac_ext >&5
  5311. ac_header_compiler=no
  5312. fi
  5313. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5314. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5315. echo "${ECHO_T}$ac_header_compiler" >&6
  5316. # Is the header present?
  5317. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5318. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5319. cat >conftest.$ac_ext <<_ACEOF
  5320. /* confdefs.h. */
  5321. _ACEOF
  5322. cat confdefs.h >>conftest.$ac_ext
  5323. cat >>conftest.$ac_ext <<_ACEOF
  5324. /* end confdefs.h. */
  5325. #include <$ac_header>
  5326. _ACEOF
  5327. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5328. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5329. ac_status=$?
  5330. grep -v '^ *+' conftest.er1 >conftest.err
  5331. rm -f conftest.er1
  5332. cat conftest.err >&5
  5333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5334. (exit $ac_status); } >/dev/null; then
  5335. if test -s conftest.err; then
  5336. ac_cpp_err=$ac_c_preproc_warn_flag
  5337. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5338. else
  5339. ac_cpp_err=
  5340. fi
  5341. else
  5342. ac_cpp_err=yes
  5343. fi
  5344. if test -z "$ac_cpp_err"; then
  5345. ac_header_preproc=yes
  5346. else
  5347. echo "$as_me: failed program was:" >&5
  5348. sed 's/^/| /' conftest.$ac_ext >&5
  5349. ac_header_preproc=no
  5350. fi
  5351. rm -f conftest.err conftest.$ac_ext
  5352. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5353. echo "${ECHO_T}$ac_header_preproc" >&6
  5354. # So? What about this header?
  5355. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5356. yes:no: )
  5357. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5358. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5359. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5360. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5361. ac_header_preproc=yes
  5362. ;;
  5363. no:yes:* )
  5364. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5365. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5366. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5367. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5368. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5369. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5370. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5371. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5372. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5373. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5374. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5375. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5376. (
  5377. cat <<\_ASBOX
  5378. ## ------------------------------------------ ##
  5379. ## Report this to the AC_PACKAGE_NAME lists. ##
  5380. ## ------------------------------------------ ##
  5381. _ASBOX
  5382. ) |
  5383. sed "s/^/$as_me: WARNING: /" >&2
  5384. ;;
  5385. esac
  5386. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5387. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5388. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5389. echo $ECHO_N "(cached) $ECHO_C" >&6
  5390. else
  5391. eval "$as_ac_Header=\$ac_header_preproc"
  5392. fi
  5393. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5394. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5395. fi
  5396. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5397. cat >>confdefs.h <<_ACEOF
  5398. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5399. _ACEOF
  5400. fi
  5401. done
  5402. for ac_header in zlib.h
  5403. do
  5404. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5405. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5406. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5407. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5408. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5409. echo $ECHO_N "(cached) $ECHO_C" >&6
  5410. fi
  5411. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5412. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5413. else
  5414. # Is the header compilable?
  5415. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5416. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5417. cat >conftest.$ac_ext <<_ACEOF
  5418. /* confdefs.h. */
  5419. _ACEOF
  5420. cat confdefs.h >>conftest.$ac_ext
  5421. cat >>conftest.$ac_ext <<_ACEOF
  5422. /* end confdefs.h. */
  5423. $ac_includes_default
  5424. #include <$ac_header>
  5425. _ACEOF
  5426. rm -f conftest.$ac_objext
  5427. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5428. (eval $ac_compile) 2>conftest.er1
  5429. ac_status=$?
  5430. grep -v '^ *+' conftest.er1 >conftest.err
  5431. rm -f conftest.er1
  5432. cat conftest.err >&5
  5433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5434. (exit $ac_status); } &&
  5435. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5436. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5437. (eval $ac_try) 2>&5
  5438. ac_status=$?
  5439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5440. (exit $ac_status); }; } &&
  5441. { ac_try='test -s conftest.$ac_objext'
  5442. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5443. (eval $ac_try) 2>&5
  5444. ac_status=$?
  5445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5446. (exit $ac_status); }; }; then
  5447. ac_header_compiler=yes
  5448. else
  5449. echo "$as_me: failed program was:" >&5
  5450. sed 's/^/| /' conftest.$ac_ext >&5
  5451. ac_header_compiler=no
  5452. fi
  5453. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5454. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5455. echo "${ECHO_T}$ac_header_compiler" >&6
  5456. # Is the header present?
  5457. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5458. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5459. cat >conftest.$ac_ext <<_ACEOF
  5460. /* confdefs.h. */
  5461. _ACEOF
  5462. cat confdefs.h >>conftest.$ac_ext
  5463. cat >>conftest.$ac_ext <<_ACEOF
  5464. /* end confdefs.h. */
  5465. #include <$ac_header>
  5466. _ACEOF
  5467. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5468. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5469. ac_status=$?
  5470. grep -v '^ *+' conftest.er1 >conftest.err
  5471. rm -f conftest.er1
  5472. cat conftest.err >&5
  5473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5474. (exit $ac_status); } >/dev/null; then
  5475. if test -s conftest.err; then
  5476. ac_cpp_err=$ac_c_preproc_warn_flag
  5477. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5478. else
  5479. ac_cpp_err=
  5480. fi
  5481. else
  5482. ac_cpp_err=yes
  5483. fi
  5484. if test -z "$ac_cpp_err"; then
  5485. ac_header_preproc=yes
  5486. else
  5487. echo "$as_me: failed program was:" >&5
  5488. sed 's/^/| /' conftest.$ac_ext >&5
  5489. ac_header_preproc=no
  5490. fi
  5491. rm -f conftest.err conftest.$ac_ext
  5492. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5493. echo "${ECHO_T}$ac_header_preproc" >&6
  5494. # So? What about this header?
  5495. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5496. yes:no: )
  5497. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5498. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5499. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5500. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5501. ac_header_preproc=yes
  5502. ;;
  5503. no:yes:* )
  5504. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5505. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5506. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5507. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5508. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5509. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5510. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5511. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5512. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5513. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5514. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5515. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5516. (
  5517. cat <<\_ASBOX
  5518. ## ------------------------------------------ ##
  5519. ## Report this to the AC_PACKAGE_NAME lists. ##
  5520. ## ------------------------------------------ ##
  5521. _ASBOX
  5522. ) |
  5523. sed "s/^/$as_me: WARNING: /" >&2
  5524. ;;
  5525. esac
  5526. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5527. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5528. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5529. echo $ECHO_N "(cached) $ECHO_C" >&6
  5530. else
  5531. eval "$as_ac_Header=\$ac_header_preproc"
  5532. fi
  5533. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5534. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5535. fi
  5536. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5537. cat >>confdefs.h <<_ACEOF
  5538. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5539. _ACEOF
  5540. fi
  5541. done
  5542. if test "x${ZLIB}" = x; then
  5543. cat >&2 <<EOF
  5544. configure: error:
  5545. Your system does not provide a working zlib compression library.
  5546. It is required.
  5547. EOF
  5548. exit 1
  5549. else
  5550. if test "${ac_cv_header_zlib_h}" != yes; then
  5551. cat >&2 <<EOF
  5552. configure: error:
  5553. Your system does not provide the necessary zlib header file.
  5554. It is required.
  5555. EOF
  5556. exit 1
  5557. fi
  5558. fi
  5559. if test "x${SSL}" = x; then
  5560. cat >&2 <<EOF
  5561. configure: error:
  5562. Your system does not provide a working ssl library.
  5563. It is required. Download openssl at www.openssl.org
  5564. EOF
  5565. exit 1
  5566. else
  5567. if test "${ac_cv_header_openssl_ssl_h}" != yes; then
  5568. cat >&2 <<EOF
  5569. configure: error:
  5570. Your system does not provide the necessary ssl header file.
  5571. It is required. Download openssl at www.openssl.org
  5572. EOF
  5573. exit 1
  5574. fi
  5575. fi
  5576. # Checks for typedefs, structures, and compiler characteristics
  5577. echo "$as_me:$LINENO: checking for pid_t" >&5
  5578. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5579. if test "${ac_cv_type_pid_t+set}" = set; then
  5580. echo $ECHO_N "(cached) $ECHO_C" >&6
  5581. else
  5582. cat >conftest.$ac_ext <<_ACEOF
  5583. /* confdefs.h. */
  5584. _ACEOF
  5585. cat confdefs.h >>conftest.$ac_ext
  5586. cat >>conftest.$ac_ext <<_ACEOF
  5587. /* end confdefs.h. */
  5588. $ac_includes_default
  5589. int
  5590. main ()
  5591. {
  5592. if ((pid_t *) 0)
  5593. return 0;
  5594. if (sizeof (pid_t))
  5595. return 0;
  5596. ;
  5597. return 0;
  5598. }
  5599. _ACEOF
  5600. rm -f conftest.$ac_objext
  5601. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5602. (eval $ac_compile) 2>conftest.er1
  5603. ac_status=$?
  5604. grep -v '^ *+' conftest.er1 >conftest.err
  5605. rm -f conftest.er1
  5606. cat conftest.err >&5
  5607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5608. (exit $ac_status); } &&
  5609. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5611. (eval $ac_try) 2>&5
  5612. ac_status=$?
  5613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5614. (exit $ac_status); }; } &&
  5615. { ac_try='test -s conftest.$ac_objext'
  5616. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5617. (eval $ac_try) 2>&5
  5618. ac_status=$?
  5619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5620. (exit $ac_status); }; }; then
  5621. ac_cv_type_pid_t=yes
  5622. else
  5623. echo "$as_me: failed program was:" >&5
  5624. sed 's/^/| /' conftest.$ac_ext >&5
  5625. ac_cv_type_pid_t=no
  5626. fi
  5627. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5628. fi
  5629. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5630. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5631. if test $ac_cv_type_pid_t = yes; then
  5632. :
  5633. else
  5634. cat >>confdefs.h <<_ACEOF
  5635. #define pid_t int
  5636. _ACEOF
  5637. fi
  5638. echo "$as_me:$LINENO: checking for size_t" >&5
  5639. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5640. if test "${ac_cv_type_size_t+set}" = set; then
  5641. echo $ECHO_N "(cached) $ECHO_C" >&6
  5642. else
  5643. cat >conftest.$ac_ext <<_ACEOF
  5644. /* confdefs.h. */
  5645. _ACEOF
  5646. cat confdefs.h >>conftest.$ac_ext
  5647. cat >>conftest.$ac_ext <<_ACEOF
  5648. /* end confdefs.h. */
  5649. $ac_includes_default
  5650. int
  5651. main ()
  5652. {
  5653. if ((size_t *) 0)
  5654. return 0;
  5655. if (sizeof (size_t))
  5656. return 0;
  5657. ;
  5658. return 0;
  5659. }
  5660. _ACEOF
  5661. rm -f conftest.$ac_objext
  5662. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5663. (eval $ac_compile) 2>conftest.er1
  5664. ac_status=$?
  5665. grep -v '^ *+' conftest.er1 >conftest.err
  5666. rm -f conftest.er1
  5667. cat conftest.err >&5
  5668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5669. (exit $ac_status); } &&
  5670. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5671. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5672. (eval $ac_try) 2>&5
  5673. ac_status=$?
  5674. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5675. (exit $ac_status); }; } &&
  5676. { ac_try='test -s conftest.$ac_objext'
  5677. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5678. (eval $ac_try) 2>&5
  5679. ac_status=$?
  5680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5681. (exit $ac_status); }; }; then
  5682. ac_cv_type_size_t=yes
  5683. else
  5684. echo "$as_me: failed program was:" >&5
  5685. sed 's/^/| /' conftest.$ac_ext >&5
  5686. ac_cv_type_size_t=no
  5687. fi
  5688. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5689. fi
  5690. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5691. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5692. if test $ac_cv_type_size_t = yes; then
  5693. :
  5694. else
  5695. cat >>confdefs.h <<_ACEOF
  5696. #define size_t unsigned
  5697. _ACEOF
  5698. fi
  5699. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5700. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5701. if test "${ac_cv_type_uid_t+set}" = set; then
  5702. echo $ECHO_N "(cached) $ECHO_C" >&6
  5703. else
  5704. cat >conftest.$ac_ext <<_ACEOF
  5705. /* confdefs.h. */
  5706. _ACEOF
  5707. cat confdefs.h >>conftest.$ac_ext
  5708. cat >>conftest.$ac_ext <<_ACEOF
  5709. /* end confdefs.h. */
  5710. #include <sys/types.h>
  5711. _ACEOF
  5712. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5713. $EGREP "uid_t" >/dev/null 2>&1; then
  5714. ac_cv_type_uid_t=yes
  5715. else
  5716. ac_cv_type_uid_t=no
  5717. fi
  5718. rm -f conftest*
  5719. fi
  5720. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5721. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5722. if test $ac_cv_type_uid_t = no; then
  5723. cat >>confdefs.h <<\_ACEOF
  5724. #define uid_t int
  5725. _ACEOF
  5726. cat >>confdefs.h <<\_ACEOF
  5727. #define gid_t int
  5728. _ACEOF
  5729. fi
  5730. echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  5731. echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  5732. if test "${ac_cv_c_const+set}" = set; then
  5733. echo $ECHO_N "(cached) $ECHO_C" >&6
  5734. else
  5735. cat >conftest.$ac_ext <<_ACEOF
  5736. /* confdefs.h. */
  5737. _ACEOF
  5738. cat confdefs.h >>conftest.$ac_ext
  5739. cat >>conftest.$ac_ext <<_ACEOF
  5740. /* end confdefs.h. */
  5741. int
  5742. main ()
  5743. {
  5744. /* FIXME: Include the comments suggested by Paul. */
  5745. #ifndef __cplusplus
  5746. /* Ultrix mips cc rejects this. */
  5747. typedef int charset[2];
  5748. const charset x;
  5749. /* SunOS 4.1.1 cc rejects this. */
  5750. char const *const *ccp;
  5751. char **p;
  5752. /* NEC SVR4.0.2 mips cc rejects this. */
  5753. struct point {int x, y;};
  5754. static struct point const zero = {0,0};
  5755. /* AIX XL C 1.02.0.0 rejects this.
  5756. It does not let you subtract one const X* pointer from another in
  5757. an arm of an if-expression whose if-part is not a constant
  5758. expression */
  5759. const char *g = "string";
  5760. ccp = &g + (g ? g-g : 0);
  5761. /* HPUX 7.0 cc rejects these. */
  5762. ++ccp;
  5763. p = (char**) ccp;
  5764. ccp = (char const *const *) p;
  5765. { /* SCO 3.2v4 cc rejects this. */
  5766. char *t;
  5767. char const *s = 0 ? (char *) 0 : (char const *) 0;
  5768. *t++ = 0;
  5769. }
  5770. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  5771. int x[] = {25, 17};
  5772. const int *foo = &x[0];
  5773. ++foo;
  5774. }
  5775. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  5776. typedef const int *iptr;
  5777. iptr p = 0;
  5778. ++p;
  5779. }
  5780. { /* AIX XL C 1.02.0.0 rejects this saying
  5781. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  5782. struct s { int j; const int *ap[3]; };
  5783. struct s *b; b->j = 5;
  5784. }
  5785. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  5786. const int foo = 10;
  5787. }
  5788. #endif
  5789. ;
  5790. return 0;
  5791. }
  5792. _ACEOF
  5793. rm -f conftest.$ac_objext
  5794. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5795. (eval $ac_compile) 2>conftest.er1
  5796. ac_status=$?
  5797. grep -v '^ *+' conftest.er1 >conftest.err
  5798. rm -f conftest.er1
  5799. cat conftest.err >&5
  5800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5801. (exit $ac_status); } &&
  5802. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5804. (eval $ac_try) 2>&5
  5805. ac_status=$?
  5806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5807. (exit $ac_status); }; } &&
  5808. { ac_try='test -s conftest.$ac_objext'
  5809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5810. (eval $ac_try) 2>&5
  5811. ac_status=$?
  5812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5813. (exit $ac_status); }; }; then
  5814. ac_cv_c_const=yes
  5815. else
  5816. echo "$as_me: failed program was:" >&5
  5817. sed 's/^/| /' conftest.$ac_ext >&5
  5818. ac_cv_c_const=no
  5819. fi
  5820. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5821. fi
  5822. echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  5823. echo "${ECHO_T}$ac_cv_c_const" >&6
  5824. if test $ac_cv_c_const = no; then
  5825. cat >>confdefs.h <<\_ACEOF
  5826. #define const
  5827. _ACEOF
  5828. fi
  5829. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5830. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5831. if test "${ac_cv_c_bigendian+set}" = set; then
  5832. echo $ECHO_N "(cached) $ECHO_C" >&6
  5833. else
  5834. # See if sys/param.h defines the BYTE_ORDER macro.
  5835. cat >conftest.$ac_ext <<_ACEOF
  5836. /* confdefs.h. */
  5837. _ACEOF
  5838. cat confdefs.h >>conftest.$ac_ext
  5839. cat >>conftest.$ac_ext <<_ACEOF
  5840. /* end confdefs.h. */
  5841. #include <sys/types.h>
  5842. #include <sys/param.h>
  5843. int
  5844. main ()
  5845. {
  5846. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5847. bogus endian macros
  5848. #endif
  5849. ;
  5850. return 0;
  5851. }
  5852. _ACEOF
  5853. rm -f conftest.$ac_objext
  5854. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5855. (eval $ac_compile) 2>conftest.er1
  5856. ac_status=$?
  5857. grep -v '^ *+' conftest.er1 >conftest.err
  5858. rm -f conftest.er1
  5859. cat conftest.err >&5
  5860. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5861. (exit $ac_status); } &&
  5862. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5863. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5864. (eval $ac_try) 2>&5
  5865. ac_status=$?
  5866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5867. (exit $ac_status); }; } &&
  5868. { ac_try='test -s conftest.$ac_objext'
  5869. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5870. (eval $ac_try) 2>&5
  5871. ac_status=$?
  5872. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5873. (exit $ac_status); }; }; then
  5874. # It does; now see whether it defined to BIG_ENDIAN or not.
  5875. cat >conftest.$ac_ext <<_ACEOF
  5876. /* confdefs.h. */
  5877. _ACEOF
  5878. cat confdefs.h >>conftest.$ac_ext
  5879. cat >>conftest.$ac_ext <<_ACEOF
  5880. /* end confdefs.h. */
  5881. #include <sys/types.h>
  5882. #include <sys/param.h>
  5883. int
  5884. main ()
  5885. {
  5886. #if BYTE_ORDER != BIG_ENDIAN
  5887. not big endian
  5888. #endif
  5889. ;
  5890. return 0;
  5891. }
  5892. _ACEOF
  5893. rm -f conftest.$ac_objext
  5894. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5895. (eval $ac_compile) 2>conftest.er1
  5896. ac_status=$?
  5897. grep -v '^ *+' conftest.er1 >conftest.err
  5898. rm -f conftest.er1
  5899. cat conftest.err >&5
  5900. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5901. (exit $ac_status); } &&
  5902. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5903. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5904. (eval $ac_try) 2>&5
  5905. ac_status=$?
  5906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5907. (exit $ac_status); }; } &&
  5908. { ac_try='test -s conftest.$ac_objext'
  5909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5910. (eval $ac_try) 2>&5
  5911. ac_status=$?
  5912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5913. (exit $ac_status); }; }; then
  5914. ac_cv_c_bigendian=yes
  5915. else
  5916. echo "$as_me: failed program was:" >&5
  5917. sed 's/^/| /' conftest.$ac_ext >&5
  5918. ac_cv_c_bigendian=no
  5919. fi
  5920. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5921. else
  5922. echo "$as_me: failed program was:" >&5
  5923. sed 's/^/| /' conftest.$ac_ext >&5
  5924. # It does not; compile a test program.
  5925. if test "$cross_compiling" = yes; then
  5926. # try to guess the endianness by grepping values into an object file
  5927. ac_cv_c_bigendian=unknown
  5928. cat >conftest.$ac_ext <<_ACEOF
  5929. /* confdefs.h. */
  5930. _ACEOF
  5931. cat confdefs.h >>conftest.$ac_ext
  5932. cat >>conftest.$ac_ext <<_ACEOF
  5933. /* end confdefs.h. */
  5934. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5935. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5936. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5937. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5938. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5939. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5940. int
  5941. main ()
  5942. {
  5943. _ascii (); _ebcdic ();
  5944. ;
  5945. return 0;
  5946. }
  5947. _ACEOF
  5948. rm -f conftest.$ac_objext
  5949. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5950. (eval $ac_compile) 2>conftest.er1
  5951. ac_status=$?
  5952. grep -v '^ *+' conftest.er1 >conftest.err
  5953. rm -f conftest.er1
  5954. cat conftest.err >&5
  5955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5956. (exit $ac_status); } &&
  5957. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  5958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5959. (eval $ac_try) 2>&5
  5960. ac_status=$?
  5961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5962. (exit $ac_status); }; } &&
  5963. { ac_try='test -s conftest.$ac_objext'
  5964. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5965. (eval $ac_try) 2>&5
  5966. ac_status=$?
  5967. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5968. (exit $ac_status); }; }; then
  5969. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5970. ac_cv_c_bigendian=yes
  5971. fi
  5972. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5973. if test "$ac_cv_c_bigendian" = unknown; then
  5974. ac_cv_c_bigendian=no
  5975. else
  5976. # finding both strings is unlikely to happen, but who knows?
  5977. ac_cv_c_bigendian=unknown
  5978. fi
  5979. fi
  5980. else
  5981. echo "$as_me: failed program was:" >&5
  5982. sed 's/^/| /' conftest.$ac_ext >&5
  5983. fi
  5984. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5985. else
  5986. cat >conftest.$ac_ext <<_ACEOF
  5987. /* confdefs.h. */
  5988. _ACEOF
  5989. cat confdefs.h >>conftest.$ac_ext
  5990. cat >>conftest.$ac_ext <<_ACEOF
  5991. /* end confdefs.h. */
  5992. int
  5993. main ()
  5994. {
  5995. /* Are we little or big endian? From Harbison&Steele. */
  5996. union
  5997. {
  5998. long l;
  5999. char c[sizeof (long)];
  6000. } u;
  6001. u.l = 1;
  6002. exit (u.c[sizeof (long) - 1] == 1);
  6003. }
  6004. _ACEOF
  6005. rm -f conftest$ac_exeext
  6006. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6007. (eval $ac_link) 2>&5
  6008. ac_status=$?
  6009. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6010. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6012. (eval $ac_try) 2>&5
  6013. ac_status=$?
  6014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6015. (exit $ac_status); }; }; then
  6016. ac_cv_c_bigendian=no
  6017. else
  6018. echo "$as_me: program exited with status $ac_status" >&5
  6019. echo "$as_me: failed program was:" >&5
  6020. sed 's/^/| /' conftest.$ac_ext >&5
  6021. ( exit $ac_status )
  6022. ac_cv_c_bigendian=yes
  6023. fi
  6024. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6025. fi
  6026. fi
  6027. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6028. fi
  6029. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  6030. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  6031. case $ac_cv_c_bigendian in
  6032. yes)
  6033. cat >>confdefs.h <<\_ACEOF
  6034. #define WORDS_BIGENDIAN 1
  6035. _ACEOF
  6036. ;;
  6037. no)
  6038. ;;
  6039. *)
  6040. { { echo "$as_me:$LINENO: error: unknown endianness
  6041. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  6042. echo "$as_me: error: unknown endianness
  6043. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  6044. { (exit 1); exit 1; }; } ;;
  6045. esac
  6046. echo "$as_me:$LINENO: checking for inline" >&5
  6047. echo $ECHO_N "checking for inline... $ECHO_C" >&6
  6048. if test "${ac_cv_c_inline+set}" = set; then
  6049. echo $ECHO_N "(cached) $ECHO_C" >&6
  6050. else
  6051. ac_cv_c_inline=no
  6052. for ac_kw in inline __inline__ __inline; do
  6053. cat >conftest.$ac_ext <<_ACEOF
  6054. /* confdefs.h. */
  6055. _ACEOF
  6056. cat confdefs.h >>conftest.$ac_ext
  6057. cat >>conftest.$ac_ext <<_ACEOF
  6058. /* end confdefs.h. */
  6059. #ifndef __cplusplus
  6060. typedef int foo_t;
  6061. static $ac_kw foo_t static_foo () {return 0; }
  6062. $ac_kw foo_t foo () {return 0; }
  6063. #endif
  6064. _ACEOF
  6065. rm -f conftest.$ac_objext
  6066. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6067. (eval $ac_compile) 2>conftest.er1
  6068. ac_status=$?
  6069. grep -v '^ *+' conftest.er1 >conftest.err
  6070. rm -f conftest.er1
  6071. cat conftest.err >&5
  6072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6073. (exit $ac_status); } &&
  6074. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6076. (eval $ac_try) 2>&5
  6077. ac_status=$?
  6078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6079. (exit $ac_status); }; } &&
  6080. { ac_try='test -s conftest.$ac_objext'
  6081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6082. (eval $ac_try) 2>&5
  6083. ac_status=$?
  6084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6085. (exit $ac_status); }; }; then
  6086. ac_cv_c_inline=$ac_kw; break
  6087. else
  6088. echo "$as_me: failed program was:" >&5
  6089. sed 's/^/| /' conftest.$ac_ext >&5
  6090. fi
  6091. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6092. done
  6093. fi
  6094. echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
  6095. echo "${ECHO_T}$ac_cv_c_inline" >&6
  6096. case $ac_cv_c_inline in
  6097. inline | yes) ;;
  6098. *)
  6099. case $ac_cv_c_inline in
  6100. no) ac_val=;;
  6101. *) ac_val=$ac_cv_c_inline;;
  6102. esac
  6103. cat >>confdefs.h <<_ACEOF
  6104. #ifndef __cplusplus
  6105. #define inline $ac_val
  6106. #endif
  6107. _ACEOF
  6108. ;;
  6109. esac
  6110. echo "$as_me:$LINENO: checking for long" >&5
  6111. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6112. if test "${ac_cv_type_long+set}" = set; then
  6113. echo $ECHO_N "(cached) $ECHO_C" >&6
  6114. else
  6115. cat >conftest.$ac_ext <<_ACEOF
  6116. /* confdefs.h. */
  6117. _ACEOF
  6118. cat confdefs.h >>conftest.$ac_ext
  6119. cat >>conftest.$ac_ext <<_ACEOF
  6120. /* end confdefs.h. */
  6121. $ac_includes_default
  6122. int
  6123. main ()
  6124. {
  6125. if ((long *) 0)
  6126. return 0;
  6127. if (sizeof (long))
  6128. return 0;
  6129. ;
  6130. return 0;
  6131. }
  6132. _ACEOF
  6133. rm -f conftest.$ac_objext
  6134. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6135. (eval $ac_compile) 2>conftest.er1
  6136. ac_status=$?
  6137. grep -v '^ *+' conftest.er1 >conftest.err
  6138. rm -f conftest.er1
  6139. cat conftest.err >&5
  6140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6141. (exit $ac_status); } &&
  6142. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6143. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6144. (eval $ac_try) 2>&5
  6145. ac_status=$?
  6146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6147. (exit $ac_status); }; } &&
  6148. { ac_try='test -s conftest.$ac_objext'
  6149. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6150. (eval $ac_try) 2>&5
  6151. ac_status=$?
  6152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6153. (exit $ac_status); }; }; then
  6154. ac_cv_type_long=yes
  6155. else
  6156. echo "$as_me: failed program was:" >&5
  6157. sed 's/^/| /' conftest.$ac_ext >&5
  6158. ac_cv_type_long=no
  6159. fi
  6160. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6161. fi
  6162. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6163. echo "${ECHO_T}$ac_cv_type_long" >&6
  6164. echo "$as_me:$LINENO: checking size of long" >&5
  6165. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6166. if test "${ac_cv_sizeof_long+set}" = set; then
  6167. echo $ECHO_N "(cached) $ECHO_C" >&6
  6168. else
  6169. if test "$ac_cv_type_long" = yes; then
  6170. # The cast to unsigned long works around a bug in the HP C Compiler
  6171. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6172. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6173. # This bug is HP SR number 8606223364.
  6174. if test "$cross_compiling" = yes; then
  6175. # Depending upon the size, compute the lo and hi bounds.
  6176. cat >conftest.$ac_ext <<_ACEOF
  6177. /* confdefs.h. */
  6178. _ACEOF
  6179. cat confdefs.h >>conftest.$ac_ext
  6180. cat >>conftest.$ac_ext <<_ACEOF
  6181. /* end confdefs.h. */
  6182. $ac_includes_default
  6183. int
  6184. main ()
  6185. {
  6186. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6187. test_array [0] = 0
  6188. ;
  6189. return 0;
  6190. }
  6191. _ACEOF
  6192. rm -f conftest.$ac_objext
  6193. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6194. (eval $ac_compile) 2>conftest.er1
  6195. ac_status=$?
  6196. grep -v '^ *+' conftest.er1 >conftest.err
  6197. rm -f conftest.er1
  6198. cat conftest.err >&5
  6199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6200. (exit $ac_status); } &&
  6201. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6203. (eval $ac_try) 2>&5
  6204. ac_status=$?
  6205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6206. (exit $ac_status); }; } &&
  6207. { ac_try='test -s conftest.$ac_objext'
  6208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6209. (eval $ac_try) 2>&5
  6210. ac_status=$?
  6211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6212. (exit $ac_status); }; }; then
  6213. ac_lo=0 ac_mid=0
  6214. while :; do
  6215. cat >conftest.$ac_ext <<_ACEOF
  6216. /* confdefs.h. */
  6217. _ACEOF
  6218. cat confdefs.h >>conftest.$ac_ext
  6219. cat >>conftest.$ac_ext <<_ACEOF
  6220. /* end confdefs.h. */
  6221. $ac_includes_default
  6222. int
  6223. main ()
  6224. {
  6225. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6226. test_array [0] = 0
  6227. ;
  6228. return 0;
  6229. }
  6230. _ACEOF
  6231. rm -f conftest.$ac_objext
  6232. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6233. (eval $ac_compile) 2>conftest.er1
  6234. ac_status=$?
  6235. grep -v '^ *+' conftest.er1 >conftest.err
  6236. rm -f conftest.er1
  6237. cat conftest.err >&5
  6238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6239. (exit $ac_status); } &&
  6240. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6242. (eval $ac_try) 2>&5
  6243. ac_status=$?
  6244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6245. (exit $ac_status); }; } &&
  6246. { ac_try='test -s conftest.$ac_objext'
  6247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6248. (eval $ac_try) 2>&5
  6249. ac_status=$?
  6250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6251. (exit $ac_status); }; }; then
  6252. ac_hi=$ac_mid; break
  6253. else
  6254. echo "$as_me: failed program was:" >&5
  6255. sed 's/^/| /' conftest.$ac_ext >&5
  6256. ac_lo=`expr $ac_mid + 1`
  6257. if test $ac_lo -le $ac_mid; then
  6258. ac_lo= ac_hi=
  6259. break
  6260. fi
  6261. ac_mid=`expr 2 '*' $ac_mid + 1`
  6262. fi
  6263. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6264. done
  6265. else
  6266. echo "$as_me: failed program was:" >&5
  6267. sed 's/^/| /' conftest.$ac_ext >&5
  6268. cat >conftest.$ac_ext <<_ACEOF
  6269. /* confdefs.h. */
  6270. _ACEOF
  6271. cat confdefs.h >>conftest.$ac_ext
  6272. cat >>conftest.$ac_ext <<_ACEOF
  6273. /* end confdefs.h. */
  6274. $ac_includes_default
  6275. int
  6276. main ()
  6277. {
  6278. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6279. test_array [0] = 0
  6280. ;
  6281. return 0;
  6282. }
  6283. _ACEOF
  6284. rm -f conftest.$ac_objext
  6285. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6286. (eval $ac_compile) 2>conftest.er1
  6287. ac_status=$?
  6288. grep -v '^ *+' conftest.er1 >conftest.err
  6289. rm -f conftest.er1
  6290. cat conftest.err >&5
  6291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6292. (exit $ac_status); } &&
  6293. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6295. (eval $ac_try) 2>&5
  6296. ac_status=$?
  6297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6298. (exit $ac_status); }; } &&
  6299. { ac_try='test -s conftest.$ac_objext'
  6300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6301. (eval $ac_try) 2>&5
  6302. ac_status=$?
  6303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6304. (exit $ac_status); }; }; then
  6305. ac_hi=-1 ac_mid=-1
  6306. while :; do
  6307. cat >conftest.$ac_ext <<_ACEOF
  6308. /* confdefs.h. */
  6309. _ACEOF
  6310. cat confdefs.h >>conftest.$ac_ext
  6311. cat >>conftest.$ac_ext <<_ACEOF
  6312. /* end confdefs.h. */
  6313. $ac_includes_default
  6314. int
  6315. main ()
  6316. {
  6317. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6318. test_array [0] = 0
  6319. ;
  6320. return 0;
  6321. }
  6322. _ACEOF
  6323. rm -f conftest.$ac_objext
  6324. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6325. (eval $ac_compile) 2>conftest.er1
  6326. ac_status=$?
  6327. grep -v '^ *+' conftest.er1 >conftest.err
  6328. rm -f conftest.er1
  6329. cat conftest.err >&5
  6330. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6331. (exit $ac_status); } &&
  6332. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6333. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6334. (eval $ac_try) 2>&5
  6335. ac_status=$?
  6336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6337. (exit $ac_status); }; } &&
  6338. { ac_try='test -s conftest.$ac_objext'
  6339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6340. (eval $ac_try) 2>&5
  6341. ac_status=$?
  6342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6343. (exit $ac_status); }; }; then
  6344. ac_lo=$ac_mid; break
  6345. else
  6346. echo "$as_me: failed program was:" >&5
  6347. sed 's/^/| /' conftest.$ac_ext >&5
  6348. ac_hi=`expr '(' $ac_mid ')' - 1`
  6349. if test $ac_mid -le $ac_hi; then
  6350. ac_lo= ac_hi=
  6351. break
  6352. fi
  6353. ac_mid=`expr 2 '*' $ac_mid`
  6354. fi
  6355. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6356. done
  6357. else
  6358. echo "$as_me: failed program was:" >&5
  6359. sed 's/^/| /' conftest.$ac_ext >&5
  6360. ac_lo= ac_hi=
  6361. fi
  6362. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6363. fi
  6364. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6365. # Binary search between lo and hi bounds.
  6366. while test "x$ac_lo" != "x$ac_hi"; do
  6367. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6368. cat >conftest.$ac_ext <<_ACEOF
  6369. /* confdefs.h. */
  6370. _ACEOF
  6371. cat confdefs.h >>conftest.$ac_ext
  6372. cat >>conftest.$ac_ext <<_ACEOF
  6373. /* end confdefs.h. */
  6374. $ac_includes_default
  6375. int
  6376. main ()
  6377. {
  6378. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6379. test_array [0] = 0
  6380. ;
  6381. return 0;
  6382. }
  6383. _ACEOF
  6384. rm -f conftest.$ac_objext
  6385. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6386. (eval $ac_compile) 2>conftest.er1
  6387. ac_status=$?
  6388. grep -v '^ *+' conftest.er1 >conftest.err
  6389. rm -f conftest.er1
  6390. cat conftest.err >&5
  6391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6392. (exit $ac_status); } &&
  6393. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6395. (eval $ac_try) 2>&5
  6396. ac_status=$?
  6397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6398. (exit $ac_status); }; } &&
  6399. { ac_try='test -s conftest.$ac_objext'
  6400. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6401. (eval $ac_try) 2>&5
  6402. ac_status=$?
  6403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6404. (exit $ac_status); }; }; then
  6405. ac_hi=$ac_mid
  6406. else
  6407. echo "$as_me: failed program was:" >&5
  6408. sed 's/^/| /' conftest.$ac_ext >&5
  6409. ac_lo=`expr '(' $ac_mid ')' + 1`
  6410. fi
  6411. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6412. done
  6413. case $ac_lo in
  6414. ?*) ac_cv_sizeof_long=$ac_lo;;
  6415. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6416. See \`config.log' for more details." >&5
  6417. echo "$as_me: error: cannot compute sizeof (long), 77
  6418. See \`config.log' for more details." >&2;}
  6419. { (exit 1); exit 1; }; } ;;
  6420. esac
  6421. else
  6422. if test "$cross_compiling" = yes; then
  6423. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6424. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6425. { (exit 1); exit 1; }; }
  6426. else
  6427. cat >conftest.$ac_ext <<_ACEOF
  6428. /* confdefs.h. */
  6429. _ACEOF
  6430. cat confdefs.h >>conftest.$ac_ext
  6431. cat >>conftest.$ac_ext <<_ACEOF
  6432. /* end confdefs.h. */
  6433. $ac_includes_default
  6434. long longval () { return (long) (sizeof (long)); }
  6435. unsigned long ulongval () { return (long) (sizeof (long)); }
  6436. #include <stdio.h>
  6437. #include <stdlib.h>
  6438. int
  6439. main ()
  6440. {
  6441. FILE *f = fopen ("conftest.val", "w");
  6442. if (! f)
  6443. exit (1);
  6444. if (((long) (sizeof (long))) < 0)
  6445. {
  6446. long i = longval ();
  6447. if (i != ((long) (sizeof (long))))
  6448. exit (1);
  6449. fprintf (f, "%ld\n", i);
  6450. }
  6451. else
  6452. {
  6453. unsigned long i = ulongval ();
  6454. if (i != ((long) (sizeof (long))))
  6455. exit (1);
  6456. fprintf (f, "%lu\n", i);
  6457. }
  6458. exit (ferror (f) || fclose (f) != 0);
  6459. ;
  6460. return 0;
  6461. }
  6462. _ACEOF
  6463. rm -f conftest$ac_exeext
  6464. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6465. (eval $ac_link) 2>&5
  6466. ac_status=$?
  6467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6468. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6470. (eval $ac_try) 2>&5
  6471. ac_status=$?
  6472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6473. (exit $ac_status); }; }; then
  6474. ac_cv_sizeof_long=`cat conftest.val`
  6475. else
  6476. echo "$as_me: program exited with status $ac_status" >&5
  6477. echo "$as_me: failed program was:" >&5
  6478. sed 's/^/| /' conftest.$ac_ext >&5
  6479. ( exit $ac_status )
  6480. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6481. See \`config.log' for more details." >&5
  6482. echo "$as_me: error: cannot compute sizeof (long), 77
  6483. See \`config.log' for more details." >&2;}
  6484. { (exit 1); exit 1; }; }
  6485. fi
  6486. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6487. fi
  6488. fi
  6489. rm -f conftest.val
  6490. else
  6491. ac_cv_sizeof_long=0
  6492. fi
  6493. fi
  6494. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6495. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6496. cat >>confdefs.h <<_ACEOF
  6497. #define SIZEOF_LONG $ac_cv_sizeof_long
  6498. _ACEOF
  6499. echo "$as_me:$LINENO: checking for int" >&5
  6500. echo $ECHO_N "checking for int... $ECHO_C" >&6
  6501. if test "${ac_cv_type_int+set}" = set; then
  6502. echo $ECHO_N "(cached) $ECHO_C" >&6
  6503. else
  6504. cat >conftest.$ac_ext <<_ACEOF
  6505. /* confdefs.h. */
  6506. _ACEOF
  6507. cat confdefs.h >>conftest.$ac_ext
  6508. cat >>conftest.$ac_ext <<_ACEOF
  6509. /* end confdefs.h. */
  6510. $ac_includes_default
  6511. int
  6512. main ()
  6513. {
  6514. if ((int *) 0)
  6515. return 0;
  6516. if (sizeof (int))
  6517. return 0;
  6518. ;
  6519. return 0;
  6520. }
  6521. _ACEOF
  6522. rm -f conftest.$ac_objext
  6523. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6524. (eval $ac_compile) 2>conftest.er1
  6525. ac_status=$?
  6526. grep -v '^ *+' conftest.er1 >conftest.err
  6527. rm -f conftest.er1
  6528. cat conftest.err >&5
  6529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6530. (exit $ac_status); } &&
  6531. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6532. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6533. (eval $ac_try) 2>&5
  6534. ac_status=$?
  6535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6536. (exit $ac_status); }; } &&
  6537. { ac_try='test -s conftest.$ac_objext'
  6538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6539. (eval $ac_try) 2>&5
  6540. ac_status=$?
  6541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6542. (exit $ac_status); }; }; then
  6543. ac_cv_type_int=yes
  6544. else
  6545. echo "$as_me: failed program was:" >&5
  6546. sed 's/^/| /' conftest.$ac_ext >&5
  6547. ac_cv_type_int=no
  6548. fi
  6549. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6550. fi
  6551. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  6552. echo "${ECHO_T}$ac_cv_type_int" >&6
  6553. echo "$as_me:$LINENO: checking size of int" >&5
  6554. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  6555. if test "${ac_cv_sizeof_int+set}" = set; then
  6556. echo $ECHO_N "(cached) $ECHO_C" >&6
  6557. else
  6558. if test "$ac_cv_type_int" = yes; then
  6559. # The cast to unsigned long works around a bug in the HP C Compiler
  6560. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6561. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6562. # This bug is HP SR number 8606223364.
  6563. if test "$cross_compiling" = yes; then
  6564. # Depending upon the size, compute the lo and hi bounds.
  6565. cat >conftest.$ac_ext <<_ACEOF
  6566. /* confdefs.h. */
  6567. _ACEOF
  6568. cat confdefs.h >>conftest.$ac_ext
  6569. cat >>conftest.$ac_ext <<_ACEOF
  6570. /* end confdefs.h. */
  6571. $ac_includes_default
  6572. int
  6573. main ()
  6574. {
  6575. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  6576. test_array [0] = 0
  6577. ;
  6578. return 0;
  6579. }
  6580. _ACEOF
  6581. rm -f conftest.$ac_objext
  6582. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6583. (eval $ac_compile) 2>conftest.er1
  6584. ac_status=$?
  6585. grep -v '^ *+' conftest.er1 >conftest.err
  6586. rm -f conftest.er1
  6587. cat conftest.err >&5
  6588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6589. (exit $ac_status); } &&
  6590. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6592. (eval $ac_try) 2>&5
  6593. ac_status=$?
  6594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6595. (exit $ac_status); }; } &&
  6596. { ac_try='test -s conftest.$ac_objext'
  6597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6598. (eval $ac_try) 2>&5
  6599. ac_status=$?
  6600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6601. (exit $ac_status); }; }; then
  6602. ac_lo=0 ac_mid=0
  6603. while :; do
  6604. cat >conftest.$ac_ext <<_ACEOF
  6605. /* confdefs.h. */
  6606. _ACEOF
  6607. cat confdefs.h >>conftest.$ac_ext
  6608. cat >>conftest.$ac_ext <<_ACEOF
  6609. /* end confdefs.h. */
  6610. $ac_includes_default
  6611. int
  6612. main ()
  6613. {
  6614. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6615. test_array [0] = 0
  6616. ;
  6617. return 0;
  6618. }
  6619. _ACEOF
  6620. rm -f conftest.$ac_objext
  6621. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6622. (eval $ac_compile) 2>conftest.er1
  6623. ac_status=$?
  6624. grep -v '^ *+' conftest.er1 >conftest.err
  6625. rm -f conftest.er1
  6626. cat conftest.err >&5
  6627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6628. (exit $ac_status); } &&
  6629. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6631. (eval $ac_try) 2>&5
  6632. ac_status=$?
  6633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6634. (exit $ac_status); }; } &&
  6635. { ac_try='test -s conftest.$ac_objext'
  6636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6637. (eval $ac_try) 2>&5
  6638. ac_status=$?
  6639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6640. (exit $ac_status); }; }; then
  6641. ac_hi=$ac_mid; break
  6642. else
  6643. echo "$as_me: failed program was:" >&5
  6644. sed 's/^/| /' conftest.$ac_ext >&5
  6645. ac_lo=`expr $ac_mid + 1`
  6646. if test $ac_lo -le $ac_mid; then
  6647. ac_lo= ac_hi=
  6648. break
  6649. fi
  6650. ac_mid=`expr 2 '*' $ac_mid + 1`
  6651. fi
  6652. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6653. done
  6654. else
  6655. echo "$as_me: failed program was:" >&5
  6656. sed 's/^/| /' conftest.$ac_ext >&5
  6657. cat >conftest.$ac_ext <<_ACEOF
  6658. /* confdefs.h. */
  6659. _ACEOF
  6660. cat confdefs.h >>conftest.$ac_ext
  6661. cat >>conftest.$ac_ext <<_ACEOF
  6662. /* end confdefs.h. */
  6663. $ac_includes_default
  6664. int
  6665. main ()
  6666. {
  6667. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6668. test_array [0] = 0
  6669. ;
  6670. return 0;
  6671. }
  6672. _ACEOF
  6673. rm -f conftest.$ac_objext
  6674. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6675. (eval $ac_compile) 2>conftest.er1
  6676. ac_status=$?
  6677. grep -v '^ *+' conftest.er1 >conftest.err
  6678. rm -f conftest.er1
  6679. cat conftest.err >&5
  6680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6681. (exit $ac_status); } &&
  6682. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6683. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6684. (eval $ac_try) 2>&5
  6685. ac_status=$?
  6686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6687. (exit $ac_status); }; } &&
  6688. { ac_try='test -s conftest.$ac_objext'
  6689. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6690. (eval $ac_try) 2>&5
  6691. ac_status=$?
  6692. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6693. (exit $ac_status); }; }; then
  6694. ac_hi=-1 ac_mid=-1
  6695. while :; do
  6696. cat >conftest.$ac_ext <<_ACEOF
  6697. /* confdefs.h. */
  6698. _ACEOF
  6699. cat confdefs.h >>conftest.$ac_ext
  6700. cat >>conftest.$ac_ext <<_ACEOF
  6701. /* end confdefs.h. */
  6702. $ac_includes_default
  6703. int
  6704. main ()
  6705. {
  6706. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6707. test_array [0] = 0
  6708. ;
  6709. return 0;
  6710. }
  6711. _ACEOF
  6712. rm -f conftest.$ac_objext
  6713. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6714. (eval $ac_compile) 2>conftest.er1
  6715. ac_status=$?
  6716. grep -v '^ *+' conftest.er1 >conftest.err
  6717. rm -f conftest.er1
  6718. cat conftest.err >&5
  6719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6720. (exit $ac_status); } &&
  6721. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6723. (eval $ac_try) 2>&5
  6724. ac_status=$?
  6725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6726. (exit $ac_status); }; } &&
  6727. { ac_try='test -s conftest.$ac_objext'
  6728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6729. (eval $ac_try) 2>&5
  6730. ac_status=$?
  6731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6732. (exit $ac_status); }; }; then
  6733. ac_lo=$ac_mid; break
  6734. else
  6735. echo "$as_me: failed program was:" >&5
  6736. sed 's/^/| /' conftest.$ac_ext >&5
  6737. ac_hi=`expr '(' $ac_mid ')' - 1`
  6738. if test $ac_mid -le $ac_hi; then
  6739. ac_lo= ac_hi=
  6740. break
  6741. fi
  6742. ac_mid=`expr 2 '*' $ac_mid`
  6743. fi
  6744. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6745. done
  6746. else
  6747. echo "$as_me: failed program was:" >&5
  6748. sed 's/^/| /' conftest.$ac_ext >&5
  6749. ac_lo= ac_hi=
  6750. fi
  6751. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6752. fi
  6753. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6754. # Binary search between lo and hi bounds.
  6755. while test "x$ac_lo" != "x$ac_hi"; do
  6756. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6757. cat >conftest.$ac_ext <<_ACEOF
  6758. /* confdefs.h. */
  6759. _ACEOF
  6760. cat confdefs.h >>conftest.$ac_ext
  6761. cat >>conftest.$ac_ext <<_ACEOF
  6762. /* end confdefs.h. */
  6763. $ac_includes_default
  6764. int
  6765. main ()
  6766. {
  6767. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6768. test_array [0] = 0
  6769. ;
  6770. return 0;
  6771. }
  6772. _ACEOF
  6773. rm -f conftest.$ac_objext
  6774. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6775. (eval $ac_compile) 2>conftest.er1
  6776. ac_status=$?
  6777. grep -v '^ *+' conftest.er1 >conftest.err
  6778. rm -f conftest.er1
  6779. cat conftest.err >&5
  6780. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6781. (exit $ac_status); } &&
  6782. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6783. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6784. (eval $ac_try) 2>&5
  6785. ac_status=$?
  6786. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6787. (exit $ac_status); }; } &&
  6788. { ac_try='test -s conftest.$ac_objext'
  6789. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6790. (eval $ac_try) 2>&5
  6791. ac_status=$?
  6792. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6793. (exit $ac_status); }; }; then
  6794. ac_hi=$ac_mid
  6795. else
  6796. echo "$as_me: failed program was:" >&5
  6797. sed 's/^/| /' conftest.$ac_ext >&5
  6798. ac_lo=`expr '(' $ac_mid ')' + 1`
  6799. fi
  6800. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6801. done
  6802. case $ac_lo in
  6803. ?*) ac_cv_sizeof_int=$ac_lo;;
  6804. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6805. See \`config.log' for more details." >&5
  6806. echo "$as_me: error: cannot compute sizeof (int), 77
  6807. See \`config.log' for more details." >&2;}
  6808. { (exit 1); exit 1; }; } ;;
  6809. esac
  6810. else
  6811. if test "$cross_compiling" = yes; then
  6812. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6813. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6814. { (exit 1); exit 1; }; }
  6815. else
  6816. cat >conftest.$ac_ext <<_ACEOF
  6817. /* confdefs.h. */
  6818. _ACEOF
  6819. cat confdefs.h >>conftest.$ac_ext
  6820. cat >>conftest.$ac_ext <<_ACEOF
  6821. /* end confdefs.h. */
  6822. $ac_includes_default
  6823. long longval () { return (long) (sizeof (int)); }
  6824. unsigned long ulongval () { return (long) (sizeof (int)); }
  6825. #include <stdio.h>
  6826. #include <stdlib.h>
  6827. int
  6828. main ()
  6829. {
  6830. FILE *f = fopen ("conftest.val", "w");
  6831. if (! f)
  6832. exit (1);
  6833. if (((long) (sizeof (int))) < 0)
  6834. {
  6835. long i = longval ();
  6836. if (i != ((long) (sizeof (int))))
  6837. exit (1);
  6838. fprintf (f, "%ld\n", i);
  6839. }
  6840. else
  6841. {
  6842. unsigned long i = ulongval ();
  6843. if (i != ((long) (sizeof (int))))
  6844. exit (1);
  6845. fprintf (f, "%lu\n", i);
  6846. }
  6847. exit (ferror (f) || fclose (f) != 0);
  6848. ;
  6849. return 0;
  6850. }
  6851. _ACEOF
  6852. rm -f conftest$ac_exeext
  6853. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6854. (eval $ac_link) 2>&5
  6855. ac_status=$?
  6856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6857. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6858. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6859. (eval $ac_try) 2>&5
  6860. ac_status=$?
  6861. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6862. (exit $ac_status); }; }; then
  6863. ac_cv_sizeof_int=`cat conftest.val`
  6864. else
  6865. echo "$as_me: program exited with status $ac_status" >&5
  6866. echo "$as_me: failed program was:" >&5
  6867. sed 's/^/| /' conftest.$ac_ext >&5
  6868. ( exit $ac_status )
  6869. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6870. See \`config.log' for more details." >&5
  6871. echo "$as_me: error: cannot compute sizeof (int), 77
  6872. See \`config.log' for more details." >&2;}
  6873. { (exit 1); exit 1; }; }
  6874. fi
  6875. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6876. fi
  6877. fi
  6878. rm -f conftest.val
  6879. else
  6880. ac_cv_sizeof_int=0
  6881. fi
  6882. fi
  6883. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6884. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6885. cat >>confdefs.h <<_ACEOF
  6886. #define SIZEOF_INT $ac_cv_sizeof_int
  6887. _ACEOF
  6888. #checkpoint
  6889. cat >confcache <<\_ACEOF
  6890. # This file is a shell script that caches the results of configure
  6891. # tests run on this system so they can be shared between configure
  6892. # scripts and configure runs, see configure's option --config-cache.
  6893. # It is not useful on other systems. If it contains results you don't
  6894. # want to keep, you may remove or edit it.
  6895. #
  6896. # config.status only pays attention to the cache file if you give it
  6897. # the --recheck option to rerun configure.
  6898. #
  6899. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6900. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6901. # following values.
  6902. _ACEOF
  6903. # The following way of writing the cache mishandles newlines in values,
  6904. # but we know of no workaround that is simple, portable, and efficient.
  6905. # So, don't put newlines in cache variables' values.
  6906. # Ultrix sh set writes to stderr and can't be redirected directly,
  6907. # and sets the high bit in the cache file unless we assign to the vars.
  6908. {
  6909. (set) 2>&1 |
  6910. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6911. *ac_space=\ *)
  6912. # `set' does not quote correctly, so add quotes (double-quote
  6913. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6914. sed -n \
  6915. "s/'/'\\\\''/g;
  6916. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6917. ;;
  6918. *)
  6919. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6920. sed -n \
  6921. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6922. ;;
  6923. esac;
  6924. } |
  6925. sed '
  6926. t clear
  6927. : clear
  6928. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6929. t end
  6930. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6931. : end' >>confcache
  6932. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6933. if test -w $cache_file; then
  6934. test "x$cache_file" != "x/dev/null"
  6935. cat confcache >$cache_file
  6936. else
  6937. echo "not updating unwritable cache $cache_file"
  6938. fi
  6939. fi
  6940. rm -f confcache
  6941. echo "$as_me:$LINENO: checking for working volatile" >&5
  6942. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  6943. if test "${ac_cv_c_volatile+set}" = set; then
  6944. echo $ECHO_N "(cached) $ECHO_C" >&6
  6945. else
  6946. cat >conftest.$ac_ext <<_ACEOF
  6947. /* confdefs.h. */
  6948. _ACEOF
  6949. cat confdefs.h >>conftest.$ac_ext
  6950. cat >>conftest.$ac_ext <<_ACEOF
  6951. /* end confdefs.h. */
  6952. int
  6953. main ()
  6954. {
  6955. volatile int x;
  6956. int * volatile y;
  6957. ;
  6958. return 0;
  6959. }
  6960. _ACEOF
  6961. rm -f conftest.$ac_objext
  6962. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6963. (eval $ac_compile) 2>conftest.er1
  6964. ac_status=$?
  6965. grep -v '^ *+' conftest.er1 >conftest.err
  6966. rm -f conftest.er1
  6967. cat conftest.err >&5
  6968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6969. (exit $ac_status); } &&
  6970. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  6971. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6972. (eval $ac_try) 2>&5
  6973. ac_status=$?
  6974. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6975. (exit $ac_status); }; } &&
  6976. { ac_try='test -s conftest.$ac_objext'
  6977. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6978. (eval $ac_try) 2>&5
  6979. ac_status=$?
  6980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6981. (exit $ac_status); }; }; then
  6982. ac_cv_c_volatile=yes
  6983. else
  6984. echo "$as_me: failed program was:" >&5
  6985. sed 's/^/| /' conftest.$ac_ext >&5
  6986. ac_cv_c_volatile=no
  6987. fi
  6988. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6989. fi
  6990. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  6991. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  6992. if test $ac_cv_c_volatile = no; then
  6993. cat >>confdefs.h <<\_ACEOF
  6994. #define volatile
  6995. _ACEOF
  6996. fi
  6997. if test $ac_cv_c_compiler_gnu = yes; then
  6998. echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  6999. echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  7000. if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  7001. echo $ECHO_N "(cached) $ECHO_C" >&6
  7002. else
  7003. ac_pattern="Autoconf.*'x'"
  7004. cat >conftest.$ac_ext <<_ACEOF
  7005. /* confdefs.h. */
  7006. _ACEOF
  7007. cat confdefs.h >>conftest.$ac_ext
  7008. cat >>conftest.$ac_ext <<_ACEOF
  7009. /* end confdefs.h. */
  7010. #include <sgtty.h>
  7011. Autoconf TIOCGETP
  7012. _ACEOF
  7013. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7014. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7015. ac_cv_prog_gcc_traditional=yes
  7016. else
  7017. ac_cv_prog_gcc_traditional=no
  7018. fi
  7019. rm -f conftest*
  7020. if test $ac_cv_prog_gcc_traditional = no; then
  7021. cat >conftest.$ac_ext <<_ACEOF
  7022. /* confdefs.h. */
  7023. _ACEOF
  7024. cat confdefs.h >>conftest.$ac_ext
  7025. cat >>conftest.$ac_ext <<_ACEOF
  7026. /* end confdefs.h. */
  7027. #include <termio.h>
  7028. Autoconf TCGETA
  7029. _ACEOF
  7030. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7031. $EGREP "$ac_pattern" >/dev/null 2>&1; then
  7032. ac_cv_prog_gcc_traditional=yes
  7033. fi
  7034. rm -f conftest*
  7035. fi
  7036. fi
  7037. echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  7038. echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  7039. if test $ac_cv_prog_gcc_traditional = yes; then
  7040. CC="$CC -traditional"
  7041. fi
  7042. fi
  7043. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7044. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7045. if test "${ac_cv_struct_tm+set}" = set; then
  7046. echo $ECHO_N "(cached) $ECHO_C" >&6
  7047. else
  7048. cat >conftest.$ac_ext <<_ACEOF
  7049. /* confdefs.h. */
  7050. _ACEOF
  7051. cat confdefs.h >>conftest.$ac_ext
  7052. cat >>conftest.$ac_ext <<_ACEOF
  7053. /* end confdefs.h. */
  7054. #include <sys/types.h>
  7055. #include <time.h>
  7056. int
  7057. main ()
  7058. {
  7059. struct tm *tp; tp->tm_sec;
  7060. ;
  7061. return 0;
  7062. }
  7063. _ACEOF
  7064. rm -f conftest.$ac_objext
  7065. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7066. (eval $ac_compile) 2>conftest.er1
  7067. ac_status=$?
  7068. grep -v '^ *+' conftest.er1 >conftest.err
  7069. rm -f conftest.er1
  7070. cat conftest.err >&5
  7071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7072. (exit $ac_status); } &&
  7073. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7074. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7075. (eval $ac_try) 2>&5
  7076. ac_status=$?
  7077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7078. (exit $ac_status); }; } &&
  7079. { ac_try='test -s conftest.$ac_objext'
  7080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7081. (eval $ac_try) 2>&5
  7082. ac_status=$?
  7083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7084. (exit $ac_status); }; }; then
  7085. ac_cv_struct_tm=time.h
  7086. else
  7087. echo "$as_me: failed program was:" >&5
  7088. sed 's/^/| /' conftest.$ac_ext >&5
  7089. ac_cv_struct_tm=sys/time.h
  7090. fi
  7091. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7092. fi
  7093. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7094. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7095. if test $ac_cv_struct_tm = sys/time.h; then
  7096. cat >>confdefs.h <<\_ACEOF
  7097. #define TM_IN_SYS_TIME 1
  7098. _ACEOF
  7099. fi
  7100. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7101. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7102. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7103. echo $ECHO_N "(cached) $ECHO_C" >&6
  7104. else
  7105. cat >conftest.$ac_ext <<_ACEOF
  7106. /* confdefs.h. */
  7107. _ACEOF
  7108. cat confdefs.h >>conftest.$ac_ext
  7109. cat >>conftest.$ac_ext <<_ACEOF
  7110. /* end confdefs.h. */
  7111. #include <sys/types.h>
  7112. #include <$ac_cv_struct_tm>
  7113. int
  7114. main ()
  7115. {
  7116. static struct tm ac_aggr;
  7117. if (ac_aggr.tm_zone)
  7118. return 0;
  7119. ;
  7120. return 0;
  7121. }
  7122. _ACEOF
  7123. rm -f conftest.$ac_objext
  7124. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7125. (eval $ac_compile) 2>conftest.er1
  7126. ac_status=$?
  7127. grep -v '^ *+' conftest.er1 >conftest.err
  7128. rm -f conftest.er1
  7129. cat conftest.err >&5
  7130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7131. (exit $ac_status); } &&
  7132. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7133. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7134. (eval $ac_try) 2>&5
  7135. ac_status=$?
  7136. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7137. (exit $ac_status); }; } &&
  7138. { ac_try='test -s conftest.$ac_objext'
  7139. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7140. (eval $ac_try) 2>&5
  7141. ac_status=$?
  7142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7143. (exit $ac_status); }; }; then
  7144. ac_cv_member_struct_tm_tm_zone=yes
  7145. else
  7146. echo "$as_me: failed program was:" >&5
  7147. sed 's/^/| /' conftest.$ac_ext >&5
  7148. cat >conftest.$ac_ext <<_ACEOF
  7149. /* confdefs.h. */
  7150. _ACEOF
  7151. cat confdefs.h >>conftest.$ac_ext
  7152. cat >>conftest.$ac_ext <<_ACEOF
  7153. /* end confdefs.h. */
  7154. #include <sys/types.h>
  7155. #include <$ac_cv_struct_tm>
  7156. int
  7157. main ()
  7158. {
  7159. static struct tm ac_aggr;
  7160. if (sizeof ac_aggr.tm_zone)
  7161. return 0;
  7162. ;
  7163. return 0;
  7164. }
  7165. _ACEOF
  7166. rm -f conftest.$ac_objext
  7167. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7168. (eval $ac_compile) 2>conftest.er1
  7169. ac_status=$?
  7170. grep -v '^ *+' conftest.er1 >conftest.err
  7171. rm -f conftest.er1
  7172. cat conftest.err >&5
  7173. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7174. (exit $ac_status); } &&
  7175. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7176. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7177. (eval $ac_try) 2>&5
  7178. ac_status=$?
  7179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7180. (exit $ac_status); }; } &&
  7181. { ac_try='test -s conftest.$ac_objext'
  7182. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7183. (eval $ac_try) 2>&5
  7184. ac_status=$?
  7185. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7186. (exit $ac_status); }; }; then
  7187. ac_cv_member_struct_tm_tm_zone=yes
  7188. else
  7189. echo "$as_me: failed program was:" >&5
  7190. sed 's/^/| /' conftest.$ac_ext >&5
  7191. ac_cv_member_struct_tm_tm_zone=no
  7192. fi
  7193. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7194. fi
  7195. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7196. fi
  7197. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7198. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7199. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7200. cat >>confdefs.h <<_ACEOF
  7201. #define HAVE_STRUCT_TM_TM_ZONE 1
  7202. _ACEOF
  7203. fi
  7204. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7205. cat >>confdefs.h <<\_ACEOF
  7206. #define HAVE_TM_ZONE 1
  7207. _ACEOF
  7208. else
  7209. echo "$as_me:$LINENO: checking for tzname" >&5
  7210. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7211. if test "${ac_cv_var_tzname+set}" = set; then
  7212. echo $ECHO_N "(cached) $ECHO_C" >&6
  7213. else
  7214. cat >conftest.$ac_ext <<_ACEOF
  7215. /* confdefs.h. */
  7216. _ACEOF
  7217. cat confdefs.h >>conftest.$ac_ext
  7218. cat >>conftest.$ac_ext <<_ACEOF
  7219. /* end confdefs.h. */
  7220. #include <time.h>
  7221. #ifndef tzname /* For SGI. */
  7222. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7223. #endif
  7224. int
  7225. main ()
  7226. {
  7227. atoi(*tzname);
  7228. ;
  7229. return 0;
  7230. }
  7231. _ACEOF
  7232. rm -f conftest.$ac_objext conftest$ac_exeext
  7233. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7234. (eval $ac_link) 2>conftest.er1
  7235. ac_status=$?
  7236. grep -v '^ *+' conftest.er1 >conftest.err
  7237. rm -f conftest.er1
  7238. cat conftest.err >&5
  7239. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7240. (exit $ac_status); } &&
  7241. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7242. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7243. (eval $ac_try) 2>&5
  7244. ac_status=$?
  7245. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7246. (exit $ac_status); }; } &&
  7247. { ac_try='test -s conftest$ac_exeext'
  7248. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7249. (eval $ac_try) 2>&5
  7250. ac_status=$?
  7251. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7252. (exit $ac_status); }; }; then
  7253. ac_cv_var_tzname=yes
  7254. else
  7255. echo "$as_me: failed program was:" >&5
  7256. sed 's/^/| /' conftest.$ac_ext >&5
  7257. ac_cv_var_tzname=no
  7258. fi
  7259. rm -f conftest.err conftest.$ac_objext \
  7260. conftest$ac_exeext conftest.$ac_ext
  7261. fi
  7262. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7263. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7264. if test $ac_cv_var_tzname = yes; then
  7265. cat >>confdefs.h <<\_ACEOF
  7266. #define HAVE_TZNAME 1
  7267. _ACEOF
  7268. fi
  7269. fi
  7270. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7271. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7272. if test "${ac_cv_struct_tm+set}" = set; then
  7273. echo $ECHO_N "(cached) $ECHO_C" >&6
  7274. else
  7275. cat >conftest.$ac_ext <<_ACEOF
  7276. /* confdefs.h. */
  7277. _ACEOF
  7278. cat confdefs.h >>conftest.$ac_ext
  7279. cat >>conftest.$ac_ext <<_ACEOF
  7280. /* end confdefs.h. */
  7281. #include <sys/types.h>
  7282. #include <time.h>
  7283. int
  7284. main ()
  7285. {
  7286. struct tm *tp; tp->tm_sec;
  7287. ;
  7288. return 0;
  7289. }
  7290. _ACEOF
  7291. rm -f conftest.$ac_objext
  7292. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7293. (eval $ac_compile) 2>conftest.er1
  7294. ac_status=$?
  7295. grep -v '^ *+' conftest.er1 >conftest.err
  7296. rm -f conftest.er1
  7297. cat conftest.err >&5
  7298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7299. (exit $ac_status); } &&
  7300. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7301. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7302. (eval $ac_try) 2>&5
  7303. ac_status=$?
  7304. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7305. (exit $ac_status); }; } &&
  7306. { ac_try='test -s conftest.$ac_objext'
  7307. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7308. (eval $ac_try) 2>&5
  7309. ac_status=$?
  7310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7311. (exit $ac_status); }; }; then
  7312. ac_cv_struct_tm=time.h
  7313. else
  7314. echo "$as_me: failed program was:" >&5
  7315. sed 's/^/| /' conftest.$ac_ext >&5
  7316. ac_cv_struct_tm=sys/time.h
  7317. fi
  7318. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7319. fi
  7320. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7321. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7322. if test $ac_cv_struct_tm = sys/time.h; then
  7323. cat >>confdefs.h <<\_ACEOF
  7324. #define TM_IN_SYS_TIME 1
  7325. _ACEOF
  7326. fi
  7327. #checkpoint
  7328. cat >confcache <<\_ACEOF
  7329. # This file is a shell script that caches the results of configure
  7330. # tests run on this system so they can be shared between configure
  7331. # scripts and configure runs, see configure's option --config-cache.
  7332. # It is not useful on other systems. If it contains results you don't
  7333. # want to keep, you may remove or edit it.
  7334. #
  7335. # config.status only pays attention to the cache file if you give it
  7336. # the --recheck option to rerun configure.
  7337. #
  7338. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7339. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7340. # following values.
  7341. _ACEOF
  7342. # The following way of writing the cache mishandles newlines in values,
  7343. # but we know of no workaround that is simple, portable, and efficient.
  7344. # So, don't put newlines in cache variables' values.
  7345. # Ultrix sh set writes to stderr and can't be redirected directly,
  7346. # and sets the high bit in the cache file unless we assign to the vars.
  7347. {
  7348. (set) 2>&1 |
  7349. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7350. *ac_space=\ *)
  7351. # `set' does not quote correctly, so add quotes (double-quote
  7352. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7353. sed -n \
  7354. "s/'/'\\\\''/g;
  7355. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7356. ;;
  7357. *)
  7358. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7359. sed -n \
  7360. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7361. ;;
  7362. esac;
  7363. } |
  7364. sed '
  7365. t clear
  7366. : clear
  7367. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7368. t end
  7369. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7370. : end' >>confcache
  7371. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7372. if test -w $cache_file; then
  7373. test "x$cache_file" != "x/dev/null"
  7374. cat confcache >$cache_file
  7375. else
  7376. echo "not updating unwritable cache $cache_file"
  7377. fi
  7378. fi
  7379. rm -f confcache
  7380. # Check for IPv6 support
  7381. #EGG_IPV6_SUPPORTED
  7382. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  7383. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  7384. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  7385. if test "${enable_ipv6+set}" = set; then
  7386. enableval="$enable_ipv6"
  7387. ac_cv_dipv6="yes"
  7388. echo "$as_me:$LINENO: result: yes" >&5
  7389. echo "${ECHO_T}yes" >&6
  7390. else
  7391. ac_cv_dipv6="no"
  7392. if test "$egg_cv_ipv6_supported" = "no"; then
  7393. ac_cv_dipv6="no"
  7394. fi
  7395. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  7396. echo "${ECHO_T}$ac_cv_dipv6" >&6
  7397. fi;
  7398. if test "$ac_cv_dipv6" = "no"; then
  7399. cat >>confdefs.h <<\_ACEOF
  7400. #define USE_IPV6 1
  7401. _ACEOF
  7402. fi
  7403. echo "$as_me:$LINENO: checking for socklen_t" >&5
  7404. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  7405. if test "${egg_cv_socklen_t+set}" = set; then
  7406. echo $ECHO_N "(cached) $ECHO_C" >&6
  7407. else
  7408. if test "$cross_compiling" = yes; then
  7409. egg_cv_socklen_t=no
  7410. else
  7411. cat >conftest.$ac_ext <<_ACEOF
  7412. /* confdefs.h. */
  7413. _ACEOF
  7414. cat confdefs.h >>conftest.$ac_ext
  7415. cat >>conftest.$ac_ext <<_ACEOF
  7416. /* end confdefs.h. */
  7417. #include <unistd.h>
  7418. #include <sys/types.h>
  7419. #include <sys/socket.h>
  7420. #include <netinet/in.h>
  7421. #include <arpa/inet.h>
  7422. int main()
  7423. {
  7424. socklen_t test = sizeof(int);
  7425. return 0;
  7426. }
  7427. _ACEOF
  7428. rm -f conftest$ac_exeext
  7429. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7430. (eval $ac_link) 2>&5
  7431. ac_status=$?
  7432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7433. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7434. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7435. (eval $ac_try) 2>&5
  7436. ac_status=$?
  7437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7438. (exit $ac_status); }; }; then
  7439. egg_cv_socklen_t=yes
  7440. else
  7441. echo "$as_me: program exited with status $ac_status" >&5
  7442. echo "$as_me: failed program was:" >&5
  7443. sed 's/^/| /' conftest.$ac_ext >&5
  7444. ( exit $ac_status )
  7445. egg_cv_socklen_t=no
  7446. fi
  7447. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7448. fi
  7449. fi
  7450. if test "$egg_cv_socklen_t" = "yes"; then
  7451. cat >>confdefs.h <<\_ACEOF
  7452. #define HAVE_SOCKLEN_T 1
  7453. _ACEOF
  7454. echo "$as_me:$LINENO: result: yes" >&5
  7455. echo "${ECHO_T}yes" >&6
  7456. else
  7457. echo "$as_me:$LINENO: result: no" >&5
  7458. echo "${ECHO_T}no" >&6
  7459. fi
  7460. # Checks for library functions
  7461. #checkpoint
  7462. cat >confcache <<\_ACEOF
  7463. # This file is a shell script that caches the results of configure
  7464. # tests run on this system so they can be shared between configure
  7465. # scripts and configure runs, see configure's option --config-cache.
  7466. # It is not useful on other systems. If it contains results you don't
  7467. # want to keep, you may remove or edit it.
  7468. #
  7469. # config.status only pays attention to the cache file if you give it
  7470. # the --recheck option to rerun configure.
  7471. #
  7472. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7473. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7474. # following values.
  7475. _ACEOF
  7476. # The following way of writing the cache mishandles newlines in values,
  7477. # but we know of no workaround that is simple, portable, and efficient.
  7478. # So, don't put newlines in cache variables' values.
  7479. # Ultrix sh set writes to stderr and can't be redirected directly,
  7480. # and sets the high bit in the cache file unless we assign to the vars.
  7481. {
  7482. (set) 2>&1 |
  7483. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7484. *ac_space=\ *)
  7485. # `set' does not quote correctly, so add quotes (double-quote
  7486. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7487. sed -n \
  7488. "s/'/'\\\\''/g;
  7489. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7490. ;;
  7491. *)
  7492. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7493. sed -n \
  7494. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7495. ;;
  7496. esac;
  7497. } |
  7498. sed '
  7499. t clear
  7500. : clear
  7501. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7502. t end
  7503. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7504. : end' >>confcache
  7505. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7506. if test -w $cache_file; then
  7507. test "x$cache_file" != "x/dev/null"
  7508. cat confcache >$cache_file
  7509. else
  7510. echo "not updating unwritable cache $cache_file"
  7511. fi
  7512. fi
  7513. rm -f confcache
  7514. # Checks for library functions.
  7515. for ac_header in unistd.h vfork.h
  7516. do
  7517. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7518. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7519. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7520. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7521. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7522. echo $ECHO_N "(cached) $ECHO_C" >&6
  7523. fi
  7524. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7525. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7526. else
  7527. # Is the header compilable?
  7528. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7529. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7530. cat >conftest.$ac_ext <<_ACEOF
  7531. /* confdefs.h. */
  7532. _ACEOF
  7533. cat confdefs.h >>conftest.$ac_ext
  7534. cat >>conftest.$ac_ext <<_ACEOF
  7535. /* end confdefs.h. */
  7536. $ac_includes_default
  7537. #include <$ac_header>
  7538. _ACEOF
  7539. rm -f conftest.$ac_objext
  7540. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7541. (eval $ac_compile) 2>conftest.er1
  7542. ac_status=$?
  7543. grep -v '^ *+' conftest.er1 >conftest.err
  7544. rm -f conftest.er1
  7545. cat conftest.err >&5
  7546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7547. (exit $ac_status); } &&
  7548. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7550. (eval $ac_try) 2>&5
  7551. ac_status=$?
  7552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7553. (exit $ac_status); }; } &&
  7554. { ac_try='test -s conftest.$ac_objext'
  7555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7556. (eval $ac_try) 2>&5
  7557. ac_status=$?
  7558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7559. (exit $ac_status); }; }; then
  7560. ac_header_compiler=yes
  7561. else
  7562. echo "$as_me: failed program was:" >&5
  7563. sed 's/^/| /' conftest.$ac_ext >&5
  7564. ac_header_compiler=no
  7565. fi
  7566. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7567. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7568. echo "${ECHO_T}$ac_header_compiler" >&6
  7569. # Is the header present?
  7570. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7571. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7572. cat >conftest.$ac_ext <<_ACEOF
  7573. /* confdefs.h. */
  7574. _ACEOF
  7575. cat confdefs.h >>conftest.$ac_ext
  7576. cat >>conftest.$ac_ext <<_ACEOF
  7577. /* end confdefs.h. */
  7578. #include <$ac_header>
  7579. _ACEOF
  7580. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7581. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7582. ac_status=$?
  7583. grep -v '^ *+' conftest.er1 >conftest.err
  7584. rm -f conftest.er1
  7585. cat conftest.err >&5
  7586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7587. (exit $ac_status); } >/dev/null; then
  7588. if test -s conftest.err; then
  7589. ac_cpp_err=$ac_c_preproc_warn_flag
  7590. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  7591. else
  7592. ac_cpp_err=
  7593. fi
  7594. else
  7595. ac_cpp_err=yes
  7596. fi
  7597. if test -z "$ac_cpp_err"; then
  7598. ac_header_preproc=yes
  7599. else
  7600. echo "$as_me: failed program was:" >&5
  7601. sed 's/^/| /' conftest.$ac_ext >&5
  7602. ac_header_preproc=no
  7603. fi
  7604. rm -f conftest.err conftest.$ac_ext
  7605. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7606. echo "${ECHO_T}$ac_header_preproc" >&6
  7607. # So? What about this header?
  7608. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  7609. yes:no: )
  7610. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7611. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7612. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7613. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7614. ac_header_preproc=yes
  7615. ;;
  7616. no:yes:* )
  7617. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7618. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7619. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7620. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7621. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7622. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7623. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7624. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7625. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7626. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7627. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7628. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7629. (
  7630. cat <<\_ASBOX
  7631. ## ------------------------------------------ ##
  7632. ## Report this to the AC_PACKAGE_NAME lists. ##
  7633. ## ------------------------------------------ ##
  7634. _ASBOX
  7635. ) |
  7636. sed "s/^/$as_me: WARNING: /" >&2
  7637. ;;
  7638. esac
  7639. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7640. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7641. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7642. echo $ECHO_N "(cached) $ECHO_C" >&6
  7643. else
  7644. eval "$as_ac_Header=\$ac_header_preproc"
  7645. fi
  7646. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7647. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7648. fi
  7649. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7650. cat >>confdefs.h <<_ACEOF
  7651. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7652. _ACEOF
  7653. fi
  7654. done
  7655. for ac_func in fork vfork
  7656. do
  7657. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7658. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7659. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7660. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7661. echo $ECHO_N "(cached) $ECHO_C" >&6
  7662. else
  7663. cat >conftest.$ac_ext <<_ACEOF
  7664. /* confdefs.h. */
  7665. _ACEOF
  7666. cat confdefs.h >>conftest.$ac_ext
  7667. cat >>conftest.$ac_ext <<_ACEOF
  7668. /* end confdefs.h. */
  7669. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7670. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7671. #define $ac_func innocuous_$ac_func
  7672. /* System header to define __stub macros and hopefully few prototypes,
  7673. which can conflict with char $ac_func (); below.
  7674. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7675. <limits.h> exists even on freestanding compilers. */
  7676. #ifdef __STDC__
  7677. # include <limits.h>
  7678. #else
  7679. # include <assert.h>
  7680. #endif
  7681. #undef $ac_func
  7682. /* Override any gcc2 internal prototype to avoid an error. */
  7683. #ifdef __cplusplus
  7684. extern "C"
  7685. {
  7686. #endif
  7687. /* We use char because int might match the return type of a gcc2
  7688. builtin and then its argument prototype would still apply. */
  7689. char $ac_func ();
  7690. /* The GNU C library defines this for functions which it implements
  7691. to always fail with ENOSYS. Some functions are actually named
  7692. something starting with __ and the normal name is an alias. */
  7693. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7694. choke me
  7695. #else
  7696. char (*f) () = $ac_func;
  7697. #endif
  7698. #ifdef __cplusplus
  7699. }
  7700. #endif
  7701. int
  7702. main ()
  7703. {
  7704. return f != $ac_func;
  7705. ;
  7706. return 0;
  7707. }
  7708. _ACEOF
  7709. rm -f conftest.$ac_objext conftest$ac_exeext
  7710. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7711. (eval $ac_link) 2>conftest.er1
  7712. ac_status=$?
  7713. grep -v '^ *+' conftest.er1 >conftest.err
  7714. rm -f conftest.er1
  7715. cat conftest.err >&5
  7716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7717. (exit $ac_status); } &&
  7718. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  7719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7720. (eval $ac_try) 2>&5
  7721. ac_status=$?
  7722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7723. (exit $ac_status); }; } &&
  7724. { ac_try='test -s conftest$ac_exeext'
  7725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7726. (eval $ac_try) 2>&5
  7727. ac_status=$?
  7728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7729. (exit $ac_status); }; }; then
  7730. eval "$as_ac_var=yes"
  7731. else
  7732. echo "$as_me: failed program was:" >&5
  7733. sed 's/^/| /' conftest.$ac_ext >&5
  7734. eval "$as_ac_var=no"
  7735. fi
  7736. rm -f conftest.err conftest.$ac_objext \
  7737. conftest$ac_exeext conftest.$ac_ext
  7738. fi
  7739. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7740. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7741. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7742. cat >>confdefs.h <<_ACEOF
  7743. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7744. _ACEOF
  7745. fi
  7746. done
  7747. if test "x$ac_cv_func_fork" = xyes; then
  7748. echo "$as_me:$LINENO: checking for working fork" >&5
  7749. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7750. if test "${ac_cv_func_fork_works+set}" = set; then
  7751. echo $ECHO_N "(cached) $ECHO_C" >&6
  7752. else
  7753. if test "$cross_compiling" = yes; then
  7754. ac_cv_func_fork_works=cross
  7755. else
  7756. cat >conftest.$ac_ext <<_ACEOF
  7757. /* By Ruediger Kuhlmann. */
  7758. #include <sys/types.h>
  7759. #if HAVE_UNISTD_H
  7760. # include <unistd.h>
  7761. #endif
  7762. /* Some systems only have a dummy stub for fork() */
  7763. int main ()
  7764. {
  7765. if (fork() < 0)
  7766. exit (1);
  7767. exit (0);
  7768. }
  7769. _ACEOF
  7770. rm -f conftest$ac_exeext
  7771. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7772. (eval $ac_link) 2>&5
  7773. ac_status=$?
  7774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7775. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7776. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7777. (eval $ac_try) 2>&5
  7778. ac_status=$?
  7779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7780. (exit $ac_status); }; }; then
  7781. ac_cv_func_fork_works=yes
  7782. else
  7783. echo "$as_me: program exited with status $ac_status" >&5
  7784. echo "$as_me: failed program was:" >&5
  7785. sed 's/^/| /' conftest.$ac_ext >&5
  7786. ( exit $ac_status )
  7787. ac_cv_func_fork_works=no
  7788. fi
  7789. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7790. fi
  7791. fi
  7792. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7793. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7794. else
  7795. ac_cv_func_fork_works=$ac_cv_func_fork
  7796. fi
  7797. if test "x$ac_cv_func_fork_works" = xcross; then
  7798. case $host in
  7799. *-*-amigaos* | *-*-msdosdjgpp*)
  7800. # Override, as these systems have only a dummy fork() stub
  7801. ac_cv_func_fork_works=no
  7802. ;;
  7803. *)
  7804. ac_cv_func_fork_works=yes
  7805. ;;
  7806. esac
  7807. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7808. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7809. fi
  7810. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7811. if test "x$ac_cv_func_vfork" = xyes; then
  7812. echo "$as_me:$LINENO: checking for working vfork" >&5
  7813. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7814. if test "${ac_cv_func_vfork_works+set}" = set; then
  7815. echo $ECHO_N "(cached) $ECHO_C" >&6
  7816. else
  7817. if test "$cross_compiling" = yes; then
  7818. ac_cv_func_vfork_works=cross
  7819. else
  7820. cat >conftest.$ac_ext <<_ACEOF
  7821. /* confdefs.h. */
  7822. _ACEOF
  7823. cat confdefs.h >>conftest.$ac_ext
  7824. cat >>conftest.$ac_ext <<_ACEOF
  7825. /* end confdefs.h. */
  7826. /* Thanks to Paul Eggert for this test. */
  7827. #include <stdio.h>
  7828. #include <stdlib.h>
  7829. #include <sys/types.h>
  7830. #include <sys/stat.h>
  7831. #include <sys/wait.h>
  7832. #if HAVE_UNISTD_H
  7833. # include <unistd.h>
  7834. #endif
  7835. #if HAVE_VFORK_H
  7836. # include <vfork.h>
  7837. #endif
  7838. /* On some sparc systems, changes by the child to local and incoming
  7839. argument registers are propagated back to the parent. The compiler
  7840. is told about this with #include <vfork.h>, but some compilers
  7841. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7842. static variable whose address is put into a register that is
  7843. clobbered by the vfork. */
  7844. static void
  7845. #ifdef __cplusplus
  7846. sparc_address_test (int arg)
  7847. # else
  7848. sparc_address_test (arg) int arg;
  7849. #endif
  7850. {
  7851. static pid_t child;
  7852. if (!child) {
  7853. child = vfork ();
  7854. if (child < 0) {
  7855. perror ("vfork");
  7856. _exit(2);
  7857. }
  7858. if (!child) {
  7859. arg = getpid();
  7860. write(-1, "", 0);
  7861. _exit (arg);
  7862. }
  7863. }
  7864. }
  7865. int
  7866. main ()
  7867. {
  7868. pid_t parent = getpid ();
  7869. pid_t child;
  7870. sparc_address_test (0);
  7871. child = vfork ();
  7872. if (child == 0) {
  7873. /* Here is another test for sparc vfork register problems. This
  7874. test uses lots of local variables, at least as many local
  7875. variables as main has allocated so far including compiler
  7876. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7877. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7878. reuse the register of parent for one of the local variables,
  7879. since it will think that parent can't possibly be used any more
  7880. in this routine. Assigning to the local variable will thus
  7881. munge parent in the parent process. */
  7882. pid_t
  7883. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7884. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7885. /* Convince the compiler that p..p7 are live; otherwise, it might
  7886. use the same hardware register for all 8 local variables. */
  7887. if (p != p1 || p != p2 || p != p3 || p != p4
  7888. || p != p5 || p != p6 || p != p7)
  7889. _exit(1);
  7890. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7891. from child file descriptors. If the child closes a descriptor
  7892. before it execs or exits, this munges the parent's descriptor
  7893. as well. Test for this by closing stdout in the child. */
  7894. _exit(close(fileno(stdout)) != 0);
  7895. } else {
  7896. int status;
  7897. struct stat st;
  7898. while (wait(&status) != child)
  7899. ;
  7900. exit(
  7901. /* Was there some problem with vforking? */
  7902. child < 0
  7903. /* Did the child fail? (This shouldn't happen.) */
  7904. || status
  7905. /* Did the vfork/compiler bug occur? */
  7906. || parent != getpid()
  7907. /* Did the file descriptor bug occur? */
  7908. || fstat(fileno(stdout), &st) != 0
  7909. );
  7910. }
  7911. }
  7912. _ACEOF
  7913. rm -f conftest$ac_exeext
  7914. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7915. (eval $ac_link) 2>&5
  7916. ac_status=$?
  7917. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7918. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7919. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7920. (eval $ac_try) 2>&5
  7921. ac_status=$?
  7922. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7923. (exit $ac_status); }; }; then
  7924. ac_cv_func_vfork_works=yes
  7925. else
  7926. echo "$as_me: program exited with status $ac_status" >&5
  7927. echo "$as_me: failed program was:" >&5
  7928. sed 's/^/| /' conftest.$ac_ext >&5
  7929. ( exit $ac_status )
  7930. ac_cv_func_vfork_works=no
  7931. fi
  7932. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7933. fi
  7934. fi
  7935. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7936. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  7937. fi;
  7938. if test "x$ac_cv_func_fork_works" = xcross; then
  7939. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7940. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7941. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7942. fi
  7943. if test "x$ac_cv_func_vfork_works" = xyes; then
  7944. cat >>confdefs.h <<\_ACEOF
  7945. #define HAVE_WORKING_VFORK 1
  7946. _ACEOF
  7947. else
  7948. cat >>confdefs.h <<\_ACEOF
  7949. #define vfork fork
  7950. _ACEOF
  7951. fi
  7952. if test "x$ac_cv_func_fork_works" = xyes; then
  7953. cat >>confdefs.h <<\_ACEOF
  7954. #define HAVE_WORKING_FORK 1
  7955. _ACEOF
  7956. fi
  7957. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7958. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7959. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7960. echo $ECHO_N "(cached) $ECHO_C" >&6
  7961. else
  7962. rm -f conftest.sym conftest.file
  7963. echo >conftest.file
  7964. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7965. if test "$cross_compiling" = yes; then
  7966. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7967. else
  7968. cat >conftest.$ac_ext <<_ACEOF
  7969. /* confdefs.h. */
  7970. _ACEOF
  7971. cat confdefs.h >>conftest.$ac_ext
  7972. cat >>conftest.$ac_ext <<_ACEOF
  7973. /* end confdefs.h. */
  7974. $ac_includes_default
  7975. int
  7976. main ()
  7977. {
  7978. struct stat sbuf;
  7979. /* Linux will dereference the symlink and fail.
  7980. That is better in the sense that it means we will not
  7981. have to compile and use the lstat wrapper. */
  7982. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7983. ;
  7984. return 0;
  7985. }
  7986. _ACEOF
  7987. rm -f conftest$ac_exeext
  7988. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7989. (eval $ac_link) 2>&5
  7990. ac_status=$?
  7991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7992. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7993. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7994. (eval $ac_try) 2>&5
  7995. ac_status=$?
  7996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7997. (exit $ac_status); }; }; then
  7998. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7999. else
  8000. echo "$as_me: program exited with status $ac_status" >&5
  8001. echo "$as_me: failed program was:" >&5
  8002. sed 's/^/| /' conftest.$ac_ext >&5
  8003. ( exit $ac_status )
  8004. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8005. fi
  8006. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8007. fi
  8008. else
  8009. # If the `ln -s' command failed, then we probably don't even
  8010. # have an lstat function.
  8011. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8012. fi
  8013. rm -f conftest.sym conftest.file
  8014. fi
  8015. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8016. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8017. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8018. cat >>confdefs.h <<_ACEOF
  8019. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8020. _ACEOF
  8021. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8022. case $LIBOBJS in
  8023. "lstat.$ac_objext" | \
  8024. *" lstat.$ac_objext" | \
  8025. "lstat.$ac_objext "* | \
  8026. *" lstat.$ac_objext "* ) ;;
  8027. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8028. esac
  8029. fi
  8030. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8031. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8032. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8033. echo $ECHO_N "(cached) $ECHO_C" >&6
  8034. else
  8035. if test "$cross_compiling" = yes; then
  8036. ac_cv_func_lstat_empty_string_bug=yes
  8037. else
  8038. cat >conftest.$ac_ext <<_ACEOF
  8039. /* confdefs.h. */
  8040. _ACEOF
  8041. cat confdefs.h >>conftest.$ac_ext
  8042. cat >>conftest.$ac_ext <<_ACEOF
  8043. /* end confdefs.h. */
  8044. $ac_includes_default
  8045. int
  8046. main ()
  8047. {
  8048. struct stat sbuf;
  8049. exit (lstat ("", &sbuf) ? 1 : 0);
  8050. ;
  8051. return 0;
  8052. }
  8053. _ACEOF
  8054. rm -f conftest$ac_exeext
  8055. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8056. (eval $ac_link) 2>&5
  8057. ac_status=$?
  8058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8059. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8061. (eval $ac_try) 2>&5
  8062. ac_status=$?
  8063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8064. (exit $ac_status); }; }; then
  8065. ac_cv_func_lstat_empty_string_bug=yes
  8066. else
  8067. echo "$as_me: program exited with status $ac_status" >&5
  8068. echo "$as_me: failed program was:" >&5
  8069. sed 's/^/| /' conftest.$ac_ext >&5
  8070. ( exit $ac_status )
  8071. ac_cv_func_lstat_empty_string_bug=no
  8072. fi
  8073. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8074. fi
  8075. fi
  8076. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8077. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8078. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8079. case $LIBOBJS in
  8080. "lstat.$ac_objext" | \
  8081. *" lstat.$ac_objext" | \
  8082. "lstat.$ac_objext "* | \
  8083. *" lstat.$ac_objext "* ) ;;
  8084. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8085. esac
  8086. cat >>confdefs.h <<_ACEOF
  8087. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8088. _ACEOF
  8089. fi
  8090. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8091. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8092. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8093. echo $ECHO_N "(cached) $ECHO_C" >&6
  8094. else
  8095. rm -f conftest.sym conftest.file
  8096. echo >conftest.file
  8097. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8098. if test "$cross_compiling" = yes; then
  8099. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8100. else
  8101. cat >conftest.$ac_ext <<_ACEOF
  8102. /* confdefs.h. */
  8103. _ACEOF
  8104. cat confdefs.h >>conftest.$ac_ext
  8105. cat >>conftest.$ac_ext <<_ACEOF
  8106. /* end confdefs.h. */
  8107. $ac_includes_default
  8108. int
  8109. main ()
  8110. {
  8111. struct stat sbuf;
  8112. /* Linux will dereference the symlink and fail.
  8113. That is better in the sense that it means we will not
  8114. have to compile and use the lstat wrapper. */
  8115. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8116. ;
  8117. return 0;
  8118. }
  8119. _ACEOF
  8120. rm -f conftest$ac_exeext
  8121. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8122. (eval $ac_link) 2>&5
  8123. ac_status=$?
  8124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8125. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8126. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8127. (eval $ac_try) 2>&5
  8128. ac_status=$?
  8129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8130. (exit $ac_status); }; }; then
  8131. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8132. else
  8133. echo "$as_me: program exited with status $ac_status" >&5
  8134. echo "$as_me: failed program was:" >&5
  8135. sed 's/^/| /' conftest.$ac_ext >&5
  8136. ( exit $ac_status )
  8137. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8138. fi
  8139. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8140. fi
  8141. else
  8142. # If the `ln -s' command failed, then we probably don't even
  8143. # have an lstat function.
  8144. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8145. fi
  8146. rm -f conftest.sym conftest.file
  8147. fi
  8148. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8149. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8150. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8151. cat >>confdefs.h <<_ACEOF
  8152. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8153. _ACEOF
  8154. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8155. case $LIBOBJS in
  8156. "lstat.$ac_objext" | \
  8157. *" lstat.$ac_objext" | \
  8158. "lstat.$ac_objext "* | \
  8159. *" lstat.$ac_objext "* ) ;;
  8160. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8161. esac
  8162. fi
  8163. for ac_header in stdlib.h
  8164. do
  8165. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8166. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8167. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8168. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8169. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8170. echo $ECHO_N "(cached) $ECHO_C" >&6
  8171. fi
  8172. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8173. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8174. else
  8175. # Is the header compilable?
  8176. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8177. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8178. cat >conftest.$ac_ext <<_ACEOF
  8179. /* confdefs.h. */
  8180. _ACEOF
  8181. cat confdefs.h >>conftest.$ac_ext
  8182. cat >>conftest.$ac_ext <<_ACEOF
  8183. /* end confdefs.h. */
  8184. $ac_includes_default
  8185. #include <$ac_header>
  8186. _ACEOF
  8187. rm -f conftest.$ac_objext
  8188. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8189. (eval $ac_compile) 2>conftest.er1
  8190. ac_status=$?
  8191. grep -v '^ *+' conftest.er1 >conftest.err
  8192. rm -f conftest.er1
  8193. cat conftest.err >&5
  8194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8195. (exit $ac_status); } &&
  8196. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8197. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8198. (eval $ac_try) 2>&5
  8199. ac_status=$?
  8200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8201. (exit $ac_status); }; } &&
  8202. { ac_try='test -s conftest.$ac_objext'
  8203. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8204. (eval $ac_try) 2>&5
  8205. ac_status=$?
  8206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8207. (exit $ac_status); }; }; then
  8208. ac_header_compiler=yes
  8209. else
  8210. echo "$as_me: failed program was:" >&5
  8211. sed 's/^/| /' conftest.$ac_ext >&5
  8212. ac_header_compiler=no
  8213. fi
  8214. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8215. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8216. echo "${ECHO_T}$ac_header_compiler" >&6
  8217. # Is the header present?
  8218. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8219. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8220. cat >conftest.$ac_ext <<_ACEOF
  8221. /* confdefs.h. */
  8222. _ACEOF
  8223. cat confdefs.h >>conftest.$ac_ext
  8224. cat >>conftest.$ac_ext <<_ACEOF
  8225. /* end confdefs.h. */
  8226. #include <$ac_header>
  8227. _ACEOF
  8228. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8229. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8230. ac_status=$?
  8231. grep -v '^ *+' conftest.er1 >conftest.err
  8232. rm -f conftest.er1
  8233. cat conftest.err >&5
  8234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8235. (exit $ac_status); } >/dev/null; then
  8236. if test -s conftest.err; then
  8237. ac_cpp_err=$ac_c_preproc_warn_flag
  8238. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8239. else
  8240. ac_cpp_err=
  8241. fi
  8242. else
  8243. ac_cpp_err=yes
  8244. fi
  8245. if test -z "$ac_cpp_err"; then
  8246. ac_header_preproc=yes
  8247. else
  8248. echo "$as_me: failed program was:" >&5
  8249. sed 's/^/| /' conftest.$ac_ext >&5
  8250. ac_header_preproc=no
  8251. fi
  8252. rm -f conftest.err conftest.$ac_ext
  8253. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8254. echo "${ECHO_T}$ac_header_preproc" >&6
  8255. # So? What about this header?
  8256. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8257. yes:no: )
  8258. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8259. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8260. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8261. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8262. ac_header_preproc=yes
  8263. ;;
  8264. no:yes:* )
  8265. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8266. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8267. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8268. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8269. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8270. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8271. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8272. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8273. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8274. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8275. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8276. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8277. (
  8278. cat <<\_ASBOX
  8279. ## ------------------------------------------ ##
  8280. ## Report this to the AC_PACKAGE_NAME lists. ##
  8281. ## ------------------------------------------ ##
  8282. _ASBOX
  8283. ) |
  8284. sed "s/^/$as_me: WARNING: /" >&2
  8285. ;;
  8286. esac
  8287. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8288. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8289. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8290. echo $ECHO_N "(cached) $ECHO_C" >&6
  8291. else
  8292. eval "$as_ac_Header=\$ac_header_preproc"
  8293. fi
  8294. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8295. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8296. fi
  8297. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8298. cat >>confdefs.h <<_ACEOF
  8299. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8300. _ACEOF
  8301. fi
  8302. done
  8303. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8304. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8305. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8306. echo $ECHO_N "(cached) $ECHO_C" >&6
  8307. else
  8308. if test "$cross_compiling" = yes; then
  8309. ac_cv_func_malloc_0_nonnull=no
  8310. else
  8311. cat >conftest.$ac_ext <<_ACEOF
  8312. /* confdefs.h. */
  8313. _ACEOF
  8314. cat confdefs.h >>conftest.$ac_ext
  8315. cat >>conftest.$ac_ext <<_ACEOF
  8316. /* end confdefs.h. */
  8317. #if STDC_HEADERS || HAVE_STDLIB_H
  8318. # include <stdlib.h>
  8319. #else
  8320. char *malloc ();
  8321. #endif
  8322. int
  8323. main ()
  8324. {
  8325. exit (malloc (0) ? 0 : 1);
  8326. ;
  8327. return 0;
  8328. }
  8329. _ACEOF
  8330. rm -f conftest$ac_exeext
  8331. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8332. (eval $ac_link) 2>&5
  8333. ac_status=$?
  8334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8335. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8337. (eval $ac_try) 2>&5
  8338. ac_status=$?
  8339. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8340. (exit $ac_status); }; }; then
  8341. ac_cv_func_malloc_0_nonnull=yes
  8342. else
  8343. echo "$as_me: program exited with status $ac_status" >&5
  8344. echo "$as_me: failed program was:" >&5
  8345. sed 's/^/| /' conftest.$ac_ext >&5
  8346. ( exit $ac_status )
  8347. ac_cv_func_malloc_0_nonnull=no
  8348. fi
  8349. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8350. fi
  8351. fi
  8352. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8353. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8354. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8355. cat >>confdefs.h <<\_ACEOF
  8356. #define HAVE_MALLOC 1
  8357. _ACEOF
  8358. else
  8359. cat >>confdefs.h <<\_ACEOF
  8360. #define HAVE_MALLOC 0
  8361. _ACEOF
  8362. case $LIBOBJS in
  8363. "malloc.$ac_objext" | \
  8364. *" malloc.$ac_objext" | \
  8365. "malloc.$ac_objext "* | \
  8366. *" malloc.$ac_objext "* ) ;;
  8367. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8368. esac
  8369. cat >>confdefs.h <<\_ACEOF
  8370. #define malloc rpl_malloc
  8371. _ACEOF
  8372. fi
  8373. for ac_header in stdlib.h sys/time.h unistd.h
  8374. do
  8375. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8376. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8377. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8378. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8379. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8380. echo $ECHO_N "(cached) $ECHO_C" >&6
  8381. fi
  8382. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8383. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8384. else
  8385. # Is the header compilable?
  8386. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8387. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8388. cat >conftest.$ac_ext <<_ACEOF
  8389. /* confdefs.h. */
  8390. _ACEOF
  8391. cat confdefs.h >>conftest.$ac_ext
  8392. cat >>conftest.$ac_ext <<_ACEOF
  8393. /* end confdefs.h. */
  8394. $ac_includes_default
  8395. #include <$ac_header>
  8396. _ACEOF
  8397. rm -f conftest.$ac_objext
  8398. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8399. (eval $ac_compile) 2>conftest.er1
  8400. ac_status=$?
  8401. grep -v '^ *+' conftest.er1 >conftest.err
  8402. rm -f conftest.er1
  8403. cat conftest.err >&5
  8404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8405. (exit $ac_status); } &&
  8406. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8407. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8408. (eval $ac_try) 2>&5
  8409. ac_status=$?
  8410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8411. (exit $ac_status); }; } &&
  8412. { ac_try='test -s conftest.$ac_objext'
  8413. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8414. (eval $ac_try) 2>&5
  8415. ac_status=$?
  8416. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8417. (exit $ac_status); }; }; then
  8418. ac_header_compiler=yes
  8419. else
  8420. echo "$as_me: failed program was:" >&5
  8421. sed 's/^/| /' conftest.$ac_ext >&5
  8422. ac_header_compiler=no
  8423. fi
  8424. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8425. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8426. echo "${ECHO_T}$ac_header_compiler" >&6
  8427. # Is the header present?
  8428. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8429. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8430. cat >conftest.$ac_ext <<_ACEOF
  8431. /* confdefs.h. */
  8432. _ACEOF
  8433. cat confdefs.h >>conftest.$ac_ext
  8434. cat >>conftest.$ac_ext <<_ACEOF
  8435. /* end confdefs.h. */
  8436. #include <$ac_header>
  8437. _ACEOF
  8438. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8439. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8440. ac_status=$?
  8441. grep -v '^ *+' conftest.er1 >conftest.err
  8442. rm -f conftest.er1
  8443. cat conftest.err >&5
  8444. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8445. (exit $ac_status); } >/dev/null; then
  8446. if test -s conftest.err; then
  8447. ac_cpp_err=$ac_c_preproc_warn_flag
  8448. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8449. else
  8450. ac_cpp_err=
  8451. fi
  8452. else
  8453. ac_cpp_err=yes
  8454. fi
  8455. if test -z "$ac_cpp_err"; then
  8456. ac_header_preproc=yes
  8457. else
  8458. echo "$as_me: failed program was:" >&5
  8459. sed 's/^/| /' conftest.$ac_ext >&5
  8460. ac_header_preproc=no
  8461. fi
  8462. rm -f conftest.err conftest.$ac_ext
  8463. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8464. echo "${ECHO_T}$ac_header_preproc" >&6
  8465. # So? What about this header?
  8466. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8467. yes:no: )
  8468. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8469. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8470. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8471. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8472. ac_header_preproc=yes
  8473. ;;
  8474. no:yes:* )
  8475. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8476. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8477. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8478. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8479. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8480. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8481. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8482. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8483. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8484. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8485. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8486. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8487. (
  8488. cat <<\_ASBOX
  8489. ## ------------------------------------------ ##
  8490. ## Report this to the AC_PACKAGE_NAME lists. ##
  8491. ## ------------------------------------------ ##
  8492. _ASBOX
  8493. ) |
  8494. sed "s/^/$as_me: WARNING: /" >&2
  8495. ;;
  8496. esac
  8497. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8498. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8499. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8500. echo $ECHO_N "(cached) $ECHO_C" >&6
  8501. else
  8502. eval "$as_ac_Header=\$ac_header_preproc"
  8503. fi
  8504. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8505. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8506. fi
  8507. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8508. cat >>confdefs.h <<_ACEOF
  8509. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8510. _ACEOF
  8511. fi
  8512. done
  8513. for ac_func in alarm
  8514. do
  8515. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8516. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8517. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8518. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8519. echo $ECHO_N "(cached) $ECHO_C" >&6
  8520. else
  8521. cat >conftest.$ac_ext <<_ACEOF
  8522. /* confdefs.h. */
  8523. _ACEOF
  8524. cat confdefs.h >>conftest.$ac_ext
  8525. cat >>conftest.$ac_ext <<_ACEOF
  8526. /* end confdefs.h. */
  8527. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8528. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8529. #define $ac_func innocuous_$ac_func
  8530. /* System header to define __stub macros and hopefully few prototypes,
  8531. which can conflict with char $ac_func (); below.
  8532. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8533. <limits.h> exists even on freestanding compilers. */
  8534. #ifdef __STDC__
  8535. # include <limits.h>
  8536. #else
  8537. # include <assert.h>
  8538. #endif
  8539. #undef $ac_func
  8540. /* Override any gcc2 internal prototype to avoid an error. */
  8541. #ifdef __cplusplus
  8542. extern "C"
  8543. {
  8544. #endif
  8545. /* We use char because int might match the return type of a gcc2
  8546. builtin and then its argument prototype would still apply. */
  8547. char $ac_func ();
  8548. /* The GNU C library defines this for functions which it implements
  8549. to always fail with ENOSYS. Some functions are actually named
  8550. something starting with __ and the normal name is an alias. */
  8551. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8552. choke me
  8553. #else
  8554. char (*f) () = $ac_func;
  8555. #endif
  8556. #ifdef __cplusplus
  8557. }
  8558. #endif
  8559. int
  8560. main ()
  8561. {
  8562. return f != $ac_func;
  8563. ;
  8564. return 0;
  8565. }
  8566. _ACEOF
  8567. rm -f conftest.$ac_objext conftest$ac_exeext
  8568. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8569. (eval $ac_link) 2>conftest.er1
  8570. ac_status=$?
  8571. grep -v '^ *+' conftest.er1 >conftest.err
  8572. rm -f conftest.er1
  8573. cat conftest.err >&5
  8574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8575. (exit $ac_status); } &&
  8576. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8577. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8578. (eval $ac_try) 2>&5
  8579. ac_status=$?
  8580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8581. (exit $ac_status); }; } &&
  8582. { ac_try='test -s conftest$ac_exeext'
  8583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8584. (eval $ac_try) 2>&5
  8585. ac_status=$?
  8586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8587. (exit $ac_status); }; }; then
  8588. eval "$as_ac_var=yes"
  8589. else
  8590. echo "$as_me: failed program was:" >&5
  8591. sed 's/^/| /' conftest.$ac_ext >&5
  8592. eval "$as_ac_var=no"
  8593. fi
  8594. rm -f conftest.err conftest.$ac_objext \
  8595. conftest$ac_exeext conftest.$ac_ext
  8596. fi
  8597. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8598. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8599. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8600. cat >>confdefs.h <<_ACEOF
  8601. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8602. _ACEOF
  8603. fi
  8604. done
  8605. echo "$as_me:$LINENO: checking for working mktime" >&5
  8606. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8607. if test "${ac_cv_func_working_mktime+set}" = set; then
  8608. echo $ECHO_N "(cached) $ECHO_C" >&6
  8609. else
  8610. if test "$cross_compiling" = yes; then
  8611. ac_cv_func_working_mktime=no
  8612. else
  8613. cat >conftest.$ac_ext <<_ACEOF
  8614. /* confdefs.h. */
  8615. _ACEOF
  8616. cat confdefs.h >>conftest.$ac_ext
  8617. cat >>conftest.$ac_ext <<_ACEOF
  8618. /* end confdefs.h. */
  8619. /* Test program from Paul Eggert and Tony Leneis. */
  8620. #if TIME_WITH_SYS_TIME
  8621. # include <sys/time.h>
  8622. # include <time.h>
  8623. #else
  8624. # if HAVE_SYS_TIME_H
  8625. # include <sys/time.h>
  8626. # else
  8627. # include <time.h>
  8628. # endif
  8629. #endif
  8630. #if HAVE_STDLIB_H
  8631. # include <stdlib.h>
  8632. #endif
  8633. #if HAVE_UNISTD_H
  8634. # include <unistd.h>
  8635. #endif
  8636. #if !HAVE_ALARM
  8637. # define alarm(X) /* empty */
  8638. #endif
  8639. /* Work around redefinition to rpl_putenv by other config tests. */
  8640. #undef putenv
  8641. static time_t time_t_max;
  8642. static time_t time_t_min;
  8643. /* Values we'll use to set the TZ environment variable. */
  8644. static char *tz_strings[] = {
  8645. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8646. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8647. };
  8648. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8649. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8650. Based on a problem report from Andreas Jaeger. */
  8651. static void
  8652. spring_forward_gap ()
  8653. {
  8654. /* glibc (up to about 1998-10-07) failed this test. */
  8655. struct tm tm;
  8656. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8657. instead of "TZ=America/Vancouver" in order to detect the bug even
  8658. on systems that don't support the Olson extension, or don't have the
  8659. full zoneinfo tables installed. */
  8660. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8661. tm.tm_year = 98;
  8662. tm.tm_mon = 3;
  8663. tm.tm_mday = 5;
  8664. tm.tm_hour = 2;
  8665. tm.tm_min = 0;
  8666. tm.tm_sec = 0;
  8667. tm.tm_isdst = -1;
  8668. if (mktime (&tm) == (time_t)-1)
  8669. exit (1);
  8670. }
  8671. static void
  8672. mktime_test1 (now)
  8673. time_t now;
  8674. {
  8675. struct tm *lt;
  8676. if ((lt = localtime (&now)) && mktime (lt) != now)
  8677. exit (1);
  8678. }
  8679. static void
  8680. mktime_test (now)
  8681. time_t now;
  8682. {
  8683. mktime_test1 (now);
  8684. mktime_test1 ((time_t) (time_t_max - now));
  8685. mktime_test1 ((time_t) (time_t_min + now));
  8686. }
  8687. static void
  8688. irix_6_4_bug ()
  8689. {
  8690. /* Based on code from Ariel Faigon. */
  8691. struct tm tm;
  8692. tm.tm_year = 96;
  8693. tm.tm_mon = 3;
  8694. tm.tm_mday = 0;
  8695. tm.tm_hour = 0;
  8696. tm.tm_min = 0;
  8697. tm.tm_sec = 0;
  8698. tm.tm_isdst = -1;
  8699. mktime (&tm);
  8700. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8701. exit (1);
  8702. }
  8703. static void
  8704. bigtime_test (j)
  8705. int j;
  8706. {
  8707. struct tm tm;
  8708. time_t now;
  8709. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8710. now = mktime (&tm);
  8711. if (now != (time_t) -1)
  8712. {
  8713. struct tm *lt = localtime (&now);
  8714. if (! (lt
  8715. && lt->tm_year == tm.tm_year
  8716. && lt->tm_mon == tm.tm_mon
  8717. && lt->tm_mday == tm.tm_mday
  8718. && lt->tm_hour == tm.tm_hour
  8719. && lt->tm_min == tm.tm_min
  8720. && lt->tm_sec == tm.tm_sec
  8721. && lt->tm_yday == tm.tm_yday
  8722. && lt->tm_wday == tm.tm_wday
  8723. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8724. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8725. exit (1);
  8726. }
  8727. }
  8728. int
  8729. main ()
  8730. {
  8731. time_t t, delta;
  8732. int i, j;
  8733. /* This test makes some buggy mktime implementations loop.
  8734. Give up after 60 seconds; a mktime slower than that
  8735. isn't worth using anyway. */
  8736. alarm (60);
  8737. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8738. continue;
  8739. time_t_max--;
  8740. if ((time_t) -1 < 0)
  8741. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8742. continue;
  8743. delta = time_t_max / 997; /* a suitable prime number */
  8744. for (i = 0; i < N_STRINGS; i++)
  8745. {
  8746. if (tz_strings[i])
  8747. putenv (tz_strings[i]);
  8748. for (t = 0; t <= time_t_max - delta; t += delta)
  8749. mktime_test (t);
  8750. mktime_test ((time_t) 1);
  8751. mktime_test ((time_t) (60 * 60));
  8752. mktime_test ((time_t) (60 * 60 * 24));
  8753. for (j = 1; 0 < j; j *= 2)
  8754. bigtime_test (j);
  8755. bigtime_test (j - 1);
  8756. }
  8757. irix_6_4_bug ();
  8758. spring_forward_gap ();
  8759. exit (0);
  8760. }
  8761. _ACEOF
  8762. rm -f conftest$ac_exeext
  8763. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8764. (eval $ac_link) 2>&5
  8765. ac_status=$?
  8766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8767. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8769. (eval $ac_try) 2>&5
  8770. ac_status=$?
  8771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8772. (exit $ac_status); }; }; then
  8773. ac_cv_func_working_mktime=yes
  8774. else
  8775. echo "$as_me: program exited with status $ac_status" >&5
  8776. echo "$as_me: failed program was:" >&5
  8777. sed 's/^/| /' conftest.$ac_ext >&5
  8778. ( exit $ac_status )
  8779. ac_cv_func_working_mktime=no
  8780. fi
  8781. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8782. fi
  8783. fi
  8784. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8785. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8786. if test $ac_cv_func_working_mktime = no; then
  8787. case $LIBOBJS in
  8788. "mktime.$ac_objext" | \
  8789. *" mktime.$ac_objext" | \
  8790. "mktime.$ac_objext "* | \
  8791. *" mktime.$ac_objext "* ) ;;
  8792. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8793. esac
  8794. fi
  8795. for ac_header in stdlib.h unistd.h
  8796. do
  8797. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8798. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8799. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8800. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8801. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8802. echo $ECHO_N "(cached) $ECHO_C" >&6
  8803. fi
  8804. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8805. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8806. else
  8807. # Is the header compilable?
  8808. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8809. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8810. cat >conftest.$ac_ext <<_ACEOF
  8811. /* confdefs.h. */
  8812. _ACEOF
  8813. cat confdefs.h >>conftest.$ac_ext
  8814. cat >>conftest.$ac_ext <<_ACEOF
  8815. /* end confdefs.h. */
  8816. $ac_includes_default
  8817. #include <$ac_header>
  8818. _ACEOF
  8819. rm -f conftest.$ac_objext
  8820. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8821. (eval $ac_compile) 2>conftest.er1
  8822. ac_status=$?
  8823. grep -v '^ *+' conftest.er1 >conftest.err
  8824. rm -f conftest.er1
  8825. cat conftest.err >&5
  8826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8827. (exit $ac_status); } &&
  8828. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8830. (eval $ac_try) 2>&5
  8831. ac_status=$?
  8832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8833. (exit $ac_status); }; } &&
  8834. { ac_try='test -s conftest.$ac_objext'
  8835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8836. (eval $ac_try) 2>&5
  8837. ac_status=$?
  8838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8839. (exit $ac_status); }; }; then
  8840. ac_header_compiler=yes
  8841. else
  8842. echo "$as_me: failed program was:" >&5
  8843. sed 's/^/| /' conftest.$ac_ext >&5
  8844. ac_header_compiler=no
  8845. fi
  8846. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8847. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8848. echo "${ECHO_T}$ac_header_compiler" >&6
  8849. # Is the header present?
  8850. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8851. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8852. cat >conftest.$ac_ext <<_ACEOF
  8853. /* confdefs.h. */
  8854. _ACEOF
  8855. cat confdefs.h >>conftest.$ac_ext
  8856. cat >>conftest.$ac_ext <<_ACEOF
  8857. /* end confdefs.h. */
  8858. #include <$ac_header>
  8859. _ACEOF
  8860. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8861. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8862. ac_status=$?
  8863. grep -v '^ *+' conftest.er1 >conftest.err
  8864. rm -f conftest.er1
  8865. cat conftest.err >&5
  8866. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8867. (exit $ac_status); } >/dev/null; then
  8868. if test -s conftest.err; then
  8869. ac_cpp_err=$ac_c_preproc_warn_flag
  8870. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  8871. else
  8872. ac_cpp_err=
  8873. fi
  8874. else
  8875. ac_cpp_err=yes
  8876. fi
  8877. if test -z "$ac_cpp_err"; then
  8878. ac_header_preproc=yes
  8879. else
  8880. echo "$as_me: failed program was:" >&5
  8881. sed 's/^/| /' conftest.$ac_ext >&5
  8882. ac_header_preproc=no
  8883. fi
  8884. rm -f conftest.err conftest.$ac_ext
  8885. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8886. echo "${ECHO_T}$ac_header_preproc" >&6
  8887. # So? What about this header?
  8888. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  8889. yes:no: )
  8890. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8891. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8892. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8893. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8894. ac_header_preproc=yes
  8895. ;;
  8896. no:yes:* )
  8897. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8898. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8899. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8900. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8901. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8902. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8903. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8904. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8905. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8906. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8907. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8908. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8909. (
  8910. cat <<\_ASBOX
  8911. ## ------------------------------------------ ##
  8912. ## Report this to the AC_PACKAGE_NAME lists. ##
  8913. ## ------------------------------------------ ##
  8914. _ASBOX
  8915. ) |
  8916. sed "s/^/$as_me: WARNING: /" >&2
  8917. ;;
  8918. esac
  8919. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8920. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8921. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8922. echo $ECHO_N "(cached) $ECHO_C" >&6
  8923. else
  8924. eval "$as_ac_Header=\$ac_header_preproc"
  8925. fi
  8926. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8927. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8928. fi
  8929. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8930. cat >>confdefs.h <<_ACEOF
  8931. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8932. _ACEOF
  8933. fi
  8934. done
  8935. for ac_func in getpagesize
  8936. do
  8937. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8938. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8939. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8940. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8941. echo $ECHO_N "(cached) $ECHO_C" >&6
  8942. else
  8943. cat >conftest.$ac_ext <<_ACEOF
  8944. /* confdefs.h. */
  8945. _ACEOF
  8946. cat confdefs.h >>conftest.$ac_ext
  8947. cat >>conftest.$ac_ext <<_ACEOF
  8948. /* end confdefs.h. */
  8949. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8950. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8951. #define $ac_func innocuous_$ac_func
  8952. /* System header to define __stub macros and hopefully few prototypes,
  8953. which can conflict with char $ac_func (); below.
  8954. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8955. <limits.h> exists even on freestanding compilers. */
  8956. #ifdef __STDC__
  8957. # include <limits.h>
  8958. #else
  8959. # include <assert.h>
  8960. #endif
  8961. #undef $ac_func
  8962. /* Override any gcc2 internal prototype to avoid an error. */
  8963. #ifdef __cplusplus
  8964. extern "C"
  8965. {
  8966. #endif
  8967. /* We use char because int might match the return type of a gcc2
  8968. builtin and then its argument prototype would still apply. */
  8969. char $ac_func ();
  8970. /* The GNU C library defines this for functions which it implements
  8971. to always fail with ENOSYS. Some functions are actually named
  8972. something starting with __ and the normal name is an alias. */
  8973. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8974. choke me
  8975. #else
  8976. char (*f) () = $ac_func;
  8977. #endif
  8978. #ifdef __cplusplus
  8979. }
  8980. #endif
  8981. int
  8982. main ()
  8983. {
  8984. return f != $ac_func;
  8985. ;
  8986. return 0;
  8987. }
  8988. _ACEOF
  8989. rm -f conftest.$ac_objext conftest$ac_exeext
  8990. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8991. (eval $ac_link) 2>conftest.er1
  8992. ac_status=$?
  8993. grep -v '^ *+' conftest.er1 >conftest.err
  8994. rm -f conftest.er1
  8995. cat conftest.err >&5
  8996. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8997. (exit $ac_status); } &&
  8998. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  8999. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9000. (eval $ac_try) 2>&5
  9001. ac_status=$?
  9002. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9003. (exit $ac_status); }; } &&
  9004. { ac_try='test -s conftest$ac_exeext'
  9005. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9006. (eval $ac_try) 2>&5
  9007. ac_status=$?
  9008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9009. (exit $ac_status); }; }; then
  9010. eval "$as_ac_var=yes"
  9011. else
  9012. echo "$as_me: failed program was:" >&5
  9013. sed 's/^/| /' conftest.$ac_ext >&5
  9014. eval "$as_ac_var=no"
  9015. fi
  9016. rm -f conftest.err conftest.$ac_objext \
  9017. conftest$ac_exeext conftest.$ac_ext
  9018. fi
  9019. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9020. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9021. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9022. cat >>confdefs.h <<_ACEOF
  9023. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9024. _ACEOF
  9025. fi
  9026. done
  9027. echo "$as_me:$LINENO: checking for working mmap" >&5
  9028. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9029. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9030. echo $ECHO_N "(cached) $ECHO_C" >&6
  9031. else
  9032. if test "$cross_compiling" = yes; then
  9033. ac_cv_func_mmap_fixed_mapped=no
  9034. else
  9035. cat >conftest.$ac_ext <<_ACEOF
  9036. /* confdefs.h. */
  9037. _ACEOF
  9038. cat confdefs.h >>conftest.$ac_ext
  9039. cat >>conftest.$ac_ext <<_ACEOF
  9040. /* end confdefs.h. */
  9041. $ac_includes_default
  9042. /* malloc might have been renamed as rpl_malloc. */
  9043. #undef malloc
  9044. /* Thanks to Mike Haertel and Jim Avera for this test.
  9045. Here is a matrix of mmap possibilities:
  9046. mmap private not fixed
  9047. mmap private fixed at somewhere currently unmapped
  9048. mmap private fixed at somewhere already mapped
  9049. mmap shared not fixed
  9050. mmap shared fixed at somewhere currently unmapped
  9051. mmap shared fixed at somewhere already mapped
  9052. For private mappings, we should verify that changes cannot be read()
  9053. back from the file, nor mmap's back from the file at a different
  9054. address. (There have been systems where private was not correctly
  9055. implemented like the infamous i386 svr4.0, and systems where the
  9056. VM page cache was not coherent with the file system buffer cache
  9057. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9058. For shared mappings, we should conversely verify that changes get
  9059. propagated back to all the places they're supposed to be.
  9060. Grep wants private fixed already mapped.
  9061. The main things grep needs to know about mmap are:
  9062. * does it exist and is it safe to write into the mmap'd area
  9063. * how to use it (BSD variants) */
  9064. #include <fcntl.h>
  9065. #include <sys/mman.h>
  9066. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9067. char *malloc ();
  9068. #endif
  9069. /* This mess was copied from the GNU getpagesize.h. */
  9070. #if !HAVE_GETPAGESIZE
  9071. /* Assume that all systems that can run configure have sys/param.h. */
  9072. # if !HAVE_SYS_PARAM_H
  9073. # define HAVE_SYS_PARAM_H 1
  9074. # endif
  9075. # ifdef _SC_PAGESIZE
  9076. # define getpagesize() sysconf(_SC_PAGESIZE)
  9077. # else /* no _SC_PAGESIZE */
  9078. # if HAVE_SYS_PARAM_H
  9079. # include <sys/param.h>
  9080. # ifdef EXEC_PAGESIZE
  9081. # define getpagesize() EXEC_PAGESIZE
  9082. # else /* no EXEC_PAGESIZE */
  9083. # ifdef NBPG
  9084. # define getpagesize() NBPG * CLSIZE
  9085. # ifndef CLSIZE
  9086. # define CLSIZE 1
  9087. # endif /* no CLSIZE */
  9088. # else /* no NBPG */
  9089. # ifdef NBPC
  9090. # define getpagesize() NBPC
  9091. # else /* no NBPC */
  9092. # ifdef PAGESIZE
  9093. # define getpagesize() PAGESIZE
  9094. # endif /* PAGESIZE */
  9095. # endif /* no NBPC */
  9096. # endif /* no NBPG */
  9097. # endif /* no EXEC_PAGESIZE */
  9098. # else /* no HAVE_SYS_PARAM_H */
  9099. # define getpagesize() 8192 /* punt totally */
  9100. # endif /* no HAVE_SYS_PARAM_H */
  9101. # endif /* no _SC_PAGESIZE */
  9102. #endif /* no HAVE_GETPAGESIZE */
  9103. int
  9104. main ()
  9105. {
  9106. char *data, *data2, *data3;
  9107. int i, pagesize;
  9108. int fd;
  9109. pagesize = getpagesize ();
  9110. /* First, make a file with some known garbage in it. */
  9111. data = (char *) malloc (pagesize);
  9112. if (!data)
  9113. exit (1);
  9114. for (i = 0; i < pagesize; ++i)
  9115. *(data + i) = rand ();
  9116. umask (0);
  9117. fd = creat ("conftest.mmap", 0600);
  9118. if (fd < 0)
  9119. exit (1);
  9120. if (write (fd, data, pagesize) != pagesize)
  9121. exit (1);
  9122. close (fd);
  9123. /* Next, try to mmap the file at a fixed address which already has
  9124. something else allocated at it. If we can, also make sure that
  9125. we see the same garbage. */
  9126. fd = open ("conftest.mmap", O_RDWR);
  9127. if (fd < 0)
  9128. exit (1);
  9129. data2 = (char *) malloc (2 * pagesize);
  9130. if (!data2)
  9131. exit (1);
  9132. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9133. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9134. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9135. exit (1);
  9136. for (i = 0; i < pagesize; ++i)
  9137. if (*(data + i) != *(data2 + i))
  9138. exit (1);
  9139. /* Finally, make sure that changes to the mapped area do not
  9140. percolate back to the file as seen by read(). (This is a bug on
  9141. some variants of i386 svr4.0.) */
  9142. for (i = 0; i < pagesize; ++i)
  9143. *(data2 + i) = *(data2 + i) + 1;
  9144. data3 = (char *) malloc (pagesize);
  9145. if (!data3)
  9146. exit (1);
  9147. if (read (fd, data3, pagesize) != pagesize)
  9148. exit (1);
  9149. for (i = 0; i < pagesize; ++i)
  9150. if (*(data + i) != *(data3 + i))
  9151. exit (1);
  9152. close (fd);
  9153. exit (0);
  9154. }
  9155. _ACEOF
  9156. rm -f conftest$ac_exeext
  9157. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9158. (eval $ac_link) 2>&5
  9159. ac_status=$?
  9160. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9161. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9162. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9163. (eval $ac_try) 2>&5
  9164. ac_status=$?
  9165. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9166. (exit $ac_status); }; }; then
  9167. ac_cv_func_mmap_fixed_mapped=yes
  9168. else
  9169. echo "$as_me: program exited with status $ac_status" >&5
  9170. echo "$as_me: failed program was:" >&5
  9171. sed 's/^/| /' conftest.$ac_ext >&5
  9172. ( exit $ac_status )
  9173. ac_cv_func_mmap_fixed_mapped=no
  9174. fi
  9175. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9176. fi
  9177. fi
  9178. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9179. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9180. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9181. cat >>confdefs.h <<\_ACEOF
  9182. #define HAVE_MMAP 1
  9183. _ACEOF
  9184. fi
  9185. rm -f conftest.mmap
  9186. for ac_header in stdlib.h
  9187. do
  9188. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9189. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9190. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9191. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9192. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9193. echo $ECHO_N "(cached) $ECHO_C" >&6
  9194. fi
  9195. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9196. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9197. else
  9198. # Is the header compilable?
  9199. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9200. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9201. cat >conftest.$ac_ext <<_ACEOF
  9202. /* confdefs.h. */
  9203. _ACEOF
  9204. cat confdefs.h >>conftest.$ac_ext
  9205. cat >>conftest.$ac_ext <<_ACEOF
  9206. /* end confdefs.h. */
  9207. $ac_includes_default
  9208. #include <$ac_header>
  9209. _ACEOF
  9210. rm -f conftest.$ac_objext
  9211. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9212. (eval $ac_compile) 2>conftest.er1
  9213. ac_status=$?
  9214. grep -v '^ *+' conftest.er1 >conftest.err
  9215. rm -f conftest.er1
  9216. cat conftest.err >&5
  9217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9218. (exit $ac_status); } &&
  9219. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9220. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9221. (eval $ac_try) 2>&5
  9222. ac_status=$?
  9223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9224. (exit $ac_status); }; } &&
  9225. { ac_try='test -s conftest.$ac_objext'
  9226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9227. (eval $ac_try) 2>&5
  9228. ac_status=$?
  9229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9230. (exit $ac_status); }; }; then
  9231. ac_header_compiler=yes
  9232. else
  9233. echo "$as_me: failed program was:" >&5
  9234. sed 's/^/| /' conftest.$ac_ext >&5
  9235. ac_header_compiler=no
  9236. fi
  9237. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9238. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9239. echo "${ECHO_T}$ac_header_compiler" >&6
  9240. # Is the header present?
  9241. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9242. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9243. cat >conftest.$ac_ext <<_ACEOF
  9244. /* confdefs.h. */
  9245. _ACEOF
  9246. cat confdefs.h >>conftest.$ac_ext
  9247. cat >>conftest.$ac_ext <<_ACEOF
  9248. /* end confdefs.h. */
  9249. #include <$ac_header>
  9250. _ACEOF
  9251. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9252. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9253. ac_status=$?
  9254. grep -v '^ *+' conftest.er1 >conftest.err
  9255. rm -f conftest.er1
  9256. cat conftest.err >&5
  9257. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9258. (exit $ac_status); } >/dev/null; then
  9259. if test -s conftest.err; then
  9260. ac_cpp_err=$ac_c_preproc_warn_flag
  9261. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9262. else
  9263. ac_cpp_err=
  9264. fi
  9265. else
  9266. ac_cpp_err=yes
  9267. fi
  9268. if test -z "$ac_cpp_err"; then
  9269. ac_header_preproc=yes
  9270. else
  9271. echo "$as_me: failed program was:" >&5
  9272. sed 's/^/| /' conftest.$ac_ext >&5
  9273. ac_header_preproc=no
  9274. fi
  9275. rm -f conftest.err conftest.$ac_ext
  9276. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9277. echo "${ECHO_T}$ac_header_preproc" >&6
  9278. # So? What about this header?
  9279. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9280. yes:no: )
  9281. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9282. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9283. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9284. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9285. ac_header_preproc=yes
  9286. ;;
  9287. no:yes:* )
  9288. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9289. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9290. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9291. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9292. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9293. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9294. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9295. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9296. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9297. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9298. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9299. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9300. (
  9301. cat <<\_ASBOX
  9302. ## ------------------------------------------ ##
  9303. ## Report this to the AC_PACKAGE_NAME lists. ##
  9304. ## ------------------------------------------ ##
  9305. _ASBOX
  9306. ) |
  9307. sed "s/^/$as_me: WARNING: /" >&2
  9308. ;;
  9309. esac
  9310. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9311. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9312. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9313. echo $ECHO_N "(cached) $ECHO_C" >&6
  9314. else
  9315. eval "$as_ac_Header=\$ac_header_preproc"
  9316. fi
  9317. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9318. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9319. fi
  9320. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9321. cat >>confdefs.h <<_ACEOF
  9322. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9323. _ACEOF
  9324. fi
  9325. done
  9326. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9327. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9328. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9329. echo $ECHO_N "(cached) $ECHO_C" >&6
  9330. else
  9331. if test "$cross_compiling" = yes; then
  9332. ac_cv_func_realloc_0_nonnull=no
  9333. else
  9334. cat >conftest.$ac_ext <<_ACEOF
  9335. /* confdefs.h. */
  9336. _ACEOF
  9337. cat confdefs.h >>conftest.$ac_ext
  9338. cat >>conftest.$ac_ext <<_ACEOF
  9339. /* end confdefs.h. */
  9340. #if STDC_HEADERS || HAVE_STDLIB_H
  9341. # include <stdlib.h>
  9342. #else
  9343. char *realloc ();
  9344. #endif
  9345. int
  9346. main ()
  9347. {
  9348. exit (realloc (0, 0) ? 0 : 1);
  9349. ;
  9350. return 0;
  9351. }
  9352. _ACEOF
  9353. rm -f conftest$ac_exeext
  9354. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9355. (eval $ac_link) 2>&5
  9356. ac_status=$?
  9357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9358. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9360. (eval $ac_try) 2>&5
  9361. ac_status=$?
  9362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9363. (exit $ac_status); }; }; then
  9364. ac_cv_func_realloc_0_nonnull=yes
  9365. else
  9366. echo "$as_me: program exited with status $ac_status" >&5
  9367. echo "$as_me: failed program was:" >&5
  9368. sed 's/^/| /' conftest.$ac_ext >&5
  9369. ( exit $ac_status )
  9370. ac_cv_func_realloc_0_nonnull=no
  9371. fi
  9372. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9373. fi
  9374. fi
  9375. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9376. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9377. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9378. cat >>confdefs.h <<\_ACEOF
  9379. #define HAVE_REALLOC 1
  9380. _ACEOF
  9381. else
  9382. cat >>confdefs.h <<\_ACEOF
  9383. #define HAVE_REALLOC 0
  9384. _ACEOF
  9385. case $LIBOBJS in
  9386. "realloc.$ac_objext" | \
  9387. *" realloc.$ac_objext" | \
  9388. "realloc.$ac_objext "* | \
  9389. *" realloc.$ac_objext "* ) ;;
  9390. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9391. esac
  9392. cat >>confdefs.h <<\_ACEOF
  9393. #define realloc rpl_realloc
  9394. _ACEOF
  9395. fi
  9396. for ac_header in sys/select.h sys/socket.h
  9397. do
  9398. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9399. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9400. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9401. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9402. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9403. echo $ECHO_N "(cached) $ECHO_C" >&6
  9404. fi
  9405. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9406. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9407. else
  9408. # Is the header compilable?
  9409. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9410. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9411. cat >conftest.$ac_ext <<_ACEOF
  9412. /* confdefs.h. */
  9413. _ACEOF
  9414. cat confdefs.h >>conftest.$ac_ext
  9415. cat >>conftest.$ac_ext <<_ACEOF
  9416. /* end confdefs.h. */
  9417. $ac_includes_default
  9418. #include <$ac_header>
  9419. _ACEOF
  9420. rm -f conftest.$ac_objext
  9421. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9422. (eval $ac_compile) 2>conftest.er1
  9423. ac_status=$?
  9424. grep -v '^ *+' conftest.er1 >conftest.err
  9425. rm -f conftest.er1
  9426. cat conftest.err >&5
  9427. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9428. (exit $ac_status); } &&
  9429. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9430. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9431. (eval $ac_try) 2>&5
  9432. ac_status=$?
  9433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9434. (exit $ac_status); }; } &&
  9435. { ac_try='test -s conftest.$ac_objext'
  9436. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9437. (eval $ac_try) 2>&5
  9438. ac_status=$?
  9439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9440. (exit $ac_status); }; }; then
  9441. ac_header_compiler=yes
  9442. else
  9443. echo "$as_me: failed program was:" >&5
  9444. sed 's/^/| /' conftest.$ac_ext >&5
  9445. ac_header_compiler=no
  9446. fi
  9447. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9448. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9449. echo "${ECHO_T}$ac_header_compiler" >&6
  9450. # Is the header present?
  9451. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9452. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9453. cat >conftest.$ac_ext <<_ACEOF
  9454. /* confdefs.h. */
  9455. _ACEOF
  9456. cat confdefs.h >>conftest.$ac_ext
  9457. cat >>conftest.$ac_ext <<_ACEOF
  9458. /* end confdefs.h. */
  9459. #include <$ac_header>
  9460. _ACEOF
  9461. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9462. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9463. ac_status=$?
  9464. grep -v '^ *+' conftest.er1 >conftest.err
  9465. rm -f conftest.er1
  9466. cat conftest.err >&5
  9467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9468. (exit $ac_status); } >/dev/null; then
  9469. if test -s conftest.err; then
  9470. ac_cpp_err=$ac_c_preproc_warn_flag
  9471. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9472. else
  9473. ac_cpp_err=
  9474. fi
  9475. else
  9476. ac_cpp_err=yes
  9477. fi
  9478. if test -z "$ac_cpp_err"; then
  9479. ac_header_preproc=yes
  9480. else
  9481. echo "$as_me: failed program was:" >&5
  9482. sed 's/^/| /' conftest.$ac_ext >&5
  9483. ac_header_preproc=no
  9484. fi
  9485. rm -f conftest.err conftest.$ac_ext
  9486. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9487. echo "${ECHO_T}$ac_header_preproc" >&6
  9488. # So? What about this header?
  9489. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  9490. yes:no: )
  9491. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9492. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9493. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9494. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9495. ac_header_preproc=yes
  9496. ;;
  9497. no:yes:* )
  9498. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9499. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9500. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9501. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9502. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9503. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9504. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9505. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9506. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9507. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9508. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9509. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9510. (
  9511. cat <<\_ASBOX
  9512. ## ------------------------------------------ ##
  9513. ## Report this to the AC_PACKAGE_NAME lists. ##
  9514. ## ------------------------------------------ ##
  9515. _ASBOX
  9516. ) |
  9517. sed "s/^/$as_me: WARNING: /" >&2
  9518. ;;
  9519. esac
  9520. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9521. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9522. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9523. echo $ECHO_N "(cached) $ECHO_C" >&6
  9524. else
  9525. eval "$as_ac_Header=\$ac_header_preproc"
  9526. fi
  9527. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9528. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9529. fi
  9530. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9531. cat >>confdefs.h <<_ACEOF
  9532. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9533. _ACEOF
  9534. fi
  9535. done
  9536. echo "$as_me:$LINENO: checking types of arguments for select" >&5
  9537. echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  9538. if test "${ac_cv_func_select_args+set}" = set; then
  9539. echo $ECHO_N "(cached) $ECHO_C" >&6
  9540. else
  9541. for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  9542. for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  9543. for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  9544. cat >conftest.$ac_ext <<_ACEOF
  9545. /* confdefs.h. */
  9546. _ACEOF
  9547. cat confdefs.h >>conftest.$ac_ext
  9548. cat >>conftest.$ac_ext <<_ACEOF
  9549. /* end confdefs.h. */
  9550. $ac_includes_default
  9551. #if HAVE_SYS_SELECT_H
  9552. # include <sys/select.h>
  9553. #endif
  9554. #if HAVE_SYS_SOCKET_H
  9555. # include <sys/socket.h>
  9556. #endif
  9557. int
  9558. main ()
  9559. {
  9560. extern int select ($ac_arg1,
  9561. $ac_arg234, $ac_arg234, $ac_arg234,
  9562. $ac_arg5);
  9563. ;
  9564. return 0;
  9565. }
  9566. _ACEOF
  9567. rm -f conftest.$ac_objext
  9568. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9569. (eval $ac_compile) 2>conftest.er1
  9570. ac_status=$?
  9571. grep -v '^ *+' conftest.er1 >conftest.err
  9572. rm -f conftest.er1
  9573. cat conftest.err >&5
  9574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9575. (exit $ac_status); } &&
  9576. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9577. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9578. (eval $ac_try) 2>&5
  9579. ac_status=$?
  9580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9581. (exit $ac_status); }; } &&
  9582. { ac_try='test -s conftest.$ac_objext'
  9583. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9584. (eval $ac_try) 2>&5
  9585. ac_status=$?
  9586. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9587. (exit $ac_status); }; }; then
  9588. ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  9589. else
  9590. echo "$as_me: failed program was:" >&5
  9591. sed 's/^/| /' conftest.$ac_ext >&5
  9592. fi
  9593. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9594. done
  9595. done
  9596. done
  9597. # Provide a safe default value.
  9598. : ${ac_cv_func_select_args='int,int *,struct timeval *'}
  9599. fi
  9600. echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  9601. echo "${ECHO_T}$ac_cv_func_select_args" >&6
  9602. ac_save_IFS=$IFS; IFS=','
  9603. set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  9604. IFS=$ac_save_IFS
  9605. shift
  9606. cat >>confdefs.h <<_ACEOF
  9607. #define SELECT_TYPE_ARG1 $1
  9608. _ACEOF
  9609. cat >>confdefs.h <<_ACEOF
  9610. #define SELECT_TYPE_ARG234 ($2)
  9611. _ACEOF
  9612. cat >>confdefs.h <<_ACEOF
  9613. #define SELECT_TYPE_ARG5 ($3)
  9614. _ACEOF
  9615. rm -f conftest*
  9616. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9617. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9618. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9619. echo $ECHO_N "(cached) $ECHO_C" >&6
  9620. else
  9621. if test "$cross_compiling" = yes; then
  9622. ac_cv_func_stat_empty_string_bug=yes
  9623. else
  9624. cat >conftest.$ac_ext <<_ACEOF
  9625. /* confdefs.h. */
  9626. _ACEOF
  9627. cat confdefs.h >>conftest.$ac_ext
  9628. cat >>conftest.$ac_ext <<_ACEOF
  9629. /* end confdefs.h. */
  9630. $ac_includes_default
  9631. int
  9632. main ()
  9633. {
  9634. struct stat sbuf;
  9635. exit (stat ("", &sbuf) ? 1 : 0);
  9636. ;
  9637. return 0;
  9638. }
  9639. _ACEOF
  9640. rm -f conftest$ac_exeext
  9641. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9642. (eval $ac_link) 2>&5
  9643. ac_status=$?
  9644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9645. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9647. (eval $ac_try) 2>&5
  9648. ac_status=$?
  9649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9650. (exit $ac_status); }; }; then
  9651. ac_cv_func_stat_empty_string_bug=yes
  9652. else
  9653. echo "$as_me: program exited with status $ac_status" >&5
  9654. echo "$as_me: failed program was:" >&5
  9655. sed 's/^/| /' conftest.$ac_ext >&5
  9656. ( exit $ac_status )
  9657. ac_cv_func_stat_empty_string_bug=no
  9658. fi
  9659. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9660. fi
  9661. fi
  9662. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9663. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9664. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9665. case $LIBOBJS in
  9666. "stat.$ac_objext" | \
  9667. *" stat.$ac_objext" | \
  9668. "stat.$ac_objext "* | \
  9669. *" stat.$ac_objext "* ) ;;
  9670. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9671. esac
  9672. cat >>confdefs.h <<_ACEOF
  9673. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9674. _ACEOF
  9675. fi
  9676. for ac_func in strftime
  9677. do
  9678. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9679. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9680. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9681. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9682. echo $ECHO_N "(cached) $ECHO_C" >&6
  9683. else
  9684. cat >conftest.$ac_ext <<_ACEOF
  9685. /* confdefs.h. */
  9686. _ACEOF
  9687. cat confdefs.h >>conftest.$ac_ext
  9688. cat >>conftest.$ac_ext <<_ACEOF
  9689. /* end confdefs.h. */
  9690. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9691. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9692. #define $ac_func innocuous_$ac_func
  9693. /* System header to define __stub macros and hopefully few prototypes,
  9694. which can conflict with char $ac_func (); below.
  9695. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9696. <limits.h> exists even on freestanding compilers. */
  9697. #ifdef __STDC__
  9698. # include <limits.h>
  9699. #else
  9700. # include <assert.h>
  9701. #endif
  9702. #undef $ac_func
  9703. /* Override any gcc2 internal prototype to avoid an error. */
  9704. #ifdef __cplusplus
  9705. extern "C"
  9706. {
  9707. #endif
  9708. /* We use char because int might match the return type of a gcc2
  9709. builtin and then its argument prototype would still apply. */
  9710. char $ac_func ();
  9711. /* The GNU C library defines this for functions which it implements
  9712. to always fail with ENOSYS. Some functions are actually named
  9713. something starting with __ and the normal name is an alias. */
  9714. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9715. choke me
  9716. #else
  9717. char (*f) () = $ac_func;
  9718. #endif
  9719. #ifdef __cplusplus
  9720. }
  9721. #endif
  9722. int
  9723. main ()
  9724. {
  9725. return f != $ac_func;
  9726. ;
  9727. return 0;
  9728. }
  9729. _ACEOF
  9730. rm -f conftest.$ac_objext conftest$ac_exeext
  9731. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9732. (eval $ac_link) 2>conftest.er1
  9733. ac_status=$?
  9734. grep -v '^ *+' conftest.er1 >conftest.err
  9735. rm -f conftest.er1
  9736. cat conftest.err >&5
  9737. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9738. (exit $ac_status); } &&
  9739. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9740. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9741. (eval $ac_try) 2>&5
  9742. ac_status=$?
  9743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9744. (exit $ac_status); }; } &&
  9745. { ac_try='test -s conftest$ac_exeext'
  9746. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9747. (eval $ac_try) 2>&5
  9748. ac_status=$?
  9749. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9750. (exit $ac_status); }; }; then
  9751. eval "$as_ac_var=yes"
  9752. else
  9753. echo "$as_me: failed program was:" >&5
  9754. sed 's/^/| /' conftest.$ac_ext >&5
  9755. eval "$as_ac_var=no"
  9756. fi
  9757. rm -f conftest.err conftest.$ac_objext \
  9758. conftest$ac_exeext conftest.$ac_ext
  9759. fi
  9760. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9761. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9762. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9763. cat >>confdefs.h <<_ACEOF
  9764. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9765. _ACEOF
  9766. else
  9767. # strftime is in -lintl on SCO UNIX.
  9768. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9769. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9770. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9771. echo $ECHO_N "(cached) $ECHO_C" >&6
  9772. else
  9773. ac_check_lib_save_LIBS=$LIBS
  9774. LIBS="-lintl $LIBS"
  9775. cat >conftest.$ac_ext <<_ACEOF
  9776. /* confdefs.h. */
  9777. _ACEOF
  9778. cat confdefs.h >>conftest.$ac_ext
  9779. cat >>conftest.$ac_ext <<_ACEOF
  9780. /* end confdefs.h. */
  9781. /* Override any gcc2 internal prototype to avoid an error. */
  9782. #ifdef __cplusplus
  9783. extern "C"
  9784. #endif
  9785. /* We use char because int might match the return type of a gcc2
  9786. builtin and then its argument prototype would still apply. */
  9787. char strftime ();
  9788. int
  9789. main ()
  9790. {
  9791. strftime ();
  9792. ;
  9793. return 0;
  9794. }
  9795. _ACEOF
  9796. rm -f conftest.$ac_objext conftest$ac_exeext
  9797. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9798. (eval $ac_link) 2>conftest.er1
  9799. ac_status=$?
  9800. grep -v '^ *+' conftest.er1 >conftest.err
  9801. rm -f conftest.er1
  9802. cat conftest.err >&5
  9803. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9804. (exit $ac_status); } &&
  9805. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9806. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9807. (eval $ac_try) 2>&5
  9808. ac_status=$?
  9809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9810. (exit $ac_status); }; } &&
  9811. { ac_try='test -s conftest$ac_exeext'
  9812. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9813. (eval $ac_try) 2>&5
  9814. ac_status=$?
  9815. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9816. (exit $ac_status); }; }; then
  9817. ac_cv_lib_intl_strftime=yes
  9818. else
  9819. echo "$as_me: failed program was:" >&5
  9820. sed 's/^/| /' conftest.$ac_ext >&5
  9821. ac_cv_lib_intl_strftime=no
  9822. fi
  9823. rm -f conftest.err conftest.$ac_objext \
  9824. conftest$ac_exeext conftest.$ac_ext
  9825. LIBS=$ac_check_lib_save_LIBS
  9826. fi
  9827. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9828. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9829. if test $ac_cv_lib_intl_strftime = yes; then
  9830. cat >>confdefs.h <<\_ACEOF
  9831. #define HAVE_STRFTIME 1
  9832. _ACEOF
  9833. LIBS="-lintl $LIBS"
  9834. fi
  9835. fi
  9836. done
  9837. #checkpoint
  9838. cat >confcache <<\_ACEOF
  9839. # This file is a shell script that caches the results of configure
  9840. # tests run on this system so they can be shared between configure
  9841. # scripts and configure runs, see configure's option --config-cache.
  9842. # It is not useful on other systems. If it contains results you don't
  9843. # want to keep, you may remove or edit it.
  9844. #
  9845. # config.status only pays attention to the cache file if you give it
  9846. # the --recheck option to rerun configure.
  9847. #
  9848. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9849. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9850. # following values.
  9851. _ACEOF
  9852. # The following way of writing the cache mishandles newlines in values,
  9853. # but we know of no workaround that is simple, portable, and efficient.
  9854. # So, don't put newlines in cache variables' values.
  9855. # Ultrix sh set writes to stderr and can't be redirected directly,
  9856. # and sets the high bit in the cache file unless we assign to the vars.
  9857. {
  9858. (set) 2>&1 |
  9859. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9860. *ac_space=\ *)
  9861. # `set' does not quote correctly, so add quotes (double-quote
  9862. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9863. sed -n \
  9864. "s/'/'\\\\''/g;
  9865. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9866. ;;
  9867. *)
  9868. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9869. sed -n \
  9870. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9871. ;;
  9872. esac;
  9873. } |
  9874. sed '
  9875. t clear
  9876. : clear
  9877. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9878. t end
  9879. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9880. : end' >>confcache
  9881. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9882. if test -w $cache_file; then
  9883. test "x$cache_file" != "x/dev/null"
  9884. cat confcache >$cache_file
  9885. else
  9886. echo "not updating unwritable cache $cache_file"
  9887. fi
  9888. fi
  9889. rm -f confcache
  9890. for ac_func in clock dprintf fsync getdtablesize getrusage inet_aton isascii gethostbyname2
  9891. do
  9892. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9893. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9894. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9895. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9896. echo $ECHO_N "(cached) $ECHO_C" >&6
  9897. else
  9898. cat >conftest.$ac_ext <<_ACEOF
  9899. /* confdefs.h. */
  9900. _ACEOF
  9901. cat confdefs.h >>conftest.$ac_ext
  9902. cat >>conftest.$ac_ext <<_ACEOF
  9903. /* end confdefs.h. */
  9904. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9905. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9906. #define $ac_func innocuous_$ac_func
  9907. /* System header to define __stub macros and hopefully few prototypes,
  9908. which can conflict with char $ac_func (); below.
  9909. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9910. <limits.h> exists even on freestanding compilers. */
  9911. #ifdef __STDC__
  9912. # include <limits.h>
  9913. #else
  9914. # include <assert.h>
  9915. #endif
  9916. #undef $ac_func
  9917. /* Override any gcc2 internal prototype to avoid an error. */
  9918. #ifdef __cplusplus
  9919. extern "C"
  9920. {
  9921. #endif
  9922. /* We use char because int might match the return type of a gcc2
  9923. builtin and then its argument prototype would still apply. */
  9924. char $ac_func ();
  9925. /* The GNU C library defines this for functions which it implements
  9926. to always fail with ENOSYS. Some functions are actually named
  9927. something starting with __ and the normal name is an alias. */
  9928. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9929. choke me
  9930. #else
  9931. char (*f) () = $ac_func;
  9932. #endif
  9933. #ifdef __cplusplus
  9934. }
  9935. #endif
  9936. int
  9937. main ()
  9938. {
  9939. return f != $ac_func;
  9940. ;
  9941. return 0;
  9942. }
  9943. _ACEOF
  9944. rm -f conftest.$ac_objext conftest$ac_exeext
  9945. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9946. (eval $ac_link) 2>conftest.er1
  9947. ac_status=$?
  9948. grep -v '^ *+' conftest.er1 >conftest.err
  9949. rm -f conftest.er1
  9950. cat conftest.err >&5
  9951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9952. (exit $ac_status); } &&
  9953. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9954. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9955. (eval $ac_try) 2>&5
  9956. ac_status=$?
  9957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9958. (exit $ac_status); }; } &&
  9959. { ac_try='test -s conftest$ac_exeext'
  9960. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9961. (eval $ac_try) 2>&5
  9962. ac_status=$?
  9963. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9964. (exit $ac_status); }; }; then
  9965. eval "$as_ac_var=yes"
  9966. else
  9967. echo "$as_me: failed program was:" >&5
  9968. sed 's/^/| /' conftest.$ac_ext >&5
  9969. eval "$as_ac_var=no"
  9970. fi
  9971. rm -f conftest.err conftest.$ac_objext \
  9972. conftest$ac_exeext conftest.$ac_ext
  9973. fi
  9974. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9975. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9976. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9977. cat >>confdefs.h <<_ACEOF
  9978. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9979. _ACEOF
  9980. fi
  9981. done
  9982. for ac_func in getipnodebyname memcpy memset random rename setpgid sigaction sigemptyset snprintf srandom
  9983. do
  9984. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9985. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9986. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9987. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9988. echo $ECHO_N "(cached) $ECHO_C" >&6
  9989. else
  9990. cat >conftest.$ac_ext <<_ACEOF
  9991. /* confdefs.h. */
  9992. _ACEOF
  9993. cat confdefs.h >>conftest.$ac_ext
  9994. cat >>conftest.$ac_ext <<_ACEOF
  9995. /* end confdefs.h. */
  9996. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9997. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9998. #define $ac_func innocuous_$ac_func
  9999. /* System header to define __stub macros and hopefully few prototypes,
  10000. which can conflict with char $ac_func (); below.
  10001. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10002. <limits.h> exists even on freestanding compilers. */
  10003. #ifdef __STDC__
  10004. # include <limits.h>
  10005. #else
  10006. # include <assert.h>
  10007. #endif
  10008. #undef $ac_func
  10009. /* Override any gcc2 internal prototype to avoid an error. */
  10010. #ifdef __cplusplus
  10011. extern "C"
  10012. {
  10013. #endif
  10014. /* We use char because int might match the return type of a gcc2
  10015. builtin and then its argument prototype would still apply. */
  10016. char $ac_func ();
  10017. /* The GNU C library defines this for functions which it implements
  10018. to always fail with ENOSYS. Some functions are actually named
  10019. something starting with __ and the normal name is an alias. */
  10020. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10021. choke me
  10022. #else
  10023. char (*f) () = $ac_func;
  10024. #endif
  10025. #ifdef __cplusplus
  10026. }
  10027. #endif
  10028. int
  10029. main ()
  10030. {
  10031. return f != $ac_func;
  10032. ;
  10033. return 0;
  10034. }
  10035. _ACEOF
  10036. rm -f conftest.$ac_objext conftest$ac_exeext
  10037. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10038. (eval $ac_link) 2>conftest.er1
  10039. ac_status=$?
  10040. grep -v '^ *+' conftest.er1 >conftest.err
  10041. rm -f conftest.er1
  10042. cat conftest.err >&5
  10043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10044. (exit $ac_status); } &&
  10045. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10046. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10047. (eval $ac_try) 2>&5
  10048. ac_status=$?
  10049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10050. (exit $ac_status); }; } &&
  10051. { ac_try='test -s conftest$ac_exeext'
  10052. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10053. (eval $ac_try) 2>&5
  10054. ac_status=$?
  10055. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10056. (exit $ac_status); }; }; then
  10057. eval "$as_ac_var=yes"
  10058. else
  10059. echo "$as_me: failed program was:" >&5
  10060. sed 's/^/| /' conftest.$ac_ext >&5
  10061. eval "$as_ac_var=no"
  10062. fi
  10063. rm -f conftest.err conftest.$ac_objext \
  10064. conftest$ac_exeext conftest.$ac_ext
  10065. fi
  10066. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10067. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10068. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10069. cat >>confdefs.h <<_ACEOF
  10070. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10071. _ACEOF
  10072. fi
  10073. done
  10074. #checkpoint
  10075. cat >confcache <<\_ACEOF
  10076. # This file is a shell script that caches the results of configure
  10077. # tests run on this system so they can be shared between configure
  10078. # scripts and configure runs, see configure's option --config-cache.
  10079. # It is not useful on other systems. If it contains results you don't
  10080. # want to keep, you may remove or edit it.
  10081. #
  10082. # config.status only pays attention to the cache file if you give it
  10083. # the --recheck option to rerun configure.
  10084. #
  10085. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10086. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10087. # following values.
  10088. _ACEOF
  10089. # The following way of writing the cache mishandles newlines in values,
  10090. # but we know of no workaround that is simple, portable, and efficient.
  10091. # So, don't put newlines in cache variables' values.
  10092. # Ultrix sh set writes to stderr and can't be redirected directly,
  10093. # and sets the high bit in the cache file unless we assign to the vars.
  10094. {
  10095. (set) 2>&1 |
  10096. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10097. *ac_space=\ *)
  10098. # `set' does not quote correctly, so add quotes (double-quote
  10099. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10100. sed -n \
  10101. "s/'/'\\\\''/g;
  10102. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10103. ;;
  10104. *)
  10105. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10106. sed -n \
  10107. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10108. ;;
  10109. esac;
  10110. } |
  10111. sed '
  10112. t clear
  10113. : clear
  10114. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10115. t end
  10116. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10117. : end' >>confcache
  10118. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10119. if test -w $cache_file; then
  10120. test "x$cache_file" != "x/dev/null"
  10121. cat confcache >$cache_file
  10122. else
  10123. echo "not updating unwritable cache $cache_file"
  10124. fi
  10125. fi
  10126. rm -f confcache
  10127. for ac_func in strcasecmp strncasecmp vsnprintf
  10128. do
  10129. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10130. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10131. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10132. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10133. echo $ECHO_N "(cached) $ECHO_C" >&6
  10134. else
  10135. cat >conftest.$ac_ext <<_ACEOF
  10136. /* confdefs.h. */
  10137. _ACEOF
  10138. cat confdefs.h >>conftest.$ac_ext
  10139. cat >>conftest.$ac_ext <<_ACEOF
  10140. /* end confdefs.h. */
  10141. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10142. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10143. #define $ac_func innocuous_$ac_func
  10144. /* System header to define __stub macros and hopefully few prototypes,
  10145. which can conflict with char $ac_func (); below.
  10146. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10147. <limits.h> exists even on freestanding compilers. */
  10148. #ifdef __STDC__
  10149. # include <limits.h>
  10150. #else
  10151. # include <assert.h>
  10152. #endif
  10153. #undef $ac_func
  10154. /* Override any gcc2 internal prototype to avoid an error. */
  10155. #ifdef __cplusplus
  10156. extern "C"
  10157. {
  10158. #endif
  10159. /* We use char because int might match the return type of a gcc2
  10160. builtin and then its argument prototype would still apply. */
  10161. char $ac_func ();
  10162. /* The GNU C library defines this for functions which it implements
  10163. to always fail with ENOSYS. Some functions are actually named
  10164. something starting with __ and the normal name is an alias. */
  10165. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10166. choke me
  10167. #else
  10168. char (*f) () = $ac_func;
  10169. #endif
  10170. #ifdef __cplusplus
  10171. }
  10172. #endif
  10173. int
  10174. main ()
  10175. {
  10176. return f != $ac_func;
  10177. ;
  10178. return 0;
  10179. }
  10180. _ACEOF
  10181. rm -f conftest.$ac_objext conftest$ac_exeext
  10182. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10183. (eval $ac_link) 2>conftest.er1
  10184. ac_status=$?
  10185. grep -v '^ *+' conftest.er1 >conftest.err
  10186. rm -f conftest.er1
  10187. cat conftest.err >&5
  10188. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10189. (exit $ac_status); } &&
  10190. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10191. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10192. (eval $ac_try) 2>&5
  10193. ac_status=$?
  10194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10195. (exit $ac_status); }; } &&
  10196. { ac_try='test -s conftest$ac_exeext'
  10197. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10198. (eval $ac_try) 2>&5
  10199. ac_status=$?
  10200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10201. (exit $ac_status); }; }; then
  10202. eval "$as_ac_var=yes"
  10203. else
  10204. echo "$as_me: failed program was:" >&5
  10205. sed 's/^/| /' conftest.$ac_ext >&5
  10206. eval "$as_ac_var=no"
  10207. fi
  10208. rm -f conftest.err conftest.$ac_objext \
  10209. conftest$ac_exeext conftest.$ac_ext
  10210. fi
  10211. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10212. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10213. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10214. cat >>confdefs.h <<_ACEOF
  10215. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10216. _ACEOF
  10217. fi
  10218. done
  10219. #autoscan suggested this....
  10220. #These are recommended by autoscan, but no code supports it currently
  10221. #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])
  10222. for ac_func in vsprintf
  10223. do
  10224. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10225. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10226. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10227. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10228. echo $ECHO_N "(cached) $ECHO_C" >&6
  10229. else
  10230. cat >conftest.$ac_ext <<_ACEOF
  10231. /* confdefs.h. */
  10232. _ACEOF
  10233. cat confdefs.h >>conftest.$ac_ext
  10234. cat >>conftest.$ac_ext <<_ACEOF
  10235. /* end confdefs.h. */
  10236. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10237. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10238. #define $ac_func innocuous_$ac_func
  10239. /* System header to define __stub macros and hopefully few prototypes,
  10240. which can conflict with char $ac_func (); below.
  10241. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10242. <limits.h> exists even on freestanding compilers. */
  10243. #ifdef __STDC__
  10244. # include <limits.h>
  10245. #else
  10246. # include <assert.h>
  10247. #endif
  10248. #undef $ac_func
  10249. /* Override any gcc2 internal prototype to avoid an error. */
  10250. #ifdef __cplusplus
  10251. extern "C"
  10252. {
  10253. #endif
  10254. /* We use char because int might match the return type of a gcc2
  10255. builtin and then its argument prototype would still apply. */
  10256. char $ac_func ();
  10257. /* The GNU C library defines this for functions which it implements
  10258. to always fail with ENOSYS. Some functions are actually named
  10259. something starting with __ and the normal name is an alias. */
  10260. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10261. choke me
  10262. #else
  10263. char (*f) () = $ac_func;
  10264. #endif
  10265. #ifdef __cplusplus
  10266. }
  10267. #endif
  10268. int
  10269. main ()
  10270. {
  10271. return f != $ac_func;
  10272. ;
  10273. return 0;
  10274. }
  10275. _ACEOF
  10276. rm -f conftest.$ac_objext conftest$ac_exeext
  10277. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10278. (eval $ac_link) 2>conftest.er1
  10279. ac_status=$?
  10280. grep -v '^ *+' conftest.er1 >conftest.err
  10281. rm -f conftest.er1
  10282. cat conftest.err >&5
  10283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10284. (exit $ac_status); } &&
  10285. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10287. (eval $ac_try) 2>&5
  10288. ac_status=$?
  10289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10290. (exit $ac_status); }; } &&
  10291. { ac_try='test -s conftest$ac_exeext'
  10292. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10293. (eval $ac_try) 2>&5
  10294. ac_status=$?
  10295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10296. (exit $ac_status); }; }; then
  10297. eval "$as_ac_var=yes"
  10298. else
  10299. echo "$as_me: failed program was:" >&5
  10300. sed 's/^/| /' conftest.$ac_ext >&5
  10301. eval "$as_ac_var=no"
  10302. fi
  10303. rm -f conftest.err conftest.$ac_objext \
  10304. conftest$ac_exeext conftest.$ac_ext
  10305. fi
  10306. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10307. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10308. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10309. cat >>confdefs.h <<_ACEOF
  10310. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10311. _ACEOF
  10312. fi
  10313. done
  10314. if test "$ac_cv_func_vsprintf" = "no"
  10315. then
  10316. cat << 'EOF' >&2
  10317. configure: error:
  10318. Your system does not have the sprintf/vsprintf libraries.
  10319. These are required to compile almost anything. Sorry.
  10320. EOF
  10321. exit 1
  10322. fi
  10323. for ac_func in uname
  10324. do
  10325. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10326. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10327. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10328. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10329. echo $ECHO_N "(cached) $ECHO_C" >&6
  10330. else
  10331. cat >conftest.$ac_ext <<_ACEOF
  10332. /* confdefs.h. */
  10333. _ACEOF
  10334. cat confdefs.h >>conftest.$ac_ext
  10335. cat >>conftest.$ac_ext <<_ACEOF
  10336. /* end confdefs.h. */
  10337. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10338. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10339. #define $ac_func innocuous_$ac_func
  10340. /* System header to define __stub macros and hopefully few prototypes,
  10341. which can conflict with char $ac_func (); below.
  10342. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10343. <limits.h> exists even on freestanding compilers. */
  10344. #ifdef __STDC__
  10345. # include <limits.h>
  10346. #else
  10347. # include <assert.h>
  10348. #endif
  10349. #undef $ac_func
  10350. /* Override any gcc2 internal prototype to avoid an error. */
  10351. #ifdef __cplusplus
  10352. extern "C"
  10353. {
  10354. #endif
  10355. /* We use char because int might match the return type of a gcc2
  10356. builtin and then its argument prototype would still apply. */
  10357. char $ac_func ();
  10358. /* The GNU C library defines this for functions which it implements
  10359. to always fail with ENOSYS. Some functions are actually named
  10360. something starting with __ and the normal name is an alias. */
  10361. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10362. choke me
  10363. #else
  10364. char (*f) () = $ac_func;
  10365. #endif
  10366. #ifdef __cplusplus
  10367. }
  10368. #endif
  10369. int
  10370. main ()
  10371. {
  10372. return f != $ac_func;
  10373. ;
  10374. return 0;
  10375. }
  10376. _ACEOF
  10377. rm -f conftest.$ac_objext conftest$ac_exeext
  10378. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10379. (eval $ac_link) 2>conftest.er1
  10380. ac_status=$?
  10381. grep -v '^ *+' conftest.er1 >conftest.err
  10382. rm -f conftest.er1
  10383. cat conftest.err >&5
  10384. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10385. (exit $ac_status); } &&
  10386. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10387. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10388. (eval $ac_try) 2>&5
  10389. ac_status=$?
  10390. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10391. (exit $ac_status); }; } &&
  10392. { ac_try='test -s conftest$ac_exeext'
  10393. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10394. (eval $ac_try) 2>&5
  10395. ac_status=$?
  10396. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10397. (exit $ac_status); }; }; then
  10398. eval "$as_ac_var=yes"
  10399. else
  10400. echo "$as_me: failed program was:" >&5
  10401. sed 's/^/| /' conftest.$ac_ext >&5
  10402. eval "$as_ac_var=no"
  10403. fi
  10404. rm -f conftest.err conftest.$ac_objext \
  10405. conftest$ac_exeext conftest.$ac_ext
  10406. fi
  10407. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10408. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10409. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10410. cat >>confdefs.h <<_ACEOF
  10411. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10412. _ACEOF
  10413. fi
  10414. done
  10415. if test "$ac_cv_func_uname" = "no"
  10416. then
  10417. cat << 'EOF' >&2
  10418. configure: error:
  10419. Your system does not have the uname() function.
  10420. This is required for the botpack.
  10421. EOF
  10422. exit 1
  10423. fi
  10424. # Make sure we have stdc headers, since we can't compile without them
  10425. if test "$ac_cv_header_stdc" = "no"
  10426. then
  10427. cat << 'EOF' >&2
  10428. configure: error:
  10429. Your system must support ANSI C Header files.
  10430. These are required for the language support. Sorry.
  10431. EOF
  10432. exit 1
  10433. fi
  10434. #checkpoint
  10435. cat >confcache <<\_ACEOF
  10436. # This file is a shell script that caches the results of configure
  10437. # tests run on this system so they can be shared between configure
  10438. # scripts and configure runs, see configure's option --config-cache.
  10439. # It is not useful on other systems. If it contains results you don't
  10440. # want to keep, you may remove or edit it.
  10441. #
  10442. # config.status only pays attention to the cache file if you give it
  10443. # the --recheck option to rerun configure.
  10444. #
  10445. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10446. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10447. # following values.
  10448. _ACEOF
  10449. # The following way of writing the cache mishandles newlines in values,
  10450. # but we know of no workaround that is simple, portable, and efficient.
  10451. # So, don't put newlines in cache variables' values.
  10452. # Ultrix sh set writes to stderr and can't be redirected directly,
  10453. # and sets the high bit in the cache file unless we assign to the vars.
  10454. {
  10455. (set) 2>&1 |
  10456. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10457. *ac_space=\ *)
  10458. # `set' does not quote correctly, so add quotes (double-quote
  10459. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10460. sed -n \
  10461. "s/'/'\\\\''/g;
  10462. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10463. ;;
  10464. *)
  10465. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10466. sed -n \
  10467. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10468. ;;
  10469. esac;
  10470. } |
  10471. sed '
  10472. t clear
  10473. : clear
  10474. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10475. t end
  10476. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10477. : end' >>confcache
  10478. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10479. if test -w $cache_file; then
  10480. test "x$cache_file" != "x/dev/null"
  10481. cat confcache >$cache_file
  10482. else
  10483. echo "not updating unwritable cache $cache_file"
  10484. fi
  10485. fi
  10486. rm -f confcache
  10487. # Where is Tcl? Is it here?
  10488. # ---------- begin robey's Tcl thingies
  10489. # (well, what used to be robey's Tcl thingies...)
  10490. # Latest tested Tcl version to recommend if Tcl isn't found
  10491. tclrecommendver="8.4"
  10492. # Site recommended to download Tcl from
  10493. tclrecommendsite="http://www.tcl.tk/software/tcltk/download84.html"
  10494. # Tcl library filename prefixes (also used for Tcl header dir on FreeBSD)
  10495. tcllibnames="tcl tcl8.4 tcl84 tcl8.3 tcl83 tcl8.2 tcl82 tcl8.1 tcl81 \
  10496. tcl8.0 tcl80"
  10497. # Tcl library filename suffixes
  10498. tcllibextensions=".a .so .so.1 .so.1.0 .so.1.2 .sl .dll .dylib"
  10499. # Tcl library search paths
  10500. tcllibpaths="${HOME}/lib ${HOME}/tcl/lib ${HOME} \
  10501. /usr/local/lib /usr/local/pkgs/tcl/lib \
  10502. /usr/lib /lib /usr/i486-linuxaout/lib \
  10503. /beos/system/lib /sys/lib"
  10504. # Tcl header filenames
  10505. tclheadernames="tcl.h"
  10506. # Tcl header search paths
  10507. tclheaderpaths="${HOME}/include ${HOME}/tcl/include ${HOME} \
  10508. /usr/local/include /usr/local/pkgs/tcl/include \
  10509. /usr/include /beos/system/include /beos/devel/include \
  10510. /sys/include"
  10511. # oohh new configure --variables for those with multiple Tcl libs
  10512. # Check whether --with-tcllib or --without-tcllib was given.
  10513. if test "${with_tcllib+set}" = set; then
  10514. withval="$with_tcllib"
  10515. tcllibname="$withval"
  10516. fi;
  10517. # Check whether --with-tclinc or --without-tclinc was given.
  10518. if test "${with_tclinc+set}" = set; then
  10519. withval="$with_tclinc"
  10520. tclincname="$withval"
  10521. fi;
  10522. WARN=0
  10523. # Make sure either both or neither $tcllibname and $tclincname are set
  10524. if test ! "${tcllibname-x}" = "x"
  10525. then
  10526. if test "${tclincname-x}" = "x"
  10527. then
  10528. WARN=1
  10529. tcllibname=""
  10530. TCLLIB=""
  10531. TCLINC=""
  10532. fi
  10533. else
  10534. if test ! "${tclincname-x}" = "x"
  10535. then
  10536. WARN=1
  10537. tclincname=""
  10538. TCLLIB=""
  10539. TCLINC=""
  10540. fi
  10541. fi
  10542. if test "$WARN" = 1
  10543. then
  10544. cat << 'EOF' >&2
  10545. configure: warning:
  10546. You must specify both --with-tcllib and --with-tclinc for them to work.
  10547. configure will now attempt to autodetect both the Tcl library and header...
  10548. EOF
  10549. fi
  10550. WARN=0
  10551. # Make sure either both or neither $TCLLIB and $TCLINC are set
  10552. if test ! "${TCLLIB-x}" = "x"
  10553. then
  10554. if test "${TCLINC-x}" = "x"
  10555. then
  10556. WARN=1
  10557. WVAR1=TCLLIB
  10558. WVAR2=TCLINC
  10559. TCLLIB=""
  10560. fi
  10561. else
  10562. if test ! "${TCLINC-x}" = "x"
  10563. then
  10564. WARN=1
  10565. WVAR1=TCLINC
  10566. WVAR2=TCLLIB
  10567. TCLINC=""
  10568. fi
  10569. fi
  10570. if test "$WARN" = 1
  10571. then
  10572. cat << EOF >&2
  10573. configure: warning:
  10574. Environment variable $WVAR1 was set, but I did not detect ${WVAR2}.
  10575. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10576. configure will now attempt to autodetect both the Tcl library and header...
  10577. EOF
  10578. fi
  10579. # Look for Tcl library: if $tcllibname is set, check there first
  10580. if test ! "${tcllibname-x}" = "x"
  10581. then
  10582. if test -f "$tcllibname" && test -r "$tcllibname"
  10583. then
  10584. TCLLIB=`echo $tcllibname | sed 's%/[^/][^/]*$%%'`
  10585. TCLLIBFN=`$BASENAME $tcllibname | cut -c4-`
  10586. TCLLIBEXT=".`echo $TCLLIBFN | $AWK '{j=split($1, i, "."); print i[j]}'`"
  10587. TCLLIBFNS=`$BASENAME $tcllibname $TCLLIBEXT | cut -c4-`
  10588. else
  10589. cat << EOF >&2
  10590. configure: warning:
  10591. The file '$tcllibname' given to option --with-tcllib is not valid.
  10592. configure will now attempt to autodetect both the Tcl library and header...
  10593. EOF
  10594. tcllibname=""
  10595. tclincname=""
  10596. TCLLIB=""
  10597. TCLLIBFN=""
  10598. TCLINC=""
  10599. TCLINCFN=""
  10600. fi
  10601. fi
  10602. # Look for Tcl header: if $tclincname is set, check there first
  10603. if test ! "${tclincname-x}" = "x"
  10604. then
  10605. if test -f "$tclincname" && test -r "$tclincname"
  10606. then
  10607. TCLINC=`echo $tclincname | sed 's%/[^/][^/]*$%%'`
  10608. TCLINCFN=`$BASENAME $tclincname`
  10609. else
  10610. cat << EOF >&2
  10611. configure: warning:
  10612. The file '$tclincname' given to option --with-tclinc is not valid.
  10613. configure will now attempt to autodetect both the Tcl library and header...
  10614. EOF
  10615. tcllibname=""
  10616. tclincname=""
  10617. TCLLIB=""
  10618. TCLLIBFN=""
  10619. TCLINC=""
  10620. TCLINCFN=""
  10621. fi
  10622. fi
  10623. # Look for Tcl library: if $TCLLIB is set, check there first
  10624. if test "${TCLLIBFN-x}" = "x"
  10625. then
  10626. if test ! "${TCLLIB-x}" = "x"
  10627. then
  10628. if test -d "$TCLLIB"
  10629. then
  10630. for tcllibfns in $tcllibnames
  10631. do
  10632. for tcllibext in $tcllibextensions
  10633. do
  10634. if test -r "$TCLLIB/lib$tcllibfns$tcllibext"
  10635. then
  10636. TCLLIBFN="$tcllibfns$tcllibext"
  10637. TCLLIBEXT="$tcllibext"
  10638. TCLLIBFNS="$tcllibfns"
  10639. break 2
  10640. fi
  10641. done
  10642. done
  10643. fi
  10644. if test "${TCLLIBFN-x}" = "x"
  10645. then
  10646. cat << 'EOF' >&2
  10647. configure: warning:
  10648. Environment variable TCLLIB was set, but incorrect.
  10649. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10650. configure will now attempt to autodetect both the Tcl library and header...
  10651. EOF
  10652. TCLLIB=""
  10653. TCLLIBFN=""
  10654. TCLINC=""
  10655. TCLINCFN=""
  10656. fi
  10657. fi
  10658. fi
  10659. # Look for Tcl header: if $TCLINC is set, check there first
  10660. if test "${TCLINCFN-x}" = "x"
  10661. then
  10662. if test ! "${TCLINC-x}" = "x"
  10663. then
  10664. if test -d "$TCLINC"
  10665. then
  10666. for tclheaderfn in $tclheadernames
  10667. do
  10668. if test -r "$TCLINC/$tclheaderfn"
  10669. then
  10670. TCLINCFN="$tclheaderfn"
  10671. break
  10672. fi
  10673. done
  10674. fi
  10675. if test "${TCLINCFN-x}" = "x"
  10676. then
  10677. cat << 'EOF' >&2
  10678. configure: warning:
  10679. Environment variable TCLINC was set, but incorrect.
  10680. Please set both TCLLIB and TCLINC correctly if you wish to use them.
  10681. configure will now attempt to autodetect both the Tcl library and header...
  10682. EOF
  10683. TCLLIB=""
  10684. TCLLIBFN=""
  10685. TCLINC=""
  10686. TCLINCFN=""
  10687. fi
  10688. fi
  10689. fi
  10690. echo "$as_me:$LINENO: checking for Tcl library" >&5
  10691. echo $ECHO_N "checking for Tcl library... $ECHO_C" >&6
  10692. # Attempt autodetect for $TCLLIBFN if it's not set
  10693. if test ! "${TCLLIBFN-x}" = "x"
  10694. then
  10695. echo "$as_me:$LINENO: result: using $TCLLIB/lib$TCLLIBFN" >&5
  10696. echo "${ECHO_T}using $TCLLIB/lib$TCLLIBFN" >&6
  10697. else
  10698. for tcllibfns in $tcllibnames
  10699. do
  10700. for tcllibext in $tcllibextensions
  10701. do
  10702. for tcllibpath in $tcllibpaths
  10703. do
  10704. if test -r "$tcllibpath/lib$tcllibfns$tcllibext"
  10705. then
  10706. echo "$as_me:$LINENO: result: found $tcllibpath/lib$tcllibfns$tcllibext" >&5
  10707. echo "${ECHO_T}found $tcllibpath/lib$tcllibfns$tcllibext" >&6
  10708. TCLLIB="$tcllibpath"
  10709. TCLLIBFN="$tcllibfns$tcllibext"
  10710. TCLLIBEXT="$tcllibext"
  10711. TCLLIBFNS="$tcllibfns"
  10712. break 3
  10713. fi
  10714. done
  10715. done
  10716. done
  10717. fi
  10718. # Show if $TCLLIBFN wasn't found
  10719. if test "${TCLLIBFN-x}" = "x"
  10720. then
  10721. echo "$as_me:$LINENO: result: not found" >&5
  10722. echo "${ECHO_T}not found" >&6
  10723. fi
  10724. echo "$as_me:$LINENO: checking for Tcl header" >&5
  10725. echo $ECHO_N "checking for Tcl header... $ECHO_C" >&6
  10726. # Attempt autodetect for $TCLINCFN if it's not set
  10727. if test ! "${TCLINCFN-x}" = "x"
  10728. then
  10729. echo "$as_me:$LINENO: result: using $TCLINC/$TCLINCFN" >&5
  10730. echo "${ECHO_T}using $TCLINC/$TCLINCFN" >&6
  10731. else
  10732. for tclheaderpath in $tclheaderpaths
  10733. do
  10734. for tclheaderfn in $tclheadernames
  10735. do
  10736. if test -r "$tclheaderpath/$tclheaderfn"
  10737. then
  10738. echo "$as_me:$LINENO: result: found $tclheaderpath/$tclheaderfn" >&5
  10739. echo "${ECHO_T}found $tclheaderpath/$tclheaderfn" >&6
  10740. TCLINC="$tclheaderpath"
  10741. TCLINCFN="$tclheaderfn"
  10742. break 2
  10743. fi
  10744. done
  10745. done
  10746. # FreeBSD hack ...
  10747. if test "${TCLINCFN-x}" = "x"
  10748. then
  10749. for tcllibfns in $tcllibnames
  10750. do
  10751. for tclheaderpath in $tclheaderpaths
  10752. do
  10753. for tclheaderfn in $tclheadernames
  10754. do
  10755. if test -r "$tclheaderpath/$tcllibfns/$tclheaderfn"
  10756. then
  10757. echo "$as_me:$LINENO: result: found $tclheaderpath/$tcllibfns/$tclheaderfn" >&5
  10758. echo "${ECHO_T}found $tclheaderpath/$tcllibfns/$tclheaderfn" >&6
  10759. TCLINC="$tclheaderpath/$tcllibfns"
  10760. TCLINCFN="$tclheaderfn"
  10761. break 3
  10762. fi
  10763. done
  10764. done
  10765. done
  10766. fi
  10767. fi
  10768. # Show if $TCLINCFN wasn't found
  10769. if test "${TCLINCFN-x}" = "x"
  10770. then
  10771. echo "$as_me:$LINENO: result: not found" >&5
  10772. echo "${ECHO_T}not found" >&6
  10773. fi
  10774. echo "$as_me:$LINENO: checking whether the Tcl system has changed" >&5
  10775. echo $ECHO_N "checking whether the Tcl system has changed... $ECHO_C" >&6
  10776. egg_tcl_changed=yes
  10777. egg_tcl_id="$TCLLIB:$TCLLIBFN:$TCLINC:$TCLINCFN"
  10778. if test ! "$egg_tcl_id" = ":::"
  10779. then
  10780. egg_tcl_cached=yes
  10781. if test "${egg_cv_var_tcl_id+set}" = set; then
  10782. echo $ECHO_N "(cached) $ECHO_C" >&6
  10783. else
  10784. egg_cv_var_tcl_id="$egg_tcl_id"
  10785. egg_tcl_cached=no
  10786. fi
  10787. if test "$egg_tcl_cached" = "yes"
  10788. then
  10789. if test "${egg_cv_var_tcl_id-x}" = "${egg_tcl_id-x}"
  10790. then
  10791. egg_tcl_changed=no
  10792. else
  10793. egg_cv_var_tcl_id="$egg_tcl_id"
  10794. fi
  10795. fi
  10796. fi
  10797. if test "$egg_tcl_changed" = "yes"
  10798. then
  10799. echo "$as_me:$LINENO: result: yes" >&5
  10800. echo "${ECHO_T}yes" >&6
  10801. else
  10802. echo "$as_me:$LINENO: result: no" >&5
  10803. echo "${ECHO_T}no" >&6
  10804. fi
  10805. #checkpoint
  10806. cat >confcache <<\_ACEOF
  10807. # This file is a shell script that caches the results of configure
  10808. # tests run on this system so they can be shared between configure
  10809. # scripts and configure runs, see configure's option --config-cache.
  10810. # It is not useful on other systems. If it contains results you don't
  10811. # want to keep, you may remove or edit it.
  10812. #
  10813. # config.status only pays attention to the cache file if you give it
  10814. # the --recheck option to rerun configure.
  10815. #
  10816. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10817. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10818. # following values.
  10819. _ACEOF
  10820. # The following way of writing the cache mishandles newlines in values,
  10821. # but we know of no workaround that is simple, portable, and efficient.
  10822. # So, don't put newlines in cache variables' values.
  10823. # Ultrix sh set writes to stderr and can't be redirected directly,
  10824. # and sets the high bit in the cache file unless we assign to the vars.
  10825. {
  10826. (set) 2>&1 |
  10827. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10828. *ac_space=\ *)
  10829. # `set' does not quote correctly, so add quotes (double-quote
  10830. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10831. sed -n \
  10832. "s/'/'\\\\''/g;
  10833. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10834. ;;
  10835. *)
  10836. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10837. sed -n \
  10838. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10839. ;;
  10840. esac;
  10841. } |
  10842. sed '
  10843. t clear
  10844. : clear
  10845. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10846. t end
  10847. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10848. : end' >>confcache
  10849. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10850. if test -w $cache_file; then
  10851. test "x$cache_file" != "x/dev/null"
  10852. cat confcache >$cache_file
  10853. else
  10854. echo "not updating unwritable cache $cache_file"
  10855. fi
  10856. fi
  10857. rm -f confcache
  10858. # Both TCLLIBFN & TCLINCFN must be set, or we bail
  10859. TCL_FOUND=0
  10860. if test ! "${TCLLIBFN-x}" = "x" && test ! "${TCLINCFN-x}" = "x"
  10861. then
  10862. TCL_FOUND=1
  10863. # Check Tcl's version
  10864. if test "$egg_tcl_changed" = "yes"
  10865. then
  10866. unset egg_cv_var_tcl_version
  10867. fi
  10868. echo "$as_me:$LINENO: checking for Tcl version" >&5
  10869. echo $ECHO_N "checking for Tcl version... $ECHO_C" >&6
  10870. if test "${egg_cv_var_tcl_version+set}" = set; then
  10871. echo $ECHO_N "(cached) $ECHO_C" >&6
  10872. else
  10873. egg_cv_var_tcl_version=`grep TCL_VERSION $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`
  10874. fi
  10875. if test ! "${egg_cv_var_tcl_version-x}" = "x"
  10876. then
  10877. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_version" >&5
  10878. echo "${ECHO_T}$egg_cv_var_tcl_version" >&6
  10879. else
  10880. echo "$as_me:$LINENO: result: not found" >&5
  10881. echo "${ECHO_T}not found" >&6
  10882. TCL_FOUND=0
  10883. fi
  10884. # Check Tcl's patch level (if available)
  10885. if test "$egg_tcl_changed" = "yes"
  10886. then
  10887. unset egg_cv_var_tcl_patch_level
  10888. fi
  10889. echo "$as_me:$LINENO: checking for Tcl patch level" >&5
  10890. echo $ECHO_N "checking for Tcl patch level... $ECHO_C" >&6
  10891. if test "${egg_cv_var_tcl_patch_level+set}" = set; then
  10892. echo $ECHO_N "(cached) $ECHO_C" >&6
  10893. else
  10894. eval "egg_cv_var_tcl_patch_level=`grep TCL_PATCH_LEVEL $TCLINC/$TCLINCFN | $HEAD_1 | $AWK '{gsub(/\"/, "", $3); print $3}'`"
  10895. fi
  10896. if test ! "${egg_cv_var_tcl_patch_level-x}" = "x"
  10897. then
  10898. echo "$as_me:$LINENO: result: $egg_cv_var_tcl_patch_level" >&5
  10899. echo "${ECHO_T}$egg_cv_var_tcl_patch_level" >&6
  10900. else
  10901. egg_cv_var_tcl_patch_level="unknown"
  10902. echo "$as_me:$LINENO: result: unknown" >&5
  10903. echo "${ECHO_T}unknown" >&6
  10904. fi
  10905. fi
  10906. # Check if we found Tcl's version
  10907. if test "$TCL_FOUND" = 0
  10908. then
  10909. cat << 'EOF' >&2
  10910. configure: error:
  10911. I can't find Tcl on this system.
  10912. The download website is at:
  10913. http://www.tcl.tk/software/tcltk/download84.html
  10914. A nice direct link for the tarball is:
  10915. http://aleron.dl.sourceforge.net/sourceforge/tcl/tcl8.4.4-src.tar.gz
  10916. OR
  10917. Just type: ./build -T
  10918. EOF
  10919. exit 1
  10920. fi
  10921. # Is this version of Tcl too old for us to use ?
  10922. TCL_VER_PRE80=`echo $egg_cv_var_tcl_version | $AWK '{split($1, i, "."); if (i[1] < 8) print "yes"; else print "no"}'`
  10923. if test "$TCL_VER_PRE80" = "yes"
  10924. then
  10925. cat << EOF >&2
  10926. configure: error:
  10927. Your Tcl version is much too old for Eggdrop to use.
  10928. I suggest you download and compile a more recent version.
  10929. The most reliable current version is $tclrecommendver and
  10930. can be downloaded from $tclrecommendsite
  10931. EOF
  10932. exit 1
  10933. fi
  10934. # Set variables for Tcl library tests
  10935. TCL_TEST_LIB="$TCLLIBFNS"
  10936. TCL_TEST_OTHERLIBS="-L$TCLLIB $EGG_MATH_LIB"
  10937. if test ! "${ac_cv_lib_pthread-x}" = "x"
  10938. then
  10939. TCL_TEST_OTHERLIBS="$TCL_TEST_OTHERLIBS $ac_cv_lib_pthread"
  10940. fi
  10941. if test "$egg_tcl_changed" = "yes"
  10942. then
  10943. unset egg_cv_var_tcl_free
  10944. fi
  10945. # Check for Tcl_Free()
  10946. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_Tcl_Free" | $as_tr_sh`
  10947. echo "$as_me:$LINENO: checking for Tcl_Free in -l$TCL_TEST_LIB" >&5
  10948. echo $ECHO_N "checking for Tcl_Free in -l$TCL_TEST_LIB... $ECHO_C" >&6
  10949. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  10950. echo $ECHO_N "(cached) $ECHO_C" >&6
  10951. else
  10952. ac_check_lib_save_LIBS=$LIBS
  10953. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  10954. cat >conftest.$ac_ext <<_ACEOF
  10955. /* confdefs.h. */
  10956. _ACEOF
  10957. cat confdefs.h >>conftest.$ac_ext
  10958. cat >>conftest.$ac_ext <<_ACEOF
  10959. /* end confdefs.h. */
  10960. /* Override any gcc2 internal prototype to avoid an error. */
  10961. #ifdef __cplusplus
  10962. extern "C"
  10963. #endif
  10964. /* We use char because int might match the return type of a gcc2
  10965. builtin and then its argument prototype would still apply. */
  10966. char Tcl_Free ();
  10967. int
  10968. main ()
  10969. {
  10970. Tcl_Free ();
  10971. ;
  10972. return 0;
  10973. }
  10974. _ACEOF
  10975. rm -f conftest.$ac_objext conftest$ac_exeext
  10976. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10977. (eval $ac_link) 2>conftest.er1
  10978. ac_status=$?
  10979. grep -v '^ *+' conftest.er1 >conftest.err
  10980. rm -f conftest.er1
  10981. cat conftest.err >&5
  10982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10983. (exit $ac_status); } &&
  10984. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10985. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10986. (eval $ac_try) 2>&5
  10987. ac_status=$?
  10988. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10989. (exit $ac_status); }; } &&
  10990. { ac_try='test -s conftest$ac_exeext'
  10991. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10992. (eval $ac_try) 2>&5
  10993. ac_status=$?
  10994. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10995. (exit $ac_status); }; }; then
  10996. eval "$as_ac_Lib=yes"
  10997. else
  10998. echo "$as_me: failed program was:" >&5
  10999. sed 's/^/| /' conftest.$ac_ext >&5
  11000. eval "$as_ac_Lib=no"
  11001. fi
  11002. rm -f conftest.err conftest.$ac_objext \
  11003. conftest$ac_exeext conftest.$ac_ext
  11004. LIBS=$ac_check_lib_save_LIBS
  11005. fi
  11006. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11007. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11008. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11009. egg_cv_var_tcl_free="yes"
  11010. else
  11011. egg_cv_var_tcl_free="no"
  11012. fi
  11013. if test "$egg_cv_var_tcl_free" = "yes"
  11014. then
  11015. cat >>confdefs.h <<\_ACEOF
  11016. #define HAVE_TCL_FREE 1
  11017. _ACEOF
  11018. fi
  11019. if test "$egg_tcl_changed" = "yes"
  11020. then
  11021. unset egg_cv_var_tcl_threaded
  11022. fi
  11023. # Check for TclpFinalizeThreadData()
  11024. as_ac_Lib=`echo "ac_cv_lib_$TCL_TEST_LIB''_TclpFinalizeThreadData" | $as_tr_sh`
  11025. echo "$as_me:$LINENO: checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB" >&5
  11026. echo $ECHO_N "checking for TclpFinalizeThreadData in -l$TCL_TEST_LIB... $ECHO_C" >&6
  11027. if eval "test \"\${$as_ac_Lib+set}\" = set"; then
  11028. echo $ECHO_N "(cached) $ECHO_C" >&6
  11029. else
  11030. ac_check_lib_save_LIBS=$LIBS
  11031. LIBS="-l$TCL_TEST_LIB $TCL_TEST_OTHERLIBS $LIBS"
  11032. cat >conftest.$ac_ext <<_ACEOF
  11033. /* confdefs.h. */
  11034. _ACEOF
  11035. cat confdefs.h >>conftest.$ac_ext
  11036. cat >>conftest.$ac_ext <<_ACEOF
  11037. /* end confdefs.h. */
  11038. /* Override any gcc2 internal prototype to avoid an error. */
  11039. #ifdef __cplusplus
  11040. extern "C"
  11041. #endif
  11042. /* We use char because int might match the return type of a gcc2
  11043. builtin and then its argument prototype would still apply. */
  11044. char TclpFinalizeThreadData ();
  11045. int
  11046. main ()
  11047. {
  11048. TclpFinalizeThreadData ();
  11049. ;
  11050. return 0;
  11051. }
  11052. _ACEOF
  11053. rm -f conftest.$ac_objext conftest$ac_exeext
  11054. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  11055. (eval $ac_link) 2>conftest.er1
  11056. ac_status=$?
  11057. grep -v '^ *+' conftest.er1 >conftest.err
  11058. rm -f conftest.er1
  11059. cat conftest.err >&5
  11060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11061. (exit $ac_status); } &&
  11062. { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  11063. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11064. (eval $ac_try) 2>&5
  11065. ac_status=$?
  11066. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11067. (exit $ac_status); }; } &&
  11068. { ac_try='test -s conftest$ac_exeext'
  11069. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  11070. (eval $ac_try) 2>&5
  11071. ac_status=$?
  11072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11073. (exit $ac_status); }; }; then
  11074. eval "$as_ac_Lib=yes"
  11075. else
  11076. echo "$as_me: failed program was:" >&5
  11077. sed 's/^/| /' conftest.$ac_ext >&5
  11078. eval "$as_ac_Lib=no"
  11079. fi
  11080. rm -f conftest.err conftest.$ac_objext \
  11081. conftest$ac_exeext conftest.$ac_ext
  11082. LIBS=$ac_check_lib_save_LIBS
  11083. fi
  11084. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
  11085. echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
  11086. if test `eval echo '${'$as_ac_Lib'}'` = yes; then
  11087. egg_cv_var_tcl_threaded="yes"
  11088. else
  11089. egg_cv_var_tcl_threaded="no"
  11090. fi
  11091. enable_tcl_threads=no
  11092. if test "$egg_cv_var_tcl_threaded" = "yes"
  11093. then
  11094. if test "$enable_tcl_threads" = "no"
  11095. then
  11096. cat << 'EOF' >&2
  11097. configure: warning:
  11098. You have disabled threads support on a system with a threaded Tcl library.
  11099. Tcl features that rely on scheduled events may not function properly.
  11100. EOF
  11101. fi
  11102. # Add pthread library to $LIBS if we need it
  11103. if test ! "${ac_cv_lib_pthread-x}" = "x"
  11104. then
  11105. LIBS="$ac_cv_lib_pthread $LIBS"
  11106. fi
  11107. fi
  11108. if test "$EGG_CYGWIN" = "yes"
  11109. then
  11110. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11111. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11112. else
  11113. if test ! "$TCLLIBEXT" = ".a"
  11114. then
  11115. cat << 'EOF' >&2
  11116. configure: warning:
  11117. Your Tcl library is not compiled statically.
  11118. You will need to compile Tcl statically to successfully compile wraith.
  11119. EOF
  11120. exit 1
  11121. else
  11122. # Was the --with-tcllib option given ?
  11123. if test ! "${tcllibname-x}" = "x"
  11124. then
  11125. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11126. TCL_LIBS="$TCLLIB/lib$TCLLIBFN $EGG_MATH_LIB"
  11127. else
  11128. TCL_REQS="$TCLLIB/lib$TCLLIBFN"
  11129. TCL_LIBS="-L$TCLLIB -l$TCLLIBFNS $EGG_MATH_LIB"
  11130. fi
  11131. fi
  11132. fi
  11133. ac_config_commands="$ac_config_commands replace-if-changed"
  11134. #checkpoint
  11135. cat >confcache <<\_ACEOF
  11136. # This file is a shell script that caches the results of configure
  11137. # tests run on this system so they can be shared between configure
  11138. # scripts and configure runs, see configure's option --config-cache.
  11139. # It is not useful on other systems. If it contains results you don't
  11140. # want to keep, you may remove or edit it.
  11141. #
  11142. # config.status only pays attention to the cache file if you give it
  11143. # the --recheck option to rerun configure.
  11144. #
  11145. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11146. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11147. # following values.
  11148. _ACEOF
  11149. # The following way of writing the cache mishandles newlines in values,
  11150. # but we know of no workaround that is simple, portable, and efficient.
  11151. # So, don't put newlines in cache variables' values.
  11152. # Ultrix sh set writes to stderr and can't be redirected directly,
  11153. # and sets the high bit in the cache file unless we assign to the vars.
  11154. {
  11155. (set) 2>&1 |
  11156. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11157. *ac_space=\ *)
  11158. # `set' does not quote correctly, so add quotes (double-quote
  11159. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11160. sed -n \
  11161. "s/'/'\\\\''/g;
  11162. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11163. ;;
  11164. *)
  11165. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11166. sed -n \
  11167. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11168. ;;
  11169. esac;
  11170. } |
  11171. sed '
  11172. t clear
  11173. : clear
  11174. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11175. t end
  11176. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11177. : end' >>confcache
  11178. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11179. if test -w $cache_file; then
  11180. test "x$cache_file" != "x/dev/null"
  11181. cat confcache >$cache_file
  11182. else
  11183. echo "not updating unwritable cache $cache_file"
  11184. fi
  11185. fi
  11186. rm -f confcache
  11187. # ---------- end of (what used to be) robey's Tcl thingies
  11188. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  11189. NUMVER=`grep "int" $srcdir/src/main.c | $AWK '/egg_numver =/ {print $5}' | sed -e 's/\;//g'`
  11190. if ! test -f $srcdir/pack/pack.cfg; then
  11191. cat << 'EOF' >&2
  11192. configure: error:
  11193. Your pack cfg is missing, please copy it to $srcdir/pack/pack.cfg
  11194. EOF
  11195. exit 1
  11196. fi
  11197. PACKNAME=`grep "PACKNAME " $srcdir/pack/pack.cfg | $AWK '/PACKNAME/ {print $2}'`
  11198. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  11199. cat >>confdefs.h <<_ACEOF
  11200. #define EGG_VERSION $version_num
  11201. _ACEOF
  11202. case "$srcdir" in
  11203. [\\/]* | ?:[\\/]*)
  11204. MOD_UPDIR=""
  11205. ;;
  11206. *)
  11207. MOD_UPDIR="../"
  11208. ;;
  11209. esac
  11210. ac_config_commands="$ac_config_commands catch-make-rebuild"
  11211. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/mod/Makefile"
  11212. cat >confcache <<\_ACEOF
  11213. # This file is a shell script that caches the results of configure
  11214. # tests run on this system so they can be shared between configure
  11215. # scripts and configure runs, see configure's option --config-cache.
  11216. # It is not useful on other systems. If it contains results you don't
  11217. # want to keep, you may remove or edit it.
  11218. #
  11219. # config.status only pays attention to the cache file if you give it
  11220. # the --recheck option to rerun configure.
  11221. #
  11222. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11223. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11224. # following values.
  11225. _ACEOF
  11226. # The following way of writing the cache mishandles newlines in values,
  11227. # but we know of no workaround that is simple, portable, and efficient.
  11228. # So, don't put newlines in cache variables' values.
  11229. # Ultrix sh set writes to stderr and can't be redirected directly,
  11230. # and sets the high bit in the cache file unless we assign to the vars.
  11231. {
  11232. (set) 2>&1 |
  11233. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11234. *ac_space=\ *)
  11235. # `set' does not quote correctly, so add quotes (double-quote
  11236. # substitution turns \\\\ into \\, and sed turns \\ into \).
  11237. sed -n \
  11238. "s/'/'\\\\''/g;
  11239. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11240. ;;
  11241. *)
  11242. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11243. sed -n \
  11244. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  11245. ;;
  11246. esac;
  11247. } |
  11248. sed '
  11249. t clear
  11250. : clear
  11251. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11252. t end
  11253. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11254. : end' >>confcache
  11255. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  11256. if test -w $cache_file; then
  11257. test "x$cache_file" != "x/dev/null"
  11258. cat confcache >$cache_file
  11259. else
  11260. echo "not updating unwritable cache $cache_file"
  11261. fi
  11262. fi
  11263. rm -f confcache
  11264. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11265. # Let make expand exec_prefix.
  11266. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11267. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11268. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11269. # trailing colons and then remove the whole line if VPATH becomes empty
  11270. # (actually we leave an empty line to preserve line numbers).
  11271. if test "x$srcdir" = x.; then
  11272. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11273. s/:*\$(srcdir):*/:/;
  11274. s/:*\${srcdir}:*/:/;
  11275. s/:*@srcdir@:*/:/;
  11276. s/^\([^=]*=[ ]*\):*/\1/;
  11277. s/:*$//;
  11278. s/^[^=]*=[ ]*$//;
  11279. }'
  11280. fi
  11281. DEFS=-DHAVE_CONFIG_H
  11282. ac_libobjs=
  11283. ac_ltlibobjs=
  11284. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  11285. # 1. Remove the extension, and $U if already installed.
  11286. ac_i=`echo "$ac_i" |
  11287. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  11288. # 2. Add them.
  11289. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  11290. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  11291. done
  11292. LIBOBJS=$ac_libobjs
  11293. LTLIBOBJS=$ac_ltlibobjs
  11294. : ${CONFIG_STATUS=./config.status}
  11295. ac_clean_files_save=$ac_clean_files
  11296. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11297. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  11298. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11299. cat >$CONFIG_STATUS <<_ACEOF
  11300. #! $SHELL
  11301. # Generated by $as_me.
  11302. # Run this file to recreate the current configuration.
  11303. # Compiler output produced by configure, useful for debugging
  11304. # configure, is in config.log if it exists.
  11305. debug=false
  11306. ac_cs_recheck=false
  11307. ac_cs_silent=false
  11308. SHELL=\${CONFIG_SHELL-$SHELL}
  11309. _ACEOF
  11310. cat >>$CONFIG_STATUS <<\_ACEOF
  11311. ## --------------------- ##
  11312. ## M4sh Initialization. ##
  11313. ## --------------------- ##
  11314. # Be Bourne compatible
  11315. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  11316. emulate sh
  11317. NULLCMD=:
  11318. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  11319. # is contrary to our usage. Disable this feature.
  11320. alias -g '${1+"$@"}'='"$@"'
  11321. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  11322. set -o posix
  11323. fi
  11324. DUALCASE=1; export DUALCASE # for MKS sh
  11325. # Support unset when possible.
  11326. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11327. as_unset=unset
  11328. else
  11329. as_unset=false
  11330. fi
  11331. # Work around bugs in pre-3.0 UWIN ksh.
  11332. $as_unset ENV MAIL MAILPATH
  11333. PS1='$ '
  11334. PS2='> '
  11335. PS4='+ '
  11336. # NLS nuisances.
  11337. for as_var in \
  11338. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  11339. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  11340. LC_TELEPHONE LC_TIME
  11341. do
  11342. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  11343. eval $as_var=C; export $as_var
  11344. else
  11345. $as_unset $as_var
  11346. fi
  11347. done
  11348. # Required to use basename.
  11349. if expr a : '\(a\)' >/dev/null 2>&1; then
  11350. as_expr=expr
  11351. else
  11352. as_expr=false
  11353. fi
  11354. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  11355. as_basename=basename
  11356. else
  11357. as_basename=false
  11358. fi
  11359. # Name of the executable.
  11360. as_me=`$as_basename "$0" ||
  11361. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11362. X"$0" : 'X\(//\)$' \| \
  11363. X"$0" : 'X\(/\)$' \| \
  11364. . : '\(.\)' 2>/dev/null ||
  11365. echo X/"$0" |
  11366. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  11367. /^X\/\(\/\/\)$/{ s//\1/; q; }
  11368. /^X\/\(\/\).*/{ s//\1/; q; }
  11369. s/.*/./; q'`
  11370. # PATH needs CR, and LINENO needs CR and PATH.
  11371. # Avoid depending upon Character Ranges.
  11372. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11373. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11374. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11375. as_cr_digits='0123456789'
  11376. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11377. # The user is always right.
  11378. if test "${PATH_SEPARATOR+set}" != set; then
  11379. echo "#! /bin/sh" >conf$$.sh
  11380. echo "exit 0" >>conf$$.sh
  11381. chmod +x conf$$.sh
  11382. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  11383. PATH_SEPARATOR=';'
  11384. else
  11385. PATH_SEPARATOR=:
  11386. fi
  11387. rm -f conf$$.sh
  11388. fi
  11389. as_lineno_1=$LINENO
  11390. as_lineno_2=$LINENO
  11391. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11392. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11393. test "x$as_lineno_3" = "x$as_lineno_2" || {
  11394. # Find who we are. Look in the path if we contain no path at all
  11395. # relative or not.
  11396. case $0 in
  11397. *[\\/]* ) as_myself=$0 ;;
  11398. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11399. for as_dir in $PATH
  11400. do
  11401. IFS=$as_save_IFS
  11402. test -z "$as_dir" && as_dir=.
  11403. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11404. done
  11405. ;;
  11406. esac
  11407. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11408. # in which case we are not to be found in the path.
  11409. if test "x$as_myself" = x; then
  11410. as_myself=$0
  11411. fi
  11412. if test ! -f "$as_myself"; then
  11413. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  11414. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  11415. { (exit 1); exit 1; }; }
  11416. fi
  11417. case $CONFIG_SHELL in
  11418. '')
  11419. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11420. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  11421. do
  11422. IFS=$as_save_IFS
  11423. test -z "$as_dir" && as_dir=.
  11424. for as_base in sh bash ksh sh5; do
  11425. case $as_dir in
  11426. /*)
  11427. if ("$as_dir/$as_base" -c '
  11428. as_lineno_1=$LINENO
  11429. as_lineno_2=$LINENO
  11430. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  11431. test "x$as_lineno_1" != "x$as_lineno_2" &&
  11432. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  11433. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  11434. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  11435. CONFIG_SHELL=$as_dir/$as_base
  11436. export CONFIG_SHELL
  11437. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  11438. fi;;
  11439. esac
  11440. done
  11441. done
  11442. ;;
  11443. esac
  11444. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  11445. # uniformly replaced by the line number. The first 'sed' inserts a
  11446. # line-number line before each line; the second 'sed' does the real
  11447. # work. The second script uses 'N' to pair each line-number line
  11448. # with the numbered line, and appends trailing '-' during
  11449. # substitution so that $LINENO is not a special case at line end.
  11450. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  11451. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  11452. sed '=' <$as_myself |
  11453. sed '
  11454. N
  11455. s,$,-,
  11456. : loop
  11457. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  11458. t loop
  11459. s,-$,,
  11460. s,^['$as_cr_digits']*\n,,
  11461. ' >$as_me.lineno &&
  11462. chmod +x $as_me.lineno ||
  11463. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  11464. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  11465. { (exit 1); exit 1; }; }
  11466. # Don't try to exec as it changes $[0], causing all sort of problems
  11467. # (the dirname of $[0] is not the place where we might find the
  11468. # original and so on. Autoconf is especially sensible to this).
  11469. . ./$as_me.lineno
  11470. # Exit status is that of the last command.
  11471. exit
  11472. }
  11473. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  11474. *c*,-n*) ECHO_N= ECHO_C='
  11475. ' ECHO_T=' ' ;;
  11476. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  11477. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  11478. esac
  11479. if expr a : '\(a\)' >/dev/null 2>&1; then
  11480. as_expr=expr
  11481. else
  11482. as_expr=false
  11483. fi
  11484. rm -f conf$$ conf$$.exe conf$$.file
  11485. echo >conf$$.file
  11486. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11487. # We could just check for DJGPP; but this test a) works b) is more generic
  11488. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  11489. if test -f conf$$.exe; then
  11490. # Don't use ln at all; we don't have any links
  11491. as_ln_s='cp -p'
  11492. else
  11493. as_ln_s='ln -s'
  11494. fi
  11495. elif ln conf$$.file conf$$ 2>/dev/null; then
  11496. as_ln_s=ln
  11497. else
  11498. as_ln_s='cp -p'
  11499. fi
  11500. rm -f conf$$ conf$$.exe conf$$.file
  11501. if mkdir -p . 2>/dev/null; then
  11502. as_mkdir_p=:
  11503. else
  11504. test -d ./-p && rmdir ./-p
  11505. as_mkdir_p=false
  11506. fi
  11507. as_executable_p="test -f"
  11508. # Sed expression to map a string onto a valid CPP name.
  11509. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11510. # Sed expression to map a string onto a valid variable name.
  11511. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11512. # IFS
  11513. # We need space, tab and new line, in precisely that order.
  11514. as_nl='
  11515. '
  11516. IFS=" $as_nl"
  11517. # CDPATH.
  11518. $as_unset CDPATH
  11519. exec 6>&1
  11520. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  11521. # report actual input values of CONFIG_FILES etc. instead of their
  11522. # values after options handling. Logging --version etc. is OK.
  11523. exec 5>>config.log
  11524. {
  11525. echo
  11526. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11527. ## Running $as_me. ##
  11528. _ASBOX
  11529. } >&5
  11530. cat >&5 <<_CSEOF
  11531. This file was extended by $as_me, which was
  11532. generated by GNU Autoconf 2.59. Invocation command line was
  11533. CONFIG_FILES = $CONFIG_FILES
  11534. CONFIG_HEADERS = $CONFIG_HEADERS
  11535. CONFIG_LINKS = $CONFIG_LINKS
  11536. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11537. $ $0 $@
  11538. _CSEOF
  11539. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  11540. echo >&5
  11541. _ACEOF
  11542. # Files that config.status was made for.
  11543. if test -n "$ac_config_files"; then
  11544. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  11545. fi
  11546. if test -n "$ac_config_headers"; then
  11547. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  11548. fi
  11549. if test -n "$ac_config_links"; then
  11550. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  11551. fi
  11552. if test -n "$ac_config_commands"; then
  11553. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  11554. fi
  11555. cat >>$CONFIG_STATUS <<\_ACEOF
  11556. ac_cs_usage="\
  11557. \`$as_me' instantiates files from templates according to the
  11558. current configuration.
  11559. Usage: $0 [OPTIONS] [FILE]...
  11560. -h, --help print this help, then exit
  11561. -V, --version print version number, then exit
  11562. -q, --quiet do not print progress messages
  11563. -d, --debug don't remove temporary files
  11564. --recheck update $as_me by reconfiguring in the same conditions
  11565. --file=FILE[:TEMPLATE]
  11566. instantiate the configuration file FILE
  11567. --header=FILE[:TEMPLATE]
  11568. instantiate the configuration header FILE
  11569. Configuration files:
  11570. $config_files
  11571. Configuration headers:
  11572. $config_headers
  11573. Configuration commands:
  11574. $config_commands
  11575. Report bugs to <bug-autoconf@gnu.org>."
  11576. _ACEOF
  11577. cat >>$CONFIG_STATUS <<_ACEOF
  11578. ac_cs_version="\\
  11579. config.status
  11580. configured by $0, generated by GNU Autoconf 2.59,
  11581. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  11582. Copyright (C) 2003 Free Software Foundation, Inc.
  11583. This config.status script is free software; the Free Software Foundation
  11584. gives unlimited permission to copy, distribute and modify it."
  11585. srcdir=$srcdir
  11586. _ACEOF
  11587. cat >>$CONFIG_STATUS <<\_ACEOF
  11588. # If no file are specified by the user, then we need to provide default
  11589. # value. By we need to know if files were specified by the user.
  11590. ac_need_defaults=:
  11591. while test $# != 0
  11592. do
  11593. case $1 in
  11594. --*=*)
  11595. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  11596. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  11597. ac_shift=:
  11598. ;;
  11599. -*)
  11600. ac_option=$1
  11601. ac_optarg=$2
  11602. ac_shift=shift
  11603. ;;
  11604. *) # This is not an option, so the user has probably given explicit
  11605. # arguments.
  11606. ac_option=$1
  11607. ac_need_defaults=false;;
  11608. esac
  11609. case $ac_option in
  11610. # Handling of the options.
  11611. _ACEOF
  11612. cat >>$CONFIG_STATUS <<\_ACEOF
  11613. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11614. ac_cs_recheck=: ;;
  11615. --version | --vers* | -V )
  11616. echo "$ac_cs_version"; exit 0 ;;
  11617. --he | --h)
  11618. # Conflict between --help and --header
  11619. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  11620. Try \`$0 --help' for more information." >&5
  11621. echo "$as_me: error: ambiguous option: $1
  11622. Try \`$0 --help' for more information." >&2;}
  11623. { (exit 1); exit 1; }; };;
  11624. --help | --hel | -h )
  11625. echo "$ac_cs_usage"; exit 0 ;;
  11626. --debug | --d* | -d )
  11627. debug=: ;;
  11628. --file | --fil | --fi | --f )
  11629. $ac_shift
  11630. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11631. ac_need_defaults=false;;
  11632. --header | --heade | --head | --hea )
  11633. $ac_shift
  11634. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11635. ac_need_defaults=false;;
  11636. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11637. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11638. ac_cs_silent=: ;;
  11639. # This is an error.
  11640. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  11641. Try \`$0 --help' for more information." >&5
  11642. echo "$as_me: error: unrecognized option: $1
  11643. Try \`$0 --help' for more information." >&2;}
  11644. { (exit 1); exit 1; }; } ;;
  11645. *) ac_config_targets="$ac_config_targets $1" ;;
  11646. esac
  11647. shift
  11648. done
  11649. ac_configure_extra_args=
  11650. if $ac_cs_silent; then
  11651. exec 6>/dev/null
  11652. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11653. fi
  11654. _ACEOF
  11655. cat >>$CONFIG_STATUS <<_ACEOF
  11656. if \$ac_cs_recheck; then
  11657. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11658. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11659. fi
  11660. _ACEOF
  11661. cat >>$CONFIG_STATUS <<_ACEOF
  11662. #
  11663. # INIT-COMMANDS section.
  11664. #
  11665. egg_tclinc="$TCLINC"
  11666. egg_tclincfn="$TCLINCFN"
  11667. _ACEOF
  11668. cat >>$CONFIG_STATUS <<\_ACEOF
  11669. for ac_config_target in $ac_config_targets
  11670. do
  11671. case "$ac_config_target" in
  11672. # Handling of arguments.
  11673. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11674. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11675. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11676. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11677. "replace-if-changed" ) CONFIG_COMMANDS="$CONFIG_COMMANDS replace-if-changed" ;;
  11678. "catch-make-rebuild" ) CONFIG_COMMANDS="$CONFIG_COMMANDS catch-make-rebuild" ;;
  11679. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11680. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11681. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11682. { (exit 1); exit 1; }; };;
  11683. esac
  11684. done
  11685. # If the user did not use the arguments to specify the items to instantiate,
  11686. # then the envvar interface is used. Set only those that are not.
  11687. # We use the long form for the default assignment because of an extremely
  11688. # bizarre bug on SunOS 4.1.3.
  11689. if $ac_need_defaults; then
  11690. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11691. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11692. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11693. fi
  11694. # Have a temporary directory for convenience. Make it in the build tree
  11695. # simply because there is no reason to put it here, and in addition,
  11696. # creating and moving files from /tmp can sometimes cause problems.
  11697. # Create a temporary directory, and hook for its removal unless debugging.
  11698. $debug ||
  11699. {
  11700. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11701. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11702. }
  11703. # Create a (secure) tmp directory for tmp files.
  11704. {
  11705. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11706. test -n "$tmp" && test -d "$tmp"
  11707. } ||
  11708. {
  11709. tmp=./confstat$$-$RANDOM
  11710. (umask 077 && mkdir $tmp)
  11711. } ||
  11712. {
  11713. echo "$me: cannot create a temporary directory in ." >&2
  11714. { (exit 1); exit 1; }
  11715. }
  11716. _ACEOF
  11717. cat >>$CONFIG_STATUS <<_ACEOF
  11718. #
  11719. # CONFIG_FILES section.
  11720. #
  11721. # No need to generate the scripts if there are no CONFIG_FILES.
  11722. # This happens for instance when ./config.status config.h
  11723. if test -n "\$CONFIG_FILES"; then
  11724. # Protect against being on the right side of a sed subst in config.status.
  11725. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11726. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11727. s,@SHELL@,$SHELL,;t t
  11728. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11729. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11730. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11731. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11732. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11733. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11734. s,@exec_prefix@,$exec_prefix,;t t
  11735. s,@prefix@,$prefix,;t t
  11736. s,@program_transform_name@,$program_transform_name,;t t
  11737. s,@bindir@,$bindir,;t t
  11738. s,@sbindir@,$sbindir,;t t
  11739. s,@libexecdir@,$libexecdir,;t t
  11740. s,@datadir@,$datadir,;t t
  11741. s,@sysconfdir@,$sysconfdir,;t t
  11742. s,@sharedstatedir@,$sharedstatedir,;t t
  11743. s,@localstatedir@,$localstatedir,;t t
  11744. s,@libdir@,$libdir,;t t
  11745. s,@includedir@,$includedir,;t t
  11746. s,@oldincludedir@,$oldincludedir,;t t
  11747. s,@infodir@,$infodir,;t t
  11748. s,@mandir@,$mandir,;t t
  11749. s,@build_alias@,$build_alias,;t t
  11750. s,@host_alias@,$host_alias,;t t
  11751. s,@target_alias@,$target_alias,;t t
  11752. s,@DEFS@,$DEFS,;t t
  11753. s,@ECHO_C@,$ECHO_C,;t t
  11754. s,@ECHO_N@,$ECHO_N,;t t
  11755. s,@ECHO_T@,$ECHO_T,;t t
  11756. s,@LIBS@,$LIBS,;t t
  11757. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11758. s,@CC@,$CC,;t t
  11759. s,@CFLAGS@,$CFLAGS,;t t
  11760. s,@LDFLAGS@,$LDFLAGS,;t t
  11761. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11762. s,@ac_ct_CC@,$ac_ct_CC,;t t
  11763. s,@EXEEXT@,$EXEEXT,;t t
  11764. s,@OBJEXT@,$OBJEXT,;t t
  11765. s,@CPP@,$CPP,;t t
  11766. s,@EGREP@,$EGREP,;t t
  11767. s,@SET_MAKE@,$SET_MAKE,;t t
  11768. s,@HEAD_1@,$HEAD_1,;t t
  11769. s,@STRIP@,$STRIP,;t t
  11770. s,@AWK@,$AWK,;t t
  11771. s,@BASENAME@,$BASENAME,;t t
  11772. s,@UNAME@,$UNAME,;t t
  11773. s,@ZLIB@,$ZLIB,;t t
  11774. s,@SSL@,$SSL,;t t
  11775. s,@LIBOBJS@,$LIBOBJS,;t t
  11776. s,@TCLLIB@,$TCLLIB,;t t
  11777. s,@TCLLIBFN@,$TCLLIBFN,;t t
  11778. s,@TCLINC@,$TCLINC,;t t
  11779. s,@TCLINCFN@,$TCLINCFN,;t t
  11780. s,@TCL_REQS@,$TCL_REQS,;t t
  11781. s,@TCL_LIBS@,$TCL_LIBS,;t t
  11782. s,@VERSION@,$VERSION,;t t
  11783. s,@NUMVER@,$NUMVER,;t t
  11784. s,@PACKNAME@,$PACKNAME,;t t
  11785. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11786. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11787. CEOF
  11788. _ACEOF
  11789. cat >>$CONFIG_STATUS <<\_ACEOF
  11790. # Split the substitutions into bite-sized pieces for seds with
  11791. # small command number limits, like on Digital OSF/1 and HP-UX.
  11792. ac_max_sed_lines=48
  11793. ac_sed_frag=1 # Number of current file.
  11794. ac_beg=1 # First line for current file.
  11795. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11796. ac_more_lines=:
  11797. ac_sed_cmds=
  11798. while $ac_more_lines; do
  11799. if test $ac_beg -gt 1; then
  11800. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11801. else
  11802. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11803. fi
  11804. if test ! -s $tmp/subs.frag; then
  11805. ac_more_lines=false
  11806. else
  11807. # The purpose of the label and of the branching condition is to
  11808. # speed up the sed processing (if there are no `@' at all, there
  11809. # is no need to browse any of the substitutions).
  11810. # These are the two extra sed commands mentioned above.
  11811. (echo ':t
  11812. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11813. if test -z "$ac_sed_cmds"; then
  11814. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11815. else
  11816. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11817. fi
  11818. ac_sed_frag=`expr $ac_sed_frag + 1`
  11819. ac_beg=$ac_end
  11820. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11821. fi
  11822. done
  11823. if test -z "$ac_sed_cmds"; then
  11824. ac_sed_cmds=cat
  11825. fi
  11826. fi # test -n "$CONFIG_FILES"
  11827. _ACEOF
  11828. cat >>$CONFIG_STATUS <<\_ACEOF
  11829. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11830. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11831. case $ac_file in
  11832. - | *:- | *:-:* ) # input from stdin
  11833. cat >$tmp/stdin
  11834. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11835. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11836. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11837. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11838. * ) ac_file_in=$ac_file.in ;;
  11839. esac
  11840. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11841. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11842. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11843. X"$ac_file" : 'X\(//\)[^/]' \| \
  11844. X"$ac_file" : 'X\(//\)$' \| \
  11845. X"$ac_file" : 'X\(/\)' \| \
  11846. . : '\(.\)' 2>/dev/null ||
  11847. echo X"$ac_file" |
  11848. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11849. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11850. /^X\(\/\/\)$/{ s//\1/; q; }
  11851. /^X\(\/\).*/{ s//\1/; q; }
  11852. s/.*/./; q'`
  11853. { if $as_mkdir_p; then
  11854. mkdir -p "$ac_dir"
  11855. else
  11856. as_dir="$ac_dir"
  11857. as_dirs=
  11858. while test ! -d "$as_dir"; do
  11859. as_dirs="$as_dir $as_dirs"
  11860. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11861. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11862. X"$as_dir" : 'X\(//\)[^/]' \| \
  11863. X"$as_dir" : 'X\(//\)$' \| \
  11864. X"$as_dir" : 'X\(/\)' \| \
  11865. . : '\(.\)' 2>/dev/null ||
  11866. echo X"$as_dir" |
  11867. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11868. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11869. /^X\(\/\/\)$/{ s//\1/; q; }
  11870. /^X\(\/\).*/{ s//\1/; q; }
  11871. s/.*/./; q'`
  11872. done
  11873. test ! -n "$as_dirs" || mkdir $as_dirs
  11874. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11875. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11876. { (exit 1); exit 1; }; }; }
  11877. ac_builddir=.
  11878. if test "$ac_dir" != .; then
  11879. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11880. # A "../" for each directory in $ac_dir_suffix.
  11881. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11882. else
  11883. ac_dir_suffix= ac_top_builddir=
  11884. fi
  11885. case $srcdir in
  11886. .) # No --srcdir option. We are building in place.
  11887. ac_srcdir=.
  11888. if test -z "$ac_top_builddir"; then
  11889. ac_top_srcdir=.
  11890. else
  11891. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11892. fi ;;
  11893. [\\/]* | ?:[\\/]* ) # Absolute path.
  11894. ac_srcdir=$srcdir$ac_dir_suffix;
  11895. ac_top_srcdir=$srcdir ;;
  11896. *) # Relative path.
  11897. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11898. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11899. esac
  11900. # Do not use `cd foo && pwd` to compute absolute paths, because
  11901. # the directories may not exist.
  11902. case `pwd` in
  11903. .) ac_abs_builddir="$ac_dir";;
  11904. *)
  11905. case "$ac_dir" in
  11906. .) ac_abs_builddir=`pwd`;;
  11907. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11908. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11909. esac;;
  11910. esac
  11911. case $ac_abs_builddir in
  11912. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11913. *)
  11914. case ${ac_top_builddir}. in
  11915. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11916. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11917. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11918. esac;;
  11919. esac
  11920. case $ac_abs_builddir in
  11921. .) ac_abs_srcdir=$ac_srcdir;;
  11922. *)
  11923. case $ac_srcdir in
  11924. .) ac_abs_srcdir=$ac_abs_builddir;;
  11925. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11926. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11927. esac;;
  11928. esac
  11929. case $ac_abs_builddir in
  11930. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11931. *)
  11932. case $ac_top_srcdir in
  11933. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11934. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11935. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11936. esac;;
  11937. esac
  11938. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11939. # use $as_me), people would be surprised to read:
  11940. # /* config.h. Generated by config.status. */
  11941. if test x"$ac_file" = x-; then
  11942. configure_input=
  11943. else
  11944. configure_input="$ac_file. "
  11945. fi
  11946. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11947. sed 's,.*/,,'` by configure."
  11948. # First look for the input files in the build tree, otherwise in the
  11949. # src tree.
  11950. ac_file_inputs=`IFS=:
  11951. for f in $ac_file_in; do
  11952. case $f in
  11953. -) echo $tmp/stdin ;;
  11954. [\\/$]*)
  11955. # Absolute (can't be DOS-style, as IFS=:)
  11956. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11957. echo "$as_me: error: cannot find input file: $f" >&2;}
  11958. { (exit 1); exit 1; }; }
  11959. echo "$f";;
  11960. *) # Relative
  11961. if test -f "$f"; then
  11962. # Build tree
  11963. echo "$f"
  11964. elif test -f "$srcdir/$f"; then
  11965. # Source tree
  11966. echo "$srcdir/$f"
  11967. else
  11968. # /dev/null tree
  11969. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11970. echo "$as_me: error: cannot find input file: $f" >&2;}
  11971. { (exit 1); exit 1; }; }
  11972. fi;;
  11973. esac
  11974. done` || { (exit 1); exit 1; }
  11975. if test x"$ac_file" != x-; then
  11976. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11977. echo "$as_me: creating $ac_file" >&6;}
  11978. rm -f "$ac_file"
  11979. fi
  11980. _ACEOF
  11981. cat >>$CONFIG_STATUS <<_ACEOF
  11982. sed "$ac_vpsub
  11983. $extrasub
  11984. _ACEOF
  11985. cat >>$CONFIG_STATUS <<\_ACEOF
  11986. :t
  11987. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11988. s,@configure_input@,$configure_input,;t t
  11989. s,@srcdir@,$ac_srcdir,;t t
  11990. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11991. s,@top_srcdir@,$ac_top_srcdir,;t t
  11992. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11993. s,@builddir@,$ac_builddir,;t t
  11994. s,@abs_builddir@,$ac_abs_builddir,;t t
  11995. s,@top_builddir@,$ac_top_builddir,;t t
  11996. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11997. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11998. rm -f $tmp/stdin
  11999. if test x"$ac_file" != x-; then
  12000. mv $tmp/out $ac_file
  12001. else
  12002. cat $tmp/out
  12003. rm -f $tmp/out
  12004. fi
  12005. done
  12006. _ACEOF
  12007. cat >>$CONFIG_STATUS <<\_ACEOF
  12008. #
  12009. # CONFIG_HEADER section.
  12010. #
  12011. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  12012. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  12013. #
  12014. # ac_d sets the value in "#define NAME VALUE" lines.
  12015. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  12016. ac_dB='[ ].*$,\1#\2'
  12017. ac_dC=' '
  12018. ac_dD=',;t'
  12019. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  12020. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  12021. ac_uB='$,\1#\2define\3'
  12022. ac_uC=' '
  12023. ac_uD=',;t'
  12024. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  12025. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  12026. case $ac_file in
  12027. - | *:- | *:-:* ) # input from stdin
  12028. cat >$tmp/stdin
  12029. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12030. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12031. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12032. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  12033. * ) ac_file_in=$ac_file.in ;;
  12034. esac
  12035. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  12036. echo "$as_me: creating $ac_file" >&6;}
  12037. # First look for the input files in the build tree, otherwise in the
  12038. # src tree.
  12039. ac_file_inputs=`IFS=:
  12040. for f in $ac_file_in; do
  12041. case $f in
  12042. -) echo $tmp/stdin ;;
  12043. [\\/$]*)
  12044. # Absolute (can't be DOS-style, as IFS=:)
  12045. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12046. echo "$as_me: error: cannot find input file: $f" >&2;}
  12047. { (exit 1); exit 1; }; }
  12048. # Do quote $f, to prevent DOS paths from being IFS'd.
  12049. echo "$f";;
  12050. *) # Relative
  12051. if test -f "$f"; then
  12052. # Build tree
  12053. echo "$f"
  12054. elif test -f "$srcdir/$f"; then
  12055. # Source tree
  12056. echo "$srcdir/$f"
  12057. else
  12058. # /dev/null tree
  12059. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  12060. echo "$as_me: error: cannot find input file: $f" >&2;}
  12061. { (exit 1); exit 1; }; }
  12062. fi;;
  12063. esac
  12064. done` || { (exit 1); exit 1; }
  12065. # Remove the trailing spaces.
  12066. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  12067. _ACEOF
  12068. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  12069. # `conftest.undefs', that substitutes the proper values into
  12070. # config.h.in to produce config.h. The first handles `#define'
  12071. # templates, and the second `#undef' templates.
  12072. # And first: Protect against being on the right side of a sed subst in
  12073. # config.status. Protect against being in an unquoted here document
  12074. # in config.status.
  12075. rm -f conftest.defines conftest.undefs
  12076. # Using a here document instead of a string reduces the quoting nightmare.
  12077. # Putting comments in sed scripts is not portable.
  12078. #
  12079. # `end' is used to avoid that the second main sed command (meant for
  12080. # 0-ary CPP macros) applies to n-ary macro definitions.
  12081. # See the Autoconf documentation for `clear'.
  12082. cat >confdef2sed.sed <<\_ACEOF
  12083. s/[\\&,]/\\&/g
  12084. s,[\\$`],\\&,g
  12085. t clear
  12086. : clear
  12087. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  12088. t end
  12089. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  12090. : end
  12091. _ACEOF
  12092. # If some macros were called several times there might be several times
  12093. # the same #defines, which is useless. Nevertheless, we may not want to
  12094. # sort them, since we want the *last* AC-DEFINE to be honored.
  12095. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  12096. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  12097. rm -f confdef2sed.sed
  12098. # This sed command replaces #undef with comments. This is necessary, for
  12099. # example, in the case of _POSIX_SOURCE, which is predefined and required
  12100. # on some systems where configure will not decide to define it.
  12101. cat >>conftest.undefs <<\_ACEOF
  12102. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  12103. _ACEOF
  12104. # Break up conftest.defines because some shells have a limit on the size
  12105. # of here documents, and old seds have small limits too (100 cmds).
  12106. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  12107. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  12108. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  12109. echo ' :' >>$CONFIG_STATUS
  12110. rm -f conftest.tail
  12111. while grep . conftest.defines >/dev/null
  12112. do
  12113. # Write a limited-size here document to $tmp/defines.sed.
  12114. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  12115. # Speed up: don't consider the non `#define' lines.
  12116. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  12117. # Work around the forget-to-reset-the-flag bug.
  12118. echo 't clr' >>$CONFIG_STATUS
  12119. echo ': clr' >>$CONFIG_STATUS
  12120. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  12121. echo 'CEOF
  12122. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  12123. rm -f $tmp/in
  12124. mv $tmp/out $tmp/in
  12125. ' >>$CONFIG_STATUS
  12126. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  12127. rm -f conftest.defines
  12128. mv conftest.tail conftest.defines
  12129. done
  12130. rm -f conftest.defines
  12131. echo ' fi # grep' >>$CONFIG_STATUS
  12132. echo >>$CONFIG_STATUS
  12133. # Break up conftest.undefs because some shells have a limit on the size
  12134. # of here documents, and old seds have small limits too (100 cmds).
  12135. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  12136. rm -f conftest.tail
  12137. while grep . conftest.undefs >/dev/null
  12138. do
  12139. # Write a limited-size here document to $tmp/undefs.sed.
  12140. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  12141. # Speed up: don't consider the non `#undef'
  12142. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  12143. # Work around the forget-to-reset-the-flag bug.
  12144. echo 't clr' >>$CONFIG_STATUS
  12145. echo ': clr' >>$CONFIG_STATUS
  12146. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  12147. echo 'CEOF
  12148. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  12149. rm -f $tmp/in
  12150. mv $tmp/out $tmp/in
  12151. ' >>$CONFIG_STATUS
  12152. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  12153. rm -f conftest.undefs
  12154. mv conftest.tail conftest.undefs
  12155. done
  12156. rm -f conftest.undefs
  12157. cat >>$CONFIG_STATUS <<\_ACEOF
  12158. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12159. # use $as_me), people would be surprised to read:
  12160. # /* config.h. Generated by config.status. */
  12161. if test x"$ac_file" = x-; then
  12162. echo "/* Generated by configure. */" >$tmp/config.h
  12163. else
  12164. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  12165. fi
  12166. cat $tmp/in >>$tmp/config.h
  12167. rm -f $tmp/in
  12168. if test x"$ac_file" != x-; then
  12169. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  12170. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  12171. echo "$as_me: $ac_file is unchanged" >&6;}
  12172. else
  12173. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  12174. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12175. X"$ac_file" : 'X\(//\)[^/]' \| \
  12176. X"$ac_file" : 'X\(//\)$' \| \
  12177. X"$ac_file" : 'X\(/\)' \| \
  12178. . : '\(.\)' 2>/dev/null ||
  12179. echo X"$ac_file" |
  12180. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12181. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12182. /^X\(\/\/\)$/{ s//\1/; q; }
  12183. /^X\(\/\).*/{ s//\1/; q; }
  12184. s/.*/./; q'`
  12185. { if $as_mkdir_p; then
  12186. mkdir -p "$ac_dir"
  12187. else
  12188. as_dir="$ac_dir"
  12189. as_dirs=
  12190. while test ! -d "$as_dir"; do
  12191. as_dirs="$as_dir $as_dirs"
  12192. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12193. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12194. X"$as_dir" : 'X\(//\)[^/]' \| \
  12195. X"$as_dir" : 'X\(//\)$' \| \
  12196. X"$as_dir" : 'X\(/\)' \| \
  12197. . : '\(.\)' 2>/dev/null ||
  12198. echo X"$as_dir" |
  12199. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12200. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12201. /^X\(\/\/\)$/{ s//\1/; q; }
  12202. /^X\(\/\).*/{ s//\1/; q; }
  12203. s/.*/./; q'`
  12204. done
  12205. test ! -n "$as_dirs" || mkdir $as_dirs
  12206. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12207. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12208. { (exit 1); exit 1; }; }; }
  12209. rm -f $ac_file
  12210. mv $tmp/config.h $ac_file
  12211. fi
  12212. else
  12213. cat $tmp/config.h
  12214. rm -f $tmp/config.h
  12215. fi
  12216. done
  12217. _ACEOF
  12218. cat >>$CONFIG_STATUS <<\_ACEOF
  12219. #
  12220. # CONFIG_COMMANDS section.
  12221. #
  12222. for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  12223. ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  12224. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  12225. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  12226. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12227. X"$ac_dest" : 'X\(//\)[^/]' \| \
  12228. X"$ac_dest" : 'X\(//\)$' \| \
  12229. X"$ac_dest" : 'X\(/\)' \| \
  12230. . : '\(.\)' 2>/dev/null ||
  12231. echo X"$ac_dest" |
  12232. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12233. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12234. /^X\(\/\/\)$/{ s//\1/; q; }
  12235. /^X\(\/\).*/{ s//\1/; q; }
  12236. s/.*/./; q'`
  12237. { if $as_mkdir_p; then
  12238. mkdir -p "$ac_dir"
  12239. else
  12240. as_dir="$ac_dir"
  12241. as_dirs=
  12242. while test ! -d "$as_dir"; do
  12243. as_dirs="$as_dir $as_dirs"
  12244. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  12245. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12246. X"$as_dir" : 'X\(//\)[^/]' \| \
  12247. X"$as_dir" : 'X\(//\)$' \| \
  12248. X"$as_dir" : 'X\(/\)' \| \
  12249. . : '\(.\)' 2>/dev/null ||
  12250. echo X"$as_dir" |
  12251. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  12252. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  12253. /^X\(\/\/\)$/{ s//\1/; q; }
  12254. /^X\(\/\).*/{ s//\1/; q; }
  12255. s/.*/./; q'`
  12256. done
  12257. test ! -n "$as_dirs" || mkdir $as_dirs
  12258. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  12259. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  12260. { (exit 1); exit 1; }; }; }
  12261. ac_builddir=.
  12262. if test "$ac_dir" != .; then
  12263. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  12264. # A "../" for each directory in $ac_dir_suffix.
  12265. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  12266. else
  12267. ac_dir_suffix= ac_top_builddir=
  12268. fi
  12269. case $srcdir in
  12270. .) # No --srcdir option. We are building in place.
  12271. ac_srcdir=.
  12272. if test -z "$ac_top_builddir"; then
  12273. ac_top_srcdir=.
  12274. else
  12275. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  12276. fi ;;
  12277. [\\/]* | ?:[\\/]* ) # Absolute path.
  12278. ac_srcdir=$srcdir$ac_dir_suffix;
  12279. ac_top_srcdir=$srcdir ;;
  12280. *) # Relative path.
  12281. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  12282. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  12283. esac
  12284. # Do not use `cd foo && pwd` to compute absolute paths, because
  12285. # the directories may not exist.
  12286. case `pwd` in
  12287. .) ac_abs_builddir="$ac_dir";;
  12288. *)
  12289. case "$ac_dir" in
  12290. .) ac_abs_builddir=`pwd`;;
  12291. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  12292. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  12293. esac;;
  12294. esac
  12295. case $ac_abs_builddir in
  12296. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  12297. *)
  12298. case ${ac_top_builddir}. in
  12299. .) ac_abs_top_builddir=$ac_abs_builddir;;
  12300. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  12301. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  12302. esac;;
  12303. esac
  12304. case $ac_abs_builddir in
  12305. .) ac_abs_srcdir=$ac_srcdir;;
  12306. *)
  12307. case $ac_srcdir in
  12308. .) ac_abs_srcdir=$ac_abs_builddir;;
  12309. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  12310. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  12311. esac;;
  12312. esac
  12313. case $ac_abs_builddir in
  12314. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  12315. *)
  12316. case $ac_top_srcdir in
  12317. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  12318. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  12319. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  12320. esac;;
  12321. esac
  12322. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  12323. echo "$as_me: executing $ac_dest commands" >&6;}
  12324. case $ac_dest in
  12325. replace-if-changed )
  12326. egg_replace_file="lush.h"
  12327. cat > conftest.out << EOF
  12328. /* Ignore me but do not erase me. I am a kludge. */
  12329. #include "${egg_tclinc}/${egg_tclincfn}"
  12330. EOF
  12331. if test -f "$egg_replace_file" && cmp -s conftest.out $egg_replace_file; then
  12332. echo "lush.h is unchanged"
  12333. else
  12334. echo "creating lush.h"
  12335. mv conftest.out $egg_replace_file
  12336. fi
  12337. rm -f conftest.out
  12338. ;;
  12339. catch-make-rebuild )
  12340. if test -f .modules; then
  12341. $srcdir/misc/modconfig --top_srcdir="$srcdir/src" Makefile
  12342. fi
  12343. ;;
  12344. esac
  12345. done
  12346. _ACEOF
  12347. cat >>$CONFIG_STATUS <<\_ACEOF
  12348. { (exit 0); exit 0; }
  12349. _ACEOF
  12350. chmod +x $CONFIG_STATUS
  12351. ac_clean_files=$ac_clean_files_save
  12352. # configure is writing to config.log, and then calls config.status.
  12353. # config.status does its own redirection, appending to config.log.
  12354. # Unfortunately, on DOS this fails, as config.log is still kept open
  12355. # by configure, so config.status won't be able to write to it; its
  12356. # output is simply discarded. So we exec the FD to /dev/null,
  12357. # effectively closing config.log, so it can be properly (re)opened and
  12358. # appended to by config.status. When coming back to configure, we
  12359. # need to make the FD available again.
  12360. if test "$no_create" != yes; then
  12361. ac_cs_success=:
  12362. ac_config_status_args=
  12363. test "$silent" = yes &&
  12364. ac_config_status_args="$ac_config_status_args --quiet"
  12365. exec 5>/dev/null
  12366. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12367. exec 5>>config.log
  12368. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12369. # would make configure fail if this is the last instruction.
  12370. $ac_cs_success || { (exit 1); exit 1; }
  12371. fi