configure 357 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.36 .
  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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP EGREP CCDEPMODE GCC3 SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP UNAME DISTCC RESLIB RESINCLUDE CCDEBUG ZLIB LIBOBJS VERSION NUMVER 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_CXX_set=${CXX+set}
  664. ac_env_CXX_value=$CXX
  665. ac_cv_env_CXX_set=${CXX+set}
  666. ac_cv_env_CXX_value=$CXX
  667. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  668. ac_env_CXXFLAGS_value=$CXXFLAGS
  669. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  670. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  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_CXXCPP_set=${CXXCPP+set}
  680. ac_env_CXXCPP_value=$CXXCPP
  681. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  682. ac_cv_env_CXXCPP_value=$CXXCPP
  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. Some influential environment variables:
  741. CXX C++ compiler command
  742. CXXFLAGS C++ compiler flags
  743. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  744. nonstandard directory <lib dir>
  745. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  746. headers in a nonstandard directory <include dir>
  747. CXXCPP C++ preprocessor
  748. Use these variables to override the choices made by `configure' or to help
  749. it to find libraries and programs with nonstandard names/locations.
  750. _ACEOF
  751. fi
  752. if test "$ac_init_help" = "recursive"; then
  753. # If there are subdirs, report their specific --help.
  754. ac_popdir=`pwd`
  755. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  756. test -d $ac_dir || continue
  757. ac_builddir=.
  758. if test "$ac_dir" != .; then
  759. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  760. # A "../" for each directory in $ac_dir_suffix.
  761. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  762. else
  763. ac_dir_suffix= ac_top_builddir=
  764. fi
  765. case $srcdir in
  766. .) # No --srcdir option. We are building in place.
  767. ac_srcdir=.
  768. if test -z "$ac_top_builddir"; then
  769. ac_top_srcdir=.
  770. else
  771. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  772. fi ;;
  773. [\\/]* | ?:[\\/]* ) # Absolute path.
  774. ac_srcdir=$srcdir$ac_dir_suffix;
  775. ac_top_srcdir=$srcdir ;;
  776. *) # Relative path.
  777. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  778. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  779. esac
  780. # Do not use `cd foo && pwd` to compute absolute paths, because
  781. # the directories may not exist.
  782. case `pwd` in
  783. .) ac_abs_builddir="$ac_dir";;
  784. *)
  785. case "$ac_dir" in
  786. .) ac_abs_builddir=`pwd`;;
  787. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  788. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  789. esac;;
  790. esac
  791. case $ac_abs_builddir in
  792. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  793. *)
  794. case ${ac_top_builddir}. in
  795. .) ac_abs_top_builddir=$ac_abs_builddir;;
  796. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  798. esac;;
  799. esac
  800. case $ac_abs_builddir in
  801. .) ac_abs_srcdir=$ac_srcdir;;
  802. *)
  803. case $ac_srcdir in
  804. .) ac_abs_srcdir=$ac_abs_builddir;;
  805. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  806. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  807. esac;;
  808. esac
  809. case $ac_abs_builddir in
  810. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  811. *)
  812. case $ac_top_srcdir in
  813. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  814. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  816. esac;;
  817. esac
  818. cd $ac_dir
  819. # Check for guested configure; otherwise get Cygnus style configure.
  820. if test -f $ac_srcdir/configure.gnu; then
  821. echo
  822. $SHELL $ac_srcdir/configure.gnu --help=recursive
  823. elif test -f $ac_srcdir/configure; then
  824. echo
  825. $SHELL $ac_srcdir/configure --help=recursive
  826. elif test -f $ac_srcdir/configure.ac ||
  827. test -f $ac_srcdir/configure.in; then
  828. echo
  829. $ac_configure --help
  830. else
  831. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  832. fi
  833. cd "$ac_popdir"
  834. done
  835. fi
  836. test -n "$ac_init_help" && exit 0
  837. if $ac_init_version; then
  838. cat <<\_ACEOF
  839. Copyright (C) 2003 Free Software Foundation, Inc.
  840. This configure script is free software; the Free Software Foundation
  841. gives unlimited permission to copy, distribute and modify it.
  842. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  843. _ACEOF
  844. exit 0
  845. fi
  846. exec 5>config.log
  847. cat >&5 <<_ACEOF
  848. This file contains any messages produced by compilers while
  849. running configure, to aid debugging if configure makes a mistake.
  850. It was created by $as_me, which was
  851. generated by GNU Autoconf 2.59. Invocation command line was
  852. $ $0 $@
  853. _ACEOF
  854. {
  855. cat <<_ASUNAME
  856. ## --------- ##
  857. ## Platform. ##
  858. ## --------- ##
  859. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  860. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  861. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  862. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  863. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  864. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  865. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  866. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  867. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  868. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  869. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  870. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  871. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  872. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  873. _ASUNAME
  874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  875. for as_dir in $PATH
  876. do
  877. IFS=$as_save_IFS
  878. test -z "$as_dir" && as_dir=.
  879. echo "PATH: $as_dir"
  880. done
  881. } >&5
  882. cat >&5 <<_ACEOF
  883. ## ----------- ##
  884. ## Core tests. ##
  885. ## ----------- ##
  886. _ACEOF
  887. # Keep a trace of the command line.
  888. # Strip out --no-create and --no-recursion so they do not pile up.
  889. # Strip out --silent because we don't want to record it for future runs.
  890. # Also quote any args containing shell meta-characters.
  891. # Make two passes to allow for proper duplicate-argument suppression.
  892. ac_configure_args=
  893. ac_configure_args0=
  894. ac_configure_args1=
  895. ac_sep=
  896. ac_must_keep_next=false
  897. for ac_pass in 1 2
  898. do
  899. for ac_arg
  900. do
  901. case $ac_arg in
  902. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  904. | -silent | --silent | --silen | --sile | --sil)
  905. continue ;;
  906. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  907. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  908. esac
  909. case $ac_pass in
  910. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  911. 2)
  912. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  913. if test $ac_must_keep_next = true; then
  914. ac_must_keep_next=false # Got value, back to normal.
  915. else
  916. case $ac_arg in
  917. *=* | --config-cache | -C | -disable-* | --disable-* \
  918. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  919. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  920. | -with-* | --with-* | -without-* | --without-* | --x)
  921. case "$ac_configure_args0 " in
  922. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  923. esac
  924. ;;
  925. -* ) ac_must_keep_next=true ;;
  926. esac
  927. fi
  928. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  929. # Get rid of the leading space.
  930. ac_sep=" "
  931. ;;
  932. esac
  933. done
  934. done
  935. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  936. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  937. # When interrupted or exit'd, cleanup temporary files, and complete
  938. # config.log. We remove comments because anyway the quotes in there
  939. # would cause problems or look ugly.
  940. # WARNING: Be sure not to use single quotes in there, as some shells,
  941. # such as our DU 5.0 friend, will then `close' the trap.
  942. trap 'exit_status=$?
  943. # Save into config.log some information that might help in debugging.
  944. {
  945. echo
  946. cat <<\_ASBOX
  947. ## ---------------- ##
  948. ## Cache variables. ##
  949. ## ---------------- ##
  950. _ASBOX
  951. echo
  952. # The following way of writing the cache mishandles newlines in values,
  953. {
  954. (set) 2>&1 |
  955. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  956. *ac_space=\ *)
  957. sed -n \
  958. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  959. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  960. ;;
  961. *)
  962. sed -n \
  963. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  964. ;;
  965. esac;
  966. }
  967. echo
  968. cat <<\_ASBOX
  969. ## ----------------- ##
  970. ## Output variables. ##
  971. ## ----------------- ##
  972. _ASBOX
  973. echo
  974. for ac_var in $ac_subst_vars
  975. do
  976. eval ac_val=$`echo $ac_var`
  977. echo "$ac_var='"'"'$ac_val'"'"'"
  978. done | sort
  979. echo
  980. if test -n "$ac_subst_files"; then
  981. cat <<\_ASBOX
  982. ## ------------- ##
  983. ## Output files. ##
  984. ## ------------- ##
  985. _ASBOX
  986. echo
  987. for ac_var in $ac_subst_files
  988. do
  989. eval ac_val=$`echo $ac_var`
  990. echo "$ac_var='"'"'$ac_val'"'"'"
  991. done | sort
  992. echo
  993. fi
  994. if test -s confdefs.h; then
  995. cat <<\_ASBOX
  996. ## ----------- ##
  997. ## confdefs.h. ##
  998. ## ----------- ##
  999. _ASBOX
  1000. echo
  1001. sed "/^$/d" confdefs.h | sort
  1002. echo
  1003. fi
  1004. test "$ac_signal" != 0 &&
  1005. echo "$as_me: caught signal $ac_signal"
  1006. echo "$as_me: exit $exit_status"
  1007. } >&5
  1008. rm -f core *.core &&
  1009. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1010. exit $exit_status
  1011. ' 0
  1012. for ac_signal in 1 2 13 15; do
  1013. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1014. done
  1015. ac_signal=0
  1016. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1017. rm -rf conftest* confdefs.h
  1018. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1019. echo >confdefs.h
  1020. # Predefined preprocessor variables.
  1021. cat >>confdefs.h <<_ACEOF
  1022. #define PACKAGE_NAME "$PACKAGE_NAME"
  1023. _ACEOF
  1024. cat >>confdefs.h <<_ACEOF
  1025. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1026. _ACEOF
  1027. cat >>confdefs.h <<_ACEOF
  1028. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1029. _ACEOF
  1030. cat >>confdefs.h <<_ACEOF
  1031. #define PACKAGE_STRING "$PACKAGE_STRING"
  1032. _ACEOF
  1033. cat >>confdefs.h <<_ACEOF
  1034. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1035. _ACEOF
  1036. # Let the site file select an alternate cache file if it wants to.
  1037. # Prefer explicitly selected file to automatically selected ones.
  1038. if test -z "$CONFIG_SITE"; then
  1039. if test "x$prefix" != xNONE; then
  1040. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1041. else
  1042. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1043. fi
  1044. fi
  1045. for ac_site_file in $CONFIG_SITE; do
  1046. if test -r "$ac_site_file"; then
  1047. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1048. echo "$as_me: loading site script $ac_site_file" >&6;}
  1049. sed 's/^/| /' "$ac_site_file" >&5
  1050. . "$ac_site_file"
  1051. fi
  1052. done
  1053. if test -r "$cache_file"; then
  1054. # Some versions of bash will fail to source /dev/null (special
  1055. # files actually), so we avoid doing that.
  1056. if test -f "$cache_file"; then
  1057. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1058. echo "$as_me: loading cache $cache_file" >&6;}
  1059. case $cache_file in
  1060. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1061. *) . ./$cache_file;;
  1062. esac
  1063. fi
  1064. else
  1065. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1066. echo "$as_me: creating cache $cache_file" >&6;}
  1067. >$cache_file
  1068. fi
  1069. # Check that the precious variables saved in the cache have kept the same
  1070. # value.
  1071. ac_cache_corrupted=false
  1072. for ac_var in `(set) 2>&1 |
  1073. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1074. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1075. eval ac_new_set=\$ac_env_${ac_var}_set
  1076. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1077. eval ac_new_val="\$ac_env_${ac_var}_value"
  1078. case $ac_old_set,$ac_new_set in
  1079. set,)
  1080. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1081. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1082. ac_cache_corrupted=: ;;
  1083. ,set)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,);;
  1088. *)
  1089. if test "x$ac_old_val" != "x$ac_new_val"; then
  1090. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1091. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1092. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1093. echo "$as_me: former value: $ac_old_val" >&2;}
  1094. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1095. echo "$as_me: current value: $ac_new_val" >&2;}
  1096. ac_cache_corrupted=:
  1097. fi;;
  1098. esac
  1099. # Pass precious variables to config.status.
  1100. if test "$ac_new_set" = set; then
  1101. case $ac_new_val in
  1102. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1103. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1104. *) ac_arg=$ac_var=$ac_new_val ;;
  1105. esac
  1106. case " $ac_configure_args " in
  1107. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1108. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1109. esac
  1110. fi
  1111. done
  1112. if $ac_cache_corrupted; then
  1113. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1114. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1115. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1116. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. ac_ext=c
  1120. ac_cpp='$CPP $CPPFLAGS'
  1121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1124. ac_config_headers="$ac_config_headers config.h"
  1125. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1126. egg_ac_parameters=
  1127. ac_prev=
  1128. for ac_arg in $ac_configure_args; do
  1129. if test -n "$ac_prev"; then
  1130. ac_prev=
  1131. continue
  1132. fi
  1133. case $ac_arg in
  1134. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1135. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1136. ac_prev=cache_file ;;
  1137. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1138. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1139. | --c=*)
  1140. ;;
  1141. --config-cache | -C)
  1142. ;;
  1143. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1144. ac_prev=srcdir ;;
  1145. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1146. ;;
  1147. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1148. esac
  1149. done
  1150. # Setup build environment
  1151. #AC_REQUIRE_CPP
  1152. ac_ext=cc
  1153. ac_cpp='$CXXCPP $CPPFLAGS'
  1154. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1155. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1156. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1157. ac_ext=cc
  1158. ac_cpp='$CXXCPP $CPPFLAGS'
  1159. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1160. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1161. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1162. if test -n "$ac_tool_prefix"; then
  1163. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1164. do
  1165. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1166. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1167. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1168. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1169. if test "${ac_cv_prog_CXX+set}" = set; then
  1170. echo $ECHO_N "(cached) $ECHO_C" >&6
  1171. else
  1172. if test -n "$CXX"; then
  1173. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1174. else
  1175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1176. for as_dir in $PATH
  1177. do
  1178. IFS=$as_save_IFS
  1179. test -z "$as_dir" && as_dir=.
  1180. for ac_exec_ext in '' $ac_executable_extensions; do
  1181. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1182. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1183. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1184. break 2
  1185. fi
  1186. done
  1187. done
  1188. fi
  1189. fi
  1190. CXX=$ac_cv_prog_CXX
  1191. if test -n "$CXX"; then
  1192. echo "$as_me:$LINENO: result: $CXX" >&5
  1193. echo "${ECHO_T}$CXX" >&6
  1194. else
  1195. echo "$as_me:$LINENO: result: no" >&5
  1196. echo "${ECHO_T}no" >&6
  1197. fi
  1198. test -n "$CXX" && break
  1199. done
  1200. fi
  1201. if test -z "$CXX"; then
  1202. ac_ct_CXX=$CXX
  1203. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1204. do
  1205. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1206. set dummy $ac_prog; ac_word=$2
  1207. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1208. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1209. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1210. echo $ECHO_N "(cached) $ECHO_C" >&6
  1211. else
  1212. if test -n "$ac_ct_CXX"; then
  1213. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1214. else
  1215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1216. for as_dir in $PATH
  1217. do
  1218. IFS=$as_save_IFS
  1219. test -z "$as_dir" && as_dir=.
  1220. for ac_exec_ext in '' $ac_executable_extensions; do
  1221. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1222. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1223. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1224. break 2
  1225. fi
  1226. done
  1227. done
  1228. fi
  1229. fi
  1230. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1231. if test -n "$ac_ct_CXX"; then
  1232. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1233. echo "${ECHO_T}$ac_ct_CXX" >&6
  1234. else
  1235. echo "$as_me:$LINENO: result: no" >&5
  1236. echo "${ECHO_T}no" >&6
  1237. fi
  1238. test -n "$ac_ct_CXX" && break
  1239. done
  1240. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1241. CXX=$ac_ct_CXX
  1242. fi
  1243. # Provide some information about the compiler.
  1244. echo "$as_me:$LINENO:" \
  1245. "checking for C++ compiler version" >&5
  1246. ac_compiler=`set X $ac_compile; echo $2`
  1247. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1248. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1249. ac_status=$?
  1250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1251. (exit $ac_status); }
  1252. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1253. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1254. ac_status=$?
  1255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1256. (exit $ac_status); }
  1257. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1258. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1259. ac_status=$?
  1260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1261. (exit $ac_status); }
  1262. cat >conftest.$ac_ext <<_ACEOF
  1263. /* confdefs.h. */
  1264. _ACEOF
  1265. cat confdefs.h >>conftest.$ac_ext
  1266. cat >>conftest.$ac_ext <<_ACEOF
  1267. /* end confdefs.h. */
  1268. int
  1269. main ()
  1270. {
  1271. ;
  1272. return 0;
  1273. }
  1274. _ACEOF
  1275. ac_clean_files_save=$ac_clean_files
  1276. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1277. # Try to create an executable without -o first, disregard a.out.
  1278. # It will help us diagnose broken compilers, and finding out an intuition
  1279. # of exeext.
  1280. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1281. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1282. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1283. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1284. (eval $ac_link_default) 2>&5
  1285. ac_status=$?
  1286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1287. (exit $ac_status); }; then
  1288. # Find the output, starting from the most likely. This scheme is
  1289. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1290. # resort.
  1291. # Be careful to initialize this variable, since it used to be cached.
  1292. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1293. ac_cv_exeext=
  1294. # b.out is created by i960 compilers.
  1295. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1296. do
  1297. test -f "$ac_file" || continue
  1298. case $ac_file in
  1299. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1300. ;;
  1301. conftest.$ac_ext )
  1302. # This is the source file.
  1303. ;;
  1304. [ab].out )
  1305. # We found the default executable, but exeext='' is most
  1306. # certainly right.
  1307. break;;
  1308. *.* )
  1309. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1310. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1311. # but it would be cool to find out if it's true. Does anybody
  1312. # maintain Libtool? --akim.
  1313. export ac_cv_exeext
  1314. break;;
  1315. * )
  1316. break;;
  1317. esac
  1318. done
  1319. else
  1320. echo "$as_me: failed program was:" >&5
  1321. sed 's/^/| /' conftest.$ac_ext >&5
  1322. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1323. See \`config.log' for more details." >&5
  1324. echo "$as_me: error: C++ compiler cannot create executables
  1325. See \`config.log' for more details." >&2;}
  1326. { (exit 77); exit 77; }; }
  1327. fi
  1328. ac_exeext=$ac_cv_exeext
  1329. echo "$as_me:$LINENO: result: $ac_file" >&5
  1330. echo "${ECHO_T}$ac_file" >&6
  1331. # Check the compiler produces executables we can run. If not, either
  1332. # the compiler is broken, or we cross compile.
  1333. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1334. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1335. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1336. # If not cross compiling, check that we can run a simple program.
  1337. if test "$cross_compiling" != yes; then
  1338. if { ac_try='./$ac_file'
  1339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1340. (eval $ac_try) 2>&5
  1341. ac_status=$?
  1342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1343. (exit $ac_status); }; }; then
  1344. cross_compiling=no
  1345. else
  1346. if test "$cross_compiling" = maybe; then
  1347. cross_compiling=yes
  1348. else
  1349. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1350. If you meant to cross compile, use \`--host'.
  1351. See \`config.log' for more details." >&5
  1352. echo "$as_me: error: cannot run C++ compiled programs.
  1353. If you meant to cross compile, use \`--host'.
  1354. See \`config.log' for more details." >&2;}
  1355. { (exit 1); exit 1; }; }
  1356. fi
  1357. fi
  1358. fi
  1359. echo "$as_me:$LINENO: result: yes" >&5
  1360. echo "${ECHO_T}yes" >&6
  1361. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1362. ac_clean_files=$ac_clean_files_save
  1363. # Check the compiler produces executables we can run. If not, either
  1364. # the compiler is broken, or we cross compile.
  1365. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1366. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1367. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1368. echo "${ECHO_T}$cross_compiling" >&6
  1369. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1370. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1371. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1372. (eval $ac_link) 2>&5
  1373. ac_status=$?
  1374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1375. (exit $ac_status); }; then
  1376. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1377. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1378. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1379. # `rm'.
  1380. for ac_file in conftest.exe conftest conftest.*; do
  1381. test -f "$ac_file" || continue
  1382. case $ac_file in
  1383. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1384. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1385. export ac_cv_exeext
  1386. break;;
  1387. * ) break;;
  1388. esac
  1389. done
  1390. else
  1391. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1392. See \`config.log' for more details." >&5
  1393. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1394. See \`config.log' for more details." >&2;}
  1395. { (exit 1); exit 1; }; }
  1396. fi
  1397. rm -f conftest$ac_cv_exeext
  1398. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1399. echo "${ECHO_T}$ac_cv_exeext" >&6
  1400. rm -f conftest.$ac_ext
  1401. EXEEXT=$ac_cv_exeext
  1402. ac_exeext=$EXEEXT
  1403. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1404. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1405. if test "${ac_cv_objext+set}" = set; then
  1406. echo $ECHO_N "(cached) $ECHO_C" >&6
  1407. else
  1408. cat >conftest.$ac_ext <<_ACEOF
  1409. /* confdefs.h. */
  1410. _ACEOF
  1411. cat confdefs.h >>conftest.$ac_ext
  1412. cat >>conftest.$ac_ext <<_ACEOF
  1413. /* end confdefs.h. */
  1414. int
  1415. main ()
  1416. {
  1417. ;
  1418. return 0;
  1419. }
  1420. _ACEOF
  1421. rm -f conftest.o conftest.obj
  1422. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1423. (eval $ac_compile) 2>&5
  1424. ac_status=$?
  1425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1426. (exit $ac_status); }; then
  1427. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1428. case $ac_file in
  1429. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1430. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1431. break;;
  1432. esac
  1433. done
  1434. else
  1435. echo "$as_me: failed program was:" >&5
  1436. sed 's/^/| /' conftest.$ac_ext >&5
  1437. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1438. See \`config.log' for more details." >&5
  1439. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1440. See \`config.log' for more details." >&2;}
  1441. { (exit 1); exit 1; }; }
  1442. fi
  1443. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1444. fi
  1445. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1446. echo "${ECHO_T}$ac_cv_objext" >&6
  1447. OBJEXT=$ac_cv_objext
  1448. ac_objext=$OBJEXT
  1449. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1450. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1451. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1452. echo $ECHO_N "(cached) $ECHO_C" >&6
  1453. else
  1454. cat >conftest.$ac_ext <<_ACEOF
  1455. /* confdefs.h. */
  1456. _ACEOF
  1457. cat confdefs.h >>conftest.$ac_ext
  1458. cat >>conftest.$ac_ext <<_ACEOF
  1459. /* end confdefs.h. */
  1460. int
  1461. main ()
  1462. {
  1463. #ifndef __GNUC__
  1464. choke me
  1465. #endif
  1466. ;
  1467. return 0;
  1468. }
  1469. _ACEOF
  1470. rm -f conftest.$ac_objext
  1471. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1472. (eval $ac_compile) 2>conftest.er1
  1473. ac_status=$?
  1474. grep -v '^ *+' conftest.er1 >conftest.err
  1475. rm -f conftest.er1
  1476. cat conftest.err >&5
  1477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1478. (exit $ac_status); } &&
  1479. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1481. (eval $ac_try) 2>&5
  1482. ac_status=$?
  1483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1484. (exit $ac_status); }; } &&
  1485. { ac_try='test -s conftest.$ac_objext'
  1486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1487. (eval $ac_try) 2>&5
  1488. ac_status=$?
  1489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1490. (exit $ac_status); }; }; then
  1491. ac_compiler_gnu=yes
  1492. else
  1493. echo "$as_me: failed program was:" >&5
  1494. sed 's/^/| /' conftest.$ac_ext >&5
  1495. ac_compiler_gnu=no
  1496. fi
  1497. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1498. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1499. fi
  1500. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1501. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  1502. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1503. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1504. ac_save_CXXFLAGS=$CXXFLAGS
  1505. CXXFLAGS="-g"
  1506. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1507. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  1508. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1509. echo $ECHO_N "(cached) $ECHO_C" >&6
  1510. else
  1511. cat >conftest.$ac_ext <<_ACEOF
  1512. /* confdefs.h. */
  1513. _ACEOF
  1514. cat confdefs.h >>conftest.$ac_ext
  1515. cat >>conftest.$ac_ext <<_ACEOF
  1516. /* end confdefs.h. */
  1517. int
  1518. main ()
  1519. {
  1520. ;
  1521. return 0;
  1522. }
  1523. _ACEOF
  1524. rm -f conftest.$ac_objext
  1525. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1526. (eval $ac_compile) 2>conftest.er1
  1527. ac_status=$?
  1528. grep -v '^ *+' conftest.er1 >conftest.err
  1529. rm -f conftest.er1
  1530. cat conftest.err >&5
  1531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1532. (exit $ac_status); } &&
  1533. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1535. (eval $ac_try) 2>&5
  1536. ac_status=$?
  1537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1538. (exit $ac_status); }; } &&
  1539. { ac_try='test -s conftest.$ac_objext'
  1540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1541. (eval $ac_try) 2>&5
  1542. ac_status=$?
  1543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1544. (exit $ac_status); }; }; then
  1545. ac_cv_prog_cxx_g=yes
  1546. else
  1547. echo "$as_me: failed program was:" >&5
  1548. sed 's/^/| /' conftest.$ac_ext >&5
  1549. ac_cv_prog_cxx_g=no
  1550. fi
  1551. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1552. fi
  1553. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  1554. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  1555. if test "$ac_test_CXXFLAGS" = set; then
  1556. CXXFLAGS=$ac_save_CXXFLAGS
  1557. elif test $ac_cv_prog_cxx_g = yes; then
  1558. if test "$GXX" = yes; then
  1559. CXXFLAGS="-g -O2"
  1560. else
  1561. CXXFLAGS="-g"
  1562. fi
  1563. else
  1564. if test "$GXX" = yes; then
  1565. CXXFLAGS="-O2"
  1566. else
  1567. CXXFLAGS=
  1568. fi
  1569. fi
  1570. for ac_declaration in \
  1571. '' \
  1572. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1573. 'extern "C" void std::exit (int); using std::exit;' \
  1574. 'extern "C" void exit (int) throw ();' \
  1575. 'extern "C" void exit (int);' \
  1576. 'void exit (int);'
  1577. do
  1578. cat >conftest.$ac_ext <<_ACEOF
  1579. /* confdefs.h. */
  1580. _ACEOF
  1581. cat confdefs.h >>conftest.$ac_ext
  1582. cat >>conftest.$ac_ext <<_ACEOF
  1583. /* end confdefs.h. */
  1584. $ac_declaration
  1585. #include <stdlib.h>
  1586. int
  1587. main ()
  1588. {
  1589. exit (42);
  1590. ;
  1591. return 0;
  1592. }
  1593. _ACEOF
  1594. rm -f conftest.$ac_objext
  1595. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1596. (eval $ac_compile) 2>conftest.er1
  1597. ac_status=$?
  1598. grep -v '^ *+' conftest.er1 >conftest.err
  1599. rm -f conftest.er1
  1600. cat conftest.err >&5
  1601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1602. (exit $ac_status); } &&
  1603. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1605. (eval $ac_try) 2>&5
  1606. ac_status=$?
  1607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1608. (exit $ac_status); }; } &&
  1609. { ac_try='test -s conftest.$ac_objext'
  1610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1611. (eval $ac_try) 2>&5
  1612. ac_status=$?
  1613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1614. (exit $ac_status); }; }; then
  1615. :
  1616. else
  1617. echo "$as_me: failed program was:" >&5
  1618. sed 's/^/| /' conftest.$ac_ext >&5
  1619. continue
  1620. fi
  1621. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1622. cat >conftest.$ac_ext <<_ACEOF
  1623. /* confdefs.h. */
  1624. _ACEOF
  1625. cat confdefs.h >>conftest.$ac_ext
  1626. cat >>conftest.$ac_ext <<_ACEOF
  1627. /* end confdefs.h. */
  1628. $ac_declaration
  1629. int
  1630. main ()
  1631. {
  1632. exit (42);
  1633. ;
  1634. return 0;
  1635. }
  1636. _ACEOF
  1637. rm -f conftest.$ac_objext
  1638. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1639. (eval $ac_compile) 2>conftest.er1
  1640. ac_status=$?
  1641. grep -v '^ *+' conftest.er1 >conftest.err
  1642. rm -f conftest.er1
  1643. cat conftest.err >&5
  1644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1645. (exit $ac_status); } &&
  1646. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1648. (eval $ac_try) 2>&5
  1649. ac_status=$?
  1650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1651. (exit $ac_status); }; } &&
  1652. { ac_try='test -s conftest.$ac_objext'
  1653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1654. (eval $ac_try) 2>&5
  1655. ac_status=$?
  1656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1657. (exit $ac_status); }; }; then
  1658. break
  1659. else
  1660. echo "$as_me: failed program was:" >&5
  1661. sed 's/^/| /' conftest.$ac_ext >&5
  1662. fi
  1663. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1664. done
  1665. rm -f conftest*
  1666. if test -n "$ac_declaration"; then
  1667. echo '#ifdef __cplusplus' >>confdefs.h
  1668. echo $ac_declaration >>confdefs.h
  1669. echo '#endif' >>confdefs.h
  1670. fi
  1671. ac_ext=cc
  1672. ac_cpp='$CXXCPP $CPPFLAGS'
  1673. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1674. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1675. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1676. if test "${cross_compiling-x}" = "x"
  1677. then
  1678. cat << 'EOF' >&2
  1679. configure: error:
  1680. This system does not appear to have a working C compiler.
  1681. A working C compiler is required to compile Eggdrop.
  1682. EOF
  1683. exit 1
  1684. fi
  1685. if test -n "$GXX"; then
  1686. CXXFLAGS="$CXXFLAGS -O3"
  1687. fi
  1688. # Crazy machines
  1689. ac_ext=cc
  1690. ac_cpp='$CXXCPP $CPPFLAGS'
  1691. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1692. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1693. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1694. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  1695. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  1696. if test -z "$CXXCPP"; then
  1697. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  1698. echo $ECHO_N "(cached) $ECHO_C" >&6
  1699. else
  1700. # Double quotes because CXXCPP needs to be expanded
  1701. for CXXCPP in "$CXX -E" "/lib/cpp"
  1702. do
  1703. ac_preproc_ok=false
  1704. for ac_cxx_preproc_warn_flag in '' yes
  1705. do
  1706. # Use a header file that comes with gcc, so configuring glibc
  1707. # with a fresh cross-compiler works.
  1708. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1709. # <limits.h> exists even on freestanding compilers.
  1710. # On the NeXT, cc -E runs the code through the compiler's parser,
  1711. # not just through cpp. "Syntax error" is here to catch this case.
  1712. cat >conftest.$ac_ext <<_ACEOF
  1713. /* confdefs.h. */
  1714. _ACEOF
  1715. cat confdefs.h >>conftest.$ac_ext
  1716. cat >>conftest.$ac_ext <<_ACEOF
  1717. /* end confdefs.h. */
  1718. #ifdef __STDC__
  1719. # include <limits.h>
  1720. #else
  1721. # include <assert.h>
  1722. #endif
  1723. Syntax error
  1724. _ACEOF
  1725. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1726. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1727. ac_status=$?
  1728. grep -v '^ *+' conftest.er1 >conftest.err
  1729. rm -f conftest.er1
  1730. cat conftest.err >&5
  1731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1732. (exit $ac_status); } >/dev/null; then
  1733. if test -s conftest.err; then
  1734. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1735. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1736. else
  1737. ac_cpp_err=
  1738. fi
  1739. else
  1740. ac_cpp_err=yes
  1741. fi
  1742. if test -z "$ac_cpp_err"; then
  1743. :
  1744. else
  1745. echo "$as_me: failed program was:" >&5
  1746. sed 's/^/| /' conftest.$ac_ext >&5
  1747. # Broken: fails on valid input.
  1748. continue
  1749. fi
  1750. rm -f conftest.err conftest.$ac_ext
  1751. # OK, works on sane cases. Now check whether non-existent headers
  1752. # can be detected and how.
  1753. cat >conftest.$ac_ext <<_ACEOF
  1754. /* confdefs.h. */
  1755. _ACEOF
  1756. cat confdefs.h >>conftest.$ac_ext
  1757. cat >>conftest.$ac_ext <<_ACEOF
  1758. /* end confdefs.h. */
  1759. #include <ac_nonexistent.h>
  1760. _ACEOF
  1761. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1762. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1763. ac_status=$?
  1764. grep -v '^ *+' conftest.er1 >conftest.err
  1765. rm -f conftest.er1
  1766. cat conftest.err >&5
  1767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1768. (exit $ac_status); } >/dev/null; then
  1769. if test -s conftest.err; then
  1770. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1771. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1772. else
  1773. ac_cpp_err=
  1774. fi
  1775. else
  1776. ac_cpp_err=yes
  1777. fi
  1778. if test -z "$ac_cpp_err"; then
  1779. # Broken: success on invalid input.
  1780. continue
  1781. else
  1782. echo "$as_me: failed program was:" >&5
  1783. sed 's/^/| /' conftest.$ac_ext >&5
  1784. # Passes both tests.
  1785. ac_preproc_ok=:
  1786. break
  1787. fi
  1788. rm -f conftest.err conftest.$ac_ext
  1789. done
  1790. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1791. rm -f conftest.err conftest.$ac_ext
  1792. if $ac_preproc_ok; then
  1793. break
  1794. fi
  1795. done
  1796. ac_cv_prog_CXXCPP=$CXXCPP
  1797. fi
  1798. CXXCPP=$ac_cv_prog_CXXCPP
  1799. else
  1800. ac_cv_prog_CXXCPP=$CXXCPP
  1801. fi
  1802. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  1803. echo "${ECHO_T}$CXXCPP" >&6
  1804. ac_preproc_ok=false
  1805. for ac_cxx_preproc_warn_flag in '' yes
  1806. do
  1807. # Use a header file that comes with gcc, so configuring glibc
  1808. # with a fresh cross-compiler works.
  1809. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1810. # <limits.h> exists even on freestanding compilers.
  1811. # On the NeXT, cc -E runs the code through the compiler's parser,
  1812. # not just through cpp. "Syntax error" is here to catch this case.
  1813. cat >conftest.$ac_ext <<_ACEOF
  1814. /* confdefs.h. */
  1815. _ACEOF
  1816. cat confdefs.h >>conftest.$ac_ext
  1817. cat >>conftest.$ac_ext <<_ACEOF
  1818. /* end confdefs.h. */
  1819. #ifdef __STDC__
  1820. # include <limits.h>
  1821. #else
  1822. # include <assert.h>
  1823. #endif
  1824. Syntax error
  1825. _ACEOF
  1826. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1827. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1828. ac_status=$?
  1829. grep -v '^ *+' conftest.er1 >conftest.err
  1830. rm -f conftest.er1
  1831. cat conftest.err >&5
  1832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1833. (exit $ac_status); } >/dev/null; then
  1834. if test -s conftest.err; then
  1835. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1836. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1837. else
  1838. ac_cpp_err=
  1839. fi
  1840. else
  1841. ac_cpp_err=yes
  1842. fi
  1843. if test -z "$ac_cpp_err"; then
  1844. :
  1845. else
  1846. echo "$as_me: failed program was:" >&5
  1847. sed 's/^/| /' conftest.$ac_ext >&5
  1848. # Broken: fails on valid input.
  1849. continue
  1850. fi
  1851. rm -f conftest.err conftest.$ac_ext
  1852. # OK, works on sane cases. Now check whether non-existent headers
  1853. # can be detected and how.
  1854. cat >conftest.$ac_ext <<_ACEOF
  1855. /* confdefs.h. */
  1856. _ACEOF
  1857. cat confdefs.h >>conftest.$ac_ext
  1858. cat >>conftest.$ac_ext <<_ACEOF
  1859. /* end confdefs.h. */
  1860. #include <ac_nonexistent.h>
  1861. _ACEOF
  1862. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1863. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1864. ac_status=$?
  1865. grep -v '^ *+' conftest.er1 >conftest.err
  1866. rm -f conftest.er1
  1867. cat conftest.err >&5
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); } >/dev/null; then
  1870. if test -s conftest.err; then
  1871. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1872. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1873. else
  1874. ac_cpp_err=
  1875. fi
  1876. else
  1877. ac_cpp_err=yes
  1878. fi
  1879. if test -z "$ac_cpp_err"; then
  1880. # Broken: success on invalid input.
  1881. continue
  1882. else
  1883. echo "$as_me: failed program was:" >&5
  1884. sed 's/^/| /' conftest.$ac_ext >&5
  1885. # Passes both tests.
  1886. ac_preproc_ok=:
  1887. break
  1888. fi
  1889. rm -f conftest.err conftest.$ac_ext
  1890. done
  1891. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1892. rm -f conftest.err conftest.$ac_ext
  1893. if $ac_preproc_ok; then
  1894. :
  1895. else
  1896. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  1897. See \`config.log' for more details." >&5
  1898. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  1899. See \`config.log' for more details." >&2;}
  1900. { (exit 1); exit 1; }; }
  1901. fi
  1902. ac_ext=cc
  1903. ac_cpp='$CXXCPP $CPPFLAGS'
  1904. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1905. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1906. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1907. echo "$as_me:$LINENO: checking for egrep" >&5
  1908. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  1909. if test "${ac_cv_prog_egrep+set}" = set; then
  1910. echo $ECHO_N "(cached) $ECHO_C" >&6
  1911. else
  1912. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  1913. then ac_cv_prog_egrep='grep -E'
  1914. else ac_cv_prog_egrep='egrep'
  1915. fi
  1916. fi
  1917. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  1918. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  1919. EGREP=$ac_cv_prog_egrep
  1920. echo "$as_me:$LINENO: checking for AIX" >&5
  1921. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  1922. cat >conftest.$ac_ext <<_ACEOF
  1923. /* confdefs.h. */
  1924. _ACEOF
  1925. cat confdefs.h >>conftest.$ac_ext
  1926. cat >>conftest.$ac_ext <<_ACEOF
  1927. /* end confdefs.h. */
  1928. #ifdef _AIX
  1929. yes
  1930. #endif
  1931. _ACEOF
  1932. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1933. $EGREP "yes" >/dev/null 2>&1; then
  1934. echo "$as_me:$LINENO: result: yes" >&5
  1935. echo "${ECHO_T}yes" >&6
  1936. cat >>confdefs.h <<\_ACEOF
  1937. #define _ALL_SOURCE 1
  1938. _ACEOF
  1939. else
  1940. echo "$as_me:$LINENO: result: no" >&5
  1941. echo "${ECHO_T}no" >&6
  1942. fi
  1943. rm -f conftest*
  1944. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  1945. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  1946. if test "${ac_cv_search_strerror+set}" = set; then
  1947. echo $ECHO_N "(cached) $ECHO_C" >&6
  1948. else
  1949. ac_func_search_save_LIBS=$LIBS
  1950. ac_cv_search_strerror=no
  1951. cat >conftest.$ac_ext <<_ACEOF
  1952. /* confdefs.h. */
  1953. _ACEOF
  1954. cat confdefs.h >>conftest.$ac_ext
  1955. cat >>conftest.$ac_ext <<_ACEOF
  1956. /* end confdefs.h. */
  1957. /* Override any gcc2 internal prototype to avoid an error. */
  1958. #ifdef __cplusplus
  1959. extern "C"
  1960. #endif
  1961. /* We use char because int might match the return type of a gcc2
  1962. builtin and then its argument prototype would still apply. */
  1963. char strerror ();
  1964. int
  1965. main ()
  1966. {
  1967. strerror ();
  1968. ;
  1969. return 0;
  1970. }
  1971. _ACEOF
  1972. rm -f conftest.$ac_objext conftest$ac_exeext
  1973. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1974. (eval $ac_link) 2>conftest.er1
  1975. ac_status=$?
  1976. grep -v '^ *+' conftest.er1 >conftest.err
  1977. rm -f conftest.er1
  1978. cat conftest.err >&5
  1979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1980. (exit $ac_status); } &&
  1981. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1983. (eval $ac_try) 2>&5
  1984. ac_status=$?
  1985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1986. (exit $ac_status); }; } &&
  1987. { ac_try='test -s conftest$ac_exeext'
  1988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1989. (eval $ac_try) 2>&5
  1990. ac_status=$?
  1991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1992. (exit $ac_status); }; }; then
  1993. ac_cv_search_strerror="none required"
  1994. else
  1995. echo "$as_me: failed program was:" >&5
  1996. sed 's/^/| /' conftest.$ac_ext >&5
  1997. fi
  1998. rm -f conftest.err conftest.$ac_objext \
  1999. conftest$ac_exeext conftest.$ac_ext
  2000. if test "$ac_cv_search_strerror" = no; then
  2001. for ac_lib in cposix; do
  2002. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2003. cat >conftest.$ac_ext <<_ACEOF
  2004. /* confdefs.h. */
  2005. _ACEOF
  2006. cat confdefs.h >>conftest.$ac_ext
  2007. cat >>conftest.$ac_ext <<_ACEOF
  2008. /* end confdefs.h. */
  2009. /* Override any gcc2 internal prototype to avoid an error. */
  2010. #ifdef __cplusplus
  2011. extern "C"
  2012. #endif
  2013. /* We use char because int might match the return type of a gcc2
  2014. builtin and then its argument prototype would still apply. */
  2015. char strerror ();
  2016. int
  2017. main ()
  2018. {
  2019. strerror ();
  2020. ;
  2021. return 0;
  2022. }
  2023. _ACEOF
  2024. rm -f conftest.$ac_objext conftest$ac_exeext
  2025. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2026. (eval $ac_link) 2>conftest.er1
  2027. ac_status=$?
  2028. grep -v '^ *+' conftest.er1 >conftest.err
  2029. rm -f conftest.er1
  2030. cat conftest.err >&5
  2031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2032. (exit $ac_status); } &&
  2033. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2035. (eval $ac_try) 2>&5
  2036. ac_status=$?
  2037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2038. (exit $ac_status); }; } &&
  2039. { ac_try='test -s conftest$ac_exeext'
  2040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2041. (eval $ac_try) 2>&5
  2042. ac_status=$?
  2043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2044. (exit $ac_status); }; }; then
  2045. ac_cv_search_strerror="-l$ac_lib"
  2046. break
  2047. else
  2048. echo "$as_me: failed program was:" >&5
  2049. sed 's/^/| /' conftest.$ac_ext >&5
  2050. fi
  2051. rm -f conftest.err conftest.$ac_objext \
  2052. conftest$ac_exeext conftest.$ac_ext
  2053. done
  2054. fi
  2055. LIBS=$ac_func_search_save_LIBS
  2056. fi
  2057. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2058. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2059. if test "$ac_cv_search_strerror" != no; then
  2060. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2061. fi
  2062. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2063. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2064. if test "${ac_cv_header_stdc+set}" = set; then
  2065. echo $ECHO_N "(cached) $ECHO_C" >&6
  2066. else
  2067. cat >conftest.$ac_ext <<_ACEOF
  2068. /* confdefs.h. */
  2069. _ACEOF
  2070. cat confdefs.h >>conftest.$ac_ext
  2071. cat >>conftest.$ac_ext <<_ACEOF
  2072. /* end confdefs.h. */
  2073. #include <stdlib.h>
  2074. #include <stdarg.h>
  2075. #include <string.h>
  2076. #include <float.h>
  2077. int
  2078. main ()
  2079. {
  2080. ;
  2081. return 0;
  2082. }
  2083. _ACEOF
  2084. rm -f conftest.$ac_objext
  2085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2086. (eval $ac_compile) 2>conftest.er1
  2087. ac_status=$?
  2088. grep -v '^ *+' conftest.er1 >conftest.err
  2089. rm -f conftest.er1
  2090. cat conftest.err >&5
  2091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2092. (exit $ac_status); } &&
  2093. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2095. (eval $ac_try) 2>&5
  2096. ac_status=$?
  2097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2098. (exit $ac_status); }; } &&
  2099. { ac_try='test -s conftest.$ac_objext'
  2100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2101. (eval $ac_try) 2>&5
  2102. ac_status=$?
  2103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2104. (exit $ac_status); }; }; then
  2105. ac_cv_header_stdc=yes
  2106. else
  2107. echo "$as_me: failed program was:" >&5
  2108. sed 's/^/| /' conftest.$ac_ext >&5
  2109. ac_cv_header_stdc=no
  2110. fi
  2111. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2112. if test $ac_cv_header_stdc = yes; then
  2113. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2114. cat >conftest.$ac_ext <<_ACEOF
  2115. /* confdefs.h. */
  2116. _ACEOF
  2117. cat confdefs.h >>conftest.$ac_ext
  2118. cat >>conftest.$ac_ext <<_ACEOF
  2119. /* end confdefs.h. */
  2120. #include <string.h>
  2121. _ACEOF
  2122. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2123. $EGREP "memchr" >/dev/null 2>&1; then
  2124. :
  2125. else
  2126. ac_cv_header_stdc=no
  2127. fi
  2128. rm -f conftest*
  2129. fi
  2130. if test $ac_cv_header_stdc = yes; then
  2131. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2132. cat >conftest.$ac_ext <<_ACEOF
  2133. /* confdefs.h. */
  2134. _ACEOF
  2135. cat confdefs.h >>conftest.$ac_ext
  2136. cat >>conftest.$ac_ext <<_ACEOF
  2137. /* end confdefs.h. */
  2138. #include <stdlib.h>
  2139. _ACEOF
  2140. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2141. $EGREP "free" >/dev/null 2>&1; then
  2142. :
  2143. else
  2144. ac_cv_header_stdc=no
  2145. fi
  2146. rm -f conftest*
  2147. fi
  2148. if test $ac_cv_header_stdc = yes; then
  2149. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2150. if test "$cross_compiling" = yes; then
  2151. :
  2152. else
  2153. cat >conftest.$ac_ext <<_ACEOF
  2154. /* confdefs.h. */
  2155. _ACEOF
  2156. cat confdefs.h >>conftest.$ac_ext
  2157. cat >>conftest.$ac_ext <<_ACEOF
  2158. /* end confdefs.h. */
  2159. #include <ctype.h>
  2160. #if ((' ' & 0x0FF) == 0x020)
  2161. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2162. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2163. #else
  2164. # define ISLOWER(c) \
  2165. (('a' <= (c) && (c) <= 'i') \
  2166. || ('j' <= (c) && (c) <= 'r') \
  2167. || ('s' <= (c) && (c) <= 'z'))
  2168. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2169. #endif
  2170. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2171. int
  2172. main ()
  2173. {
  2174. int i;
  2175. for (i = 0; i < 256; i++)
  2176. if (XOR (islower (i), ISLOWER (i))
  2177. || toupper (i) != TOUPPER (i))
  2178. exit(2);
  2179. exit (0);
  2180. }
  2181. _ACEOF
  2182. rm -f conftest$ac_exeext
  2183. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2184. (eval $ac_link) 2>&5
  2185. ac_status=$?
  2186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2187. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2189. (eval $ac_try) 2>&5
  2190. ac_status=$?
  2191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2192. (exit $ac_status); }; }; then
  2193. :
  2194. else
  2195. echo "$as_me: program exited with status $ac_status" >&5
  2196. echo "$as_me: failed program was:" >&5
  2197. sed 's/^/| /' conftest.$ac_ext >&5
  2198. ( exit $ac_status )
  2199. ac_cv_header_stdc=no
  2200. fi
  2201. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2202. fi
  2203. fi
  2204. fi
  2205. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2206. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2207. if test $ac_cv_header_stdc = yes; then
  2208. cat >>confdefs.h <<\_ACEOF
  2209. #define STDC_HEADERS 1
  2210. _ACEOF
  2211. fi
  2212. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2213. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2214. inttypes.h stdint.h unistd.h
  2215. do
  2216. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2217. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2218. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2219. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2220. echo $ECHO_N "(cached) $ECHO_C" >&6
  2221. else
  2222. cat >conftest.$ac_ext <<_ACEOF
  2223. /* confdefs.h. */
  2224. _ACEOF
  2225. cat confdefs.h >>conftest.$ac_ext
  2226. cat >>conftest.$ac_ext <<_ACEOF
  2227. /* end confdefs.h. */
  2228. $ac_includes_default
  2229. #include <$ac_header>
  2230. _ACEOF
  2231. rm -f conftest.$ac_objext
  2232. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2233. (eval $ac_compile) 2>conftest.er1
  2234. ac_status=$?
  2235. grep -v '^ *+' conftest.er1 >conftest.err
  2236. rm -f conftest.er1
  2237. cat conftest.err >&5
  2238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2239. (exit $ac_status); } &&
  2240. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2242. (eval $ac_try) 2>&5
  2243. ac_status=$?
  2244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2245. (exit $ac_status); }; } &&
  2246. { ac_try='test -s conftest.$ac_objext'
  2247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2248. (eval $ac_try) 2>&5
  2249. ac_status=$?
  2250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2251. (exit $ac_status); }; }; then
  2252. eval "$as_ac_Header=yes"
  2253. else
  2254. echo "$as_me: failed program was:" >&5
  2255. sed 's/^/| /' conftest.$ac_ext >&5
  2256. eval "$as_ac_Header=no"
  2257. fi
  2258. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2259. fi
  2260. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2261. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2262. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2263. cat >>confdefs.h <<_ACEOF
  2264. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2265. _ACEOF
  2266. fi
  2267. done
  2268. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2269. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2270. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2271. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2272. echo $ECHO_N "(cached) $ECHO_C" >&6
  2273. fi
  2274. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2275. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2276. else
  2277. # Is the header compilable?
  2278. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2279. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2280. cat >conftest.$ac_ext <<_ACEOF
  2281. /* confdefs.h. */
  2282. _ACEOF
  2283. cat confdefs.h >>conftest.$ac_ext
  2284. cat >>conftest.$ac_ext <<_ACEOF
  2285. /* end confdefs.h. */
  2286. $ac_includes_default
  2287. #include <minix/config.h>
  2288. _ACEOF
  2289. rm -f conftest.$ac_objext
  2290. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2291. (eval $ac_compile) 2>conftest.er1
  2292. ac_status=$?
  2293. grep -v '^ *+' conftest.er1 >conftest.err
  2294. rm -f conftest.er1
  2295. cat conftest.err >&5
  2296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2297. (exit $ac_status); } &&
  2298. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2300. (eval $ac_try) 2>&5
  2301. ac_status=$?
  2302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2303. (exit $ac_status); }; } &&
  2304. { ac_try='test -s conftest.$ac_objext'
  2305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2306. (eval $ac_try) 2>&5
  2307. ac_status=$?
  2308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2309. (exit $ac_status); }; }; then
  2310. ac_header_compiler=yes
  2311. else
  2312. echo "$as_me: failed program was:" >&5
  2313. sed 's/^/| /' conftest.$ac_ext >&5
  2314. ac_header_compiler=no
  2315. fi
  2316. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2317. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2318. echo "${ECHO_T}$ac_header_compiler" >&6
  2319. # Is the header present?
  2320. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2321. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2322. cat >conftest.$ac_ext <<_ACEOF
  2323. /* confdefs.h. */
  2324. _ACEOF
  2325. cat confdefs.h >>conftest.$ac_ext
  2326. cat >>conftest.$ac_ext <<_ACEOF
  2327. /* end confdefs.h. */
  2328. #include <minix/config.h>
  2329. _ACEOF
  2330. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2331. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2332. ac_status=$?
  2333. grep -v '^ *+' conftest.er1 >conftest.err
  2334. rm -f conftest.er1
  2335. cat conftest.err >&5
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); } >/dev/null; then
  2338. if test -s conftest.err; then
  2339. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2340. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2341. else
  2342. ac_cpp_err=
  2343. fi
  2344. else
  2345. ac_cpp_err=yes
  2346. fi
  2347. if test -z "$ac_cpp_err"; then
  2348. ac_header_preproc=yes
  2349. else
  2350. echo "$as_me: failed program was:" >&5
  2351. sed 's/^/| /' conftest.$ac_ext >&5
  2352. ac_header_preproc=no
  2353. fi
  2354. rm -f conftest.err conftest.$ac_ext
  2355. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2356. echo "${ECHO_T}$ac_header_preproc" >&6
  2357. # So? What about this header?
  2358. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2359. yes:no: )
  2360. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2361. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2362. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2363. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2364. ac_header_preproc=yes
  2365. ;;
  2366. no:yes:* )
  2367. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2368. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2369. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2370. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2371. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2372. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2373. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2374. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2375. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2376. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2377. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2378. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2379. (
  2380. cat <<\_ASBOX
  2381. ## ------------------------------------------ ##
  2382. ## Report this to the AC_PACKAGE_NAME lists. ##
  2383. ## ------------------------------------------ ##
  2384. _ASBOX
  2385. ) |
  2386. sed "s/^/$as_me: WARNING: /" >&2
  2387. ;;
  2388. esac
  2389. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2390. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2391. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2392. echo $ECHO_N "(cached) $ECHO_C" >&6
  2393. else
  2394. ac_cv_header_minix_config_h=$ac_header_preproc
  2395. fi
  2396. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2397. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2398. fi
  2399. if test $ac_cv_header_minix_config_h = yes; then
  2400. MINIX=yes
  2401. else
  2402. MINIX=
  2403. fi
  2404. if test "$MINIX" = yes; then
  2405. cat >>confdefs.h <<\_ACEOF
  2406. #define _POSIX_SOURCE 1
  2407. _ACEOF
  2408. cat >>confdefs.h <<\_ACEOF
  2409. #define _POSIX_1_SOURCE 2
  2410. _ACEOF
  2411. cat >>confdefs.h <<\_ACEOF
  2412. #define _MINIX 1
  2413. _ACEOF
  2414. fi
  2415. #checkpoint
  2416. cat >confcache <<\_ACEOF
  2417. # This file is a shell script that caches the results of configure
  2418. # tests run on this system so they can be shared between configure
  2419. # scripts and configure runs, see configure's option --config-cache.
  2420. # It is not useful on other systems. If it contains results you don't
  2421. # want to keep, you may remove or edit it.
  2422. #
  2423. # config.status only pays attention to the cache file if you give it
  2424. # the --recheck option to rerun configure.
  2425. #
  2426. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2427. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2428. # following values.
  2429. _ACEOF
  2430. # The following way of writing the cache mishandles newlines in values,
  2431. # but we know of no workaround that is simple, portable, and efficient.
  2432. # So, don't put newlines in cache variables' values.
  2433. # Ultrix sh set writes to stderr and can't be redirected directly,
  2434. # and sets the high bit in the cache file unless we assign to the vars.
  2435. {
  2436. (set) 2>&1 |
  2437. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2438. *ac_space=\ *)
  2439. # `set' does not quote correctly, so add quotes (double-quote
  2440. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2441. sed -n \
  2442. "s/'/'\\\\''/g;
  2443. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2444. ;;
  2445. *)
  2446. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2447. sed -n \
  2448. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2449. ;;
  2450. esac;
  2451. } |
  2452. sed '
  2453. t clear
  2454. : clear
  2455. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2456. t end
  2457. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2458. : end' >>confcache
  2459. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2460. if test -w $cache_file; then
  2461. test "x$cache_file" != "x/dev/null"
  2462. cat confcache >$cache_file
  2463. else
  2464. echo "not updating unwritable cache $cache_file"
  2465. fi
  2466. fi
  2467. rm -f confcache
  2468. # Speedup compile
  2469. if test -n "$GXX" && test -z "$no_wall"; then
  2470. echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  2471. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6
  2472. if test "${egg_cv_var_ccwall+set}" = set; then
  2473. echo $ECHO_N "(cached) $ECHO_C" >&6
  2474. else
  2475. ac_old_CXXFLAGS="$CXXFLAGS"
  2476. CXXFLAGS="$CXXFLAGS -Wall"
  2477. cat >conftest.$ac_ext <<_ACEOF
  2478. int main ()
  2479. {
  2480. return(0);
  2481. }
  2482. _ACEOF
  2483. rm -f conftest.$ac_objext
  2484. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2485. (eval $ac_compile) 2>conftest.er1
  2486. ac_status=$?
  2487. grep -v '^ *+' conftest.er1 >conftest.err
  2488. rm -f conftest.er1
  2489. cat conftest.err >&5
  2490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2491. (exit $ac_status); } &&
  2492. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2494. (eval $ac_try) 2>&5
  2495. ac_status=$?
  2496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2497. (exit $ac_status); }; } &&
  2498. { ac_try='test -s conftest.$ac_objext'
  2499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2500. (eval $ac_try) 2>&5
  2501. ac_status=$?
  2502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2503. (exit $ac_status); }; }; then
  2504. egg_cv_var_ccwall="yes"
  2505. else
  2506. echo "$as_me: failed program was:" >&5
  2507. sed 's/^/| /' conftest.$ac_ext >&5
  2508. egg_cv_var_ccwall="no"
  2509. fi
  2510. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2511. CXXFLAGS="$ac_old_CXXFLAGS"
  2512. fi
  2513. echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  2514. echo "${ECHO_T}$egg_cv_var_ccwall" >&6
  2515. if test "$egg_cv_var_ccwall" = "yes"; then
  2516. CXXFLAGS="$CXXFLAGS -Wall"
  2517. fi
  2518. fi
  2519. if test -n "$GXX" && test -z "$no_pipe"; then
  2520. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2521. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2522. if test "${egg_cv_var_ccpipe+set}" = set; then
  2523. echo $ECHO_N "(cached) $ECHO_C" >&6
  2524. else
  2525. ac_old_CXX="$CXX"
  2526. CXX="$CXX -pipe"
  2527. cat >conftest.$ac_ext <<_ACEOF
  2528. int main ()
  2529. {
  2530. return(0);
  2531. }
  2532. _ACEOF
  2533. rm -f conftest.$ac_objext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2535. (eval $ac_compile) 2>conftest.er1
  2536. ac_status=$?
  2537. grep -v '^ *+' conftest.er1 >conftest.err
  2538. rm -f conftest.er1
  2539. cat conftest.err >&5
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); } &&
  2542. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2544. (eval $ac_try) 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }; } &&
  2548. { ac_try='test -s conftest.$ac_objext'
  2549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2550. (eval $ac_try) 2>&5
  2551. ac_status=$?
  2552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2553. (exit $ac_status); }; }; then
  2554. egg_cv_var_ccpipe="yes"
  2555. else
  2556. echo "$as_me: failed program was:" >&5
  2557. sed 's/^/| /' conftest.$ac_ext >&5
  2558. egg_cv_var_ccpipe="no"
  2559. fi
  2560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2561. CXX="$ac_old_CXX"
  2562. fi
  2563. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2564. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2565. if test "$egg_cv_var_ccpipe" = "yes"; then
  2566. CXX="$CXX -pipe"
  2567. fi
  2568. fi
  2569. CCDEPMODE=gcc
  2570. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2571. if test $num = "3"; then
  2572. CCDEPMODE=gcc3
  2573. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2574. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wmissing-format-attribute"
  2575. fi
  2576. #checkpoint
  2577. cat >confcache <<\_ACEOF
  2578. # This file is a shell script that caches the results of configure
  2579. # tests run on this system so they can be shared between configure
  2580. # scripts and configure runs, see configure's option --config-cache.
  2581. # It is not useful on other systems. If it contains results you don't
  2582. # want to keep, you may remove or edit it.
  2583. #
  2584. # config.status only pays attention to the cache file if you give it
  2585. # the --recheck option to rerun configure.
  2586. #
  2587. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2588. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2589. # following values.
  2590. _ACEOF
  2591. # The following way of writing the cache mishandles newlines in values,
  2592. # but we know of no workaround that is simple, portable, and efficient.
  2593. # So, don't put newlines in cache variables' values.
  2594. # Ultrix sh set writes to stderr and can't be redirected directly,
  2595. # and sets the high bit in the cache file unless we assign to the vars.
  2596. {
  2597. (set) 2>&1 |
  2598. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2599. *ac_space=\ *)
  2600. # `set' does not quote correctly, so add quotes (double-quote
  2601. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2602. sed -n \
  2603. "s/'/'\\\\''/g;
  2604. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2605. ;;
  2606. *)
  2607. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2608. sed -n \
  2609. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2610. ;;
  2611. esac;
  2612. } |
  2613. sed '
  2614. t clear
  2615. : clear
  2616. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2617. t end
  2618. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2619. : end' >>confcache
  2620. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2621. if test -w $cache_file; then
  2622. test "x$cache_file" != "x/dev/null"
  2623. cat confcache >$cache_file
  2624. else
  2625. echo "not updating unwritable cache $cache_file"
  2626. fi
  2627. fi
  2628. rm -f confcache
  2629. # Checks for programs
  2630. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2631. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2632. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2633. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2634. echo $ECHO_N "(cached) $ECHO_C" >&6
  2635. else
  2636. cat >conftest.make <<\_ACEOF
  2637. all:
  2638. @echo 'ac_maketemp="$(MAKE)"'
  2639. _ACEOF
  2640. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2641. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2642. if test -n "$ac_maketemp"; then
  2643. eval ac_cv_prog_make_${ac_make}_set=yes
  2644. else
  2645. eval ac_cv_prog_make_${ac_make}_set=no
  2646. fi
  2647. rm -f conftest.make
  2648. fi
  2649. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2650. echo "$as_me:$LINENO: result: yes" >&5
  2651. echo "${ECHO_T}yes" >&6
  2652. SET_MAKE=
  2653. else
  2654. echo "$as_me:$LINENO: result: no" >&5
  2655. echo "${ECHO_T}no" >&6
  2656. SET_MAKE="MAKE=${MAKE-make}"
  2657. fi
  2658. cat << 'EOF' > conftest.head
  2659. a
  2660. b
  2661. c
  2662. EOF
  2663. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2664. do
  2665. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2666. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2667. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2668. echo $ECHO_N "(cached) $ECHO_C" >&6
  2669. else
  2670. if test -n "$HEAD_1"
  2671. then
  2672. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2673. else
  2674. if test "`cat conftest.head | $ac_prog`" = "a";
  2675. then
  2676. echo "$as_me:$LINENO: result: yes" >&5
  2677. echo "${ECHO_T}yes" >&6
  2678. ac_cv_prog_HEAD_1=$ac_prog
  2679. else
  2680. echo "$as_me:$LINENO: result: no" >&5
  2681. echo "${ECHO_T}no" >&6
  2682. fi
  2683. fi
  2684. fi
  2685. test -n "$ac_cv_prog_HEAD_1" && break
  2686. done
  2687. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2688. then
  2689. cat << 'EOF' >&2
  2690. configure: error:
  2691. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2692. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2693. EOF
  2694. exit 1
  2695. fi
  2696. rm -f conftest.head
  2697. HEAD_1=$ac_cv_prog_HEAD_1
  2698. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2699. for ac_prog in gawk mawk nawk awk
  2700. do
  2701. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2702. set dummy $ac_prog; ac_word=$2
  2703. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2704. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2705. if test "${ac_cv_prog_AWK+set}" = set; then
  2706. echo $ECHO_N "(cached) $ECHO_C" >&6
  2707. else
  2708. if test -n "$AWK"; then
  2709. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2710. else
  2711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2712. for as_dir in $PATH
  2713. do
  2714. IFS=$as_save_IFS
  2715. test -z "$as_dir" && as_dir=.
  2716. for ac_exec_ext in '' $ac_executable_extensions; do
  2717. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2718. ac_cv_prog_AWK="$ac_prog"
  2719. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2720. break 2
  2721. fi
  2722. done
  2723. done
  2724. fi
  2725. fi
  2726. AWK=$ac_cv_prog_AWK
  2727. if test -n "$AWK"; then
  2728. echo "$as_me:$LINENO: result: $AWK" >&5
  2729. echo "${ECHO_T}$AWK" >&6
  2730. else
  2731. echo "$as_me:$LINENO: result: no" >&5
  2732. echo "${ECHO_T}no" >&6
  2733. fi
  2734. test -n "$AWK" && break
  2735. done
  2736. if test "${AWK-x}" = "x"
  2737. then
  2738. cat << 'EOF' >&2
  2739. configure: error:
  2740. This system seems to lack a working 'awk' command.
  2741. A working 'awk' command is required to compile Eggdrop.
  2742. EOF
  2743. exit 1
  2744. fi
  2745. # basename is needed for Tcl library and header checks
  2746. # Extract the first word of "basename", so it can be a program name with args.
  2747. set dummy basename; ac_word=$2
  2748. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2749. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2750. if test "${ac_cv_prog_BASENAME+set}" = set; then
  2751. echo $ECHO_N "(cached) $ECHO_C" >&6
  2752. else
  2753. if test -n "$BASENAME"; then
  2754. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  2755. else
  2756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2757. for as_dir in $PATH
  2758. do
  2759. IFS=$as_save_IFS
  2760. test -z "$as_dir" && as_dir=.
  2761. for ac_exec_ext in '' $ac_executable_extensions; do
  2762. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2763. ac_cv_prog_BASENAME="basename"
  2764. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2765. break 2
  2766. fi
  2767. done
  2768. done
  2769. fi
  2770. fi
  2771. BASENAME=$ac_cv_prog_BASENAME
  2772. if test -n "$BASENAME"; then
  2773. echo "$as_me:$LINENO: result: $BASENAME" >&5
  2774. echo "${ECHO_T}$BASENAME" >&6
  2775. else
  2776. echo "$as_me:$LINENO: result: no" >&5
  2777. echo "${ECHO_T}no" >&6
  2778. fi
  2779. if test "${BASENAME-x}" = "x"
  2780. then
  2781. cat << 'EOF' >&2
  2782. configure: error:
  2783. This system seems to lack a working 'basename' command.
  2784. A working 'basename' command is required to compile Eggdrop.
  2785. EOF
  2786. exit 1
  2787. fi
  2788. # Extract the first word of "objcopy", so it can be a program name with args.
  2789. set dummy objcopy; ac_word=$2
  2790. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2792. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  2793. echo $ECHO_N "(cached) $ECHO_C" >&6
  2794. else
  2795. if test -n "$OBJCOPY"; then
  2796. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2805. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  2806. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  2812. fi
  2813. fi
  2814. OBJCOPY=$ac_cv_prog_OBJCOPY
  2815. if test -n "$OBJCOPY"; then
  2816. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  2817. echo "${ECHO_T}$OBJCOPY" >&6
  2818. else
  2819. echo "$as_me:$LINENO: result: no" >&5
  2820. echo "${ECHO_T}no" >&6
  2821. fi
  2822. # Extract the first word of "strip", so it can be a program name with args.
  2823. set dummy strip; ac_word=$2
  2824. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2825. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2826. if test "${ac_cv_prog_STRIP+set}" = set; then
  2827. echo $ECHO_N "(cached) $ECHO_C" >&6
  2828. else
  2829. if test -n "$STRIP"; then
  2830. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2831. else
  2832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2833. for as_dir in $PATH
  2834. do
  2835. IFS=$as_save_IFS
  2836. test -z "$as_dir" && as_dir=.
  2837. for ac_exec_ext in '' $ac_executable_extensions; do
  2838. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2839. ac_cv_prog_STRIP="strip"
  2840. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2841. break 2
  2842. fi
  2843. done
  2844. done
  2845. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  2846. fi
  2847. fi
  2848. STRIP=$ac_cv_prog_STRIP
  2849. if test -n "$STRIP"; then
  2850. echo "$as_me:$LINENO: result: $STRIP" >&5
  2851. echo "${ECHO_T}$STRIP" >&6
  2852. else
  2853. echo "$as_me:$LINENO: result: no" >&5
  2854. echo "${ECHO_T}no" >&6
  2855. fi
  2856. # Extract the first word of "uname", so it can be a program name with args.
  2857. set dummy uname; ac_word=$2
  2858. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2859. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2860. if test "${ac_cv_prog_UNAME+set}" = set; then
  2861. echo $ECHO_N "(cached) $ECHO_C" >&6
  2862. else
  2863. if test -n "$UNAME"; then
  2864. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  2865. else
  2866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2867. for as_dir in $PATH
  2868. do
  2869. IFS=$as_save_IFS
  2870. test -z "$as_dir" && as_dir=.
  2871. for ac_exec_ext in '' $ac_executable_extensions; do
  2872. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2873. ac_cv_prog_UNAME="uname"
  2874. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2875. break 2
  2876. fi
  2877. done
  2878. done
  2879. fi
  2880. fi
  2881. UNAME=$ac_cv_prog_UNAME
  2882. if test -n "$UNAME"; then
  2883. echo "$as_me:$LINENO: result: $UNAME" >&5
  2884. echo "${ECHO_T}$UNAME" >&6
  2885. else
  2886. echo "$as_me:$LINENO: result: no" >&5
  2887. echo "${ECHO_T}no" >&6
  2888. fi
  2889. #AC_CHECK_PROG(CCACHE, ccache, ccache)
  2890. # Extract the first word of "distcc", so it can be a program name with args.
  2891. set dummy distcc; ac_word=$2
  2892. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2894. if test "${ac_cv_prog_DISTCC+set}" = set; then
  2895. echo $ECHO_N "(cached) $ECHO_C" >&6
  2896. else
  2897. if test -n "$DISTCC"; then
  2898. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  2899. else
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2907. ac_cv_prog_DISTCC="distcc"
  2908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. fi
  2914. fi
  2915. DISTCC=$ac_cv_prog_DISTCC
  2916. if test -n "$DISTCC"; then
  2917. echo "$as_me:$LINENO: result: $DISTCC" >&5
  2918. echo "${ECHO_T}$DISTCC" >&6
  2919. else
  2920. echo "$as_me:$LINENO: result: no" >&5
  2921. echo "${ECHO_T}no" >&6
  2922. fi
  2923. # Test the os and set the module linking settings
  2924. EGG_CYGWIN=no
  2925. echo "$as_me:$LINENO: checking system type" >&5
  2926. echo $ECHO_N "checking system type... $ECHO_C" >&6
  2927. if test "${egg_cv_var_system_type+set}" = set; then
  2928. echo $ECHO_N "(cached) $ECHO_C" >&6
  2929. else
  2930. egg_cv_var_system_type=`$UNAME -s`
  2931. fi
  2932. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  2933. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  2934. echo "$as_me:$LINENO: checking system release" >&5
  2935. echo $ECHO_N "checking system release... $ECHO_C" >&6
  2936. if test "${egg_cv_var_system_release+set}" = set; then
  2937. echo $ECHO_N "(cached) $ECHO_C" >&6
  2938. else
  2939. egg_cv_var_system_release=`$UNAME -r`
  2940. fi
  2941. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  2942. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  2943. case "$egg_cv_var_system_type" in
  2944. BSD/OS)
  2945. ;;
  2946. CYGWI*)
  2947. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  2948. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  2949. WIN32FLAGS=
  2950. cat >conftest.$ac_ext <<_ACEOF
  2951. /* confdefs.h. */
  2952. _ACEOF
  2953. cat confdefs.h >>conftest.$ac_ext
  2954. cat >>conftest.$ac_ext <<_ACEOF
  2955. /* end confdefs.h. */
  2956. int
  2957. main ()
  2958. {
  2959. #ifndef WIN32
  2960. # ifndef _WIN32
  2961. # error WIN32 or _WIN32 not defined
  2962. # endif
  2963. #endif
  2964. ;
  2965. return 0;
  2966. }
  2967. _ACEOF
  2968. rm -f conftest.$ac_objext
  2969. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2970. (eval $ac_compile) 2>conftest.er1
  2971. ac_status=$?
  2972. grep -v '^ *+' conftest.er1 >conftest.err
  2973. rm -f conftest.er1
  2974. cat conftest.err >&5
  2975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2976. (exit $ac_status); } &&
  2977. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2979. (eval $ac_try) 2>&5
  2980. ac_status=$?
  2981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2982. (exit $ac_status); }; } &&
  2983. { ac_try='test -s conftest.$ac_objext'
  2984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2985. (eval $ac_try) 2>&5
  2986. ac_status=$?
  2987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2988. (exit $ac_status); }; }; then
  2989. echo "$as_me:$LINENO: result: present by default" >&5
  2990. echo "${ECHO_T}present by default" >&6
  2991. else
  2992. echo "$as_me: failed program was:" >&5
  2993. sed 's/^/| /' conftest.$ac_ext >&5
  2994. ac_compile_save="$ac_compile"
  2995. save_CXX="$CXX"
  2996. ac_compile="$ac_compile -mwin32"
  2997. CXX="$CXX -mwin32"
  2998. cat >conftest.$ac_ext <<_ACEOF
  2999. /* confdefs.h. */
  3000. _ACEOF
  3001. cat confdefs.h >>conftest.$ac_ext
  3002. cat >>conftest.$ac_ext <<_ACEOF
  3003. /* end confdefs.h. */
  3004. int
  3005. main ()
  3006. {
  3007. #ifndef WIN32
  3008. # ifndef _WIN32
  3009. # error WIN32 or _WIN32 not defined
  3010. # endif
  3011. #endif
  3012. ;
  3013. return 0;
  3014. }
  3015. _ACEOF
  3016. rm -f conftest.$ac_objext
  3017. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3018. (eval $ac_compile) 2>conftest.er1
  3019. ac_status=$?
  3020. grep -v '^ *+' conftest.er1 >conftest.err
  3021. rm -f conftest.er1
  3022. cat conftest.err >&5
  3023. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3024. (exit $ac_status); } &&
  3025. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3026. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3027. (eval $ac_try) 2>&5
  3028. ac_status=$?
  3029. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3030. (exit $ac_status); }; } &&
  3031. { ac_try='test -s conftest.$ac_objext'
  3032. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3033. (eval $ac_try) 2>&5
  3034. ac_status=$?
  3035. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3036. (exit $ac_status); }; }; then
  3037. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3038. echo "${ECHO_T}found via -mwin32" >&6
  3039. ac_compile="$ac_compile_save"
  3040. CXX="$save_CC"
  3041. WIN32FLAGS="-mwin32"
  3042. else
  3043. echo "$as_me: failed program was:" >&5
  3044. sed 's/^/| /' conftest.$ac_ext >&5
  3045. ac_compile="$ac_compile_save"
  3046. CXX="$save_CC"
  3047. echo "$as_me:$LINENO: result: not found" >&5
  3048. echo "${ECHO_T}not found" >&6
  3049. fi
  3050. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3051. fi
  3052. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3053. CXX="$CXX $WIN32FLAGS"
  3054. EGG_CYGWIN="yes"
  3055. if test $EGG_CYGWIN = "yes"; then
  3056. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3057. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3058. if test -r /usr/lib/binmode.o; then
  3059. echo "$as_me:$LINENO: result: yes" >&5
  3060. echo "${ECHO_T}yes" >&6
  3061. LIBS="$LIBS /usr/lib/binmode.o"
  3062. else
  3063. echo "$as_me:$LINENO: result: no" >&5
  3064. echo "${ECHO_T}no" >&6
  3065. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3066. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3067. fi
  3068. fi
  3069. cat >>confdefs.h <<\_ACEOF
  3070. #define CYGWIN_HACKS 1
  3071. _ACEOF
  3072. cat >>confdefs.h <<\_ACEOF
  3073. #define WIN32_LEAN_AND_MEAN 1
  3074. _ACEOF
  3075. ;;
  3076. IRIX)
  3077. ;;
  3078. Ultrix)
  3079. SHELL=/bin/sh5
  3080. ;;
  3081. SINIX*)
  3082. ;;
  3083. BeOS)
  3084. ;;
  3085. Linux)
  3086. ;;
  3087. Lynx)
  3088. ;;
  3089. QNX)
  3090. ;;
  3091. OSF1)
  3092. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3093. V*)
  3094. if test "$AWK" = "gawk"
  3095. then
  3096. AWK=awk
  3097. fi
  3098. ;;
  3099. 1.0|1.1|1.2)
  3100. cat >>confdefs.h <<\_ACEOF
  3101. #define OSF1_HACKS 1
  3102. _ACEOF
  3103. ;;
  3104. 1.*)
  3105. cat >>confdefs.h <<\_ACEOF
  3106. #define OSF1_HACKS 1
  3107. _ACEOF
  3108. ;;
  3109. *)
  3110. ;;
  3111. esac
  3112. cat >>confdefs.h <<\_ACEOF
  3113. #define STOP_UAC 1
  3114. _ACEOF
  3115. cat >>confdefs.h <<\_ACEOF
  3116. #define BROKEN_SNPRINTF 1
  3117. _ACEOF
  3118. ;;
  3119. SunOS)
  3120. ;;
  3121. *BSD)
  3122. # FreeBSD/OpenBSD/NetBSD
  3123. ;;
  3124. *)
  3125. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3126. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3127. if test -r /mach
  3128. then
  3129. echo "$as_me:$LINENO: result: yes" >&5
  3130. echo "${ECHO_T}yes" >&6
  3131. cat >>confdefs.h <<\_ACEOF
  3132. #define BORGCUBES 1
  3133. _ACEOF
  3134. else
  3135. echo "$as_me:$LINENO: result: no" >&5
  3136. echo "${ECHO_T}no" >&6
  3137. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3138. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3139. if test -r /cmds
  3140. then
  3141. echo "$as_me:$LINENO: result: yes" >&5
  3142. echo "${ECHO_T}yes" >&6
  3143. else
  3144. echo "$as_me:$LINENO: result: no" >&5
  3145. echo "${ECHO_T}no" >&6
  3146. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3147. echo "${ECHO_T}Something unknown!" >&6
  3148. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3149. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3150. fi
  3151. fi
  3152. ;;
  3153. esac
  3154. dns_reslib_avail="true"
  3155. echo "$as_me:$LINENO: checking for res_init" >&5
  3156. echo $ECHO_N "checking for res_init... $ECHO_C" >&6
  3157. if test "${ac_cv_func_res_init+set}" = set; then
  3158. echo $ECHO_N "(cached) $ECHO_C" >&6
  3159. else
  3160. cat >conftest.$ac_ext <<_ACEOF
  3161. /* confdefs.h. */
  3162. _ACEOF
  3163. cat confdefs.h >>conftest.$ac_ext
  3164. cat >>conftest.$ac_ext <<_ACEOF
  3165. /* end confdefs.h. */
  3166. /* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
  3167. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3168. #define res_init innocuous_res_init
  3169. /* System header to define __stub macros and hopefully few prototypes,
  3170. which can conflict with char res_init (); below.
  3171. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3172. <limits.h> exists even on freestanding compilers. */
  3173. #ifdef __STDC__
  3174. # include <limits.h>
  3175. #else
  3176. # include <assert.h>
  3177. #endif
  3178. #undef res_init
  3179. /* Override any gcc2 internal prototype to avoid an error. */
  3180. #ifdef __cplusplus
  3181. extern "C"
  3182. {
  3183. #endif
  3184. /* We use char because int might match the return type of a gcc2
  3185. builtin and then its argument prototype would still apply. */
  3186. char res_init ();
  3187. /* The GNU C library defines this for functions which it implements
  3188. to always fail with ENOSYS. Some functions are actually named
  3189. something starting with __ and the normal name is an alias. */
  3190. #if defined (__stub_res_init) || defined (__stub___res_init)
  3191. choke me
  3192. #else
  3193. char (*f) () = res_init;
  3194. #endif
  3195. #ifdef __cplusplus
  3196. }
  3197. #endif
  3198. int
  3199. main ()
  3200. {
  3201. return f != res_init;
  3202. ;
  3203. return 0;
  3204. }
  3205. _ACEOF
  3206. rm -f conftest.$ac_objext conftest$ac_exeext
  3207. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3208. (eval $ac_link) 2>conftest.er1
  3209. ac_status=$?
  3210. grep -v '^ *+' conftest.er1 >conftest.err
  3211. rm -f conftest.er1
  3212. cat conftest.err >&5
  3213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3214. (exit $ac_status); } &&
  3215. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3217. (eval $ac_try) 2>&5
  3218. ac_status=$?
  3219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3220. (exit $ac_status); }; } &&
  3221. { ac_try='test -s conftest$ac_exeext'
  3222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3223. (eval $ac_try) 2>&5
  3224. ac_status=$?
  3225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3226. (exit $ac_status); }; }; then
  3227. ac_cv_func_res_init=yes
  3228. else
  3229. echo "$as_me: failed program was:" >&5
  3230. sed 's/^/| /' conftest.$ac_ext >&5
  3231. ac_cv_func_res_init=no
  3232. fi
  3233. rm -f conftest.err conftest.$ac_objext \
  3234. conftest$ac_exeext conftest.$ac_ext
  3235. fi
  3236. echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
  3237. echo "${ECHO_T}$ac_cv_func_res_init" >&6
  3238. if test $ac_cv_func_res_init = yes; then
  3239. :
  3240. else
  3241. echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
  3242. echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
  3243. if test "${ac_cv_lib_resolv_res_init+set}" = set; then
  3244. echo $ECHO_N "(cached) $ECHO_C" >&6
  3245. else
  3246. ac_check_lib_save_LIBS=$LIBS
  3247. LIBS="-lresolv $LIBS"
  3248. cat >conftest.$ac_ext <<_ACEOF
  3249. /* confdefs.h. */
  3250. _ACEOF
  3251. cat confdefs.h >>conftest.$ac_ext
  3252. cat >>conftest.$ac_ext <<_ACEOF
  3253. /* end confdefs.h. */
  3254. /* Override any gcc2 internal prototype to avoid an error. */
  3255. #ifdef __cplusplus
  3256. extern "C"
  3257. #endif
  3258. /* We use char because int might match the return type of a gcc2
  3259. builtin and then its argument prototype would still apply. */
  3260. char res_init ();
  3261. int
  3262. main ()
  3263. {
  3264. res_init ();
  3265. ;
  3266. return 0;
  3267. }
  3268. _ACEOF
  3269. rm -f conftest.$ac_objext conftest$ac_exeext
  3270. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3271. (eval $ac_link) 2>conftest.er1
  3272. ac_status=$?
  3273. grep -v '^ *+' conftest.er1 >conftest.err
  3274. rm -f conftest.er1
  3275. cat conftest.err >&5
  3276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3277. (exit $ac_status); } &&
  3278. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3279. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3280. (eval $ac_try) 2>&5
  3281. ac_status=$?
  3282. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3283. (exit $ac_status); }; } &&
  3284. { ac_try='test -s conftest$ac_exeext'
  3285. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3286. (eval $ac_try) 2>&5
  3287. ac_status=$?
  3288. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3289. (exit $ac_status); }; }; then
  3290. ac_cv_lib_resolv_res_init=yes
  3291. else
  3292. echo "$as_me: failed program was:" >&5
  3293. sed 's/^/| /' conftest.$ac_ext >&5
  3294. ac_cv_lib_resolv_res_init=no
  3295. fi
  3296. rm -f conftest.err conftest.$ac_objext \
  3297. conftest$ac_exeext conftest.$ac_ext
  3298. LIBS=$ac_check_lib_save_LIBS
  3299. fi
  3300. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
  3301. echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
  3302. if test $ac_cv_lib_resolv_res_init = yes; then
  3303. RESLIB="-lresolv"
  3304. else
  3305. echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
  3306. echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
  3307. if test "${ac_cv_lib_bind_res_init+set}" = set; then
  3308. echo $ECHO_N "(cached) $ECHO_C" >&6
  3309. else
  3310. ac_check_lib_save_LIBS=$LIBS
  3311. LIBS="-lbind $LIBS"
  3312. cat >conftest.$ac_ext <<_ACEOF
  3313. /* confdefs.h. */
  3314. _ACEOF
  3315. cat confdefs.h >>conftest.$ac_ext
  3316. cat >>conftest.$ac_ext <<_ACEOF
  3317. /* end confdefs.h. */
  3318. /* Override any gcc2 internal prototype to avoid an error. */
  3319. #ifdef __cplusplus
  3320. extern "C"
  3321. #endif
  3322. /* We use char because int might match the return type of a gcc2
  3323. builtin and then its argument prototype would still apply. */
  3324. char res_init ();
  3325. int
  3326. main ()
  3327. {
  3328. res_init ();
  3329. ;
  3330. return 0;
  3331. }
  3332. _ACEOF
  3333. rm -f conftest.$ac_objext conftest$ac_exeext
  3334. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3335. (eval $ac_link) 2>conftest.er1
  3336. ac_status=$?
  3337. grep -v '^ *+' conftest.er1 >conftest.err
  3338. rm -f conftest.er1
  3339. cat conftest.err >&5
  3340. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3341. (exit $ac_status); } &&
  3342. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3343. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3344. (eval $ac_try) 2>&5
  3345. ac_status=$?
  3346. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3347. (exit $ac_status); }; } &&
  3348. { ac_try='test -s conftest$ac_exeext'
  3349. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3350. (eval $ac_try) 2>&5
  3351. ac_status=$?
  3352. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3353. (exit $ac_status); }; }; then
  3354. ac_cv_lib_bind_res_init=yes
  3355. else
  3356. echo "$as_me: failed program was:" >&5
  3357. sed 's/^/| /' conftest.$ac_ext >&5
  3358. ac_cv_lib_bind_res_init=no
  3359. fi
  3360. rm -f conftest.err conftest.$ac_objext \
  3361. conftest$ac_exeext conftest.$ac_ext
  3362. LIBS=$ac_check_lib_save_LIBS
  3363. fi
  3364. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
  3365. echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
  3366. if test $ac_cv_lib_bind_res_init = yes; then
  3367. RESLIB="-lbind"
  3368. else
  3369. dns_reslib_avail="false";
  3370. fi
  3371. fi
  3372. fi
  3373. if test "${dns_reslib_avail}" = false; then
  3374. dns_reslib_avail="true"
  3375. echo "$as_me:$LINENO: checking for __res_init" >&5
  3376. echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
  3377. if test "${ac_cv_func___res_init+set}" = set; then
  3378. echo $ECHO_N "(cached) $ECHO_C" >&6
  3379. else
  3380. cat >conftest.$ac_ext <<_ACEOF
  3381. /* confdefs.h. */
  3382. _ACEOF
  3383. cat confdefs.h >>conftest.$ac_ext
  3384. cat >>conftest.$ac_ext <<_ACEOF
  3385. /* end confdefs.h. */
  3386. /* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
  3387. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3388. #define __res_init innocuous___res_init
  3389. /* System header to define __stub macros and hopefully few prototypes,
  3390. which can conflict with char __res_init (); below.
  3391. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3392. <limits.h> exists even on freestanding compilers. */
  3393. #ifdef __STDC__
  3394. # include <limits.h>
  3395. #else
  3396. # include <assert.h>
  3397. #endif
  3398. #undef __res_init
  3399. /* Override any gcc2 internal prototype to avoid an error. */
  3400. #ifdef __cplusplus
  3401. extern "C"
  3402. {
  3403. #endif
  3404. /* We use char because int might match the return type of a gcc2
  3405. builtin and then its argument prototype would still apply. */
  3406. char __res_init ();
  3407. /* The GNU C library defines this for functions which it implements
  3408. to always fail with ENOSYS. Some functions are actually named
  3409. something starting with __ and the normal name is an alias. */
  3410. #if defined (__stub___res_init) || defined (__stub_____res_init)
  3411. choke me
  3412. #else
  3413. char (*f) () = __res_init;
  3414. #endif
  3415. #ifdef __cplusplus
  3416. }
  3417. #endif
  3418. int
  3419. main ()
  3420. {
  3421. return f != __res_init;
  3422. ;
  3423. return 0;
  3424. }
  3425. _ACEOF
  3426. rm -f conftest.$ac_objext conftest$ac_exeext
  3427. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3428. (eval $ac_link) 2>conftest.er1
  3429. ac_status=$?
  3430. grep -v '^ *+' conftest.er1 >conftest.err
  3431. rm -f conftest.er1
  3432. cat conftest.err >&5
  3433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3434. (exit $ac_status); } &&
  3435. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3436. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3437. (eval $ac_try) 2>&5
  3438. ac_status=$?
  3439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3440. (exit $ac_status); }; } &&
  3441. { ac_try='test -s conftest$ac_exeext'
  3442. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3443. (eval $ac_try) 2>&5
  3444. ac_status=$?
  3445. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3446. (exit $ac_status); }; }; then
  3447. ac_cv_func___res_init=yes
  3448. else
  3449. echo "$as_me: failed program was:" >&5
  3450. sed 's/^/| /' conftest.$ac_ext >&5
  3451. ac_cv_func___res_init=no
  3452. fi
  3453. rm -f conftest.err conftest.$ac_objext \
  3454. conftest$ac_exeext conftest.$ac_ext
  3455. fi
  3456. echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
  3457. echo "${ECHO_T}$ac_cv_func___res_init" >&6
  3458. if test $ac_cv_func___res_init = yes; then
  3459. :
  3460. else
  3461. echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
  3462. echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
  3463. if test "${ac_cv_lib_resolv___res_init+set}" = set; then
  3464. echo $ECHO_N "(cached) $ECHO_C" >&6
  3465. else
  3466. ac_check_lib_save_LIBS=$LIBS
  3467. LIBS="-lresolv $LIBS"
  3468. cat >conftest.$ac_ext <<_ACEOF
  3469. /* confdefs.h. */
  3470. _ACEOF
  3471. cat confdefs.h >>conftest.$ac_ext
  3472. cat >>conftest.$ac_ext <<_ACEOF
  3473. /* end confdefs.h. */
  3474. /* Override any gcc2 internal prototype to avoid an error. */
  3475. #ifdef __cplusplus
  3476. extern "C"
  3477. #endif
  3478. /* We use char because int might match the return type of a gcc2
  3479. builtin and then its argument prototype would still apply. */
  3480. char __res_init ();
  3481. int
  3482. main ()
  3483. {
  3484. __res_init ();
  3485. ;
  3486. return 0;
  3487. }
  3488. _ACEOF
  3489. rm -f conftest.$ac_objext conftest$ac_exeext
  3490. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3491. (eval $ac_link) 2>conftest.er1
  3492. ac_status=$?
  3493. grep -v '^ *+' conftest.er1 >conftest.err
  3494. rm -f conftest.er1
  3495. cat conftest.err >&5
  3496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3497. (exit $ac_status); } &&
  3498. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3500. (eval $ac_try) 2>&5
  3501. ac_status=$?
  3502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3503. (exit $ac_status); }; } &&
  3504. { ac_try='test -s conftest$ac_exeext'
  3505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3506. (eval $ac_try) 2>&5
  3507. ac_status=$?
  3508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3509. (exit $ac_status); }; }; then
  3510. ac_cv_lib_resolv___res_init=yes
  3511. else
  3512. echo "$as_me: failed program was:" >&5
  3513. sed 's/^/| /' conftest.$ac_ext >&5
  3514. ac_cv_lib_resolv___res_init=no
  3515. fi
  3516. rm -f conftest.err conftest.$ac_objext \
  3517. conftest$ac_exeext conftest.$ac_ext
  3518. LIBS=$ac_check_lib_save_LIBS
  3519. fi
  3520. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
  3521. echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
  3522. if test $ac_cv_lib_resolv___res_init = yes; then
  3523. RESLIB="-lresolv"
  3524. else
  3525. echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
  3526. echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
  3527. if test "${ac_cv_lib_bind___res_init+set}" = set; then
  3528. echo $ECHO_N "(cached) $ECHO_C" >&6
  3529. else
  3530. ac_check_lib_save_LIBS=$LIBS
  3531. LIBS="-lbind $LIBS"
  3532. cat >conftest.$ac_ext <<_ACEOF
  3533. /* confdefs.h. */
  3534. _ACEOF
  3535. cat confdefs.h >>conftest.$ac_ext
  3536. cat >>conftest.$ac_ext <<_ACEOF
  3537. /* end confdefs.h. */
  3538. /* Override any gcc2 internal prototype to avoid an error. */
  3539. #ifdef __cplusplus
  3540. extern "C"
  3541. #endif
  3542. /* We use char because int might match the return type of a gcc2
  3543. builtin and then its argument prototype would still apply. */
  3544. char __res_init ();
  3545. int
  3546. main ()
  3547. {
  3548. __res_init ();
  3549. ;
  3550. return 0;
  3551. }
  3552. _ACEOF
  3553. rm -f conftest.$ac_objext conftest$ac_exeext
  3554. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3555. (eval $ac_link) 2>conftest.er1
  3556. ac_status=$?
  3557. grep -v '^ *+' conftest.er1 >conftest.err
  3558. rm -f conftest.er1
  3559. cat conftest.err >&5
  3560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3561. (exit $ac_status); } &&
  3562. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3563. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3564. (eval $ac_try) 2>&5
  3565. ac_status=$?
  3566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3567. (exit $ac_status); }; } &&
  3568. { ac_try='test -s conftest$ac_exeext'
  3569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3570. (eval $ac_try) 2>&5
  3571. ac_status=$?
  3572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3573. (exit $ac_status); }; }; then
  3574. ac_cv_lib_bind___res_init=yes
  3575. else
  3576. echo "$as_me: failed program was:" >&5
  3577. sed 's/^/| /' conftest.$ac_ext >&5
  3578. ac_cv_lib_bind___res_init=no
  3579. fi
  3580. rm -f conftest.err conftest.$ac_objext \
  3581. conftest$ac_exeext conftest.$ac_ext
  3582. LIBS=$ac_check_lib_save_LIBS
  3583. fi
  3584. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
  3585. echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
  3586. if test $ac_cv_lib_bind___res_init = yes; then
  3587. RESLIB="-lbind"
  3588. else
  3589. dns_reslib_avail="false";
  3590. fi
  3591. fi
  3592. fi
  3593. fi
  3594. echo "$as_me:$LINENO: checking for res_mkquery" >&5
  3595. echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
  3596. if test "${ac_cv_func_res_mkquery+set}" = set; then
  3597. echo $ECHO_N "(cached) $ECHO_C" >&6
  3598. else
  3599. cat >conftest.$ac_ext <<_ACEOF
  3600. /* confdefs.h. */
  3601. _ACEOF
  3602. cat confdefs.h >>conftest.$ac_ext
  3603. cat >>conftest.$ac_ext <<_ACEOF
  3604. /* end confdefs.h. */
  3605. /* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
  3606. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3607. #define res_mkquery innocuous_res_mkquery
  3608. /* System header to define __stub macros and hopefully few prototypes,
  3609. which can conflict with char res_mkquery (); below.
  3610. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3611. <limits.h> exists even on freestanding compilers. */
  3612. #ifdef __STDC__
  3613. # include <limits.h>
  3614. #else
  3615. # include <assert.h>
  3616. #endif
  3617. #undef res_mkquery
  3618. /* Override any gcc2 internal prototype to avoid an error. */
  3619. #ifdef __cplusplus
  3620. extern "C"
  3621. {
  3622. #endif
  3623. /* We use char because int might match the return type of a gcc2
  3624. builtin and then its argument prototype would still apply. */
  3625. char res_mkquery ();
  3626. /* The GNU C library defines this for functions which it implements
  3627. to always fail with ENOSYS. Some functions are actually named
  3628. something starting with __ and the normal name is an alias. */
  3629. #if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
  3630. choke me
  3631. #else
  3632. char (*f) () = res_mkquery;
  3633. #endif
  3634. #ifdef __cplusplus
  3635. }
  3636. #endif
  3637. int
  3638. main ()
  3639. {
  3640. return f != res_mkquery;
  3641. ;
  3642. return 0;
  3643. }
  3644. _ACEOF
  3645. rm -f conftest.$ac_objext conftest$ac_exeext
  3646. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3647. (eval $ac_link) 2>conftest.er1
  3648. ac_status=$?
  3649. grep -v '^ *+' conftest.er1 >conftest.err
  3650. rm -f conftest.er1
  3651. cat conftest.err >&5
  3652. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3653. (exit $ac_status); } &&
  3654. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3655. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3656. (eval $ac_try) 2>&5
  3657. ac_status=$?
  3658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3659. (exit $ac_status); }; } &&
  3660. { ac_try='test -s conftest$ac_exeext'
  3661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3662. (eval $ac_try) 2>&5
  3663. ac_status=$?
  3664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3665. (exit $ac_status); }; }; then
  3666. ac_cv_func_res_mkquery=yes
  3667. else
  3668. echo "$as_me: failed program was:" >&5
  3669. sed 's/^/| /' conftest.$ac_ext >&5
  3670. ac_cv_func_res_mkquery=no
  3671. fi
  3672. rm -f conftest.err conftest.$ac_objext \
  3673. conftest$ac_exeext conftest.$ac_ext
  3674. fi
  3675. echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
  3676. echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
  3677. if test $ac_cv_func_res_mkquery = yes; then
  3678. :
  3679. else
  3680. echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
  3681. echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
  3682. if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
  3683. echo $ECHO_N "(cached) $ECHO_C" >&6
  3684. else
  3685. ac_check_lib_save_LIBS=$LIBS
  3686. LIBS="-lresolv $LIBS"
  3687. cat >conftest.$ac_ext <<_ACEOF
  3688. /* confdefs.h. */
  3689. _ACEOF
  3690. cat confdefs.h >>conftest.$ac_ext
  3691. cat >>conftest.$ac_ext <<_ACEOF
  3692. /* end confdefs.h. */
  3693. /* Override any gcc2 internal prototype to avoid an error. */
  3694. #ifdef __cplusplus
  3695. extern "C"
  3696. #endif
  3697. /* We use char because int might match the return type of a gcc2
  3698. builtin and then its argument prototype would still apply. */
  3699. char res_mkquery ();
  3700. int
  3701. main ()
  3702. {
  3703. res_mkquery ();
  3704. ;
  3705. return 0;
  3706. }
  3707. _ACEOF
  3708. rm -f conftest.$ac_objext conftest$ac_exeext
  3709. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3710. (eval $ac_link) 2>conftest.er1
  3711. ac_status=$?
  3712. grep -v '^ *+' conftest.er1 >conftest.err
  3713. rm -f conftest.er1
  3714. cat conftest.err >&5
  3715. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3716. (exit $ac_status); } &&
  3717. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3718. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3719. (eval $ac_try) 2>&5
  3720. ac_status=$?
  3721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3722. (exit $ac_status); }; } &&
  3723. { ac_try='test -s conftest$ac_exeext'
  3724. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3725. (eval $ac_try) 2>&5
  3726. ac_status=$?
  3727. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3728. (exit $ac_status); }; }; then
  3729. ac_cv_lib_resolv_res_mkquery=yes
  3730. else
  3731. echo "$as_me: failed program was:" >&5
  3732. sed 's/^/| /' conftest.$ac_ext >&5
  3733. ac_cv_lib_resolv_res_mkquery=no
  3734. fi
  3735. rm -f conftest.err conftest.$ac_objext \
  3736. conftest$ac_exeext conftest.$ac_ext
  3737. LIBS=$ac_check_lib_save_LIBS
  3738. fi
  3739. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
  3740. echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
  3741. if test $ac_cv_lib_resolv_res_mkquery = yes; then
  3742. if test "x${RESLIB}" != "x-lresolv"; then
  3743. RESLIB="${RESLIB} -lresolv"
  3744. fi
  3745. else
  3746. echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
  3747. echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
  3748. if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
  3749. echo $ECHO_N "(cached) $ECHO_C" >&6
  3750. else
  3751. ac_check_lib_save_LIBS=$LIBS
  3752. LIBS="-lbind $LIBS"
  3753. cat >conftest.$ac_ext <<_ACEOF
  3754. /* confdefs.h. */
  3755. _ACEOF
  3756. cat confdefs.h >>conftest.$ac_ext
  3757. cat >>conftest.$ac_ext <<_ACEOF
  3758. /* end confdefs.h. */
  3759. /* Override any gcc2 internal prototype to avoid an error. */
  3760. #ifdef __cplusplus
  3761. extern "C"
  3762. #endif
  3763. /* We use char because int might match the return type of a gcc2
  3764. builtin and then its argument prototype would still apply. */
  3765. char res_mkquery ();
  3766. int
  3767. main ()
  3768. {
  3769. res_mkquery ();
  3770. ;
  3771. return 0;
  3772. }
  3773. _ACEOF
  3774. rm -f conftest.$ac_objext conftest$ac_exeext
  3775. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3776. (eval $ac_link) 2>conftest.er1
  3777. ac_status=$?
  3778. grep -v '^ *+' conftest.er1 >conftest.err
  3779. rm -f conftest.er1
  3780. cat conftest.err >&5
  3781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3782. (exit $ac_status); } &&
  3783. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3784. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3785. (eval $ac_try) 2>&5
  3786. ac_status=$?
  3787. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3788. (exit $ac_status); }; } &&
  3789. { ac_try='test -s conftest$ac_exeext'
  3790. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3791. (eval $ac_try) 2>&5
  3792. ac_status=$?
  3793. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3794. (exit $ac_status); }; }; then
  3795. ac_cv_lib_bind_res_mkquery=yes
  3796. else
  3797. echo "$as_me: failed program was:" >&5
  3798. sed 's/^/| /' conftest.$ac_ext >&5
  3799. ac_cv_lib_bind_res_mkquery=no
  3800. fi
  3801. rm -f conftest.err conftest.$ac_objext \
  3802. conftest$ac_exeext conftest.$ac_ext
  3803. LIBS=$ac_check_lib_save_LIBS
  3804. fi
  3805. echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
  3806. echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
  3807. if test $ac_cv_lib_bind_res_mkquery = yes; then
  3808. if test "x${RESLIB}" != "x-lbind"; then
  3809. RESLIB="${RESLIB} -lbind"
  3810. fi
  3811. else
  3812. dns_reslib_avail="false";
  3813. fi
  3814. fi
  3815. fi
  3816. if test "${dns_reslib_avail}" = false; then
  3817. dns_reslib_avail="true"
  3818. echo "$as_me:$LINENO: checking for __res_mkquery" >&5
  3819. echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
  3820. if test "${ac_cv_func___res_mkquery+set}" = set; then
  3821. echo $ECHO_N "(cached) $ECHO_C" >&6
  3822. else
  3823. cat >conftest.$ac_ext <<_ACEOF
  3824. /* confdefs.h. */
  3825. _ACEOF
  3826. cat confdefs.h >>conftest.$ac_ext
  3827. cat >>conftest.$ac_ext <<_ACEOF
  3828. /* end confdefs.h. */
  3829. /* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
  3830. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3831. #define __res_mkquery innocuous___res_mkquery
  3832. /* System header to define __stub macros and hopefully few prototypes,
  3833. which can conflict with char __res_mkquery (); below.
  3834. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3835. <limits.h> exists even on freestanding compilers. */
  3836. #ifdef __STDC__
  3837. # include <limits.h>
  3838. #else
  3839. # include <assert.h>
  3840. #endif
  3841. #undef __res_mkquery
  3842. /* Override any gcc2 internal prototype to avoid an error. */
  3843. #ifdef __cplusplus
  3844. extern "C"
  3845. {
  3846. #endif
  3847. /* We use char because int might match the return type of a gcc2
  3848. builtin and then its argument prototype would still apply. */
  3849. char __res_mkquery ();
  3850. /* The GNU C library defines this for functions which it implements
  3851. to always fail with ENOSYS. Some functions are actually named
  3852. something starting with __ and the normal name is an alias. */
  3853. #if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
  3854. choke me
  3855. #else
  3856. char (*f) () = __res_mkquery;
  3857. #endif
  3858. #ifdef __cplusplus
  3859. }
  3860. #endif
  3861. int
  3862. main ()
  3863. {
  3864. return f != __res_mkquery;
  3865. ;
  3866. return 0;
  3867. }
  3868. _ACEOF
  3869. rm -f conftest.$ac_objext conftest$ac_exeext
  3870. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3871. (eval $ac_link) 2>conftest.er1
  3872. ac_status=$?
  3873. grep -v '^ *+' conftest.er1 >conftest.err
  3874. rm -f conftest.er1
  3875. cat conftest.err >&5
  3876. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3877. (exit $ac_status); } &&
  3878. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3879. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3880. (eval $ac_try) 2>&5
  3881. ac_status=$?
  3882. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3883. (exit $ac_status); }; } &&
  3884. { ac_try='test -s conftest$ac_exeext'
  3885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3886. (eval $ac_try) 2>&5
  3887. ac_status=$?
  3888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3889. (exit $ac_status); }; }; then
  3890. ac_cv_func___res_mkquery=yes
  3891. else
  3892. echo "$as_me: failed program was:" >&5
  3893. sed 's/^/| /' conftest.$ac_ext >&5
  3894. ac_cv_func___res_mkquery=no
  3895. fi
  3896. rm -f conftest.err conftest.$ac_objext \
  3897. conftest$ac_exeext conftest.$ac_ext
  3898. fi
  3899. echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
  3900. echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
  3901. if test $ac_cv_func___res_mkquery = yes; then
  3902. :
  3903. else
  3904. echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
  3905. echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
  3906. if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
  3907. echo $ECHO_N "(cached) $ECHO_C" >&6
  3908. else
  3909. ac_check_lib_save_LIBS=$LIBS
  3910. LIBS="-lresolv $LIBS"
  3911. cat >conftest.$ac_ext <<_ACEOF
  3912. /* confdefs.h. */
  3913. _ACEOF
  3914. cat confdefs.h >>conftest.$ac_ext
  3915. cat >>conftest.$ac_ext <<_ACEOF
  3916. /* end confdefs.h. */
  3917. /* Override any gcc2 internal prototype to avoid an error. */
  3918. #ifdef __cplusplus
  3919. extern "C"
  3920. #endif
  3921. /* We use char because int might match the return type of a gcc2
  3922. builtin and then its argument prototype would still apply. */
  3923. char __res_mkquery ();
  3924. int
  3925. main ()
  3926. {
  3927. __res_mkquery ();
  3928. ;
  3929. return 0;
  3930. }
  3931. _ACEOF
  3932. rm -f conftest.$ac_objext conftest$ac_exeext
  3933. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3934. (eval $ac_link) 2>conftest.er1
  3935. ac_status=$?
  3936. grep -v '^ *+' conftest.er1 >conftest.err
  3937. rm -f conftest.er1
  3938. cat conftest.err >&5
  3939. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3940. (exit $ac_status); } &&
  3941. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3942. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3943. (eval $ac_try) 2>&5
  3944. ac_status=$?
  3945. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3946. (exit $ac_status); }; } &&
  3947. { ac_try='test -s conftest$ac_exeext'
  3948. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3949. (eval $ac_try) 2>&5
  3950. ac_status=$?
  3951. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3952. (exit $ac_status); }; }; then
  3953. ac_cv_lib_resolv___res_mkquery=yes
  3954. else
  3955. echo "$as_me: failed program was:" >&5
  3956. sed 's/^/| /' conftest.$ac_ext >&5
  3957. ac_cv_lib_resolv___res_mkquery=no
  3958. fi
  3959. rm -f conftest.err conftest.$ac_objext \
  3960. conftest$ac_exeext conftest.$ac_ext
  3961. LIBS=$ac_check_lib_save_LIBS
  3962. fi
  3963. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
  3964. echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
  3965. if test $ac_cv_lib_resolv___res_mkquery = yes; then
  3966. if test "x${RESLIB}" != "x-lresolv"; then
  3967. RESLIB="${RESLIB} -lresolv"
  3968. fi
  3969. else
  3970. echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
  3971. echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
  3972. if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
  3973. echo $ECHO_N "(cached) $ECHO_C" >&6
  3974. else
  3975. ac_check_lib_save_LIBS=$LIBS
  3976. LIBS="-lbind $LIBS"
  3977. cat >conftest.$ac_ext <<_ACEOF
  3978. /* confdefs.h. */
  3979. _ACEOF
  3980. cat confdefs.h >>conftest.$ac_ext
  3981. cat >>conftest.$ac_ext <<_ACEOF
  3982. /* end confdefs.h. */
  3983. /* Override any gcc2 internal prototype to avoid an error. */
  3984. #ifdef __cplusplus
  3985. extern "C"
  3986. #endif
  3987. /* We use char because int might match the return type of a gcc2
  3988. builtin and then its argument prototype would still apply. */
  3989. char __res_mkquery ();
  3990. int
  3991. main ()
  3992. {
  3993. __res_mkquery ();
  3994. ;
  3995. return 0;
  3996. }
  3997. _ACEOF
  3998. rm -f conftest.$ac_objext conftest$ac_exeext
  3999. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4000. (eval $ac_link) 2>conftest.er1
  4001. ac_status=$?
  4002. grep -v '^ *+' conftest.er1 >conftest.err
  4003. rm -f conftest.er1
  4004. cat conftest.err >&5
  4005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4006. (exit $ac_status); } &&
  4007. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4009. (eval $ac_try) 2>&5
  4010. ac_status=$?
  4011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4012. (exit $ac_status); }; } &&
  4013. { ac_try='test -s conftest$ac_exeext'
  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); }; }; then
  4019. ac_cv_lib_bind___res_mkquery=yes
  4020. else
  4021. echo "$as_me: failed program was:" >&5
  4022. sed 's/^/| /' conftest.$ac_ext >&5
  4023. ac_cv_lib_bind___res_mkquery=no
  4024. fi
  4025. rm -f conftest.err conftest.$ac_objext \
  4026. conftest$ac_exeext conftest.$ac_ext
  4027. LIBS=$ac_check_lib_save_LIBS
  4028. fi
  4029. echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
  4030. echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
  4031. if test $ac_cv_lib_bind___res_mkquery = yes; then
  4032. if test "x${RESLIB}" != "x-lbind"; then
  4033. RESLIB="${RESLIB} -lbind"
  4034. fi
  4035. else
  4036. dns_reslib_avail="false";
  4037. fi
  4038. fi
  4039. fi
  4040. fi
  4041. if test "${dns_reslib_avail}" = false; then
  4042. if test "$ac_cv_cygwin" = "yes"; then
  4043. echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
  4044. echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
  4045. if test -r /usr/local/bind/lib/libbind.a; then
  4046. echo "$as_me:$LINENO: result: yes" >&5
  4047. echo "${ECHO_T}yes" >&6
  4048. RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
  4049. RESINCLUDE="-I/usr/local/bind/include"
  4050. dns_reslib_avail="true"
  4051. else
  4052. echo "$as_me:$LINENO: result: no" >&5
  4053. echo "${ECHO_T}no" >&6
  4054. fi
  4055. fi
  4056. fi
  4057. if test "${dns_reslib_avail}" = false; then
  4058. cat >&2 <<EOF
  4059. configure: warning:
  4060. Your system provides no functional resolver library.
  4061. One is required for buld.
  4062. EOF
  4063. exit 1
  4064. fi
  4065. # Check for IPv6 support
  4066. #EGG_IPV6_SUPPORTED
  4067. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  4068. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  4069. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  4070. if test "${enable_ipv6+set}" = set; then
  4071. enableval="$enable_ipv6"
  4072. ac_cv_dipv6="yes"
  4073. echo "$as_me:$LINENO: result: yes" >&5
  4074. echo "${ECHO_T}yes" >&6
  4075. else
  4076. ac_cv_dipv6="no"
  4077. if test "$egg_cv_ipv6_supported" = "no"; then
  4078. ac_cv_dipv6="no"
  4079. fi
  4080. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  4081. echo "${ECHO_T}$ac_cv_dipv6" >&6
  4082. fi;
  4083. if ! test "$EGG_CYGWIN" = "yes"; then
  4084. if test "$ac_cv_dipv6" = "no"; then
  4085. cat >>confdefs.h <<\_ACEOF
  4086. #define USE_IPV6 1
  4087. _ACEOF
  4088. fi
  4089. fi
  4090. echo "$as_me:$LINENO: checking for socklen_t" >&5
  4091. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  4092. if test "${egg_cv_socklen_t+set}" = set; then
  4093. echo $ECHO_N "(cached) $ECHO_C" >&6
  4094. else
  4095. if test "$cross_compiling" = yes; then
  4096. egg_cv_socklen_t=no
  4097. else
  4098. cat >conftest.$ac_ext <<_ACEOF
  4099. /* confdefs.h. */
  4100. _ACEOF
  4101. cat confdefs.h >>conftest.$ac_ext
  4102. cat >>conftest.$ac_ext <<_ACEOF
  4103. /* end confdefs.h. */
  4104. #include <unistd.h>
  4105. #include <sys/types.h>
  4106. #include <sys/socket.h>
  4107. #include <netinet/in.h>
  4108. #include <arpa/inet.h>
  4109. int main()
  4110. {
  4111. socklen_t test = sizeof(int);
  4112. return 0;
  4113. }
  4114. _ACEOF
  4115. rm -f conftest$ac_exeext
  4116. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4117. (eval $ac_link) 2>&5
  4118. ac_status=$?
  4119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4120. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4122. (eval $ac_try) 2>&5
  4123. ac_status=$?
  4124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4125. (exit $ac_status); }; }; then
  4126. egg_cv_socklen_t=yes
  4127. else
  4128. echo "$as_me: program exited with status $ac_status" >&5
  4129. echo "$as_me: failed program was:" >&5
  4130. sed 's/^/| /' conftest.$ac_ext >&5
  4131. ( exit $ac_status )
  4132. egg_cv_socklen_t=no
  4133. fi
  4134. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4135. fi
  4136. fi
  4137. if test "$egg_cv_socklen_t" = "yes"; then
  4138. cat >>confdefs.h <<\_ACEOF
  4139. #define HAVE_SOCKLEN_T 1
  4140. _ACEOF
  4141. echo "$as_me:$LINENO: result: yes" >&5
  4142. echo "${ECHO_T}yes" >&6
  4143. else
  4144. echo "$as_me:$LINENO: result: no" >&5
  4145. echo "${ECHO_T}no" >&6
  4146. fi
  4147. # Check for inconsistent random() functions
  4148. echo "$as_me:$LINENO: checking for random limit" >&5
  4149. echo $ECHO_N "checking for random limit... $ECHO_C" >&6
  4150. case "$egg_cv_var_system_type" in
  4151. SunOS) RMAX=0x7FFFFFFF
  4152. ;;
  4153. *) RMAX=RAND_MAX
  4154. ;;
  4155. esac
  4156. echo "$as_me:$LINENO: result: $RMAX" >&5
  4157. echo "${ECHO_T}$RMAX" >&6
  4158. cat >>confdefs.h <<_ACEOF
  4159. #define RANDOM_MAX $RMAX
  4160. _ACEOF
  4161. # Create static binaries
  4162. if test -z "$no_static"
  4163. then
  4164. if test -n "$GXX"
  4165. then
  4166. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  4167. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  4168. if test "${egg_cv_var_ccstatic+set}" = set; then
  4169. echo $ECHO_N "(cached) $ECHO_C" >&6
  4170. else
  4171. ac_old_CXX="$CXX"
  4172. CXX="$CXX -static"
  4173. cat >conftest.$ac_ext <<_ACEOF
  4174. /* confdefs.h. */
  4175. _ACEOF
  4176. cat confdefs.h >>conftest.$ac_ext
  4177. cat >>conftest.$ac_ext <<_ACEOF
  4178. /* end confdefs.h. */
  4179. int
  4180. main ()
  4181. {
  4182. ;
  4183. return 0;
  4184. }
  4185. _ACEOF
  4186. rm -f conftest.$ac_objext
  4187. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4188. (eval $ac_compile) 2>conftest.er1
  4189. ac_status=$?
  4190. grep -v '^ *+' conftest.er1 >conftest.err
  4191. rm -f conftest.er1
  4192. cat conftest.err >&5
  4193. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4194. (exit $ac_status); } &&
  4195. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4196. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4197. (eval $ac_try) 2>&5
  4198. ac_status=$?
  4199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4200. (exit $ac_status); }; } &&
  4201. { ac_try='test -s conftest.$ac_objext'
  4202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4203. (eval $ac_try) 2>&5
  4204. ac_status=$?
  4205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4206. (exit $ac_status); }; }; then
  4207. egg_cv_var_ccstatic="yes"
  4208. else
  4209. echo "$as_me: failed program was:" >&5
  4210. sed 's/^/| /' conftest.$ac_ext >&5
  4211. egg_cv_var_ccstatic="no"
  4212. fi
  4213. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4214. CXX="$ac_old_CXX"
  4215. fi
  4216. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  4217. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  4218. if test "$egg_cv_var_ccstatic" = "yes"
  4219. then
  4220. CCDEBUG="$CXX"
  4221. CXX="$CXX -static"
  4222. else
  4223. cat << 'EOF' >&2
  4224. configure: error:
  4225. Your C compiler does not support -static.
  4226. This compile flag is required for the botpack.
  4227. EOF
  4228. exit 1
  4229. fi
  4230. fi
  4231. fi
  4232. #checkpoint
  4233. cat >confcache <<\_ACEOF
  4234. # This file is a shell script that caches the results of configure
  4235. # tests run on this system so they can be shared between configure
  4236. # scripts and configure runs, see configure's option --config-cache.
  4237. # It is not useful on other systems. If it contains results you don't
  4238. # want to keep, you may remove or edit it.
  4239. #
  4240. # config.status only pays attention to the cache file if you give it
  4241. # the --recheck option to rerun configure.
  4242. #
  4243. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4244. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4245. # following values.
  4246. _ACEOF
  4247. # The following way of writing the cache mishandles newlines in values,
  4248. # but we know of no workaround that is simple, portable, and efficient.
  4249. # So, don't put newlines in cache variables' values.
  4250. # Ultrix sh set writes to stderr and can't be redirected directly,
  4251. # and sets the high bit in the cache file unless we assign to the vars.
  4252. {
  4253. (set) 2>&1 |
  4254. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4255. *ac_space=\ *)
  4256. # `set' does not quote correctly, so add quotes (double-quote
  4257. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4258. sed -n \
  4259. "s/'/'\\\\''/g;
  4260. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4261. ;;
  4262. *)
  4263. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4264. sed -n \
  4265. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4266. ;;
  4267. esac;
  4268. } |
  4269. sed '
  4270. t clear
  4271. : clear
  4272. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4273. t end
  4274. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4275. : end' >>confcache
  4276. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4277. if test -w $cache_file; then
  4278. test "x$cache_file" != "x/dev/null"
  4279. cat confcache >$cache_file
  4280. else
  4281. echo "not updating unwritable cache $cache_file"
  4282. fi
  4283. fi
  4284. rm -f confcache
  4285. # Checks for system libraries
  4286. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  4287. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  4288. if test "${ac_cv_lib_socket_socket+set}" = set; then
  4289. echo $ECHO_N "(cached) $ECHO_C" >&6
  4290. else
  4291. ac_check_lib_save_LIBS=$LIBS
  4292. LIBS="-lsocket $LIBS"
  4293. cat >conftest.$ac_ext <<_ACEOF
  4294. /* confdefs.h. */
  4295. _ACEOF
  4296. cat confdefs.h >>conftest.$ac_ext
  4297. cat >>conftest.$ac_ext <<_ACEOF
  4298. /* end confdefs.h. */
  4299. /* Override any gcc2 internal prototype to avoid an error. */
  4300. #ifdef __cplusplus
  4301. extern "C"
  4302. #endif
  4303. /* We use char because int might match the return type of a gcc2
  4304. builtin and then its argument prototype would still apply. */
  4305. char socket ();
  4306. int
  4307. main ()
  4308. {
  4309. socket ();
  4310. ;
  4311. return 0;
  4312. }
  4313. _ACEOF
  4314. rm -f conftest.$ac_objext conftest$ac_exeext
  4315. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4316. (eval $ac_link) 2>conftest.er1
  4317. ac_status=$?
  4318. grep -v '^ *+' conftest.er1 >conftest.err
  4319. rm -f conftest.er1
  4320. cat conftest.err >&5
  4321. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4322. (exit $ac_status); } &&
  4323. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4324. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4325. (eval $ac_try) 2>&5
  4326. ac_status=$?
  4327. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4328. (exit $ac_status); }; } &&
  4329. { ac_try='test -s conftest$ac_exeext'
  4330. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4331. (eval $ac_try) 2>&5
  4332. ac_status=$?
  4333. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4334. (exit $ac_status); }; }; then
  4335. ac_cv_lib_socket_socket=yes
  4336. else
  4337. echo "$as_me: failed program was:" >&5
  4338. sed 's/^/| /' conftest.$ac_ext >&5
  4339. ac_cv_lib_socket_socket=no
  4340. fi
  4341. rm -f conftest.err conftest.$ac_objext \
  4342. conftest$ac_exeext conftest.$ac_ext
  4343. LIBS=$ac_check_lib_save_LIBS
  4344. fi
  4345. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4346. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  4347. if test $ac_cv_lib_socket_socket = yes; then
  4348. cat >>confdefs.h <<_ACEOF
  4349. #define HAVE_LIBSOCKET 1
  4350. _ACEOF
  4351. LIBS="-lsocket $LIBS"
  4352. fi
  4353. # AC_CHECK_LIB(nsl, connect)
  4354. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  4355. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  4356. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  4357. echo $ECHO_N "(cached) $ECHO_C" >&6
  4358. else
  4359. ac_check_lib_save_LIBS=$LIBS
  4360. LIBS="-ldns $LIBS"
  4361. cat >conftest.$ac_ext <<_ACEOF
  4362. /* confdefs.h. */
  4363. _ACEOF
  4364. cat confdefs.h >>conftest.$ac_ext
  4365. cat >>conftest.$ac_ext <<_ACEOF
  4366. /* end confdefs.h. */
  4367. /* Override any gcc2 internal prototype to avoid an error. */
  4368. #ifdef __cplusplus
  4369. extern "C"
  4370. #endif
  4371. /* We use char because int might match the return type of a gcc2
  4372. builtin and then its argument prototype would still apply. */
  4373. char gethostbyname ();
  4374. int
  4375. main ()
  4376. {
  4377. gethostbyname ();
  4378. ;
  4379. return 0;
  4380. }
  4381. _ACEOF
  4382. rm -f conftest.$ac_objext conftest$ac_exeext
  4383. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4384. (eval $ac_link) 2>conftest.er1
  4385. ac_status=$?
  4386. grep -v '^ *+' conftest.er1 >conftest.err
  4387. rm -f conftest.er1
  4388. cat conftest.err >&5
  4389. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4390. (exit $ac_status); } &&
  4391. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4392. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4393. (eval $ac_try) 2>&5
  4394. ac_status=$?
  4395. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4396. (exit $ac_status); }; } &&
  4397. { ac_try='test -s conftest$ac_exeext'
  4398. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4399. (eval $ac_try) 2>&5
  4400. ac_status=$?
  4401. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4402. (exit $ac_status); }; }; then
  4403. ac_cv_lib_dns_gethostbyname=yes
  4404. else
  4405. echo "$as_me: failed program was:" >&5
  4406. sed 's/^/| /' conftest.$ac_ext >&5
  4407. ac_cv_lib_dns_gethostbyname=no
  4408. fi
  4409. rm -f conftest.err conftest.$ac_objext \
  4410. conftest$ac_exeext conftest.$ac_ext
  4411. LIBS=$ac_check_lib_save_LIBS
  4412. fi
  4413. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  4414. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  4415. if test $ac_cv_lib_dns_gethostbyname = yes; then
  4416. cat >>confdefs.h <<_ACEOF
  4417. #define HAVE_LIBDNS 1
  4418. _ACEOF
  4419. LIBS="-ldns $LIBS"
  4420. fi
  4421. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4422. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4423. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4424. # This is needed for Tcl libraries compiled with thread support
  4425. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4426. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4427. # ac_cv_lib_pthread="-lpthread"], [dnl
  4428. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4429. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4430. # ac_cv_lib_pthread="-lpthread"], [dnl
  4431. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4432. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4433. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4434. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4435. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4436. # ac_cv_lib_pthread=""],
  4437. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4438. # Checks for header files
  4439. ac_header_dirent=no
  4440. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4441. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4442. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4443. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  4444. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4445. echo $ECHO_N "(cached) $ECHO_C" >&6
  4446. else
  4447. cat >conftest.$ac_ext <<_ACEOF
  4448. /* confdefs.h. */
  4449. _ACEOF
  4450. cat confdefs.h >>conftest.$ac_ext
  4451. cat >>conftest.$ac_ext <<_ACEOF
  4452. /* end confdefs.h. */
  4453. #include <sys/types.h>
  4454. #include <$ac_hdr>
  4455. int
  4456. main ()
  4457. {
  4458. if ((DIR *) 0)
  4459. return 0;
  4460. ;
  4461. return 0;
  4462. }
  4463. _ACEOF
  4464. rm -f conftest.$ac_objext
  4465. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4466. (eval $ac_compile) 2>conftest.er1
  4467. ac_status=$?
  4468. grep -v '^ *+' conftest.er1 >conftest.err
  4469. rm -f conftest.er1
  4470. cat conftest.err >&5
  4471. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4472. (exit $ac_status); } &&
  4473. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4474. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4475. (eval $ac_try) 2>&5
  4476. ac_status=$?
  4477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4478. (exit $ac_status); }; } &&
  4479. { ac_try='test -s conftest.$ac_objext'
  4480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4481. (eval $ac_try) 2>&5
  4482. ac_status=$?
  4483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4484. (exit $ac_status); }; }; then
  4485. eval "$as_ac_Header=yes"
  4486. else
  4487. echo "$as_me: failed program was:" >&5
  4488. sed 's/^/| /' conftest.$ac_ext >&5
  4489. eval "$as_ac_Header=no"
  4490. fi
  4491. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4492. fi
  4493. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4494. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4495. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4496. cat >>confdefs.h <<_ACEOF
  4497. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4498. _ACEOF
  4499. ac_header_dirent=$ac_hdr; break
  4500. fi
  4501. done
  4502. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4503. if test $ac_header_dirent = dirent.h; then
  4504. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4505. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4506. if test "${ac_cv_search_opendir+set}" = set; then
  4507. echo $ECHO_N "(cached) $ECHO_C" >&6
  4508. else
  4509. ac_func_search_save_LIBS=$LIBS
  4510. ac_cv_search_opendir=no
  4511. cat >conftest.$ac_ext <<_ACEOF
  4512. /* confdefs.h. */
  4513. _ACEOF
  4514. cat confdefs.h >>conftest.$ac_ext
  4515. cat >>conftest.$ac_ext <<_ACEOF
  4516. /* end confdefs.h. */
  4517. /* Override any gcc2 internal prototype to avoid an error. */
  4518. #ifdef __cplusplus
  4519. extern "C"
  4520. #endif
  4521. /* We use char because int might match the return type of a gcc2
  4522. builtin and then its argument prototype would still apply. */
  4523. char opendir ();
  4524. int
  4525. main ()
  4526. {
  4527. opendir ();
  4528. ;
  4529. return 0;
  4530. }
  4531. _ACEOF
  4532. rm -f conftest.$ac_objext conftest$ac_exeext
  4533. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4534. (eval $ac_link) 2>conftest.er1
  4535. ac_status=$?
  4536. grep -v '^ *+' conftest.er1 >conftest.err
  4537. rm -f conftest.er1
  4538. cat conftest.err >&5
  4539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4540. (exit $ac_status); } &&
  4541. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4543. (eval $ac_try) 2>&5
  4544. ac_status=$?
  4545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4546. (exit $ac_status); }; } &&
  4547. { ac_try='test -s conftest$ac_exeext'
  4548. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4549. (eval $ac_try) 2>&5
  4550. ac_status=$?
  4551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4552. (exit $ac_status); }; }; then
  4553. ac_cv_search_opendir="none required"
  4554. else
  4555. echo "$as_me: failed program was:" >&5
  4556. sed 's/^/| /' conftest.$ac_ext >&5
  4557. fi
  4558. rm -f conftest.err conftest.$ac_objext \
  4559. conftest$ac_exeext conftest.$ac_ext
  4560. if test "$ac_cv_search_opendir" = no; then
  4561. for ac_lib in dir; do
  4562. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4563. cat >conftest.$ac_ext <<_ACEOF
  4564. /* confdefs.h. */
  4565. _ACEOF
  4566. cat confdefs.h >>conftest.$ac_ext
  4567. cat >>conftest.$ac_ext <<_ACEOF
  4568. /* end confdefs.h. */
  4569. /* Override any gcc2 internal prototype to avoid an error. */
  4570. #ifdef __cplusplus
  4571. extern "C"
  4572. #endif
  4573. /* We use char because int might match the return type of a gcc2
  4574. builtin and then its argument prototype would still apply. */
  4575. char opendir ();
  4576. int
  4577. main ()
  4578. {
  4579. opendir ();
  4580. ;
  4581. return 0;
  4582. }
  4583. _ACEOF
  4584. rm -f conftest.$ac_objext conftest$ac_exeext
  4585. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4586. (eval $ac_link) 2>conftest.er1
  4587. ac_status=$?
  4588. grep -v '^ *+' conftest.er1 >conftest.err
  4589. rm -f conftest.er1
  4590. cat conftest.err >&5
  4591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4592. (exit $ac_status); } &&
  4593. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4595. (eval $ac_try) 2>&5
  4596. ac_status=$?
  4597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4598. (exit $ac_status); }; } &&
  4599. { ac_try='test -s conftest$ac_exeext'
  4600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4601. (eval $ac_try) 2>&5
  4602. ac_status=$?
  4603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4604. (exit $ac_status); }; }; then
  4605. ac_cv_search_opendir="-l$ac_lib"
  4606. break
  4607. else
  4608. echo "$as_me: failed program was:" >&5
  4609. sed 's/^/| /' conftest.$ac_ext >&5
  4610. fi
  4611. rm -f conftest.err conftest.$ac_objext \
  4612. conftest$ac_exeext conftest.$ac_ext
  4613. done
  4614. fi
  4615. LIBS=$ac_func_search_save_LIBS
  4616. fi
  4617. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4618. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4619. if test "$ac_cv_search_opendir" != no; then
  4620. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4621. fi
  4622. else
  4623. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4624. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  4625. if test "${ac_cv_search_opendir+set}" = set; then
  4626. echo $ECHO_N "(cached) $ECHO_C" >&6
  4627. else
  4628. ac_func_search_save_LIBS=$LIBS
  4629. ac_cv_search_opendir=no
  4630. cat >conftest.$ac_ext <<_ACEOF
  4631. /* confdefs.h. */
  4632. _ACEOF
  4633. cat confdefs.h >>conftest.$ac_ext
  4634. cat >>conftest.$ac_ext <<_ACEOF
  4635. /* end confdefs.h. */
  4636. /* Override any gcc2 internal prototype to avoid an error. */
  4637. #ifdef __cplusplus
  4638. extern "C"
  4639. #endif
  4640. /* We use char because int might match the return type of a gcc2
  4641. builtin and then its argument prototype would still apply. */
  4642. char opendir ();
  4643. int
  4644. main ()
  4645. {
  4646. opendir ();
  4647. ;
  4648. return 0;
  4649. }
  4650. _ACEOF
  4651. rm -f conftest.$ac_objext conftest$ac_exeext
  4652. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4653. (eval $ac_link) 2>conftest.er1
  4654. ac_status=$?
  4655. grep -v '^ *+' conftest.er1 >conftest.err
  4656. rm -f conftest.er1
  4657. cat conftest.err >&5
  4658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4659. (exit $ac_status); } &&
  4660. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4662. (eval $ac_try) 2>&5
  4663. ac_status=$?
  4664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4665. (exit $ac_status); }; } &&
  4666. { ac_try='test -s conftest$ac_exeext'
  4667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4668. (eval $ac_try) 2>&5
  4669. ac_status=$?
  4670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4671. (exit $ac_status); }; }; then
  4672. ac_cv_search_opendir="none required"
  4673. else
  4674. echo "$as_me: failed program was:" >&5
  4675. sed 's/^/| /' conftest.$ac_ext >&5
  4676. fi
  4677. rm -f conftest.err conftest.$ac_objext \
  4678. conftest$ac_exeext conftest.$ac_ext
  4679. if test "$ac_cv_search_opendir" = no; then
  4680. for ac_lib in x; do
  4681. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4682. cat >conftest.$ac_ext <<_ACEOF
  4683. /* confdefs.h. */
  4684. _ACEOF
  4685. cat confdefs.h >>conftest.$ac_ext
  4686. cat >>conftest.$ac_ext <<_ACEOF
  4687. /* end confdefs.h. */
  4688. /* Override any gcc2 internal prototype to avoid an error. */
  4689. #ifdef __cplusplus
  4690. extern "C"
  4691. #endif
  4692. /* We use char because int might match the return type of a gcc2
  4693. builtin and then its argument prototype would still apply. */
  4694. char opendir ();
  4695. int
  4696. main ()
  4697. {
  4698. opendir ();
  4699. ;
  4700. return 0;
  4701. }
  4702. _ACEOF
  4703. rm -f conftest.$ac_objext conftest$ac_exeext
  4704. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4705. (eval $ac_link) 2>conftest.er1
  4706. ac_status=$?
  4707. grep -v '^ *+' conftest.er1 >conftest.err
  4708. rm -f conftest.er1
  4709. cat conftest.err >&5
  4710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4711. (exit $ac_status); } &&
  4712. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4714. (eval $ac_try) 2>&5
  4715. ac_status=$?
  4716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4717. (exit $ac_status); }; } &&
  4718. { ac_try='test -s conftest$ac_exeext'
  4719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4720. (eval $ac_try) 2>&5
  4721. ac_status=$?
  4722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4723. (exit $ac_status); }; }; then
  4724. ac_cv_search_opendir="-l$ac_lib"
  4725. break
  4726. else
  4727. echo "$as_me: failed program was:" >&5
  4728. sed 's/^/| /' conftest.$ac_ext >&5
  4729. fi
  4730. rm -f conftest.err conftest.$ac_objext \
  4731. conftest$ac_exeext conftest.$ac_ext
  4732. done
  4733. fi
  4734. LIBS=$ac_func_search_save_LIBS
  4735. fi
  4736. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4737. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  4738. if test "$ac_cv_search_opendir" != no; then
  4739. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  4740. fi
  4741. fi
  4742. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4743. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  4744. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4745. echo $ECHO_N "(cached) $ECHO_C" >&6
  4746. else
  4747. cat >conftest.$ac_ext <<_ACEOF
  4748. /* confdefs.h. */
  4749. _ACEOF
  4750. cat confdefs.h >>conftest.$ac_ext
  4751. cat >>conftest.$ac_ext <<_ACEOF
  4752. /* end confdefs.h. */
  4753. #include <sys/types.h>
  4754. #include <sys/wait.h>
  4755. #ifndef WEXITSTATUS
  4756. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  4757. #endif
  4758. #ifndef WIFEXITED
  4759. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4760. #endif
  4761. int
  4762. main ()
  4763. {
  4764. int s;
  4765. wait (&s);
  4766. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4767. ;
  4768. return 0;
  4769. }
  4770. _ACEOF
  4771. rm -f conftest.$ac_objext
  4772. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4773. (eval $ac_compile) 2>conftest.er1
  4774. ac_status=$?
  4775. grep -v '^ *+' conftest.er1 >conftest.err
  4776. rm -f conftest.er1
  4777. cat conftest.err >&5
  4778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4779. (exit $ac_status); } &&
  4780. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4782. (eval $ac_try) 2>&5
  4783. ac_status=$?
  4784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4785. (exit $ac_status); }; } &&
  4786. { ac_try='test -s conftest.$ac_objext'
  4787. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4788. (eval $ac_try) 2>&5
  4789. ac_status=$?
  4790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4791. (exit $ac_status); }; }; then
  4792. ac_cv_header_sys_wait_h=yes
  4793. else
  4794. echo "$as_me: failed program was:" >&5
  4795. sed 's/^/| /' conftest.$ac_ext >&5
  4796. ac_cv_header_sys_wait_h=no
  4797. fi
  4798. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4799. fi
  4800. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4801. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  4802. if test $ac_cv_header_sys_wait_h = yes; then
  4803. cat >>confdefs.h <<\_ACEOF
  4804. #define HAVE_SYS_WAIT_H 1
  4805. _ACEOF
  4806. fi
  4807. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4808. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  4809. if test "${ac_cv_header_time+set}" = set; then
  4810. echo $ECHO_N "(cached) $ECHO_C" >&6
  4811. else
  4812. cat >conftest.$ac_ext <<_ACEOF
  4813. /* confdefs.h. */
  4814. _ACEOF
  4815. cat confdefs.h >>conftest.$ac_ext
  4816. cat >>conftest.$ac_ext <<_ACEOF
  4817. /* end confdefs.h. */
  4818. #include <sys/types.h>
  4819. #include <sys/time.h>
  4820. #include <time.h>
  4821. int
  4822. main ()
  4823. {
  4824. if ((struct tm *) 0)
  4825. return 0;
  4826. ;
  4827. return 0;
  4828. }
  4829. _ACEOF
  4830. rm -f conftest.$ac_objext
  4831. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4832. (eval $ac_compile) 2>conftest.er1
  4833. ac_status=$?
  4834. grep -v '^ *+' conftest.er1 >conftest.err
  4835. rm -f conftest.er1
  4836. cat conftest.err >&5
  4837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4838. (exit $ac_status); } &&
  4839. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4840. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4841. (eval $ac_try) 2>&5
  4842. ac_status=$?
  4843. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4844. (exit $ac_status); }; } &&
  4845. { ac_try='test -s conftest.$ac_objext'
  4846. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4847. (eval $ac_try) 2>&5
  4848. ac_status=$?
  4849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4850. (exit $ac_status); }; }; then
  4851. ac_cv_header_time=yes
  4852. else
  4853. echo "$as_me: failed program was:" >&5
  4854. sed 's/^/| /' conftest.$ac_ext >&5
  4855. ac_cv_header_time=no
  4856. fi
  4857. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4858. fi
  4859. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4860. echo "${ECHO_T}$ac_cv_header_time" >&6
  4861. if test $ac_cv_header_time = yes; then
  4862. cat >>confdefs.h <<\_ACEOF
  4863. #define TIME_WITH_SYS_TIME 1
  4864. _ACEOF
  4865. fi
  4866. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4867. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4868. if test "${ac_cv_header_stat_broken+set}" = set; then
  4869. echo $ECHO_N "(cached) $ECHO_C" >&6
  4870. else
  4871. cat >conftest.$ac_ext <<_ACEOF
  4872. /* confdefs.h. */
  4873. _ACEOF
  4874. cat confdefs.h >>conftest.$ac_ext
  4875. cat >>conftest.$ac_ext <<_ACEOF
  4876. /* end confdefs.h. */
  4877. #include <sys/types.h>
  4878. #include <sys/stat.h>
  4879. #if defined(S_ISBLK) && defined(S_IFDIR)
  4880. # if S_ISBLK (S_IFDIR)
  4881. You lose.
  4882. # endif
  4883. #endif
  4884. #if defined(S_ISBLK) && defined(S_IFCHR)
  4885. # if S_ISBLK (S_IFCHR)
  4886. You lose.
  4887. # endif
  4888. #endif
  4889. #if defined(S_ISLNK) && defined(S_IFREG)
  4890. # if S_ISLNK (S_IFREG)
  4891. You lose.
  4892. # endif
  4893. #endif
  4894. #if defined(S_ISSOCK) && defined(S_IFREG)
  4895. # if S_ISSOCK (S_IFREG)
  4896. You lose.
  4897. # endif
  4898. #endif
  4899. _ACEOF
  4900. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4901. $EGREP "You lose" >/dev/null 2>&1; then
  4902. ac_cv_header_stat_broken=yes
  4903. else
  4904. ac_cv_header_stat_broken=no
  4905. fi
  4906. rm -f conftest*
  4907. fi
  4908. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4909. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4910. if test $ac_cv_header_stat_broken = yes; then
  4911. cat >>confdefs.h <<\_ACEOF
  4912. #define STAT_MACROS_BROKEN 1
  4913. _ACEOF
  4914. fi
  4915. #checkpoint
  4916. cat >confcache <<\_ACEOF
  4917. # This file is a shell script that caches the results of configure
  4918. # tests run on this system so they can be shared between configure
  4919. # scripts and configure runs, see configure's option --config-cache.
  4920. # It is not useful on other systems. If it contains results you don't
  4921. # want to keep, you may remove or edit it.
  4922. #
  4923. # config.status only pays attention to the cache file if you give it
  4924. # the --recheck option to rerun configure.
  4925. #
  4926. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4927. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4928. # following values.
  4929. _ACEOF
  4930. # The following way of writing the cache mishandles newlines in values,
  4931. # but we know of no workaround that is simple, portable, and efficient.
  4932. # So, don't put newlines in cache variables' values.
  4933. # Ultrix sh set writes to stderr and can't be redirected directly,
  4934. # and sets the high bit in the cache file unless we assign to the vars.
  4935. {
  4936. (set) 2>&1 |
  4937. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4938. *ac_space=\ *)
  4939. # `set' does not quote correctly, so add quotes (double-quote
  4940. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4941. sed -n \
  4942. "s/'/'\\\\''/g;
  4943. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4944. ;;
  4945. *)
  4946. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4947. sed -n \
  4948. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4949. ;;
  4950. esac;
  4951. } |
  4952. sed '
  4953. t clear
  4954. : clear
  4955. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4956. t end
  4957. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4958. : end' >>confcache
  4959. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4960. if test -w $cache_file; then
  4961. test "x$cache_file" != "x/dev/null"
  4962. cat confcache >$cache_file
  4963. else
  4964. echo "not updating unwritable cache $cache_file"
  4965. fi
  4966. fi
  4967. rm -f confcache
  4968. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4969. do
  4970. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4971. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4972. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4973. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4974. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4975. echo $ECHO_N "(cached) $ECHO_C" >&6
  4976. fi
  4977. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4978. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4979. else
  4980. # Is the header compilable?
  4981. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4982. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4983. cat >conftest.$ac_ext <<_ACEOF
  4984. /* confdefs.h. */
  4985. _ACEOF
  4986. cat confdefs.h >>conftest.$ac_ext
  4987. cat >>conftest.$ac_ext <<_ACEOF
  4988. /* end confdefs.h. */
  4989. $ac_includes_default
  4990. #include <$ac_header>
  4991. _ACEOF
  4992. rm -f conftest.$ac_objext
  4993. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4994. (eval $ac_compile) 2>conftest.er1
  4995. ac_status=$?
  4996. grep -v '^ *+' conftest.er1 >conftest.err
  4997. rm -f conftest.er1
  4998. cat conftest.err >&5
  4999. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5000. (exit $ac_status); } &&
  5001. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5003. (eval $ac_try) 2>&5
  5004. ac_status=$?
  5005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5006. (exit $ac_status); }; } &&
  5007. { ac_try='test -s conftest.$ac_objext'
  5008. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5009. (eval $ac_try) 2>&5
  5010. ac_status=$?
  5011. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5012. (exit $ac_status); }; }; then
  5013. ac_header_compiler=yes
  5014. else
  5015. echo "$as_me: failed program was:" >&5
  5016. sed 's/^/| /' conftest.$ac_ext >&5
  5017. ac_header_compiler=no
  5018. fi
  5019. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5020. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5021. echo "${ECHO_T}$ac_header_compiler" >&6
  5022. # Is the header present?
  5023. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5024. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5025. cat >conftest.$ac_ext <<_ACEOF
  5026. /* confdefs.h. */
  5027. _ACEOF
  5028. cat confdefs.h >>conftest.$ac_ext
  5029. cat >>conftest.$ac_ext <<_ACEOF
  5030. /* end confdefs.h. */
  5031. #include <$ac_header>
  5032. _ACEOF
  5033. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5034. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5035. ac_status=$?
  5036. grep -v '^ *+' conftest.er1 >conftest.err
  5037. rm -f conftest.er1
  5038. cat conftest.err >&5
  5039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5040. (exit $ac_status); } >/dev/null; then
  5041. if test -s conftest.err; then
  5042. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5043. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5044. else
  5045. ac_cpp_err=
  5046. fi
  5047. else
  5048. ac_cpp_err=yes
  5049. fi
  5050. if test -z "$ac_cpp_err"; then
  5051. ac_header_preproc=yes
  5052. else
  5053. echo "$as_me: failed program was:" >&5
  5054. sed 's/^/| /' conftest.$ac_ext >&5
  5055. ac_header_preproc=no
  5056. fi
  5057. rm -f conftest.err conftest.$ac_ext
  5058. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5059. echo "${ECHO_T}$ac_header_preproc" >&6
  5060. # So? What about this header?
  5061. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5062. yes:no: )
  5063. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5064. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5065. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5066. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5067. ac_header_preproc=yes
  5068. ;;
  5069. no:yes:* )
  5070. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5071. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5072. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5073. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5074. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5075. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5076. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5077. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5078. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5079. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5080. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5081. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5082. (
  5083. cat <<\_ASBOX
  5084. ## ------------------------------------------ ##
  5085. ## Report this to the AC_PACKAGE_NAME lists. ##
  5086. ## ------------------------------------------ ##
  5087. _ASBOX
  5088. ) |
  5089. sed "s/^/$as_me: WARNING: /" >&2
  5090. ;;
  5091. esac
  5092. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5093. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5094. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5095. echo $ECHO_N "(cached) $ECHO_C" >&6
  5096. else
  5097. eval "$as_ac_Header=\$ac_header_preproc"
  5098. fi
  5099. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5100. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5101. fi
  5102. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5103. cat >>confdefs.h <<_ACEOF
  5104. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5105. _ACEOF
  5106. fi
  5107. done
  5108. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h
  5109. do
  5110. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  5111. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5112. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5113. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5114. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5115. echo $ECHO_N "(cached) $ECHO_C" >&6
  5116. fi
  5117. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5118. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5119. else
  5120. # Is the header compilable?
  5121. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  5122. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  5123. cat >conftest.$ac_ext <<_ACEOF
  5124. /* confdefs.h. */
  5125. _ACEOF
  5126. cat confdefs.h >>conftest.$ac_ext
  5127. cat >>conftest.$ac_ext <<_ACEOF
  5128. /* end confdefs.h. */
  5129. $ac_includes_default
  5130. #include <$ac_header>
  5131. _ACEOF
  5132. rm -f conftest.$ac_objext
  5133. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5134. (eval $ac_compile) 2>conftest.er1
  5135. ac_status=$?
  5136. grep -v '^ *+' conftest.er1 >conftest.err
  5137. rm -f conftest.er1
  5138. cat conftest.err >&5
  5139. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5140. (exit $ac_status); } &&
  5141. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5142. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5143. (eval $ac_try) 2>&5
  5144. ac_status=$?
  5145. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5146. (exit $ac_status); }; } &&
  5147. { ac_try='test -s conftest.$ac_objext'
  5148. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5149. (eval $ac_try) 2>&5
  5150. ac_status=$?
  5151. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5152. (exit $ac_status); }; }; then
  5153. ac_header_compiler=yes
  5154. else
  5155. echo "$as_me: failed program was:" >&5
  5156. sed 's/^/| /' conftest.$ac_ext >&5
  5157. ac_header_compiler=no
  5158. fi
  5159. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5160. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5161. echo "${ECHO_T}$ac_header_compiler" >&6
  5162. # Is the header present?
  5163. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  5164. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  5165. cat >conftest.$ac_ext <<_ACEOF
  5166. /* confdefs.h. */
  5167. _ACEOF
  5168. cat confdefs.h >>conftest.$ac_ext
  5169. cat >>conftest.$ac_ext <<_ACEOF
  5170. /* end confdefs.h. */
  5171. #include <$ac_header>
  5172. _ACEOF
  5173. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5174. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5175. ac_status=$?
  5176. grep -v '^ *+' conftest.er1 >conftest.err
  5177. rm -f conftest.er1
  5178. cat conftest.err >&5
  5179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5180. (exit $ac_status); } >/dev/null; then
  5181. if test -s conftest.err; then
  5182. ac_cpp_err=$ac_cxx_preproc_warn_flag
  5183. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  5184. else
  5185. ac_cpp_err=
  5186. fi
  5187. else
  5188. ac_cpp_err=yes
  5189. fi
  5190. if test -z "$ac_cpp_err"; then
  5191. ac_header_preproc=yes
  5192. else
  5193. echo "$as_me: failed program was:" >&5
  5194. sed 's/^/| /' conftest.$ac_ext >&5
  5195. ac_header_preproc=no
  5196. fi
  5197. rm -f conftest.err conftest.$ac_ext
  5198. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5199. echo "${ECHO_T}$ac_header_preproc" >&6
  5200. # So? What about this header?
  5201. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  5202. yes:no: )
  5203. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  5204. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5205. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  5206. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  5207. ac_header_preproc=yes
  5208. ;;
  5209. no:yes:* )
  5210. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  5211. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  5212. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  5213. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  5214. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  5215. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  5216. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  5217. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  5218. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  5219. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  5220. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  5221. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  5222. (
  5223. cat <<\_ASBOX
  5224. ## ------------------------------------------ ##
  5225. ## Report this to the AC_PACKAGE_NAME lists. ##
  5226. ## ------------------------------------------ ##
  5227. _ASBOX
  5228. ) |
  5229. sed "s/^/$as_me: WARNING: /" >&2
  5230. ;;
  5231. esac
  5232. echo "$as_me:$LINENO: checking for $ac_header" >&5
  5233. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  5234. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  5235. echo $ECHO_N "(cached) $ECHO_C" >&6
  5236. else
  5237. eval "$as_ac_Header=\$ac_header_preproc"
  5238. fi
  5239. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  5240. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  5241. fi
  5242. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  5243. cat >>confdefs.h <<_ACEOF
  5244. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  5245. _ACEOF
  5246. fi
  5247. done
  5248. #checkpoint
  5249. cat >confcache <<\_ACEOF
  5250. # This file is a shell script that caches the results of configure
  5251. # tests run on this system so they can be shared between configure
  5252. # scripts and configure runs, see configure's option --config-cache.
  5253. # It is not useful on other systems. If it contains results you don't
  5254. # want to keep, you may remove or edit it.
  5255. #
  5256. # config.status only pays attention to the cache file if you give it
  5257. # the --recheck option to rerun configure.
  5258. #
  5259. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5260. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5261. # following values.
  5262. _ACEOF
  5263. # The following way of writing the cache mishandles newlines in values,
  5264. # but we know of no workaround that is simple, portable, and efficient.
  5265. # So, don't put newlines in cache variables' values.
  5266. # Ultrix sh set writes to stderr and can't be redirected directly,
  5267. # and sets the high bit in the cache file unless we assign to the vars.
  5268. {
  5269. (set) 2>&1 |
  5270. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5271. *ac_space=\ *)
  5272. # `set' does not quote correctly, so add quotes (double-quote
  5273. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5274. sed -n \
  5275. "s/'/'\\\\''/g;
  5276. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5277. ;;
  5278. *)
  5279. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5280. sed -n \
  5281. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5282. ;;
  5283. esac;
  5284. } |
  5285. sed '
  5286. t clear
  5287. : clear
  5288. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5289. t end
  5290. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5291. : end' >>confcache
  5292. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5293. if test -w $cache_file; then
  5294. test "x$cache_file" != "x/dev/null"
  5295. cat confcache >$cache_file
  5296. else
  5297. echo "not updating unwritable cache $cache_file"
  5298. fi
  5299. fi
  5300. rm -f confcache
  5301. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5302. #AC_CHECK_HEADERS(zlib.h)
  5303. #EGG_CHECK_ZLIB
  5304. #EGG_CHECK_SSL
  5305. #AC_SUBST(SSL)dnl
  5306. # Checks for typedefs, structures, and compiler characteristics
  5307. echo "$as_me:$LINENO: checking for pid_t" >&5
  5308. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  5309. if test "${ac_cv_type_pid_t+set}" = set; then
  5310. echo $ECHO_N "(cached) $ECHO_C" >&6
  5311. else
  5312. cat >conftest.$ac_ext <<_ACEOF
  5313. /* confdefs.h. */
  5314. _ACEOF
  5315. cat confdefs.h >>conftest.$ac_ext
  5316. cat >>conftest.$ac_ext <<_ACEOF
  5317. /* end confdefs.h. */
  5318. $ac_includes_default
  5319. int
  5320. main ()
  5321. {
  5322. if ((pid_t *) 0)
  5323. return 0;
  5324. if (sizeof (pid_t))
  5325. return 0;
  5326. ;
  5327. return 0;
  5328. }
  5329. _ACEOF
  5330. rm -f conftest.$ac_objext
  5331. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5332. (eval $ac_compile) 2>conftest.er1
  5333. ac_status=$?
  5334. grep -v '^ *+' conftest.er1 >conftest.err
  5335. rm -f conftest.er1
  5336. cat conftest.err >&5
  5337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5338. (exit $ac_status); } &&
  5339. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5340. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5341. (eval $ac_try) 2>&5
  5342. ac_status=$?
  5343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5344. (exit $ac_status); }; } &&
  5345. { ac_try='test -s conftest.$ac_objext'
  5346. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5347. (eval $ac_try) 2>&5
  5348. ac_status=$?
  5349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5350. (exit $ac_status); }; }; then
  5351. ac_cv_type_pid_t=yes
  5352. else
  5353. echo "$as_me: failed program was:" >&5
  5354. sed 's/^/| /' conftest.$ac_ext >&5
  5355. ac_cv_type_pid_t=no
  5356. fi
  5357. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5358. fi
  5359. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5360. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  5361. if test $ac_cv_type_pid_t = yes; then
  5362. :
  5363. else
  5364. cat >>confdefs.h <<_ACEOF
  5365. #define pid_t int
  5366. _ACEOF
  5367. fi
  5368. echo "$as_me:$LINENO: checking for size_t" >&5
  5369. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  5370. if test "${ac_cv_type_size_t+set}" = set; then
  5371. echo $ECHO_N "(cached) $ECHO_C" >&6
  5372. else
  5373. cat >conftest.$ac_ext <<_ACEOF
  5374. /* confdefs.h. */
  5375. _ACEOF
  5376. cat confdefs.h >>conftest.$ac_ext
  5377. cat >>conftest.$ac_ext <<_ACEOF
  5378. /* end confdefs.h. */
  5379. $ac_includes_default
  5380. int
  5381. main ()
  5382. {
  5383. if ((size_t *) 0)
  5384. return 0;
  5385. if (sizeof (size_t))
  5386. return 0;
  5387. ;
  5388. return 0;
  5389. }
  5390. _ACEOF
  5391. rm -f conftest.$ac_objext
  5392. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5393. (eval $ac_compile) 2>conftest.er1
  5394. ac_status=$?
  5395. grep -v '^ *+' conftest.er1 >conftest.err
  5396. rm -f conftest.er1
  5397. cat conftest.err >&5
  5398. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5399. (exit $ac_status); } &&
  5400. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5401. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5402. (eval $ac_try) 2>&5
  5403. ac_status=$?
  5404. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5405. (exit $ac_status); }; } &&
  5406. { ac_try='test -s conftest.$ac_objext'
  5407. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5408. (eval $ac_try) 2>&5
  5409. ac_status=$?
  5410. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5411. (exit $ac_status); }; }; then
  5412. ac_cv_type_size_t=yes
  5413. else
  5414. echo "$as_me: failed program was:" >&5
  5415. sed 's/^/| /' conftest.$ac_ext >&5
  5416. ac_cv_type_size_t=no
  5417. fi
  5418. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5419. fi
  5420. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5421. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  5422. if test $ac_cv_type_size_t = yes; then
  5423. :
  5424. else
  5425. cat >>confdefs.h <<_ACEOF
  5426. #define size_t unsigned
  5427. _ACEOF
  5428. fi
  5429. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5430. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  5431. if test "${ac_cv_type_uid_t+set}" = set; then
  5432. echo $ECHO_N "(cached) $ECHO_C" >&6
  5433. else
  5434. cat >conftest.$ac_ext <<_ACEOF
  5435. /* confdefs.h. */
  5436. _ACEOF
  5437. cat confdefs.h >>conftest.$ac_ext
  5438. cat >>conftest.$ac_ext <<_ACEOF
  5439. /* end confdefs.h. */
  5440. #include <sys/types.h>
  5441. _ACEOF
  5442. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5443. $EGREP "uid_t" >/dev/null 2>&1; then
  5444. ac_cv_type_uid_t=yes
  5445. else
  5446. ac_cv_type_uid_t=no
  5447. fi
  5448. rm -f conftest*
  5449. fi
  5450. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5451. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  5452. if test $ac_cv_type_uid_t = no; then
  5453. cat >>confdefs.h <<\_ACEOF
  5454. #define uid_t int
  5455. _ACEOF
  5456. cat >>confdefs.h <<\_ACEOF
  5457. #define gid_t int
  5458. _ACEOF
  5459. fi
  5460. #AC_C_CONST
  5461. echo "$as_me:$LINENO: checking for working volatile" >&5
  5462. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  5463. if test "${ac_cv_c_volatile+set}" = set; then
  5464. echo $ECHO_N "(cached) $ECHO_C" >&6
  5465. else
  5466. cat >conftest.$ac_ext <<_ACEOF
  5467. /* confdefs.h. */
  5468. _ACEOF
  5469. cat confdefs.h >>conftest.$ac_ext
  5470. cat >>conftest.$ac_ext <<_ACEOF
  5471. /* end confdefs.h. */
  5472. int
  5473. main ()
  5474. {
  5475. volatile int x;
  5476. int * volatile y;
  5477. ;
  5478. return 0;
  5479. }
  5480. _ACEOF
  5481. rm -f conftest.$ac_objext
  5482. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5483. (eval $ac_compile) 2>conftest.er1
  5484. ac_status=$?
  5485. grep -v '^ *+' conftest.er1 >conftest.err
  5486. rm -f conftest.er1
  5487. cat conftest.err >&5
  5488. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5489. (exit $ac_status); } &&
  5490. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5491. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5492. (eval $ac_try) 2>&5
  5493. ac_status=$?
  5494. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5495. (exit $ac_status); }; } &&
  5496. { ac_try='test -s conftest.$ac_objext'
  5497. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5498. (eval $ac_try) 2>&5
  5499. ac_status=$?
  5500. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5501. (exit $ac_status); }; }; then
  5502. ac_cv_c_volatile=yes
  5503. else
  5504. echo "$as_me: failed program was:" >&5
  5505. sed 's/^/| /' conftest.$ac_ext >&5
  5506. ac_cv_c_volatile=no
  5507. fi
  5508. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5509. fi
  5510. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5511. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  5512. if test $ac_cv_c_volatile = no; then
  5513. cat >>confdefs.h <<\_ACEOF
  5514. #define volatile
  5515. _ACEOF
  5516. fi
  5517. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5518. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  5519. if test "${ac_cv_c_bigendian+set}" = set; then
  5520. echo $ECHO_N "(cached) $ECHO_C" >&6
  5521. else
  5522. # See if sys/param.h defines the BYTE_ORDER macro.
  5523. cat >conftest.$ac_ext <<_ACEOF
  5524. /* confdefs.h. */
  5525. _ACEOF
  5526. cat confdefs.h >>conftest.$ac_ext
  5527. cat >>conftest.$ac_ext <<_ACEOF
  5528. /* end confdefs.h. */
  5529. #include <sys/types.h>
  5530. #include <sys/param.h>
  5531. int
  5532. main ()
  5533. {
  5534. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  5535. bogus endian macros
  5536. #endif
  5537. ;
  5538. return 0;
  5539. }
  5540. _ACEOF
  5541. rm -f conftest.$ac_objext
  5542. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5543. (eval $ac_compile) 2>conftest.er1
  5544. ac_status=$?
  5545. grep -v '^ *+' conftest.er1 >conftest.err
  5546. rm -f conftest.er1
  5547. cat conftest.err >&5
  5548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5549. (exit $ac_status); } &&
  5550. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5551. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5552. (eval $ac_try) 2>&5
  5553. ac_status=$?
  5554. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5555. (exit $ac_status); }; } &&
  5556. { ac_try='test -s conftest.$ac_objext'
  5557. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5558. (eval $ac_try) 2>&5
  5559. ac_status=$?
  5560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5561. (exit $ac_status); }; }; then
  5562. # It does; now see whether it defined to BIG_ENDIAN or not.
  5563. cat >conftest.$ac_ext <<_ACEOF
  5564. /* confdefs.h. */
  5565. _ACEOF
  5566. cat confdefs.h >>conftest.$ac_ext
  5567. cat >>conftest.$ac_ext <<_ACEOF
  5568. /* end confdefs.h. */
  5569. #include <sys/types.h>
  5570. #include <sys/param.h>
  5571. int
  5572. main ()
  5573. {
  5574. #if BYTE_ORDER != BIG_ENDIAN
  5575. not big endian
  5576. #endif
  5577. ;
  5578. return 0;
  5579. }
  5580. _ACEOF
  5581. rm -f conftest.$ac_objext
  5582. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5583. (eval $ac_compile) 2>conftest.er1
  5584. ac_status=$?
  5585. grep -v '^ *+' conftest.er1 >conftest.err
  5586. rm -f conftest.er1
  5587. cat conftest.err >&5
  5588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5589. (exit $ac_status); } &&
  5590. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5592. (eval $ac_try) 2>&5
  5593. ac_status=$?
  5594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5595. (exit $ac_status); }; } &&
  5596. { ac_try='test -s conftest.$ac_objext'
  5597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5598. (eval $ac_try) 2>&5
  5599. ac_status=$?
  5600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5601. (exit $ac_status); }; }; then
  5602. ac_cv_c_bigendian=yes
  5603. else
  5604. echo "$as_me: failed program was:" >&5
  5605. sed 's/^/| /' conftest.$ac_ext >&5
  5606. ac_cv_c_bigendian=no
  5607. fi
  5608. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5609. else
  5610. echo "$as_me: failed program was:" >&5
  5611. sed 's/^/| /' conftest.$ac_ext >&5
  5612. # It does not; compile a test program.
  5613. if test "$cross_compiling" = yes; then
  5614. # try to guess the endianness by grepping values into an object file
  5615. ac_cv_c_bigendian=unknown
  5616. cat >conftest.$ac_ext <<_ACEOF
  5617. /* confdefs.h. */
  5618. _ACEOF
  5619. cat confdefs.h >>conftest.$ac_ext
  5620. cat >>conftest.$ac_ext <<_ACEOF
  5621. /* end confdefs.h. */
  5622. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5623. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5624. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5625. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5626. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5627. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5628. int
  5629. main ()
  5630. {
  5631. _ascii (); _ebcdic ();
  5632. ;
  5633. return 0;
  5634. }
  5635. _ACEOF
  5636. rm -f conftest.$ac_objext
  5637. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5638. (eval $ac_compile) 2>conftest.er1
  5639. ac_status=$?
  5640. grep -v '^ *+' conftest.er1 >conftest.err
  5641. rm -f conftest.er1
  5642. cat conftest.err >&5
  5643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5644. (exit $ac_status); } &&
  5645. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5646. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5647. (eval $ac_try) 2>&5
  5648. ac_status=$?
  5649. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5650. (exit $ac_status); }; } &&
  5651. { ac_try='test -s conftest.$ac_objext'
  5652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5653. (eval $ac_try) 2>&5
  5654. ac_status=$?
  5655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5656. (exit $ac_status); }; }; then
  5657. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5658. ac_cv_c_bigendian=yes
  5659. fi
  5660. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5661. if test "$ac_cv_c_bigendian" = unknown; then
  5662. ac_cv_c_bigendian=no
  5663. else
  5664. # finding both strings is unlikely to happen, but who knows?
  5665. ac_cv_c_bigendian=unknown
  5666. fi
  5667. fi
  5668. else
  5669. echo "$as_me: failed program was:" >&5
  5670. sed 's/^/| /' conftest.$ac_ext >&5
  5671. fi
  5672. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5673. else
  5674. cat >conftest.$ac_ext <<_ACEOF
  5675. /* confdefs.h. */
  5676. _ACEOF
  5677. cat confdefs.h >>conftest.$ac_ext
  5678. cat >>conftest.$ac_ext <<_ACEOF
  5679. /* end confdefs.h. */
  5680. int
  5681. main ()
  5682. {
  5683. /* Are we little or big endian? From Harbison&Steele. */
  5684. union
  5685. {
  5686. long l;
  5687. char c[sizeof (long)];
  5688. } u;
  5689. u.l = 1;
  5690. exit (u.c[sizeof (long) - 1] == 1);
  5691. }
  5692. _ACEOF
  5693. rm -f conftest$ac_exeext
  5694. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5695. (eval $ac_link) 2>&5
  5696. ac_status=$?
  5697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5698. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5699. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5700. (eval $ac_try) 2>&5
  5701. ac_status=$?
  5702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5703. (exit $ac_status); }; }; then
  5704. ac_cv_c_bigendian=no
  5705. else
  5706. echo "$as_me: program exited with status $ac_status" >&5
  5707. echo "$as_me: failed program was:" >&5
  5708. sed 's/^/| /' conftest.$ac_ext >&5
  5709. ( exit $ac_status )
  5710. ac_cv_c_bigendian=yes
  5711. fi
  5712. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5713. fi
  5714. fi
  5715. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5716. fi
  5717. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5718. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  5719. case $ac_cv_c_bigendian in
  5720. yes)
  5721. cat >>confdefs.h <<\_ACEOF
  5722. #define WORDS_BIGENDIAN 1
  5723. _ACEOF
  5724. ;;
  5725. no)
  5726. ;;
  5727. *)
  5728. { { echo "$as_me:$LINENO: error: unknown endianness
  5729. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5730. echo "$as_me: error: unknown endianness
  5731. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5732. { (exit 1); exit 1; }; } ;;
  5733. esac
  5734. #AC_C_INLINE
  5735. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  5736. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  5737. if test "${ac_cv_c_char_unsigned+set}" = set; then
  5738. echo $ECHO_N "(cached) $ECHO_C" >&6
  5739. else
  5740. cat >conftest.$ac_ext <<_ACEOF
  5741. /* confdefs.h. */
  5742. _ACEOF
  5743. cat confdefs.h >>conftest.$ac_ext
  5744. cat >>conftest.$ac_ext <<_ACEOF
  5745. /* end confdefs.h. */
  5746. $ac_includes_default
  5747. int
  5748. main ()
  5749. {
  5750. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5751. test_array [0] = 0
  5752. ;
  5753. return 0;
  5754. }
  5755. _ACEOF
  5756. rm -f conftest.$ac_objext
  5757. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5758. (eval $ac_compile) 2>conftest.er1
  5759. ac_status=$?
  5760. grep -v '^ *+' conftest.er1 >conftest.err
  5761. rm -f conftest.er1
  5762. cat conftest.err >&5
  5763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5764. (exit $ac_status); } &&
  5765. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5767. (eval $ac_try) 2>&5
  5768. ac_status=$?
  5769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5770. (exit $ac_status); }; } &&
  5771. { ac_try='test -s conftest.$ac_objext'
  5772. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5773. (eval $ac_try) 2>&5
  5774. ac_status=$?
  5775. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5776. (exit $ac_status); }; }; then
  5777. ac_cv_c_char_unsigned=no
  5778. else
  5779. echo "$as_me: failed program was:" >&5
  5780. sed 's/^/| /' conftest.$ac_ext >&5
  5781. ac_cv_c_char_unsigned=yes
  5782. fi
  5783. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5784. fi
  5785. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  5786. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  5787. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  5788. cat >>confdefs.h <<\_ACEOF
  5789. #define __CHAR_UNSIGNED__ 1
  5790. _ACEOF
  5791. fi
  5792. #AC_C_STRINGIZE
  5793. #AC_C_PROTOTYPES
  5794. #checkpoint
  5795. cat >confcache <<\_ACEOF
  5796. # This file is a shell script that caches the results of configure
  5797. # tests run on this system so they can be shared between configure
  5798. # scripts and configure runs, see configure's option --config-cache.
  5799. # It is not useful on other systems. If it contains results you don't
  5800. # want to keep, you may remove or edit it.
  5801. #
  5802. # config.status only pays attention to the cache file if you give it
  5803. # the --recheck option to rerun configure.
  5804. #
  5805. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5806. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5807. # following values.
  5808. _ACEOF
  5809. # The following way of writing the cache mishandles newlines in values,
  5810. # but we know of no workaround that is simple, portable, and efficient.
  5811. # So, don't put newlines in cache variables' values.
  5812. # Ultrix sh set writes to stderr and can't be redirected directly,
  5813. # and sets the high bit in the cache file unless we assign to the vars.
  5814. {
  5815. (set) 2>&1 |
  5816. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5817. *ac_space=\ *)
  5818. # `set' does not quote correctly, so add quotes (double-quote
  5819. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5820. sed -n \
  5821. "s/'/'\\\\''/g;
  5822. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5823. ;;
  5824. *)
  5825. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5826. sed -n \
  5827. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5828. ;;
  5829. esac;
  5830. } |
  5831. sed '
  5832. t clear
  5833. : clear
  5834. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5835. t end
  5836. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5837. : end' >>confcache
  5838. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5839. if test -w $cache_file; then
  5840. test "x$cache_file" != "x/dev/null"
  5841. cat confcache >$cache_file
  5842. else
  5843. echo "not updating unwritable cache $cache_file"
  5844. fi
  5845. fi
  5846. rm -f confcache
  5847. echo "$as_me:$LINENO: checking for int" >&5
  5848. echo $ECHO_N "checking for int... $ECHO_C" >&6
  5849. if test "${ac_cv_type_int+set}" = set; then
  5850. echo $ECHO_N "(cached) $ECHO_C" >&6
  5851. else
  5852. cat >conftest.$ac_ext <<_ACEOF
  5853. /* confdefs.h. */
  5854. _ACEOF
  5855. cat confdefs.h >>conftest.$ac_ext
  5856. cat >>conftest.$ac_ext <<_ACEOF
  5857. /* end confdefs.h. */
  5858. $ac_includes_default
  5859. int
  5860. main ()
  5861. {
  5862. if ((int *) 0)
  5863. return 0;
  5864. if (sizeof (int))
  5865. return 0;
  5866. ;
  5867. return 0;
  5868. }
  5869. _ACEOF
  5870. rm -f conftest.$ac_objext
  5871. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5872. (eval $ac_compile) 2>conftest.er1
  5873. ac_status=$?
  5874. grep -v '^ *+' conftest.er1 >conftest.err
  5875. rm -f conftest.er1
  5876. cat conftest.err >&5
  5877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5878. (exit $ac_status); } &&
  5879. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5880. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5881. (eval $ac_try) 2>&5
  5882. ac_status=$?
  5883. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5884. (exit $ac_status); }; } &&
  5885. { ac_try='test -s conftest.$ac_objext'
  5886. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5887. (eval $ac_try) 2>&5
  5888. ac_status=$?
  5889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5890. (exit $ac_status); }; }; then
  5891. ac_cv_type_int=yes
  5892. else
  5893. echo "$as_me: failed program was:" >&5
  5894. sed 's/^/| /' conftest.$ac_ext >&5
  5895. ac_cv_type_int=no
  5896. fi
  5897. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5898. fi
  5899. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  5900. echo "${ECHO_T}$ac_cv_type_int" >&6
  5901. echo "$as_me:$LINENO: checking size of int" >&5
  5902. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  5903. if test "${ac_cv_sizeof_int+set}" = set; then
  5904. echo $ECHO_N "(cached) $ECHO_C" >&6
  5905. else
  5906. if test "$ac_cv_type_int" = yes; then
  5907. # The cast to unsigned long works around a bug in the HP C Compiler
  5908. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5909. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5910. # This bug is HP SR number 8606223364.
  5911. if test "$cross_compiling" = yes; then
  5912. # Depending upon the size, compute the lo and hi bounds.
  5913. cat >conftest.$ac_ext <<_ACEOF
  5914. /* confdefs.h. */
  5915. _ACEOF
  5916. cat confdefs.h >>conftest.$ac_ext
  5917. cat >>conftest.$ac_ext <<_ACEOF
  5918. /* end confdefs.h. */
  5919. $ac_includes_default
  5920. int
  5921. main ()
  5922. {
  5923. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  5924. test_array [0] = 0
  5925. ;
  5926. return 0;
  5927. }
  5928. _ACEOF
  5929. rm -f conftest.$ac_objext
  5930. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5931. (eval $ac_compile) 2>conftest.er1
  5932. ac_status=$?
  5933. grep -v '^ *+' conftest.er1 >conftest.err
  5934. rm -f conftest.er1
  5935. cat conftest.err >&5
  5936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5937. (exit $ac_status); } &&
  5938. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5940. (eval $ac_try) 2>&5
  5941. ac_status=$?
  5942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5943. (exit $ac_status); }; } &&
  5944. { ac_try='test -s conftest.$ac_objext'
  5945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5946. (eval $ac_try) 2>&5
  5947. ac_status=$?
  5948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5949. (exit $ac_status); }; }; then
  5950. ac_lo=0 ac_mid=0
  5951. while :; do
  5952. cat >conftest.$ac_ext <<_ACEOF
  5953. /* confdefs.h. */
  5954. _ACEOF
  5955. cat confdefs.h >>conftest.$ac_ext
  5956. cat >>conftest.$ac_ext <<_ACEOF
  5957. /* end confdefs.h. */
  5958. $ac_includes_default
  5959. int
  5960. main ()
  5961. {
  5962. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  5963. test_array [0] = 0
  5964. ;
  5965. return 0;
  5966. }
  5967. _ACEOF
  5968. rm -f conftest.$ac_objext
  5969. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5970. (eval $ac_compile) 2>conftest.er1
  5971. ac_status=$?
  5972. grep -v '^ *+' conftest.er1 >conftest.err
  5973. rm -f conftest.er1
  5974. cat conftest.err >&5
  5975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5976. (exit $ac_status); } &&
  5977. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5979. (eval $ac_try) 2>&5
  5980. ac_status=$?
  5981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5982. (exit $ac_status); }; } &&
  5983. { ac_try='test -s conftest.$ac_objext'
  5984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5985. (eval $ac_try) 2>&5
  5986. ac_status=$?
  5987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5988. (exit $ac_status); }; }; then
  5989. ac_hi=$ac_mid; break
  5990. else
  5991. echo "$as_me: failed program was:" >&5
  5992. sed 's/^/| /' conftest.$ac_ext >&5
  5993. ac_lo=`expr $ac_mid + 1`
  5994. if test $ac_lo -le $ac_mid; then
  5995. ac_lo= ac_hi=
  5996. break
  5997. fi
  5998. ac_mid=`expr 2 '*' $ac_mid + 1`
  5999. fi
  6000. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6001. done
  6002. else
  6003. echo "$as_me: failed program was:" >&5
  6004. sed 's/^/| /' conftest.$ac_ext >&5
  6005. cat >conftest.$ac_ext <<_ACEOF
  6006. /* confdefs.h. */
  6007. _ACEOF
  6008. cat confdefs.h >>conftest.$ac_ext
  6009. cat >>conftest.$ac_ext <<_ACEOF
  6010. /* end confdefs.h. */
  6011. $ac_includes_default
  6012. int
  6013. main ()
  6014. {
  6015. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  6016. test_array [0] = 0
  6017. ;
  6018. return 0;
  6019. }
  6020. _ACEOF
  6021. rm -f conftest.$ac_objext
  6022. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6023. (eval $ac_compile) 2>conftest.er1
  6024. ac_status=$?
  6025. grep -v '^ *+' conftest.er1 >conftest.err
  6026. rm -f conftest.er1
  6027. cat conftest.err >&5
  6028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6029. (exit $ac_status); } &&
  6030. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6031. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6032. (eval $ac_try) 2>&5
  6033. ac_status=$?
  6034. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6035. (exit $ac_status); }; } &&
  6036. { ac_try='test -s conftest.$ac_objext'
  6037. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6038. (eval $ac_try) 2>&5
  6039. ac_status=$?
  6040. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6041. (exit $ac_status); }; }; then
  6042. ac_hi=-1 ac_mid=-1
  6043. while :; do
  6044. cat >conftest.$ac_ext <<_ACEOF
  6045. /* confdefs.h. */
  6046. _ACEOF
  6047. cat confdefs.h >>conftest.$ac_ext
  6048. cat >>conftest.$ac_ext <<_ACEOF
  6049. /* end confdefs.h. */
  6050. $ac_includes_default
  6051. int
  6052. main ()
  6053. {
  6054. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  6055. test_array [0] = 0
  6056. ;
  6057. return 0;
  6058. }
  6059. _ACEOF
  6060. rm -f conftest.$ac_objext
  6061. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6062. (eval $ac_compile) 2>conftest.er1
  6063. ac_status=$?
  6064. grep -v '^ *+' conftest.er1 >conftest.err
  6065. rm -f conftest.er1
  6066. cat conftest.err >&5
  6067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6068. (exit $ac_status); } &&
  6069. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6070. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6071. (eval $ac_try) 2>&5
  6072. ac_status=$?
  6073. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6074. (exit $ac_status); }; } &&
  6075. { ac_try='test -s conftest.$ac_objext'
  6076. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6077. (eval $ac_try) 2>&5
  6078. ac_status=$?
  6079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6080. (exit $ac_status); }; }; then
  6081. ac_lo=$ac_mid; break
  6082. else
  6083. echo "$as_me: failed program was:" >&5
  6084. sed 's/^/| /' conftest.$ac_ext >&5
  6085. ac_hi=`expr '(' $ac_mid ')' - 1`
  6086. if test $ac_mid -le $ac_hi; then
  6087. ac_lo= ac_hi=
  6088. break
  6089. fi
  6090. ac_mid=`expr 2 '*' $ac_mid`
  6091. fi
  6092. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6093. done
  6094. else
  6095. echo "$as_me: failed program was:" >&5
  6096. sed 's/^/| /' conftest.$ac_ext >&5
  6097. ac_lo= ac_hi=
  6098. fi
  6099. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6100. fi
  6101. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6102. # Binary search between lo and hi bounds.
  6103. while test "x$ac_lo" != "x$ac_hi"; do
  6104. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6105. cat >conftest.$ac_ext <<_ACEOF
  6106. /* confdefs.h. */
  6107. _ACEOF
  6108. cat confdefs.h >>conftest.$ac_ext
  6109. cat >>conftest.$ac_ext <<_ACEOF
  6110. /* end confdefs.h. */
  6111. $ac_includes_default
  6112. int
  6113. main ()
  6114. {
  6115. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  6116. test_array [0] = 0
  6117. ;
  6118. return 0;
  6119. }
  6120. _ACEOF
  6121. rm -f conftest.$ac_objext
  6122. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6123. (eval $ac_compile) 2>conftest.er1
  6124. ac_status=$?
  6125. grep -v '^ *+' conftest.er1 >conftest.err
  6126. rm -f conftest.er1
  6127. cat conftest.err >&5
  6128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6129. (exit $ac_status); } &&
  6130. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6132. (eval $ac_try) 2>&5
  6133. ac_status=$?
  6134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6135. (exit $ac_status); }; } &&
  6136. { ac_try='test -s conftest.$ac_objext'
  6137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6138. (eval $ac_try) 2>&5
  6139. ac_status=$?
  6140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6141. (exit $ac_status); }; }; then
  6142. ac_hi=$ac_mid
  6143. else
  6144. echo "$as_me: failed program was:" >&5
  6145. sed 's/^/| /' conftest.$ac_ext >&5
  6146. ac_lo=`expr '(' $ac_mid ')' + 1`
  6147. fi
  6148. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6149. done
  6150. case $ac_lo in
  6151. ?*) ac_cv_sizeof_int=$ac_lo;;
  6152. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6153. See \`config.log' for more details." >&5
  6154. echo "$as_me: error: cannot compute sizeof (int), 77
  6155. See \`config.log' for more details." >&2;}
  6156. { (exit 1); exit 1; }; } ;;
  6157. esac
  6158. else
  6159. if test "$cross_compiling" = yes; then
  6160. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6161. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6162. { (exit 1); exit 1; }; }
  6163. else
  6164. cat >conftest.$ac_ext <<_ACEOF
  6165. /* confdefs.h. */
  6166. _ACEOF
  6167. cat confdefs.h >>conftest.$ac_ext
  6168. cat >>conftest.$ac_ext <<_ACEOF
  6169. /* end confdefs.h. */
  6170. $ac_includes_default
  6171. long longval () { return (long) (sizeof (int)); }
  6172. unsigned long ulongval () { return (long) (sizeof (int)); }
  6173. #include <stdio.h>
  6174. #include <stdlib.h>
  6175. int
  6176. main ()
  6177. {
  6178. FILE *f = fopen ("conftest.val", "w");
  6179. if (! f)
  6180. exit (1);
  6181. if (((long) (sizeof (int))) < 0)
  6182. {
  6183. long i = longval ();
  6184. if (i != ((long) (sizeof (int))))
  6185. exit (1);
  6186. fprintf (f, "%ld\n", i);
  6187. }
  6188. else
  6189. {
  6190. unsigned long i = ulongval ();
  6191. if (i != ((long) (sizeof (int))))
  6192. exit (1);
  6193. fprintf (f, "%lu\n", i);
  6194. }
  6195. exit (ferror (f) || fclose (f) != 0);
  6196. ;
  6197. return 0;
  6198. }
  6199. _ACEOF
  6200. rm -f conftest$ac_exeext
  6201. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6202. (eval $ac_link) 2>&5
  6203. ac_status=$?
  6204. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6205. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6206. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6207. (eval $ac_try) 2>&5
  6208. ac_status=$?
  6209. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6210. (exit $ac_status); }; }; then
  6211. ac_cv_sizeof_int=`cat conftest.val`
  6212. else
  6213. echo "$as_me: program exited with status $ac_status" >&5
  6214. echo "$as_me: failed program was:" >&5
  6215. sed 's/^/| /' conftest.$ac_ext >&5
  6216. ( exit $ac_status )
  6217. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  6218. See \`config.log' for more details." >&5
  6219. echo "$as_me: error: cannot compute sizeof (int), 77
  6220. See \`config.log' for more details." >&2;}
  6221. { (exit 1); exit 1; }; }
  6222. fi
  6223. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6224. fi
  6225. fi
  6226. rm -f conftest.val
  6227. else
  6228. ac_cv_sizeof_int=0
  6229. fi
  6230. fi
  6231. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  6232. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  6233. cat >>confdefs.h <<_ACEOF
  6234. #define SIZEOF_INT $ac_cv_sizeof_int
  6235. _ACEOF
  6236. echo "$as_me:$LINENO: checking for short" >&5
  6237. echo $ECHO_N "checking for short... $ECHO_C" >&6
  6238. if test "${ac_cv_type_short+set}" = set; then
  6239. echo $ECHO_N "(cached) $ECHO_C" >&6
  6240. else
  6241. cat >conftest.$ac_ext <<_ACEOF
  6242. /* confdefs.h. */
  6243. _ACEOF
  6244. cat confdefs.h >>conftest.$ac_ext
  6245. cat >>conftest.$ac_ext <<_ACEOF
  6246. /* end confdefs.h. */
  6247. $ac_includes_default
  6248. int
  6249. main ()
  6250. {
  6251. if ((short *) 0)
  6252. return 0;
  6253. if (sizeof (short))
  6254. return 0;
  6255. ;
  6256. return 0;
  6257. }
  6258. _ACEOF
  6259. rm -f conftest.$ac_objext
  6260. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6261. (eval $ac_compile) 2>conftest.er1
  6262. ac_status=$?
  6263. grep -v '^ *+' conftest.er1 >conftest.err
  6264. rm -f conftest.er1
  6265. cat conftest.err >&5
  6266. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6267. (exit $ac_status); } &&
  6268. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6269. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6270. (eval $ac_try) 2>&5
  6271. ac_status=$?
  6272. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6273. (exit $ac_status); }; } &&
  6274. { ac_try='test -s conftest.$ac_objext'
  6275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6276. (eval $ac_try) 2>&5
  6277. ac_status=$?
  6278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6279. (exit $ac_status); }; }; then
  6280. ac_cv_type_short=yes
  6281. else
  6282. echo "$as_me: failed program was:" >&5
  6283. sed 's/^/| /' conftest.$ac_ext >&5
  6284. ac_cv_type_short=no
  6285. fi
  6286. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6287. fi
  6288. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6289. echo "${ECHO_T}$ac_cv_type_short" >&6
  6290. echo "$as_me:$LINENO: checking size of short" >&5
  6291. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  6292. if test "${ac_cv_sizeof_short+set}" = set; then
  6293. echo $ECHO_N "(cached) $ECHO_C" >&6
  6294. else
  6295. if test "$ac_cv_type_short" = yes; then
  6296. # The cast to unsigned long works around a bug in the HP C Compiler
  6297. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6298. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6299. # This bug is HP SR number 8606223364.
  6300. if test "$cross_compiling" = yes; then
  6301. # Depending upon the size, compute the lo and hi bounds.
  6302. cat >conftest.$ac_ext <<_ACEOF
  6303. /* confdefs.h. */
  6304. _ACEOF
  6305. cat confdefs.h >>conftest.$ac_ext
  6306. cat >>conftest.$ac_ext <<_ACEOF
  6307. /* end confdefs.h. */
  6308. $ac_includes_default
  6309. int
  6310. main ()
  6311. {
  6312. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  6313. test_array [0] = 0
  6314. ;
  6315. return 0;
  6316. }
  6317. _ACEOF
  6318. rm -f conftest.$ac_objext
  6319. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6320. (eval $ac_compile) 2>conftest.er1
  6321. ac_status=$?
  6322. grep -v '^ *+' conftest.er1 >conftest.err
  6323. rm -f conftest.er1
  6324. cat conftest.err >&5
  6325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6326. (exit $ac_status); } &&
  6327. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6328. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6329. (eval $ac_try) 2>&5
  6330. ac_status=$?
  6331. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6332. (exit $ac_status); }; } &&
  6333. { ac_try='test -s conftest.$ac_objext'
  6334. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6335. (eval $ac_try) 2>&5
  6336. ac_status=$?
  6337. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6338. (exit $ac_status); }; }; then
  6339. ac_lo=0 ac_mid=0
  6340. while :; do
  6341. cat >conftest.$ac_ext <<_ACEOF
  6342. /* confdefs.h. */
  6343. _ACEOF
  6344. cat confdefs.h >>conftest.$ac_ext
  6345. cat >>conftest.$ac_ext <<_ACEOF
  6346. /* end confdefs.h. */
  6347. $ac_includes_default
  6348. int
  6349. main ()
  6350. {
  6351. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6352. test_array [0] = 0
  6353. ;
  6354. return 0;
  6355. }
  6356. _ACEOF
  6357. rm -f conftest.$ac_objext
  6358. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6359. (eval $ac_compile) 2>conftest.er1
  6360. ac_status=$?
  6361. grep -v '^ *+' conftest.er1 >conftest.err
  6362. rm -f conftest.er1
  6363. cat conftest.err >&5
  6364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6365. (exit $ac_status); } &&
  6366. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6368. (eval $ac_try) 2>&5
  6369. ac_status=$?
  6370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6371. (exit $ac_status); }; } &&
  6372. { ac_try='test -s conftest.$ac_objext'
  6373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6374. (eval $ac_try) 2>&5
  6375. ac_status=$?
  6376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6377. (exit $ac_status); }; }; then
  6378. ac_hi=$ac_mid; break
  6379. else
  6380. echo "$as_me: failed program was:" >&5
  6381. sed 's/^/| /' conftest.$ac_ext >&5
  6382. ac_lo=`expr $ac_mid + 1`
  6383. if test $ac_lo -le $ac_mid; then
  6384. ac_lo= ac_hi=
  6385. break
  6386. fi
  6387. ac_mid=`expr 2 '*' $ac_mid + 1`
  6388. fi
  6389. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6390. done
  6391. else
  6392. echo "$as_me: failed program was:" >&5
  6393. sed 's/^/| /' conftest.$ac_ext >&5
  6394. cat >conftest.$ac_ext <<_ACEOF
  6395. /* confdefs.h. */
  6396. _ACEOF
  6397. cat confdefs.h >>conftest.$ac_ext
  6398. cat >>conftest.$ac_ext <<_ACEOF
  6399. /* end confdefs.h. */
  6400. $ac_includes_default
  6401. int
  6402. main ()
  6403. {
  6404. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  6405. test_array [0] = 0
  6406. ;
  6407. return 0;
  6408. }
  6409. _ACEOF
  6410. rm -f conftest.$ac_objext
  6411. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6412. (eval $ac_compile) 2>conftest.er1
  6413. ac_status=$?
  6414. grep -v '^ *+' conftest.er1 >conftest.err
  6415. rm -f conftest.er1
  6416. cat conftest.err >&5
  6417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6418. (exit $ac_status); } &&
  6419. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6420. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6421. (eval $ac_try) 2>&5
  6422. ac_status=$?
  6423. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6424. (exit $ac_status); }; } &&
  6425. { ac_try='test -s conftest.$ac_objext'
  6426. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6427. (eval $ac_try) 2>&5
  6428. ac_status=$?
  6429. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6430. (exit $ac_status); }; }; then
  6431. ac_hi=-1 ac_mid=-1
  6432. while :; do
  6433. cat >conftest.$ac_ext <<_ACEOF
  6434. /* confdefs.h. */
  6435. _ACEOF
  6436. cat confdefs.h >>conftest.$ac_ext
  6437. cat >>conftest.$ac_ext <<_ACEOF
  6438. /* end confdefs.h. */
  6439. $ac_includes_default
  6440. int
  6441. main ()
  6442. {
  6443. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  6444. test_array [0] = 0
  6445. ;
  6446. return 0;
  6447. }
  6448. _ACEOF
  6449. rm -f conftest.$ac_objext
  6450. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6451. (eval $ac_compile) 2>conftest.er1
  6452. ac_status=$?
  6453. grep -v '^ *+' conftest.er1 >conftest.err
  6454. rm -f conftest.er1
  6455. cat conftest.err >&5
  6456. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6457. (exit $ac_status); } &&
  6458. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6459. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6460. (eval $ac_try) 2>&5
  6461. ac_status=$?
  6462. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6463. (exit $ac_status); }; } &&
  6464. { ac_try='test -s conftest.$ac_objext'
  6465. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6466. (eval $ac_try) 2>&5
  6467. ac_status=$?
  6468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6469. (exit $ac_status); }; }; then
  6470. ac_lo=$ac_mid; break
  6471. else
  6472. echo "$as_me: failed program was:" >&5
  6473. sed 's/^/| /' conftest.$ac_ext >&5
  6474. ac_hi=`expr '(' $ac_mid ')' - 1`
  6475. if test $ac_mid -le $ac_hi; then
  6476. ac_lo= ac_hi=
  6477. break
  6478. fi
  6479. ac_mid=`expr 2 '*' $ac_mid`
  6480. fi
  6481. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6482. done
  6483. else
  6484. echo "$as_me: failed program was:" >&5
  6485. sed 's/^/| /' conftest.$ac_ext >&5
  6486. ac_lo= ac_hi=
  6487. fi
  6488. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6489. fi
  6490. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6491. # Binary search between lo and hi bounds.
  6492. while test "x$ac_lo" != "x$ac_hi"; do
  6493. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6494. cat >conftest.$ac_ext <<_ACEOF
  6495. /* confdefs.h. */
  6496. _ACEOF
  6497. cat confdefs.h >>conftest.$ac_ext
  6498. cat >>conftest.$ac_ext <<_ACEOF
  6499. /* end confdefs.h. */
  6500. $ac_includes_default
  6501. int
  6502. main ()
  6503. {
  6504. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  6505. test_array [0] = 0
  6506. ;
  6507. return 0;
  6508. }
  6509. _ACEOF
  6510. rm -f conftest.$ac_objext
  6511. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6512. (eval $ac_compile) 2>conftest.er1
  6513. ac_status=$?
  6514. grep -v '^ *+' conftest.er1 >conftest.err
  6515. rm -f conftest.er1
  6516. cat conftest.err >&5
  6517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6518. (exit $ac_status); } &&
  6519. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6521. (eval $ac_try) 2>&5
  6522. ac_status=$?
  6523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6524. (exit $ac_status); }; } &&
  6525. { ac_try='test -s conftest.$ac_objext'
  6526. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6527. (eval $ac_try) 2>&5
  6528. ac_status=$?
  6529. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6530. (exit $ac_status); }; }; then
  6531. ac_hi=$ac_mid
  6532. else
  6533. echo "$as_me: failed program was:" >&5
  6534. sed 's/^/| /' conftest.$ac_ext >&5
  6535. ac_lo=`expr '(' $ac_mid ')' + 1`
  6536. fi
  6537. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6538. done
  6539. case $ac_lo in
  6540. ?*) ac_cv_sizeof_short=$ac_lo;;
  6541. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6542. See \`config.log' for more details." >&5
  6543. echo "$as_me: error: cannot compute sizeof (short), 77
  6544. See \`config.log' for more details." >&2;}
  6545. { (exit 1); exit 1; }; } ;;
  6546. esac
  6547. else
  6548. if test "$cross_compiling" = yes; then
  6549. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6550. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6551. { (exit 1); exit 1; }; }
  6552. else
  6553. cat >conftest.$ac_ext <<_ACEOF
  6554. /* confdefs.h. */
  6555. _ACEOF
  6556. cat confdefs.h >>conftest.$ac_ext
  6557. cat >>conftest.$ac_ext <<_ACEOF
  6558. /* end confdefs.h. */
  6559. $ac_includes_default
  6560. long longval () { return (long) (sizeof (short)); }
  6561. unsigned long ulongval () { return (long) (sizeof (short)); }
  6562. #include <stdio.h>
  6563. #include <stdlib.h>
  6564. int
  6565. main ()
  6566. {
  6567. FILE *f = fopen ("conftest.val", "w");
  6568. if (! f)
  6569. exit (1);
  6570. if (((long) (sizeof (short))) < 0)
  6571. {
  6572. long i = longval ();
  6573. if (i != ((long) (sizeof (short))))
  6574. exit (1);
  6575. fprintf (f, "%ld\n", i);
  6576. }
  6577. else
  6578. {
  6579. unsigned long i = ulongval ();
  6580. if (i != ((long) (sizeof (short))))
  6581. exit (1);
  6582. fprintf (f, "%lu\n", i);
  6583. }
  6584. exit (ferror (f) || fclose (f) != 0);
  6585. ;
  6586. return 0;
  6587. }
  6588. _ACEOF
  6589. rm -f conftest$ac_exeext
  6590. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6591. (eval $ac_link) 2>&5
  6592. ac_status=$?
  6593. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6594. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6595. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6596. (eval $ac_try) 2>&5
  6597. ac_status=$?
  6598. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6599. (exit $ac_status); }; }; then
  6600. ac_cv_sizeof_short=`cat conftest.val`
  6601. else
  6602. echo "$as_me: program exited with status $ac_status" >&5
  6603. echo "$as_me: failed program was:" >&5
  6604. sed 's/^/| /' conftest.$ac_ext >&5
  6605. ( exit $ac_status )
  6606. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  6607. See \`config.log' for more details." >&5
  6608. echo "$as_me: error: cannot compute sizeof (short), 77
  6609. See \`config.log' for more details." >&2;}
  6610. { (exit 1); exit 1; }; }
  6611. fi
  6612. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6613. fi
  6614. fi
  6615. rm -f conftest.val
  6616. else
  6617. ac_cv_sizeof_short=0
  6618. fi
  6619. fi
  6620. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6621. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  6622. cat >>confdefs.h <<_ACEOF
  6623. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6624. _ACEOF
  6625. echo "$as_me:$LINENO: checking for long" >&5
  6626. echo $ECHO_N "checking for long... $ECHO_C" >&6
  6627. if test "${ac_cv_type_long+set}" = set; then
  6628. echo $ECHO_N "(cached) $ECHO_C" >&6
  6629. else
  6630. cat >conftest.$ac_ext <<_ACEOF
  6631. /* confdefs.h. */
  6632. _ACEOF
  6633. cat confdefs.h >>conftest.$ac_ext
  6634. cat >>conftest.$ac_ext <<_ACEOF
  6635. /* end confdefs.h. */
  6636. $ac_includes_default
  6637. int
  6638. main ()
  6639. {
  6640. if ((long *) 0)
  6641. return 0;
  6642. if (sizeof (long))
  6643. return 0;
  6644. ;
  6645. return 0;
  6646. }
  6647. _ACEOF
  6648. rm -f conftest.$ac_objext
  6649. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6650. (eval $ac_compile) 2>conftest.er1
  6651. ac_status=$?
  6652. grep -v '^ *+' conftest.er1 >conftest.err
  6653. rm -f conftest.er1
  6654. cat conftest.err >&5
  6655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6656. (exit $ac_status); } &&
  6657. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6658. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6659. (eval $ac_try) 2>&5
  6660. ac_status=$?
  6661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6662. (exit $ac_status); }; } &&
  6663. { ac_try='test -s conftest.$ac_objext'
  6664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6665. (eval $ac_try) 2>&5
  6666. ac_status=$?
  6667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6668. (exit $ac_status); }; }; then
  6669. ac_cv_type_long=yes
  6670. else
  6671. echo "$as_me: failed program was:" >&5
  6672. sed 's/^/| /' conftest.$ac_ext >&5
  6673. ac_cv_type_long=no
  6674. fi
  6675. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6676. fi
  6677. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6678. echo "${ECHO_T}$ac_cv_type_long" >&6
  6679. echo "$as_me:$LINENO: checking size of long" >&5
  6680. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  6681. if test "${ac_cv_sizeof_long+set}" = set; then
  6682. echo $ECHO_N "(cached) $ECHO_C" >&6
  6683. else
  6684. if test "$ac_cv_type_long" = yes; then
  6685. # The cast to unsigned long works around a bug in the HP C Compiler
  6686. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6687. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6688. # This bug is HP SR number 8606223364.
  6689. if test "$cross_compiling" = yes; then
  6690. # Depending upon the size, compute the lo and hi bounds.
  6691. cat >conftest.$ac_ext <<_ACEOF
  6692. /* confdefs.h. */
  6693. _ACEOF
  6694. cat confdefs.h >>conftest.$ac_ext
  6695. cat >>conftest.$ac_ext <<_ACEOF
  6696. /* end confdefs.h. */
  6697. $ac_includes_default
  6698. int
  6699. main ()
  6700. {
  6701. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  6702. test_array [0] = 0
  6703. ;
  6704. return 0;
  6705. }
  6706. _ACEOF
  6707. rm -f conftest.$ac_objext
  6708. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6709. (eval $ac_compile) 2>conftest.er1
  6710. ac_status=$?
  6711. grep -v '^ *+' conftest.er1 >conftest.err
  6712. rm -f conftest.er1
  6713. cat conftest.err >&5
  6714. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6715. (exit $ac_status); } &&
  6716. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6717. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6718. (eval $ac_try) 2>&5
  6719. ac_status=$?
  6720. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6721. (exit $ac_status); }; } &&
  6722. { ac_try='test -s conftest.$ac_objext'
  6723. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6724. (eval $ac_try) 2>&5
  6725. ac_status=$?
  6726. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6727. (exit $ac_status); }; }; then
  6728. ac_lo=0 ac_mid=0
  6729. while :; do
  6730. cat >conftest.$ac_ext <<_ACEOF
  6731. /* confdefs.h. */
  6732. _ACEOF
  6733. cat confdefs.h >>conftest.$ac_ext
  6734. cat >>conftest.$ac_ext <<_ACEOF
  6735. /* end confdefs.h. */
  6736. $ac_includes_default
  6737. int
  6738. main ()
  6739. {
  6740. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6741. test_array [0] = 0
  6742. ;
  6743. return 0;
  6744. }
  6745. _ACEOF
  6746. rm -f conftest.$ac_objext
  6747. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6748. (eval $ac_compile) 2>conftest.er1
  6749. ac_status=$?
  6750. grep -v '^ *+' conftest.er1 >conftest.err
  6751. rm -f conftest.er1
  6752. cat conftest.err >&5
  6753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6754. (exit $ac_status); } &&
  6755. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6757. (eval $ac_try) 2>&5
  6758. ac_status=$?
  6759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6760. (exit $ac_status); }; } &&
  6761. { ac_try='test -s conftest.$ac_objext'
  6762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6763. (eval $ac_try) 2>&5
  6764. ac_status=$?
  6765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6766. (exit $ac_status); }; }; then
  6767. ac_hi=$ac_mid; break
  6768. else
  6769. echo "$as_me: failed program was:" >&5
  6770. sed 's/^/| /' conftest.$ac_ext >&5
  6771. ac_lo=`expr $ac_mid + 1`
  6772. if test $ac_lo -le $ac_mid; then
  6773. ac_lo= ac_hi=
  6774. break
  6775. fi
  6776. ac_mid=`expr 2 '*' $ac_mid + 1`
  6777. fi
  6778. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6779. done
  6780. else
  6781. echo "$as_me: failed program was:" >&5
  6782. sed 's/^/| /' conftest.$ac_ext >&5
  6783. cat >conftest.$ac_ext <<_ACEOF
  6784. /* confdefs.h. */
  6785. _ACEOF
  6786. cat confdefs.h >>conftest.$ac_ext
  6787. cat >>conftest.$ac_ext <<_ACEOF
  6788. /* end confdefs.h. */
  6789. $ac_includes_default
  6790. int
  6791. main ()
  6792. {
  6793. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  6794. test_array [0] = 0
  6795. ;
  6796. return 0;
  6797. }
  6798. _ACEOF
  6799. rm -f conftest.$ac_objext
  6800. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6801. (eval $ac_compile) 2>conftest.er1
  6802. ac_status=$?
  6803. grep -v '^ *+' conftest.er1 >conftest.err
  6804. rm -f conftest.er1
  6805. cat conftest.err >&5
  6806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6807. (exit $ac_status); } &&
  6808. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6810. (eval $ac_try) 2>&5
  6811. ac_status=$?
  6812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6813. (exit $ac_status); }; } &&
  6814. { ac_try='test -s conftest.$ac_objext'
  6815. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6816. (eval $ac_try) 2>&5
  6817. ac_status=$?
  6818. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6819. (exit $ac_status); }; }; then
  6820. ac_hi=-1 ac_mid=-1
  6821. while :; do
  6822. cat >conftest.$ac_ext <<_ACEOF
  6823. /* confdefs.h. */
  6824. _ACEOF
  6825. cat confdefs.h >>conftest.$ac_ext
  6826. cat >>conftest.$ac_ext <<_ACEOF
  6827. /* end confdefs.h. */
  6828. $ac_includes_default
  6829. int
  6830. main ()
  6831. {
  6832. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6833. test_array [0] = 0
  6834. ;
  6835. return 0;
  6836. }
  6837. _ACEOF
  6838. rm -f conftest.$ac_objext
  6839. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6840. (eval $ac_compile) 2>conftest.er1
  6841. ac_status=$?
  6842. grep -v '^ *+' conftest.er1 >conftest.err
  6843. rm -f conftest.er1
  6844. cat conftest.err >&5
  6845. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6846. (exit $ac_status); } &&
  6847. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6848. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6849. (eval $ac_try) 2>&5
  6850. ac_status=$?
  6851. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6852. (exit $ac_status); }; } &&
  6853. { ac_try='test -s conftest.$ac_objext'
  6854. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6855. (eval $ac_try) 2>&5
  6856. ac_status=$?
  6857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6858. (exit $ac_status); }; }; then
  6859. ac_lo=$ac_mid; break
  6860. else
  6861. echo "$as_me: failed program was:" >&5
  6862. sed 's/^/| /' conftest.$ac_ext >&5
  6863. ac_hi=`expr '(' $ac_mid ')' - 1`
  6864. if test $ac_mid -le $ac_hi; then
  6865. ac_lo= ac_hi=
  6866. break
  6867. fi
  6868. ac_mid=`expr 2 '*' $ac_mid`
  6869. fi
  6870. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6871. done
  6872. else
  6873. echo "$as_me: failed program was:" >&5
  6874. sed 's/^/| /' conftest.$ac_ext >&5
  6875. ac_lo= ac_hi=
  6876. fi
  6877. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6878. fi
  6879. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6880. # Binary search between lo and hi bounds.
  6881. while test "x$ac_lo" != "x$ac_hi"; do
  6882. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6883. cat >conftest.$ac_ext <<_ACEOF
  6884. /* confdefs.h. */
  6885. _ACEOF
  6886. cat confdefs.h >>conftest.$ac_ext
  6887. cat >>conftest.$ac_ext <<_ACEOF
  6888. /* end confdefs.h. */
  6889. $ac_includes_default
  6890. int
  6891. main ()
  6892. {
  6893. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6894. test_array [0] = 0
  6895. ;
  6896. return 0;
  6897. }
  6898. _ACEOF
  6899. rm -f conftest.$ac_objext
  6900. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6901. (eval $ac_compile) 2>conftest.er1
  6902. ac_status=$?
  6903. grep -v '^ *+' conftest.er1 >conftest.err
  6904. rm -f conftest.er1
  6905. cat conftest.err >&5
  6906. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6907. (exit $ac_status); } &&
  6908. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6909. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6910. (eval $ac_try) 2>&5
  6911. ac_status=$?
  6912. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6913. (exit $ac_status); }; } &&
  6914. { ac_try='test -s conftest.$ac_objext'
  6915. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6916. (eval $ac_try) 2>&5
  6917. ac_status=$?
  6918. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6919. (exit $ac_status); }; }; then
  6920. ac_hi=$ac_mid
  6921. else
  6922. echo "$as_me: failed program was:" >&5
  6923. sed 's/^/| /' conftest.$ac_ext >&5
  6924. ac_lo=`expr '(' $ac_mid ')' + 1`
  6925. fi
  6926. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6927. done
  6928. case $ac_lo in
  6929. ?*) ac_cv_sizeof_long=$ac_lo;;
  6930. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6931. See \`config.log' for more details." >&5
  6932. echo "$as_me: error: cannot compute sizeof (long), 77
  6933. See \`config.log' for more details." >&2;}
  6934. { (exit 1); exit 1; }; } ;;
  6935. esac
  6936. else
  6937. if test "$cross_compiling" = yes; then
  6938. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6939. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6940. { (exit 1); exit 1; }; }
  6941. else
  6942. cat >conftest.$ac_ext <<_ACEOF
  6943. /* confdefs.h. */
  6944. _ACEOF
  6945. cat confdefs.h >>conftest.$ac_ext
  6946. cat >>conftest.$ac_ext <<_ACEOF
  6947. /* end confdefs.h. */
  6948. $ac_includes_default
  6949. long longval () { return (long) (sizeof (long)); }
  6950. unsigned long ulongval () { return (long) (sizeof (long)); }
  6951. #include <stdio.h>
  6952. #include <stdlib.h>
  6953. int
  6954. main ()
  6955. {
  6956. FILE *f = fopen ("conftest.val", "w");
  6957. if (! f)
  6958. exit (1);
  6959. if (((long) (sizeof (long))) < 0)
  6960. {
  6961. long i = longval ();
  6962. if (i != ((long) (sizeof (long))))
  6963. exit (1);
  6964. fprintf (f, "%ld\n", i);
  6965. }
  6966. else
  6967. {
  6968. unsigned long i = ulongval ();
  6969. if (i != ((long) (sizeof (long))))
  6970. exit (1);
  6971. fprintf (f, "%lu\n", i);
  6972. }
  6973. exit (ferror (f) || fclose (f) != 0);
  6974. ;
  6975. return 0;
  6976. }
  6977. _ACEOF
  6978. rm -f conftest$ac_exeext
  6979. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6980. (eval $ac_link) 2>&5
  6981. ac_status=$?
  6982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6983. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6984. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6985. (eval $ac_try) 2>&5
  6986. ac_status=$?
  6987. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6988. (exit $ac_status); }; }; then
  6989. ac_cv_sizeof_long=`cat conftest.val`
  6990. else
  6991. echo "$as_me: program exited with status $ac_status" >&5
  6992. echo "$as_me: failed program was:" >&5
  6993. sed 's/^/| /' conftest.$ac_ext >&5
  6994. ( exit $ac_status )
  6995. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6996. See \`config.log' for more details." >&5
  6997. echo "$as_me: error: cannot compute sizeof (long), 77
  6998. See \`config.log' for more details." >&2;}
  6999. { (exit 1); exit 1; }; }
  7000. fi
  7001. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7002. fi
  7003. fi
  7004. rm -f conftest.val
  7005. else
  7006. ac_cv_sizeof_long=0
  7007. fi
  7008. fi
  7009. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  7010. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  7011. cat >>confdefs.h <<_ACEOF
  7012. #define SIZEOF_LONG $ac_cv_sizeof_long
  7013. _ACEOF
  7014. echo "$as_me:$LINENO: checking for long long" >&5
  7015. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  7016. if test "${ac_cv_type_long_long+set}" = set; then
  7017. echo $ECHO_N "(cached) $ECHO_C" >&6
  7018. else
  7019. cat >conftest.$ac_ext <<_ACEOF
  7020. /* confdefs.h. */
  7021. _ACEOF
  7022. cat confdefs.h >>conftest.$ac_ext
  7023. cat >>conftest.$ac_ext <<_ACEOF
  7024. /* end confdefs.h. */
  7025. $ac_includes_default
  7026. int
  7027. main ()
  7028. {
  7029. if ((long long *) 0)
  7030. return 0;
  7031. if (sizeof (long long))
  7032. return 0;
  7033. ;
  7034. return 0;
  7035. }
  7036. _ACEOF
  7037. rm -f conftest.$ac_objext
  7038. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7039. (eval $ac_compile) 2>conftest.er1
  7040. ac_status=$?
  7041. grep -v '^ *+' conftest.er1 >conftest.err
  7042. rm -f conftest.er1
  7043. cat conftest.err >&5
  7044. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7045. (exit $ac_status); } &&
  7046. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7047. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7048. (eval $ac_try) 2>&5
  7049. ac_status=$?
  7050. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7051. (exit $ac_status); }; } &&
  7052. { ac_try='test -s conftest.$ac_objext'
  7053. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7054. (eval $ac_try) 2>&5
  7055. ac_status=$?
  7056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7057. (exit $ac_status); }; }; then
  7058. ac_cv_type_long_long=yes
  7059. else
  7060. echo "$as_me: failed program was:" >&5
  7061. sed 's/^/| /' conftest.$ac_ext >&5
  7062. ac_cv_type_long_long=no
  7063. fi
  7064. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7065. fi
  7066. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  7067. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  7068. echo "$as_me:$LINENO: checking size of long long" >&5
  7069. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  7070. if test "${ac_cv_sizeof_long_long+set}" = set; then
  7071. echo $ECHO_N "(cached) $ECHO_C" >&6
  7072. else
  7073. if test "$ac_cv_type_long_long" = yes; then
  7074. # The cast to unsigned long works around a bug in the HP C Compiler
  7075. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7076. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7077. # This bug is HP SR number 8606223364.
  7078. if test "$cross_compiling" = yes; then
  7079. # Depending upon the size, compute the lo and hi bounds.
  7080. cat >conftest.$ac_ext <<_ACEOF
  7081. /* confdefs.h. */
  7082. _ACEOF
  7083. cat confdefs.h >>conftest.$ac_ext
  7084. cat >>conftest.$ac_ext <<_ACEOF
  7085. /* end confdefs.h. */
  7086. $ac_includes_default
  7087. int
  7088. main ()
  7089. {
  7090. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  7091. test_array [0] = 0
  7092. ;
  7093. return 0;
  7094. }
  7095. _ACEOF
  7096. rm -f conftest.$ac_objext
  7097. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7098. (eval $ac_compile) 2>conftest.er1
  7099. ac_status=$?
  7100. grep -v '^ *+' conftest.er1 >conftest.err
  7101. rm -f conftest.er1
  7102. cat conftest.err >&5
  7103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7104. (exit $ac_status); } &&
  7105. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7106. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7107. (eval $ac_try) 2>&5
  7108. ac_status=$?
  7109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7110. (exit $ac_status); }; } &&
  7111. { ac_try='test -s conftest.$ac_objext'
  7112. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7113. (eval $ac_try) 2>&5
  7114. ac_status=$?
  7115. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7116. (exit $ac_status); }; }; then
  7117. ac_lo=0 ac_mid=0
  7118. while :; do
  7119. cat >conftest.$ac_ext <<_ACEOF
  7120. /* confdefs.h. */
  7121. _ACEOF
  7122. cat confdefs.h >>conftest.$ac_ext
  7123. cat >>conftest.$ac_ext <<_ACEOF
  7124. /* end confdefs.h. */
  7125. $ac_includes_default
  7126. int
  7127. main ()
  7128. {
  7129. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7130. test_array [0] = 0
  7131. ;
  7132. return 0;
  7133. }
  7134. _ACEOF
  7135. rm -f conftest.$ac_objext
  7136. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7137. (eval $ac_compile) 2>conftest.er1
  7138. ac_status=$?
  7139. grep -v '^ *+' conftest.er1 >conftest.err
  7140. rm -f conftest.er1
  7141. cat conftest.err >&5
  7142. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7143. (exit $ac_status); } &&
  7144. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7146. (eval $ac_try) 2>&5
  7147. ac_status=$?
  7148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7149. (exit $ac_status); }; } &&
  7150. { ac_try='test -s conftest.$ac_objext'
  7151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7152. (eval $ac_try) 2>&5
  7153. ac_status=$?
  7154. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7155. (exit $ac_status); }; }; then
  7156. ac_hi=$ac_mid; break
  7157. else
  7158. echo "$as_me: failed program was:" >&5
  7159. sed 's/^/| /' conftest.$ac_ext >&5
  7160. ac_lo=`expr $ac_mid + 1`
  7161. if test $ac_lo -le $ac_mid; then
  7162. ac_lo= ac_hi=
  7163. break
  7164. fi
  7165. ac_mid=`expr 2 '*' $ac_mid + 1`
  7166. fi
  7167. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7168. done
  7169. else
  7170. echo "$as_me: failed program was:" >&5
  7171. sed 's/^/| /' conftest.$ac_ext >&5
  7172. cat >conftest.$ac_ext <<_ACEOF
  7173. /* confdefs.h. */
  7174. _ACEOF
  7175. cat confdefs.h >>conftest.$ac_ext
  7176. cat >>conftest.$ac_ext <<_ACEOF
  7177. /* end confdefs.h. */
  7178. $ac_includes_default
  7179. int
  7180. main ()
  7181. {
  7182. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  7183. test_array [0] = 0
  7184. ;
  7185. return 0;
  7186. }
  7187. _ACEOF
  7188. rm -f conftest.$ac_objext
  7189. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7190. (eval $ac_compile) 2>conftest.er1
  7191. ac_status=$?
  7192. grep -v '^ *+' conftest.er1 >conftest.err
  7193. rm -f conftest.er1
  7194. cat conftest.err >&5
  7195. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7196. (exit $ac_status); } &&
  7197. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7198. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7199. (eval $ac_try) 2>&5
  7200. ac_status=$?
  7201. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7202. (exit $ac_status); }; } &&
  7203. { ac_try='test -s conftest.$ac_objext'
  7204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7205. (eval $ac_try) 2>&5
  7206. ac_status=$?
  7207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7208. (exit $ac_status); }; }; then
  7209. ac_hi=-1 ac_mid=-1
  7210. while :; do
  7211. cat >conftest.$ac_ext <<_ACEOF
  7212. /* confdefs.h. */
  7213. _ACEOF
  7214. cat confdefs.h >>conftest.$ac_ext
  7215. cat >>conftest.$ac_ext <<_ACEOF
  7216. /* end confdefs.h. */
  7217. $ac_includes_default
  7218. int
  7219. main ()
  7220. {
  7221. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  7222. test_array [0] = 0
  7223. ;
  7224. return 0;
  7225. }
  7226. _ACEOF
  7227. rm -f conftest.$ac_objext
  7228. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7229. (eval $ac_compile) 2>conftest.er1
  7230. ac_status=$?
  7231. grep -v '^ *+' conftest.er1 >conftest.err
  7232. rm -f conftest.er1
  7233. cat conftest.err >&5
  7234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7235. (exit $ac_status); } &&
  7236. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7238. (eval $ac_try) 2>&5
  7239. ac_status=$?
  7240. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7241. (exit $ac_status); }; } &&
  7242. { ac_try='test -s conftest.$ac_objext'
  7243. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7244. (eval $ac_try) 2>&5
  7245. ac_status=$?
  7246. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7247. (exit $ac_status); }; }; then
  7248. ac_lo=$ac_mid; break
  7249. else
  7250. echo "$as_me: failed program was:" >&5
  7251. sed 's/^/| /' conftest.$ac_ext >&5
  7252. ac_hi=`expr '(' $ac_mid ')' - 1`
  7253. if test $ac_mid -le $ac_hi; then
  7254. ac_lo= ac_hi=
  7255. break
  7256. fi
  7257. ac_mid=`expr 2 '*' $ac_mid`
  7258. fi
  7259. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7260. done
  7261. else
  7262. echo "$as_me: failed program was:" >&5
  7263. sed 's/^/| /' conftest.$ac_ext >&5
  7264. ac_lo= ac_hi=
  7265. fi
  7266. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7267. fi
  7268. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7269. # Binary search between lo and hi bounds.
  7270. while test "x$ac_lo" != "x$ac_hi"; do
  7271. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  7272. cat >conftest.$ac_ext <<_ACEOF
  7273. /* confdefs.h. */
  7274. _ACEOF
  7275. cat confdefs.h >>conftest.$ac_ext
  7276. cat >>conftest.$ac_ext <<_ACEOF
  7277. /* end confdefs.h. */
  7278. $ac_includes_default
  7279. int
  7280. main ()
  7281. {
  7282. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  7283. test_array [0] = 0
  7284. ;
  7285. return 0;
  7286. }
  7287. _ACEOF
  7288. rm -f conftest.$ac_objext
  7289. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7290. (eval $ac_compile) 2>conftest.er1
  7291. ac_status=$?
  7292. grep -v '^ *+' conftest.er1 >conftest.err
  7293. rm -f conftest.er1
  7294. cat conftest.err >&5
  7295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7296. (exit $ac_status); } &&
  7297. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7298. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7299. (eval $ac_try) 2>&5
  7300. ac_status=$?
  7301. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7302. (exit $ac_status); }; } &&
  7303. { ac_try='test -s conftest.$ac_objext'
  7304. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7305. (eval $ac_try) 2>&5
  7306. ac_status=$?
  7307. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7308. (exit $ac_status); }; }; then
  7309. ac_hi=$ac_mid
  7310. else
  7311. echo "$as_me: failed program was:" >&5
  7312. sed 's/^/| /' conftest.$ac_ext >&5
  7313. ac_lo=`expr '(' $ac_mid ')' + 1`
  7314. fi
  7315. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7316. done
  7317. case $ac_lo in
  7318. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7319. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7320. See \`config.log' for more details." >&5
  7321. echo "$as_me: error: cannot compute sizeof (long long), 77
  7322. See \`config.log' for more details." >&2;}
  7323. { (exit 1); exit 1; }; } ;;
  7324. esac
  7325. else
  7326. if test "$cross_compiling" = yes; then
  7327. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  7328. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  7329. { (exit 1); exit 1; }; }
  7330. else
  7331. cat >conftest.$ac_ext <<_ACEOF
  7332. /* confdefs.h. */
  7333. _ACEOF
  7334. cat confdefs.h >>conftest.$ac_ext
  7335. cat >>conftest.$ac_ext <<_ACEOF
  7336. /* end confdefs.h. */
  7337. $ac_includes_default
  7338. long longval () { return (long) (sizeof (long long)); }
  7339. unsigned long ulongval () { return (long) (sizeof (long long)); }
  7340. #include <stdio.h>
  7341. #include <stdlib.h>
  7342. int
  7343. main ()
  7344. {
  7345. FILE *f = fopen ("conftest.val", "w");
  7346. if (! f)
  7347. exit (1);
  7348. if (((long) (sizeof (long long))) < 0)
  7349. {
  7350. long i = longval ();
  7351. if (i != ((long) (sizeof (long long))))
  7352. exit (1);
  7353. fprintf (f, "%ld\n", i);
  7354. }
  7355. else
  7356. {
  7357. unsigned long i = ulongval ();
  7358. if (i != ((long) (sizeof (long long))))
  7359. exit (1);
  7360. fprintf (f, "%lu\n", i);
  7361. }
  7362. exit (ferror (f) || fclose (f) != 0);
  7363. ;
  7364. return 0;
  7365. }
  7366. _ACEOF
  7367. rm -f conftest$ac_exeext
  7368. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7369. (eval $ac_link) 2>&5
  7370. ac_status=$?
  7371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7372. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7374. (eval $ac_try) 2>&5
  7375. ac_status=$?
  7376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7377. (exit $ac_status); }; }; then
  7378. ac_cv_sizeof_long_long=`cat conftest.val`
  7379. else
  7380. echo "$as_me: program exited with status $ac_status" >&5
  7381. echo "$as_me: failed program was:" >&5
  7382. sed 's/^/| /' conftest.$ac_ext >&5
  7383. ( exit $ac_status )
  7384. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  7385. See \`config.log' for more details." >&5
  7386. echo "$as_me: error: cannot compute sizeof (long long), 77
  7387. See \`config.log' for more details." >&2;}
  7388. { (exit 1); exit 1; }; }
  7389. fi
  7390. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7391. fi
  7392. fi
  7393. rm -f conftest.val
  7394. else
  7395. ac_cv_sizeof_long_long=0
  7396. fi
  7397. fi
  7398. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7399. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  7400. cat >>confdefs.h <<_ACEOF
  7401. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7402. _ACEOF
  7403. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7404. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7405. if test "${ac_cv_struct_tm+set}" = set; then
  7406. echo $ECHO_N "(cached) $ECHO_C" >&6
  7407. else
  7408. cat >conftest.$ac_ext <<_ACEOF
  7409. /* confdefs.h. */
  7410. _ACEOF
  7411. cat confdefs.h >>conftest.$ac_ext
  7412. cat >>conftest.$ac_ext <<_ACEOF
  7413. /* end confdefs.h. */
  7414. #include <sys/types.h>
  7415. #include <time.h>
  7416. int
  7417. main ()
  7418. {
  7419. struct tm *tp; tp->tm_sec;
  7420. ;
  7421. return 0;
  7422. }
  7423. _ACEOF
  7424. rm -f conftest.$ac_objext
  7425. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7426. (eval $ac_compile) 2>conftest.er1
  7427. ac_status=$?
  7428. grep -v '^ *+' conftest.er1 >conftest.err
  7429. rm -f conftest.er1
  7430. cat conftest.err >&5
  7431. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7432. (exit $ac_status); } &&
  7433. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  7439. { ac_try='test -s conftest.$ac_objext'
  7440. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7441. (eval $ac_try) 2>&5
  7442. ac_status=$?
  7443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7444. (exit $ac_status); }; }; then
  7445. ac_cv_struct_tm=time.h
  7446. else
  7447. echo "$as_me: failed program was:" >&5
  7448. sed 's/^/| /' conftest.$ac_ext >&5
  7449. ac_cv_struct_tm=sys/time.h
  7450. fi
  7451. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7452. fi
  7453. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7454. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7455. if test $ac_cv_struct_tm = sys/time.h; then
  7456. cat >>confdefs.h <<\_ACEOF
  7457. #define TM_IN_SYS_TIME 1
  7458. _ACEOF
  7459. fi
  7460. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7461. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  7462. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7463. echo $ECHO_N "(cached) $ECHO_C" >&6
  7464. else
  7465. cat >conftest.$ac_ext <<_ACEOF
  7466. /* confdefs.h. */
  7467. _ACEOF
  7468. cat confdefs.h >>conftest.$ac_ext
  7469. cat >>conftest.$ac_ext <<_ACEOF
  7470. /* end confdefs.h. */
  7471. #include <sys/types.h>
  7472. #include <$ac_cv_struct_tm>
  7473. int
  7474. main ()
  7475. {
  7476. static struct tm ac_aggr;
  7477. if (ac_aggr.tm_zone)
  7478. return 0;
  7479. ;
  7480. return 0;
  7481. }
  7482. _ACEOF
  7483. rm -f conftest.$ac_objext
  7484. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7485. (eval $ac_compile) 2>conftest.er1
  7486. ac_status=$?
  7487. grep -v '^ *+' conftest.er1 >conftest.err
  7488. rm -f conftest.er1
  7489. cat conftest.err >&5
  7490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7491. (exit $ac_status); } &&
  7492. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7494. (eval $ac_try) 2>&5
  7495. ac_status=$?
  7496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7497. (exit $ac_status); }; } &&
  7498. { ac_try='test -s conftest.$ac_objext'
  7499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7500. (eval $ac_try) 2>&5
  7501. ac_status=$?
  7502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7503. (exit $ac_status); }; }; then
  7504. ac_cv_member_struct_tm_tm_zone=yes
  7505. else
  7506. echo "$as_me: failed program was:" >&5
  7507. sed 's/^/| /' conftest.$ac_ext >&5
  7508. cat >conftest.$ac_ext <<_ACEOF
  7509. /* confdefs.h. */
  7510. _ACEOF
  7511. cat confdefs.h >>conftest.$ac_ext
  7512. cat >>conftest.$ac_ext <<_ACEOF
  7513. /* end confdefs.h. */
  7514. #include <sys/types.h>
  7515. #include <$ac_cv_struct_tm>
  7516. int
  7517. main ()
  7518. {
  7519. static struct tm ac_aggr;
  7520. if (sizeof ac_aggr.tm_zone)
  7521. return 0;
  7522. ;
  7523. return 0;
  7524. }
  7525. _ACEOF
  7526. rm -f conftest.$ac_objext
  7527. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7528. (eval $ac_compile) 2>conftest.er1
  7529. ac_status=$?
  7530. grep -v '^ *+' conftest.er1 >conftest.err
  7531. rm -f conftest.er1
  7532. cat conftest.err >&5
  7533. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7534. (exit $ac_status); } &&
  7535. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7536. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7537. (eval $ac_try) 2>&5
  7538. ac_status=$?
  7539. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7540. (exit $ac_status); }; } &&
  7541. { ac_try='test -s conftest.$ac_objext'
  7542. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7543. (eval $ac_try) 2>&5
  7544. ac_status=$?
  7545. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7546. (exit $ac_status); }; }; then
  7547. ac_cv_member_struct_tm_tm_zone=yes
  7548. else
  7549. echo "$as_me: failed program was:" >&5
  7550. sed 's/^/| /' conftest.$ac_ext >&5
  7551. ac_cv_member_struct_tm_tm_zone=no
  7552. fi
  7553. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7554. fi
  7555. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7556. fi
  7557. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7558. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  7559. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7560. cat >>confdefs.h <<_ACEOF
  7561. #define HAVE_STRUCT_TM_TM_ZONE 1
  7562. _ACEOF
  7563. fi
  7564. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7565. cat >>confdefs.h <<\_ACEOF
  7566. #define HAVE_TM_ZONE 1
  7567. _ACEOF
  7568. else
  7569. echo "$as_me:$LINENO: checking for tzname" >&5
  7570. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  7571. if test "${ac_cv_var_tzname+set}" = set; then
  7572. echo $ECHO_N "(cached) $ECHO_C" >&6
  7573. else
  7574. cat >conftest.$ac_ext <<_ACEOF
  7575. /* confdefs.h. */
  7576. _ACEOF
  7577. cat confdefs.h >>conftest.$ac_ext
  7578. cat >>conftest.$ac_ext <<_ACEOF
  7579. /* end confdefs.h. */
  7580. #include <time.h>
  7581. #ifndef tzname /* For SGI. */
  7582. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  7583. #endif
  7584. int
  7585. main ()
  7586. {
  7587. atoi(*tzname);
  7588. ;
  7589. return 0;
  7590. }
  7591. _ACEOF
  7592. rm -f conftest.$ac_objext conftest$ac_exeext
  7593. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7594. (eval $ac_link) 2>conftest.er1
  7595. ac_status=$?
  7596. grep -v '^ *+' conftest.er1 >conftest.err
  7597. rm -f conftest.er1
  7598. cat conftest.err >&5
  7599. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7600. (exit $ac_status); } &&
  7601. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7602. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7603. (eval $ac_try) 2>&5
  7604. ac_status=$?
  7605. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7606. (exit $ac_status); }; } &&
  7607. { ac_try='test -s conftest$ac_exeext'
  7608. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7609. (eval $ac_try) 2>&5
  7610. ac_status=$?
  7611. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7612. (exit $ac_status); }; }; then
  7613. ac_cv_var_tzname=yes
  7614. else
  7615. echo "$as_me: failed program was:" >&5
  7616. sed 's/^/| /' conftest.$ac_ext >&5
  7617. ac_cv_var_tzname=no
  7618. fi
  7619. rm -f conftest.err conftest.$ac_objext \
  7620. conftest$ac_exeext conftest.$ac_ext
  7621. fi
  7622. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7623. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  7624. if test $ac_cv_var_tzname = yes; then
  7625. cat >>confdefs.h <<\_ACEOF
  7626. #define HAVE_TZNAME 1
  7627. _ACEOF
  7628. fi
  7629. fi
  7630. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7631. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  7632. if test "${ac_cv_struct_tm+set}" = set; then
  7633. echo $ECHO_N "(cached) $ECHO_C" >&6
  7634. else
  7635. cat >conftest.$ac_ext <<_ACEOF
  7636. /* confdefs.h. */
  7637. _ACEOF
  7638. cat confdefs.h >>conftest.$ac_ext
  7639. cat >>conftest.$ac_ext <<_ACEOF
  7640. /* end confdefs.h. */
  7641. #include <sys/types.h>
  7642. #include <time.h>
  7643. int
  7644. main ()
  7645. {
  7646. struct tm *tp; tp->tm_sec;
  7647. ;
  7648. return 0;
  7649. }
  7650. _ACEOF
  7651. rm -f conftest.$ac_objext
  7652. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7653. (eval $ac_compile) 2>conftest.er1
  7654. ac_status=$?
  7655. grep -v '^ *+' conftest.er1 >conftest.err
  7656. rm -f conftest.er1
  7657. cat conftest.err >&5
  7658. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7659. (exit $ac_status); } &&
  7660. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7661. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7662. (eval $ac_try) 2>&5
  7663. ac_status=$?
  7664. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7665. (exit $ac_status); }; } &&
  7666. { ac_try='test -s conftest.$ac_objext'
  7667. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7668. (eval $ac_try) 2>&5
  7669. ac_status=$?
  7670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7671. (exit $ac_status); }; }; then
  7672. ac_cv_struct_tm=time.h
  7673. else
  7674. echo "$as_me: failed program was:" >&5
  7675. sed 's/^/| /' conftest.$ac_ext >&5
  7676. ac_cv_struct_tm=sys/time.h
  7677. fi
  7678. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7679. fi
  7680. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7681. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  7682. if test $ac_cv_struct_tm = sys/time.h; then
  7683. cat >>confdefs.h <<\_ACEOF
  7684. #define TM_IN_SYS_TIME 1
  7685. _ACEOF
  7686. fi
  7687. #checkpoint
  7688. cat >confcache <<\_ACEOF
  7689. # This file is a shell script that caches the results of configure
  7690. # tests run on this system so they can be shared between configure
  7691. # scripts and configure runs, see configure's option --config-cache.
  7692. # It is not useful on other systems. If it contains results you don't
  7693. # want to keep, you may remove or edit it.
  7694. #
  7695. # config.status only pays attention to the cache file if you give it
  7696. # the --recheck option to rerun configure.
  7697. #
  7698. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7699. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7700. # following values.
  7701. _ACEOF
  7702. # The following way of writing the cache mishandles newlines in values,
  7703. # but we know of no workaround that is simple, portable, and efficient.
  7704. # So, don't put newlines in cache variables' values.
  7705. # Ultrix sh set writes to stderr and can't be redirected directly,
  7706. # and sets the high bit in the cache file unless we assign to the vars.
  7707. {
  7708. (set) 2>&1 |
  7709. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  7710. *ac_space=\ *)
  7711. # `set' does not quote correctly, so add quotes (double-quote
  7712. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7713. sed -n \
  7714. "s/'/'\\\\''/g;
  7715. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7716. ;;
  7717. *)
  7718. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7719. sed -n \
  7720. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  7721. ;;
  7722. esac;
  7723. } |
  7724. sed '
  7725. t clear
  7726. : clear
  7727. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7728. t end
  7729. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7730. : end' >>confcache
  7731. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  7732. if test -w $cache_file; then
  7733. test "x$cache_file" != "x/dev/null"
  7734. cat confcache >$cache_file
  7735. else
  7736. echo "not updating unwritable cache $cache_file"
  7737. fi
  7738. fi
  7739. rm -f confcache
  7740. # Checks for library functions
  7741. for ac_header in unistd.h vfork.h
  7742. do
  7743. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7744. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7745. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7746. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7747. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7748. echo $ECHO_N "(cached) $ECHO_C" >&6
  7749. fi
  7750. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7751. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7752. else
  7753. # Is the header compilable?
  7754. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7755. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7756. cat >conftest.$ac_ext <<_ACEOF
  7757. /* confdefs.h. */
  7758. _ACEOF
  7759. cat confdefs.h >>conftest.$ac_ext
  7760. cat >>conftest.$ac_ext <<_ACEOF
  7761. /* end confdefs.h. */
  7762. $ac_includes_default
  7763. #include <$ac_header>
  7764. _ACEOF
  7765. rm -f conftest.$ac_objext
  7766. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7767. (eval $ac_compile) 2>conftest.er1
  7768. ac_status=$?
  7769. grep -v '^ *+' conftest.er1 >conftest.err
  7770. rm -f conftest.er1
  7771. cat conftest.err >&5
  7772. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7773. (exit $ac_status); } &&
  7774. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7775. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7776. (eval $ac_try) 2>&5
  7777. ac_status=$?
  7778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7779. (exit $ac_status); }; } &&
  7780. { ac_try='test -s conftest.$ac_objext'
  7781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7782. (eval $ac_try) 2>&5
  7783. ac_status=$?
  7784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7785. (exit $ac_status); }; }; then
  7786. ac_header_compiler=yes
  7787. else
  7788. echo "$as_me: failed program was:" >&5
  7789. sed 's/^/| /' conftest.$ac_ext >&5
  7790. ac_header_compiler=no
  7791. fi
  7792. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7793. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7794. echo "${ECHO_T}$ac_header_compiler" >&6
  7795. # Is the header present?
  7796. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7797. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7798. cat >conftest.$ac_ext <<_ACEOF
  7799. /* confdefs.h. */
  7800. _ACEOF
  7801. cat confdefs.h >>conftest.$ac_ext
  7802. cat >>conftest.$ac_ext <<_ACEOF
  7803. /* end confdefs.h. */
  7804. #include <$ac_header>
  7805. _ACEOF
  7806. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7807. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7808. ac_status=$?
  7809. grep -v '^ *+' conftest.er1 >conftest.err
  7810. rm -f conftest.er1
  7811. cat conftest.err >&5
  7812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7813. (exit $ac_status); } >/dev/null; then
  7814. if test -s conftest.err; then
  7815. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7816. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7817. else
  7818. ac_cpp_err=
  7819. fi
  7820. else
  7821. ac_cpp_err=yes
  7822. fi
  7823. if test -z "$ac_cpp_err"; then
  7824. ac_header_preproc=yes
  7825. else
  7826. echo "$as_me: failed program was:" >&5
  7827. sed 's/^/| /' conftest.$ac_ext >&5
  7828. ac_header_preproc=no
  7829. fi
  7830. rm -f conftest.err conftest.$ac_ext
  7831. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7832. echo "${ECHO_T}$ac_header_preproc" >&6
  7833. # So? What about this header?
  7834. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7835. yes:no: )
  7836. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7837. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7838. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7839. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7840. ac_header_preproc=yes
  7841. ;;
  7842. no:yes:* )
  7843. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7844. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7845. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7846. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7847. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7848. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7849. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7850. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7851. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7852. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7853. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7854. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7855. (
  7856. cat <<\_ASBOX
  7857. ## ------------------------------------------ ##
  7858. ## Report this to the AC_PACKAGE_NAME lists. ##
  7859. ## ------------------------------------------ ##
  7860. _ASBOX
  7861. ) |
  7862. sed "s/^/$as_me: WARNING: /" >&2
  7863. ;;
  7864. esac
  7865. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7866. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7867. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7868. echo $ECHO_N "(cached) $ECHO_C" >&6
  7869. else
  7870. eval "$as_ac_Header=\$ac_header_preproc"
  7871. fi
  7872. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7873. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7874. fi
  7875. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7876. cat >>confdefs.h <<_ACEOF
  7877. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7878. _ACEOF
  7879. fi
  7880. done
  7881. for ac_func in fork vfork
  7882. do
  7883. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7884. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7885. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7886. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7887. echo $ECHO_N "(cached) $ECHO_C" >&6
  7888. else
  7889. cat >conftest.$ac_ext <<_ACEOF
  7890. /* confdefs.h. */
  7891. _ACEOF
  7892. cat confdefs.h >>conftest.$ac_ext
  7893. cat >>conftest.$ac_ext <<_ACEOF
  7894. /* end confdefs.h. */
  7895. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7896. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7897. #define $ac_func innocuous_$ac_func
  7898. /* System header to define __stub macros and hopefully few prototypes,
  7899. which can conflict with char $ac_func (); below.
  7900. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7901. <limits.h> exists even on freestanding compilers. */
  7902. #ifdef __STDC__
  7903. # include <limits.h>
  7904. #else
  7905. # include <assert.h>
  7906. #endif
  7907. #undef $ac_func
  7908. /* Override any gcc2 internal prototype to avoid an error. */
  7909. #ifdef __cplusplus
  7910. extern "C"
  7911. {
  7912. #endif
  7913. /* We use char because int might match the return type of a gcc2
  7914. builtin and then its argument prototype would still apply. */
  7915. char $ac_func ();
  7916. /* The GNU C library defines this for functions which it implements
  7917. to always fail with ENOSYS. Some functions are actually named
  7918. something starting with __ and the normal name is an alias. */
  7919. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7920. choke me
  7921. #else
  7922. char (*f) () = $ac_func;
  7923. #endif
  7924. #ifdef __cplusplus
  7925. }
  7926. #endif
  7927. int
  7928. main ()
  7929. {
  7930. return f != $ac_func;
  7931. ;
  7932. return 0;
  7933. }
  7934. _ACEOF
  7935. rm -f conftest.$ac_objext conftest$ac_exeext
  7936. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7937. (eval $ac_link) 2>conftest.er1
  7938. ac_status=$?
  7939. grep -v '^ *+' conftest.er1 >conftest.err
  7940. rm -f conftest.er1
  7941. cat conftest.err >&5
  7942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7943. (exit $ac_status); } &&
  7944. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7945. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7946. (eval $ac_try) 2>&5
  7947. ac_status=$?
  7948. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7949. (exit $ac_status); }; } &&
  7950. { ac_try='test -s conftest$ac_exeext'
  7951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7952. (eval $ac_try) 2>&5
  7953. ac_status=$?
  7954. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7955. (exit $ac_status); }; }; then
  7956. eval "$as_ac_var=yes"
  7957. else
  7958. echo "$as_me: failed program was:" >&5
  7959. sed 's/^/| /' conftest.$ac_ext >&5
  7960. eval "$as_ac_var=no"
  7961. fi
  7962. rm -f conftest.err conftest.$ac_objext \
  7963. conftest$ac_exeext conftest.$ac_ext
  7964. fi
  7965. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7966. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7967. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7968. cat >>confdefs.h <<_ACEOF
  7969. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7970. _ACEOF
  7971. fi
  7972. done
  7973. if test "x$ac_cv_func_fork" = xyes; then
  7974. echo "$as_me:$LINENO: checking for working fork" >&5
  7975. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7976. if test "${ac_cv_func_fork_works+set}" = set; then
  7977. echo $ECHO_N "(cached) $ECHO_C" >&6
  7978. else
  7979. if test "$cross_compiling" = yes; then
  7980. ac_cv_func_fork_works=cross
  7981. else
  7982. cat >conftest.$ac_ext <<_ACEOF
  7983. /* By Ruediger Kuhlmann. */
  7984. #include <sys/types.h>
  7985. #if HAVE_UNISTD_H
  7986. # include <unistd.h>
  7987. #endif
  7988. /* Some systems only have a dummy stub for fork() */
  7989. int main ()
  7990. {
  7991. if (fork() < 0)
  7992. exit (1);
  7993. exit (0);
  7994. }
  7995. _ACEOF
  7996. rm -f conftest$ac_exeext
  7997. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7998. (eval $ac_link) 2>&5
  7999. ac_status=$?
  8000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8001. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8002. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8003. (eval $ac_try) 2>&5
  8004. ac_status=$?
  8005. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8006. (exit $ac_status); }; }; then
  8007. ac_cv_func_fork_works=yes
  8008. else
  8009. echo "$as_me: program exited with status $ac_status" >&5
  8010. echo "$as_me: failed program was:" >&5
  8011. sed 's/^/| /' conftest.$ac_ext >&5
  8012. ( exit $ac_status )
  8013. ac_cv_func_fork_works=no
  8014. fi
  8015. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8016. fi
  8017. fi
  8018. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  8019. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  8020. else
  8021. ac_cv_func_fork_works=$ac_cv_func_fork
  8022. fi
  8023. if test "x$ac_cv_func_fork_works" = xcross; then
  8024. case $host in
  8025. *-*-amigaos* | *-*-msdosdjgpp*)
  8026. # Override, as these systems have only a dummy fork() stub
  8027. ac_cv_func_fork_works=no
  8028. ;;
  8029. *)
  8030. ac_cv_func_fork_works=yes
  8031. ;;
  8032. esac
  8033. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  8034. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  8035. fi
  8036. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8037. if test "x$ac_cv_func_vfork" = xyes; then
  8038. echo "$as_me:$LINENO: checking for working vfork" >&5
  8039. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  8040. if test "${ac_cv_func_vfork_works+set}" = set; then
  8041. echo $ECHO_N "(cached) $ECHO_C" >&6
  8042. else
  8043. if test "$cross_compiling" = yes; then
  8044. ac_cv_func_vfork_works=cross
  8045. else
  8046. cat >conftest.$ac_ext <<_ACEOF
  8047. /* confdefs.h. */
  8048. _ACEOF
  8049. cat confdefs.h >>conftest.$ac_ext
  8050. cat >>conftest.$ac_ext <<_ACEOF
  8051. /* end confdefs.h. */
  8052. /* Thanks to Paul Eggert for this test. */
  8053. #include <stdio.h>
  8054. #include <stdlib.h>
  8055. #include <sys/types.h>
  8056. #include <sys/stat.h>
  8057. #include <sys/wait.h>
  8058. #if HAVE_UNISTD_H
  8059. # include <unistd.h>
  8060. #endif
  8061. #if HAVE_VFORK_H
  8062. # include <vfork.h>
  8063. #endif
  8064. /* On some sparc systems, changes by the child to local and incoming
  8065. argument registers are propagated back to the parent. The compiler
  8066. is told about this with #include <vfork.h>, but some compilers
  8067. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  8068. static variable whose address is put into a register that is
  8069. clobbered by the vfork. */
  8070. static void
  8071. #ifdef __cplusplus
  8072. sparc_address_test (int arg)
  8073. # else
  8074. sparc_address_test (arg) int arg;
  8075. #endif
  8076. {
  8077. static pid_t child;
  8078. if (!child) {
  8079. child = vfork ();
  8080. if (child < 0) {
  8081. perror ("vfork");
  8082. _exit(2);
  8083. }
  8084. if (!child) {
  8085. arg = getpid();
  8086. write(-1, "", 0);
  8087. _exit (arg);
  8088. }
  8089. }
  8090. }
  8091. int
  8092. main ()
  8093. {
  8094. pid_t parent = getpid ();
  8095. pid_t child;
  8096. sparc_address_test (0);
  8097. child = vfork ();
  8098. if (child == 0) {
  8099. /* Here is another test for sparc vfork register problems. This
  8100. test uses lots of local variables, at least as many local
  8101. variables as main has allocated so far including compiler
  8102. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  8103. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  8104. reuse the register of parent for one of the local variables,
  8105. since it will think that parent can't possibly be used any more
  8106. in this routine. Assigning to the local variable will thus
  8107. munge parent in the parent process. */
  8108. pid_t
  8109. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  8110. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  8111. /* Convince the compiler that p..p7 are live; otherwise, it might
  8112. use the same hardware register for all 8 local variables. */
  8113. if (p != p1 || p != p2 || p != p3 || p != p4
  8114. || p != p5 || p != p6 || p != p7)
  8115. _exit(1);
  8116. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  8117. from child file descriptors. If the child closes a descriptor
  8118. before it execs or exits, this munges the parent's descriptor
  8119. as well. Test for this by closing stdout in the child. */
  8120. _exit(close(fileno(stdout)) != 0);
  8121. } else {
  8122. int status;
  8123. struct stat st;
  8124. while (wait(&status) != child)
  8125. ;
  8126. exit(
  8127. /* Was there some problem with vforking? */
  8128. child < 0
  8129. /* Did the child fail? (This shouldn't happen.) */
  8130. || status
  8131. /* Did the vfork/compiler bug occur? */
  8132. || parent != getpid()
  8133. /* Did the file descriptor bug occur? */
  8134. || fstat(fileno(stdout), &st) != 0
  8135. );
  8136. }
  8137. }
  8138. _ACEOF
  8139. rm -f conftest$ac_exeext
  8140. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8141. (eval $ac_link) 2>&5
  8142. ac_status=$?
  8143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8144. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8145. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8146. (eval $ac_try) 2>&5
  8147. ac_status=$?
  8148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8149. (exit $ac_status); }; }; then
  8150. ac_cv_func_vfork_works=yes
  8151. else
  8152. echo "$as_me: program exited with status $ac_status" >&5
  8153. echo "$as_me: failed program was:" >&5
  8154. sed 's/^/| /' conftest.$ac_ext >&5
  8155. ( exit $ac_status )
  8156. ac_cv_func_vfork_works=no
  8157. fi
  8158. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8159. fi
  8160. fi
  8161. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  8162. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  8163. fi;
  8164. if test "x$ac_cv_func_fork_works" = xcross; then
  8165. ac_cv_func_vfork_works=$ac_cv_func_vfork
  8166. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  8167. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  8168. fi
  8169. if test "x$ac_cv_func_vfork_works" = xyes; then
  8170. cat >>confdefs.h <<\_ACEOF
  8171. #define HAVE_WORKING_VFORK 1
  8172. _ACEOF
  8173. else
  8174. cat >>confdefs.h <<\_ACEOF
  8175. #define vfork fork
  8176. _ACEOF
  8177. fi
  8178. if test "x$ac_cv_func_fork_works" = xyes; then
  8179. cat >>confdefs.h <<\_ACEOF
  8180. #define HAVE_WORKING_FORK 1
  8181. _ACEOF
  8182. fi
  8183. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8184. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8185. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8186. echo $ECHO_N "(cached) $ECHO_C" >&6
  8187. else
  8188. rm -f conftest.sym conftest.file
  8189. echo >conftest.file
  8190. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8191. if test "$cross_compiling" = yes; then
  8192. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8193. else
  8194. cat >conftest.$ac_ext <<_ACEOF
  8195. /* confdefs.h. */
  8196. _ACEOF
  8197. cat confdefs.h >>conftest.$ac_ext
  8198. cat >>conftest.$ac_ext <<_ACEOF
  8199. /* end confdefs.h. */
  8200. $ac_includes_default
  8201. int
  8202. main ()
  8203. {
  8204. struct stat sbuf;
  8205. /* Linux will dereference the symlink and fail.
  8206. That is better in the sense that it means we will not
  8207. have to compile and use the lstat wrapper. */
  8208. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8209. ;
  8210. return 0;
  8211. }
  8212. _ACEOF
  8213. rm -f conftest$ac_exeext
  8214. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8215. (eval $ac_link) 2>&5
  8216. ac_status=$?
  8217. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8218. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8219. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8220. (eval $ac_try) 2>&5
  8221. ac_status=$?
  8222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8223. (exit $ac_status); }; }; then
  8224. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8225. else
  8226. echo "$as_me: program exited with status $ac_status" >&5
  8227. echo "$as_me: failed program was:" >&5
  8228. sed 's/^/| /' conftest.$ac_ext >&5
  8229. ( exit $ac_status )
  8230. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8231. fi
  8232. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8233. fi
  8234. else
  8235. # If the `ln -s' command failed, then we probably don't even
  8236. # have an lstat function.
  8237. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8238. fi
  8239. rm -f conftest.sym conftest.file
  8240. fi
  8241. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8242. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8243. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8244. cat >>confdefs.h <<_ACEOF
  8245. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8246. _ACEOF
  8247. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8248. case $LIBOBJS in
  8249. "lstat.$ac_objext" | \
  8250. *" lstat.$ac_objext" | \
  8251. "lstat.$ac_objext "* | \
  8252. *" lstat.$ac_objext "* ) ;;
  8253. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8254. esac
  8255. fi
  8256. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8257. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  8258. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8259. echo $ECHO_N "(cached) $ECHO_C" >&6
  8260. else
  8261. if test "$cross_compiling" = yes; then
  8262. ac_cv_func_lstat_empty_string_bug=yes
  8263. else
  8264. cat >conftest.$ac_ext <<_ACEOF
  8265. /* confdefs.h. */
  8266. _ACEOF
  8267. cat confdefs.h >>conftest.$ac_ext
  8268. cat >>conftest.$ac_ext <<_ACEOF
  8269. /* end confdefs.h. */
  8270. $ac_includes_default
  8271. int
  8272. main ()
  8273. {
  8274. struct stat sbuf;
  8275. exit (lstat ("", &sbuf) ? 1 : 0);
  8276. ;
  8277. return 0;
  8278. }
  8279. _ACEOF
  8280. rm -f conftest$ac_exeext
  8281. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8282. (eval $ac_link) 2>&5
  8283. ac_status=$?
  8284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8285. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8286. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8287. (eval $ac_try) 2>&5
  8288. ac_status=$?
  8289. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8290. (exit $ac_status); }; }; then
  8291. ac_cv_func_lstat_empty_string_bug=yes
  8292. else
  8293. echo "$as_me: program exited with status $ac_status" >&5
  8294. echo "$as_me: failed program was:" >&5
  8295. sed 's/^/| /' conftest.$ac_ext >&5
  8296. ( exit $ac_status )
  8297. ac_cv_func_lstat_empty_string_bug=no
  8298. fi
  8299. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8300. fi
  8301. fi
  8302. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8303. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  8304. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8305. case $LIBOBJS in
  8306. "lstat.$ac_objext" | \
  8307. *" lstat.$ac_objext" | \
  8308. "lstat.$ac_objext "* | \
  8309. *" lstat.$ac_objext "* ) ;;
  8310. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8311. esac
  8312. cat >>confdefs.h <<_ACEOF
  8313. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8314. _ACEOF
  8315. fi
  8316. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8317. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  8318. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8319. echo $ECHO_N "(cached) $ECHO_C" >&6
  8320. else
  8321. rm -f conftest.sym conftest.file
  8322. echo >conftest.file
  8323. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8324. if test "$cross_compiling" = yes; then
  8325. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8326. else
  8327. cat >conftest.$ac_ext <<_ACEOF
  8328. /* confdefs.h. */
  8329. _ACEOF
  8330. cat confdefs.h >>conftest.$ac_ext
  8331. cat >>conftest.$ac_ext <<_ACEOF
  8332. /* end confdefs.h. */
  8333. $ac_includes_default
  8334. int
  8335. main ()
  8336. {
  8337. struct stat sbuf;
  8338. /* Linux will dereference the symlink and fail.
  8339. That is better in the sense that it means we will not
  8340. have to compile and use the lstat wrapper. */
  8341. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  8342. ;
  8343. return 0;
  8344. }
  8345. _ACEOF
  8346. rm -f conftest$ac_exeext
  8347. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8348. (eval $ac_link) 2>&5
  8349. ac_status=$?
  8350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8351. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8352. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8353. (eval $ac_try) 2>&5
  8354. ac_status=$?
  8355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8356. (exit $ac_status); }; }; then
  8357. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8358. else
  8359. echo "$as_me: program exited with status $ac_status" >&5
  8360. echo "$as_me: failed program was:" >&5
  8361. sed 's/^/| /' conftest.$ac_ext >&5
  8362. ( exit $ac_status )
  8363. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8364. fi
  8365. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8366. fi
  8367. else
  8368. # If the `ln -s' command failed, then we probably don't even
  8369. # have an lstat function.
  8370. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8371. fi
  8372. rm -f conftest.sym conftest.file
  8373. fi
  8374. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8375. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  8376. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8377. cat >>confdefs.h <<_ACEOF
  8378. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8379. _ACEOF
  8380. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8381. case $LIBOBJS in
  8382. "lstat.$ac_objext" | \
  8383. *" lstat.$ac_objext" | \
  8384. "lstat.$ac_objext "* | \
  8385. *" lstat.$ac_objext "* ) ;;
  8386. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  8387. esac
  8388. fi
  8389. for ac_header in stdlib.h
  8390. do
  8391. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8392. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8393. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8394. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8395. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8396. echo $ECHO_N "(cached) $ECHO_C" >&6
  8397. fi
  8398. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8399. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8400. else
  8401. # Is the header compilable?
  8402. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8403. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8404. cat >conftest.$ac_ext <<_ACEOF
  8405. /* confdefs.h. */
  8406. _ACEOF
  8407. cat confdefs.h >>conftest.$ac_ext
  8408. cat >>conftest.$ac_ext <<_ACEOF
  8409. /* end confdefs.h. */
  8410. $ac_includes_default
  8411. #include <$ac_header>
  8412. _ACEOF
  8413. rm -f conftest.$ac_objext
  8414. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8415. (eval $ac_compile) 2>conftest.er1
  8416. ac_status=$?
  8417. grep -v '^ *+' conftest.er1 >conftest.err
  8418. rm -f conftest.er1
  8419. cat conftest.err >&5
  8420. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8421. (exit $ac_status); } &&
  8422. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8423. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8424. (eval $ac_try) 2>&5
  8425. ac_status=$?
  8426. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8427. (exit $ac_status); }; } &&
  8428. { ac_try='test -s conftest.$ac_objext'
  8429. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8430. (eval $ac_try) 2>&5
  8431. ac_status=$?
  8432. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8433. (exit $ac_status); }; }; then
  8434. ac_header_compiler=yes
  8435. else
  8436. echo "$as_me: failed program was:" >&5
  8437. sed 's/^/| /' conftest.$ac_ext >&5
  8438. ac_header_compiler=no
  8439. fi
  8440. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8441. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8442. echo "${ECHO_T}$ac_header_compiler" >&6
  8443. # Is the header present?
  8444. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8445. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8446. cat >conftest.$ac_ext <<_ACEOF
  8447. /* confdefs.h. */
  8448. _ACEOF
  8449. cat confdefs.h >>conftest.$ac_ext
  8450. cat >>conftest.$ac_ext <<_ACEOF
  8451. /* end confdefs.h. */
  8452. #include <$ac_header>
  8453. _ACEOF
  8454. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8455. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8456. ac_status=$?
  8457. grep -v '^ *+' conftest.er1 >conftest.err
  8458. rm -f conftest.er1
  8459. cat conftest.err >&5
  8460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8461. (exit $ac_status); } >/dev/null; then
  8462. if test -s conftest.err; then
  8463. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8464. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8465. else
  8466. ac_cpp_err=
  8467. fi
  8468. else
  8469. ac_cpp_err=yes
  8470. fi
  8471. if test -z "$ac_cpp_err"; then
  8472. ac_header_preproc=yes
  8473. else
  8474. echo "$as_me: failed program was:" >&5
  8475. sed 's/^/| /' conftest.$ac_ext >&5
  8476. ac_header_preproc=no
  8477. fi
  8478. rm -f conftest.err conftest.$ac_ext
  8479. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8480. echo "${ECHO_T}$ac_header_preproc" >&6
  8481. # So? What about this header?
  8482. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8483. yes:no: )
  8484. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8485. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8486. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8487. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8488. ac_header_preproc=yes
  8489. ;;
  8490. no:yes:* )
  8491. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8492. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8493. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8494. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8495. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8496. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8497. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8498. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8499. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8500. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8501. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8502. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8503. (
  8504. cat <<\_ASBOX
  8505. ## ------------------------------------------ ##
  8506. ## Report this to the AC_PACKAGE_NAME lists. ##
  8507. ## ------------------------------------------ ##
  8508. _ASBOX
  8509. ) |
  8510. sed "s/^/$as_me: WARNING: /" >&2
  8511. ;;
  8512. esac
  8513. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8514. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8515. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8516. echo $ECHO_N "(cached) $ECHO_C" >&6
  8517. else
  8518. eval "$as_ac_Header=\$ac_header_preproc"
  8519. fi
  8520. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8521. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8522. fi
  8523. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8524. cat >>confdefs.h <<_ACEOF
  8525. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8526. _ACEOF
  8527. fi
  8528. done
  8529. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8530. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  8531. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8532. echo $ECHO_N "(cached) $ECHO_C" >&6
  8533. else
  8534. if test "$cross_compiling" = yes; then
  8535. ac_cv_func_malloc_0_nonnull=no
  8536. else
  8537. cat >conftest.$ac_ext <<_ACEOF
  8538. /* confdefs.h. */
  8539. _ACEOF
  8540. cat confdefs.h >>conftest.$ac_ext
  8541. cat >>conftest.$ac_ext <<_ACEOF
  8542. /* end confdefs.h. */
  8543. #if STDC_HEADERS || HAVE_STDLIB_H
  8544. # include <stdlib.h>
  8545. #else
  8546. char *malloc ();
  8547. #endif
  8548. int
  8549. main ()
  8550. {
  8551. exit (malloc (0) ? 0 : 1);
  8552. ;
  8553. return 0;
  8554. }
  8555. _ACEOF
  8556. rm -f conftest$ac_exeext
  8557. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8558. (eval $ac_link) 2>&5
  8559. ac_status=$?
  8560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8561. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8562. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8563. (eval $ac_try) 2>&5
  8564. ac_status=$?
  8565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8566. (exit $ac_status); }; }; then
  8567. ac_cv_func_malloc_0_nonnull=yes
  8568. else
  8569. echo "$as_me: program exited with status $ac_status" >&5
  8570. echo "$as_me: failed program was:" >&5
  8571. sed 's/^/| /' conftest.$ac_ext >&5
  8572. ( exit $ac_status )
  8573. ac_cv_func_malloc_0_nonnull=no
  8574. fi
  8575. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8576. fi
  8577. fi
  8578. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8579. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  8580. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8581. cat >>confdefs.h <<\_ACEOF
  8582. #define HAVE_MALLOC 1
  8583. _ACEOF
  8584. else
  8585. cat >>confdefs.h <<\_ACEOF
  8586. #define HAVE_MALLOC 0
  8587. _ACEOF
  8588. case $LIBOBJS in
  8589. "malloc.$ac_objext" | \
  8590. *" malloc.$ac_objext" | \
  8591. "malloc.$ac_objext "* | \
  8592. *" malloc.$ac_objext "* ) ;;
  8593. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  8594. esac
  8595. cat >>confdefs.h <<\_ACEOF
  8596. #define malloc rpl_malloc
  8597. _ACEOF
  8598. fi
  8599. for ac_header in stdlib.h sys/time.h unistd.h
  8600. do
  8601. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8602. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8603. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8604. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8605. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8606. echo $ECHO_N "(cached) $ECHO_C" >&6
  8607. fi
  8608. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8609. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8610. else
  8611. # Is the header compilable?
  8612. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8613. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8614. cat >conftest.$ac_ext <<_ACEOF
  8615. /* confdefs.h. */
  8616. _ACEOF
  8617. cat confdefs.h >>conftest.$ac_ext
  8618. cat >>conftest.$ac_ext <<_ACEOF
  8619. /* end confdefs.h. */
  8620. $ac_includes_default
  8621. #include <$ac_header>
  8622. _ACEOF
  8623. rm -f conftest.$ac_objext
  8624. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8625. (eval $ac_compile) 2>conftest.er1
  8626. ac_status=$?
  8627. grep -v '^ *+' conftest.er1 >conftest.err
  8628. rm -f conftest.er1
  8629. cat conftest.err >&5
  8630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8631. (exit $ac_status); } &&
  8632. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8634. (eval $ac_try) 2>&5
  8635. ac_status=$?
  8636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8637. (exit $ac_status); }; } &&
  8638. { ac_try='test -s conftest.$ac_objext'
  8639. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8640. (eval $ac_try) 2>&5
  8641. ac_status=$?
  8642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8643. (exit $ac_status); }; }; then
  8644. ac_header_compiler=yes
  8645. else
  8646. echo "$as_me: failed program was:" >&5
  8647. sed 's/^/| /' conftest.$ac_ext >&5
  8648. ac_header_compiler=no
  8649. fi
  8650. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8651. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8652. echo "${ECHO_T}$ac_header_compiler" >&6
  8653. # Is the header present?
  8654. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8655. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8656. cat >conftest.$ac_ext <<_ACEOF
  8657. /* confdefs.h. */
  8658. _ACEOF
  8659. cat confdefs.h >>conftest.$ac_ext
  8660. cat >>conftest.$ac_ext <<_ACEOF
  8661. /* end confdefs.h. */
  8662. #include <$ac_header>
  8663. _ACEOF
  8664. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8665. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8666. ac_status=$?
  8667. grep -v '^ *+' conftest.er1 >conftest.err
  8668. rm -f conftest.er1
  8669. cat conftest.err >&5
  8670. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8671. (exit $ac_status); } >/dev/null; then
  8672. if test -s conftest.err; then
  8673. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8674. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8675. else
  8676. ac_cpp_err=
  8677. fi
  8678. else
  8679. ac_cpp_err=yes
  8680. fi
  8681. if test -z "$ac_cpp_err"; then
  8682. ac_header_preproc=yes
  8683. else
  8684. echo "$as_me: failed program was:" >&5
  8685. sed 's/^/| /' conftest.$ac_ext >&5
  8686. ac_header_preproc=no
  8687. fi
  8688. rm -f conftest.err conftest.$ac_ext
  8689. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8690. echo "${ECHO_T}$ac_header_preproc" >&6
  8691. # So? What about this header?
  8692. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8693. yes:no: )
  8694. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8695. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8696. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8697. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8698. ac_header_preproc=yes
  8699. ;;
  8700. no:yes:* )
  8701. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8702. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8703. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8704. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8705. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8706. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8707. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8708. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8709. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8710. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8711. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8712. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8713. (
  8714. cat <<\_ASBOX
  8715. ## ------------------------------------------ ##
  8716. ## Report this to the AC_PACKAGE_NAME lists. ##
  8717. ## ------------------------------------------ ##
  8718. _ASBOX
  8719. ) |
  8720. sed "s/^/$as_me: WARNING: /" >&2
  8721. ;;
  8722. esac
  8723. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8724. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8725. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8726. echo $ECHO_N "(cached) $ECHO_C" >&6
  8727. else
  8728. eval "$as_ac_Header=\$ac_header_preproc"
  8729. fi
  8730. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8731. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8732. fi
  8733. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8734. cat >>confdefs.h <<_ACEOF
  8735. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8736. _ACEOF
  8737. fi
  8738. done
  8739. for ac_func in alarm
  8740. do
  8741. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8742. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8743. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8744. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8745. echo $ECHO_N "(cached) $ECHO_C" >&6
  8746. else
  8747. cat >conftest.$ac_ext <<_ACEOF
  8748. /* confdefs.h. */
  8749. _ACEOF
  8750. cat confdefs.h >>conftest.$ac_ext
  8751. cat >>conftest.$ac_ext <<_ACEOF
  8752. /* end confdefs.h. */
  8753. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8754. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8755. #define $ac_func innocuous_$ac_func
  8756. /* System header to define __stub macros and hopefully few prototypes,
  8757. which can conflict with char $ac_func (); below.
  8758. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8759. <limits.h> exists even on freestanding compilers. */
  8760. #ifdef __STDC__
  8761. # include <limits.h>
  8762. #else
  8763. # include <assert.h>
  8764. #endif
  8765. #undef $ac_func
  8766. /* Override any gcc2 internal prototype to avoid an error. */
  8767. #ifdef __cplusplus
  8768. extern "C"
  8769. {
  8770. #endif
  8771. /* We use char because int might match the return type of a gcc2
  8772. builtin and then its argument prototype would still apply. */
  8773. char $ac_func ();
  8774. /* The GNU C library defines this for functions which it implements
  8775. to always fail with ENOSYS. Some functions are actually named
  8776. something starting with __ and the normal name is an alias. */
  8777. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8778. choke me
  8779. #else
  8780. char (*f) () = $ac_func;
  8781. #endif
  8782. #ifdef __cplusplus
  8783. }
  8784. #endif
  8785. int
  8786. main ()
  8787. {
  8788. return f != $ac_func;
  8789. ;
  8790. return 0;
  8791. }
  8792. _ACEOF
  8793. rm -f conftest.$ac_objext conftest$ac_exeext
  8794. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8795. (eval $ac_link) 2>conftest.er1
  8796. ac_status=$?
  8797. grep -v '^ *+' conftest.er1 >conftest.err
  8798. rm -f conftest.er1
  8799. cat conftest.err >&5
  8800. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8801. (exit $ac_status); } &&
  8802. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8803. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8804. (eval $ac_try) 2>&5
  8805. ac_status=$?
  8806. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8807. (exit $ac_status); }; } &&
  8808. { ac_try='test -s conftest$ac_exeext'
  8809. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8810. (eval $ac_try) 2>&5
  8811. ac_status=$?
  8812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8813. (exit $ac_status); }; }; then
  8814. eval "$as_ac_var=yes"
  8815. else
  8816. echo "$as_me: failed program was:" >&5
  8817. sed 's/^/| /' conftest.$ac_ext >&5
  8818. eval "$as_ac_var=no"
  8819. fi
  8820. rm -f conftest.err conftest.$ac_objext \
  8821. conftest$ac_exeext conftest.$ac_ext
  8822. fi
  8823. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8824. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8825. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8826. cat >>confdefs.h <<_ACEOF
  8827. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8828. _ACEOF
  8829. fi
  8830. done
  8831. echo "$as_me:$LINENO: checking for working mktime" >&5
  8832. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8833. if test "${ac_cv_func_working_mktime+set}" = set; then
  8834. echo $ECHO_N "(cached) $ECHO_C" >&6
  8835. else
  8836. if test "$cross_compiling" = yes; then
  8837. ac_cv_func_working_mktime=no
  8838. else
  8839. cat >conftest.$ac_ext <<_ACEOF
  8840. /* confdefs.h. */
  8841. _ACEOF
  8842. cat confdefs.h >>conftest.$ac_ext
  8843. cat >>conftest.$ac_ext <<_ACEOF
  8844. /* end confdefs.h. */
  8845. /* Test program from Paul Eggert and Tony Leneis. */
  8846. #if TIME_WITH_SYS_TIME
  8847. # include <sys/time.h>
  8848. # include <time.h>
  8849. #else
  8850. # if HAVE_SYS_TIME_H
  8851. # include <sys/time.h>
  8852. # else
  8853. # include <time.h>
  8854. # endif
  8855. #endif
  8856. #if HAVE_STDLIB_H
  8857. # include <stdlib.h>
  8858. #endif
  8859. #if HAVE_UNISTD_H
  8860. # include <unistd.h>
  8861. #endif
  8862. #if !HAVE_ALARM
  8863. # define alarm(X) /* empty */
  8864. #endif
  8865. /* Work around redefinition to rpl_putenv by other config tests. */
  8866. #undef putenv
  8867. static time_t time_t_max;
  8868. static time_t time_t_min;
  8869. /* Values we'll use to set the TZ environment variable. */
  8870. static char *tz_strings[] = {
  8871. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8872. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8873. };
  8874. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8875. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8876. Based on a problem report from Andreas Jaeger. */
  8877. static void
  8878. spring_forward_gap ()
  8879. {
  8880. /* glibc (up to about 1998-10-07) failed this test. */
  8881. struct tm tm;
  8882. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8883. instead of "TZ=America/Vancouver" in order to detect the bug even
  8884. on systems that don't support the Olson extension, or don't have the
  8885. full zoneinfo tables installed. */
  8886. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8887. tm.tm_year = 98;
  8888. tm.tm_mon = 3;
  8889. tm.tm_mday = 5;
  8890. tm.tm_hour = 2;
  8891. tm.tm_min = 0;
  8892. tm.tm_sec = 0;
  8893. tm.tm_isdst = -1;
  8894. if (mktime (&tm) == (time_t)-1)
  8895. exit (1);
  8896. }
  8897. static void
  8898. mktime_test1 (now)
  8899. time_t now;
  8900. {
  8901. struct tm *lt;
  8902. if ((lt = localtime (&now)) && mktime (lt) != now)
  8903. exit (1);
  8904. }
  8905. static void
  8906. mktime_test (now)
  8907. time_t now;
  8908. {
  8909. mktime_test1 (now);
  8910. mktime_test1 ((time_t) (time_t_max - now));
  8911. mktime_test1 ((time_t) (time_t_min + now));
  8912. }
  8913. static void
  8914. irix_6_4_bug ()
  8915. {
  8916. /* Based on code from Ariel Faigon. */
  8917. struct tm tm;
  8918. tm.tm_year = 96;
  8919. tm.tm_mon = 3;
  8920. tm.tm_mday = 0;
  8921. tm.tm_hour = 0;
  8922. tm.tm_min = 0;
  8923. tm.tm_sec = 0;
  8924. tm.tm_isdst = -1;
  8925. mktime (&tm);
  8926. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8927. exit (1);
  8928. }
  8929. static void
  8930. bigtime_test (j)
  8931. int j;
  8932. {
  8933. struct tm tm;
  8934. time_t now;
  8935. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8936. now = mktime (&tm);
  8937. if (now != (time_t) -1)
  8938. {
  8939. struct tm *lt = localtime (&now);
  8940. if (! (lt
  8941. && lt->tm_year == tm.tm_year
  8942. && lt->tm_mon == tm.tm_mon
  8943. && lt->tm_mday == tm.tm_mday
  8944. && lt->tm_hour == tm.tm_hour
  8945. && lt->tm_min == tm.tm_min
  8946. && lt->tm_sec == tm.tm_sec
  8947. && lt->tm_yday == tm.tm_yday
  8948. && lt->tm_wday == tm.tm_wday
  8949. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8950. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8951. exit (1);
  8952. }
  8953. }
  8954. int
  8955. main ()
  8956. {
  8957. time_t t, delta;
  8958. int i, j;
  8959. /* This test makes some buggy mktime implementations loop.
  8960. Give up after 60 seconds; a mktime slower than that
  8961. isn't worth using anyway. */
  8962. alarm (60);
  8963. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8964. continue;
  8965. time_t_max--;
  8966. if ((time_t) -1 < 0)
  8967. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8968. continue;
  8969. delta = time_t_max / 997; /* a suitable prime number */
  8970. for (i = 0; i < N_STRINGS; i++)
  8971. {
  8972. if (tz_strings[i])
  8973. putenv (tz_strings[i]);
  8974. for (t = 0; t <= time_t_max - delta; t += delta)
  8975. mktime_test (t);
  8976. mktime_test ((time_t) 1);
  8977. mktime_test ((time_t) (60 * 60));
  8978. mktime_test ((time_t) (60 * 60 * 24));
  8979. for (j = 1; 0 < j; j *= 2)
  8980. bigtime_test (j);
  8981. bigtime_test (j - 1);
  8982. }
  8983. irix_6_4_bug ();
  8984. spring_forward_gap ();
  8985. exit (0);
  8986. }
  8987. _ACEOF
  8988. rm -f conftest$ac_exeext
  8989. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8990. (eval $ac_link) 2>&5
  8991. ac_status=$?
  8992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8993. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8994. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8995. (eval $ac_try) 2>&5
  8996. ac_status=$?
  8997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8998. (exit $ac_status); }; }; then
  8999. ac_cv_func_working_mktime=yes
  9000. else
  9001. echo "$as_me: program exited with status $ac_status" >&5
  9002. echo "$as_me: failed program was:" >&5
  9003. sed 's/^/| /' conftest.$ac_ext >&5
  9004. ( exit $ac_status )
  9005. ac_cv_func_working_mktime=no
  9006. fi
  9007. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9008. fi
  9009. fi
  9010. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  9011. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  9012. if test $ac_cv_func_working_mktime = no; then
  9013. case $LIBOBJS in
  9014. "mktime.$ac_objext" | \
  9015. *" mktime.$ac_objext" | \
  9016. "mktime.$ac_objext "* | \
  9017. *" mktime.$ac_objext "* ) ;;
  9018. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  9019. esac
  9020. fi
  9021. for ac_header in stdlib.h unistd.h
  9022. do
  9023. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9024. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9025. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9026. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9027. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9028. echo $ECHO_N "(cached) $ECHO_C" >&6
  9029. fi
  9030. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9031. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9032. else
  9033. # Is the header compilable?
  9034. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9035. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9036. cat >conftest.$ac_ext <<_ACEOF
  9037. /* confdefs.h. */
  9038. _ACEOF
  9039. cat confdefs.h >>conftest.$ac_ext
  9040. cat >>conftest.$ac_ext <<_ACEOF
  9041. /* end confdefs.h. */
  9042. $ac_includes_default
  9043. #include <$ac_header>
  9044. _ACEOF
  9045. rm -f conftest.$ac_objext
  9046. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9047. (eval $ac_compile) 2>conftest.er1
  9048. ac_status=$?
  9049. grep -v '^ *+' conftest.er1 >conftest.err
  9050. rm -f conftest.er1
  9051. cat conftest.err >&5
  9052. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9053. (exit $ac_status); } &&
  9054. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9056. (eval $ac_try) 2>&5
  9057. ac_status=$?
  9058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9059. (exit $ac_status); }; } &&
  9060. { ac_try='test -s conftest.$ac_objext'
  9061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9062. (eval $ac_try) 2>&5
  9063. ac_status=$?
  9064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9065. (exit $ac_status); }; }; then
  9066. ac_header_compiler=yes
  9067. else
  9068. echo "$as_me: failed program was:" >&5
  9069. sed 's/^/| /' conftest.$ac_ext >&5
  9070. ac_header_compiler=no
  9071. fi
  9072. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9073. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9074. echo "${ECHO_T}$ac_header_compiler" >&6
  9075. # Is the header present?
  9076. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9077. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9078. cat >conftest.$ac_ext <<_ACEOF
  9079. /* confdefs.h. */
  9080. _ACEOF
  9081. cat confdefs.h >>conftest.$ac_ext
  9082. cat >>conftest.$ac_ext <<_ACEOF
  9083. /* end confdefs.h. */
  9084. #include <$ac_header>
  9085. _ACEOF
  9086. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9087. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9088. ac_status=$?
  9089. grep -v '^ *+' conftest.er1 >conftest.err
  9090. rm -f conftest.er1
  9091. cat conftest.err >&5
  9092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9093. (exit $ac_status); } >/dev/null; then
  9094. if test -s conftest.err; then
  9095. ac_cpp_err=$ac_cxx_preproc_warn_flag
  9096. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  9097. else
  9098. ac_cpp_err=
  9099. fi
  9100. else
  9101. ac_cpp_err=yes
  9102. fi
  9103. if test -z "$ac_cpp_err"; then
  9104. ac_header_preproc=yes
  9105. else
  9106. echo "$as_me: failed program was:" >&5
  9107. sed 's/^/| /' conftest.$ac_ext >&5
  9108. ac_header_preproc=no
  9109. fi
  9110. rm -f conftest.err conftest.$ac_ext
  9111. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9112. echo "${ECHO_T}$ac_header_preproc" >&6
  9113. # So? What about this header?
  9114. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9115. yes:no: )
  9116. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9117. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9118. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9119. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9120. ac_header_preproc=yes
  9121. ;;
  9122. no:yes:* )
  9123. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9124. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9125. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9126. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9127. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9128. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9129. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9130. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9131. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9132. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9133. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9134. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9135. (
  9136. cat <<\_ASBOX
  9137. ## ------------------------------------------ ##
  9138. ## Report this to the AC_PACKAGE_NAME lists. ##
  9139. ## ------------------------------------------ ##
  9140. _ASBOX
  9141. ) |
  9142. sed "s/^/$as_me: WARNING: /" >&2
  9143. ;;
  9144. esac
  9145. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9146. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9147. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9148. echo $ECHO_N "(cached) $ECHO_C" >&6
  9149. else
  9150. eval "$as_ac_Header=\$ac_header_preproc"
  9151. fi
  9152. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9153. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9154. fi
  9155. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9156. cat >>confdefs.h <<_ACEOF
  9157. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9158. _ACEOF
  9159. fi
  9160. done
  9161. for ac_func in getpagesize
  9162. do
  9163. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9164. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9165. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9166. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9167. echo $ECHO_N "(cached) $ECHO_C" >&6
  9168. else
  9169. cat >conftest.$ac_ext <<_ACEOF
  9170. /* confdefs.h. */
  9171. _ACEOF
  9172. cat confdefs.h >>conftest.$ac_ext
  9173. cat >>conftest.$ac_ext <<_ACEOF
  9174. /* end confdefs.h. */
  9175. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9176. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9177. #define $ac_func innocuous_$ac_func
  9178. /* System header to define __stub macros and hopefully few prototypes,
  9179. which can conflict with char $ac_func (); below.
  9180. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9181. <limits.h> exists even on freestanding compilers. */
  9182. #ifdef __STDC__
  9183. # include <limits.h>
  9184. #else
  9185. # include <assert.h>
  9186. #endif
  9187. #undef $ac_func
  9188. /* Override any gcc2 internal prototype to avoid an error. */
  9189. #ifdef __cplusplus
  9190. extern "C"
  9191. {
  9192. #endif
  9193. /* We use char because int might match the return type of a gcc2
  9194. builtin and then its argument prototype would still apply. */
  9195. char $ac_func ();
  9196. /* The GNU C library defines this for functions which it implements
  9197. to always fail with ENOSYS. Some functions are actually named
  9198. something starting with __ and the normal name is an alias. */
  9199. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9200. choke me
  9201. #else
  9202. char (*f) () = $ac_func;
  9203. #endif
  9204. #ifdef __cplusplus
  9205. }
  9206. #endif
  9207. int
  9208. main ()
  9209. {
  9210. return f != $ac_func;
  9211. ;
  9212. return 0;
  9213. }
  9214. _ACEOF
  9215. rm -f conftest.$ac_objext conftest$ac_exeext
  9216. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9217. (eval $ac_link) 2>conftest.er1
  9218. ac_status=$?
  9219. grep -v '^ *+' conftest.er1 >conftest.err
  9220. rm -f conftest.er1
  9221. cat conftest.err >&5
  9222. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9223. (exit $ac_status); } &&
  9224. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9225. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9226. (eval $ac_try) 2>&5
  9227. ac_status=$?
  9228. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9229. (exit $ac_status); }; } &&
  9230. { ac_try='test -s conftest$ac_exeext'
  9231. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9232. (eval $ac_try) 2>&5
  9233. ac_status=$?
  9234. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9235. (exit $ac_status); }; }; then
  9236. eval "$as_ac_var=yes"
  9237. else
  9238. echo "$as_me: failed program was:" >&5
  9239. sed 's/^/| /' conftest.$ac_ext >&5
  9240. eval "$as_ac_var=no"
  9241. fi
  9242. rm -f conftest.err conftest.$ac_objext \
  9243. conftest$ac_exeext conftest.$ac_ext
  9244. fi
  9245. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9246. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9247. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9248. cat >>confdefs.h <<_ACEOF
  9249. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9250. _ACEOF
  9251. fi
  9252. done
  9253. echo "$as_me:$LINENO: checking for working mmap" >&5
  9254. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  9255. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9256. echo $ECHO_N "(cached) $ECHO_C" >&6
  9257. else
  9258. if test "$cross_compiling" = yes; then
  9259. ac_cv_func_mmap_fixed_mapped=no
  9260. else
  9261. cat >conftest.$ac_ext <<_ACEOF
  9262. /* confdefs.h. */
  9263. _ACEOF
  9264. cat confdefs.h >>conftest.$ac_ext
  9265. cat >>conftest.$ac_ext <<_ACEOF
  9266. /* end confdefs.h. */
  9267. $ac_includes_default
  9268. /* malloc might have been renamed as rpl_malloc. */
  9269. #undef malloc
  9270. /* Thanks to Mike Haertel and Jim Avera for this test.
  9271. Here is a matrix of mmap possibilities:
  9272. mmap private not fixed
  9273. mmap private fixed at somewhere currently unmapped
  9274. mmap private fixed at somewhere already mapped
  9275. mmap shared not fixed
  9276. mmap shared fixed at somewhere currently unmapped
  9277. mmap shared fixed at somewhere already mapped
  9278. For private mappings, we should verify that changes cannot be read()
  9279. back from the file, nor mmap's back from the file at a different
  9280. address. (There have been systems where private was not correctly
  9281. implemented like the infamous i386 svr4.0, and systems where the
  9282. VM page cache was not coherent with the file system buffer cache
  9283. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9284. For shared mappings, we should conversely verify that changes get
  9285. propagated back to all the places they're supposed to be.
  9286. Grep wants private fixed already mapped.
  9287. The main things grep needs to know about mmap are:
  9288. * does it exist and is it safe to write into the mmap'd area
  9289. * how to use it (BSD variants) */
  9290. #include <fcntl.h>
  9291. #include <sys/mman.h>
  9292. #if !STDC_HEADERS && !HAVE_STDLIB_H
  9293. char *malloc ();
  9294. #endif
  9295. /* This mess was copied from the GNU getpagesize.h. */
  9296. #if !HAVE_GETPAGESIZE
  9297. /* Assume that all systems that can run configure have sys/param.h. */
  9298. # if !HAVE_SYS_PARAM_H
  9299. # define HAVE_SYS_PARAM_H 1
  9300. # endif
  9301. # ifdef _SC_PAGESIZE
  9302. # define getpagesize() sysconf(_SC_PAGESIZE)
  9303. # else /* no _SC_PAGESIZE */
  9304. # if HAVE_SYS_PARAM_H
  9305. # include <sys/param.h>
  9306. # ifdef EXEC_PAGESIZE
  9307. # define getpagesize() EXEC_PAGESIZE
  9308. # else /* no EXEC_PAGESIZE */
  9309. # ifdef NBPG
  9310. # define getpagesize() NBPG * CLSIZE
  9311. # ifndef CLSIZE
  9312. # define CLSIZE 1
  9313. # endif /* no CLSIZE */
  9314. # else /* no NBPG */
  9315. # ifdef NBPC
  9316. # define getpagesize() NBPC
  9317. # else /* no NBPC */
  9318. # ifdef PAGESIZE
  9319. # define getpagesize() PAGESIZE
  9320. # endif /* PAGESIZE */
  9321. # endif /* no NBPC */
  9322. # endif /* no NBPG */
  9323. # endif /* no EXEC_PAGESIZE */
  9324. # else /* no HAVE_SYS_PARAM_H */
  9325. # define getpagesize() 8192 /* punt totally */
  9326. # endif /* no HAVE_SYS_PARAM_H */
  9327. # endif /* no _SC_PAGESIZE */
  9328. #endif /* no HAVE_GETPAGESIZE */
  9329. int
  9330. main ()
  9331. {
  9332. char *data, *data2, *data3;
  9333. int i, pagesize;
  9334. int fd;
  9335. pagesize = getpagesize ();
  9336. /* First, make a file with some known garbage in it. */
  9337. data = (char *) malloc (pagesize);
  9338. if (!data)
  9339. exit (1);
  9340. for (i = 0; i < pagesize; ++i)
  9341. *(data + i) = rand ();
  9342. umask (0);
  9343. fd = creat ("conftest.mmap", 0600);
  9344. if (fd < 0)
  9345. exit (1);
  9346. if (write (fd, data, pagesize) != pagesize)
  9347. exit (1);
  9348. close (fd);
  9349. /* Next, try to mmap the file at a fixed address which already has
  9350. something else allocated at it. If we can, also make sure that
  9351. we see the same garbage. */
  9352. fd = open ("conftest.mmap", O_RDWR);
  9353. if (fd < 0)
  9354. exit (1);
  9355. data2 = (char *) malloc (2 * pagesize);
  9356. if (!data2)
  9357. exit (1);
  9358. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  9359. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9360. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9361. exit (1);
  9362. for (i = 0; i < pagesize; ++i)
  9363. if (*(data + i) != *(data2 + i))
  9364. exit (1);
  9365. /* Finally, make sure that changes to the mapped area do not
  9366. percolate back to the file as seen by read(). (This is a bug on
  9367. some variants of i386 svr4.0.) */
  9368. for (i = 0; i < pagesize; ++i)
  9369. *(data2 + i) = *(data2 + i) + 1;
  9370. data3 = (char *) malloc (pagesize);
  9371. if (!data3)
  9372. exit (1);
  9373. if (read (fd, data3, pagesize) != pagesize)
  9374. exit (1);
  9375. for (i = 0; i < pagesize; ++i)
  9376. if (*(data + i) != *(data3 + i))
  9377. exit (1);
  9378. close (fd);
  9379. exit (0);
  9380. }
  9381. _ACEOF
  9382. rm -f conftest$ac_exeext
  9383. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9384. (eval $ac_link) 2>&5
  9385. ac_status=$?
  9386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9387. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9389. (eval $ac_try) 2>&5
  9390. ac_status=$?
  9391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9392. (exit $ac_status); }; }; then
  9393. ac_cv_func_mmap_fixed_mapped=yes
  9394. else
  9395. echo "$as_me: program exited with status $ac_status" >&5
  9396. echo "$as_me: failed program was:" >&5
  9397. sed 's/^/| /' conftest.$ac_ext >&5
  9398. ( exit $ac_status )
  9399. ac_cv_func_mmap_fixed_mapped=no
  9400. fi
  9401. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9402. fi
  9403. fi
  9404. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9405. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  9406. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9407. cat >>confdefs.h <<\_ACEOF
  9408. #define HAVE_MMAP 1
  9409. _ACEOF
  9410. fi
  9411. rm -f conftest.mmap
  9412. for ac_header in stdlib.h
  9413. do
  9414. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9415. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9416. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9417. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9418. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9419. echo $ECHO_N "(cached) $ECHO_C" >&6
  9420. fi
  9421. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9422. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9423. else
  9424. # Is the header compilable?
  9425. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9426. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9427. cat >conftest.$ac_ext <<_ACEOF
  9428. /* confdefs.h. */
  9429. _ACEOF
  9430. cat confdefs.h >>conftest.$ac_ext
  9431. cat >>conftest.$ac_ext <<_ACEOF
  9432. /* end confdefs.h. */
  9433. $ac_includes_default
  9434. #include <$ac_header>
  9435. _ACEOF
  9436. rm -f conftest.$ac_objext
  9437. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9438. (eval $ac_compile) 2>conftest.er1
  9439. ac_status=$?
  9440. grep -v '^ *+' conftest.er1 >conftest.err
  9441. rm -f conftest.er1
  9442. cat conftest.err >&5
  9443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9444. (exit $ac_status); } &&
  9445. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9446. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9447. (eval $ac_try) 2>&5
  9448. ac_status=$?
  9449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9450. (exit $ac_status); }; } &&
  9451. { ac_try='test -s conftest.$ac_objext'
  9452. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9453. (eval $ac_try) 2>&5
  9454. ac_status=$?
  9455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9456. (exit $ac_status); }; }; then
  9457. ac_header_compiler=yes
  9458. else
  9459. echo "$as_me: failed program was:" >&5
  9460. sed 's/^/| /' conftest.$ac_ext >&5
  9461. ac_header_compiler=no
  9462. fi
  9463. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9464. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9465. echo "${ECHO_T}$ac_header_compiler" >&6
  9466. # Is the header present?
  9467. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9468. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  9469. cat >conftest.$ac_ext <<_ACEOF
  9470. /* confdefs.h. */
  9471. _ACEOF
  9472. cat confdefs.h >>conftest.$ac_ext
  9473. cat >>conftest.$ac_ext <<_ACEOF
  9474. /* end confdefs.h. */
  9475. #include <$ac_header>
  9476. _ACEOF
  9477. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9478. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9479. ac_status=$?
  9480. grep -v '^ *+' conftest.er1 >conftest.err
  9481. rm -f conftest.er1
  9482. cat conftest.err >&5
  9483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9484. (exit $ac_status); } >/dev/null; then
  9485. if test -s conftest.err; then
  9486. ac_cpp_err=$ac_cxx_preproc_warn_flag
  9487. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  9488. else
  9489. ac_cpp_err=
  9490. fi
  9491. else
  9492. ac_cpp_err=yes
  9493. fi
  9494. if test -z "$ac_cpp_err"; then
  9495. ac_header_preproc=yes
  9496. else
  9497. echo "$as_me: failed program was:" >&5
  9498. sed 's/^/| /' conftest.$ac_ext >&5
  9499. ac_header_preproc=no
  9500. fi
  9501. rm -f conftest.err conftest.$ac_ext
  9502. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9503. echo "${ECHO_T}$ac_header_preproc" >&6
  9504. # So? What about this header?
  9505. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9506. yes:no: )
  9507. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9508. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9509. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9510. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9511. ac_header_preproc=yes
  9512. ;;
  9513. no:yes:* )
  9514. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9515. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9516. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9517. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9518. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9519. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9520. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9521. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9522. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9523. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9524. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9525. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9526. (
  9527. cat <<\_ASBOX
  9528. ## ------------------------------------------ ##
  9529. ## Report this to the AC_PACKAGE_NAME lists. ##
  9530. ## ------------------------------------------ ##
  9531. _ASBOX
  9532. ) |
  9533. sed "s/^/$as_me: WARNING: /" >&2
  9534. ;;
  9535. esac
  9536. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9537. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  9538. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  9539. echo $ECHO_N "(cached) $ECHO_C" >&6
  9540. else
  9541. eval "$as_ac_Header=\$ac_header_preproc"
  9542. fi
  9543. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9544. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9545. fi
  9546. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9547. cat >>confdefs.h <<_ACEOF
  9548. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9549. _ACEOF
  9550. fi
  9551. done
  9552. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9553. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  9554. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9555. echo $ECHO_N "(cached) $ECHO_C" >&6
  9556. else
  9557. if test "$cross_compiling" = yes; then
  9558. ac_cv_func_realloc_0_nonnull=no
  9559. else
  9560. cat >conftest.$ac_ext <<_ACEOF
  9561. /* confdefs.h. */
  9562. _ACEOF
  9563. cat confdefs.h >>conftest.$ac_ext
  9564. cat >>conftest.$ac_ext <<_ACEOF
  9565. /* end confdefs.h. */
  9566. #if STDC_HEADERS || HAVE_STDLIB_H
  9567. # include <stdlib.h>
  9568. #else
  9569. char *realloc ();
  9570. #endif
  9571. int
  9572. main ()
  9573. {
  9574. exit (realloc (0, 0) ? 0 : 1);
  9575. ;
  9576. return 0;
  9577. }
  9578. _ACEOF
  9579. rm -f conftest$ac_exeext
  9580. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9581. (eval $ac_link) 2>&5
  9582. ac_status=$?
  9583. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9584. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9585. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9586. (eval $ac_try) 2>&5
  9587. ac_status=$?
  9588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9589. (exit $ac_status); }; }; then
  9590. ac_cv_func_realloc_0_nonnull=yes
  9591. else
  9592. echo "$as_me: program exited with status $ac_status" >&5
  9593. echo "$as_me: failed program was:" >&5
  9594. sed 's/^/| /' conftest.$ac_ext >&5
  9595. ( exit $ac_status )
  9596. ac_cv_func_realloc_0_nonnull=no
  9597. fi
  9598. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9599. fi
  9600. fi
  9601. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9602. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  9603. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9604. cat >>confdefs.h <<\_ACEOF
  9605. #define HAVE_REALLOC 1
  9606. _ACEOF
  9607. else
  9608. cat >>confdefs.h <<\_ACEOF
  9609. #define HAVE_REALLOC 0
  9610. _ACEOF
  9611. case $LIBOBJS in
  9612. "realloc.$ac_objext" | \
  9613. *" realloc.$ac_objext" | \
  9614. "realloc.$ac_objext "* | \
  9615. *" realloc.$ac_objext "* ) ;;
  9616. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  9617. esac
  9618. cat >>confdefs.h <<\_ACEOF
  9619. #define realloc rpl_realloc
  9620. _ACEOF
  9621. fi
  9622. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9623. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  9624. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9625. echo $ECHO_N "(cached) $ECHO_C" >&6
  9626. else
  9627. if test "$cross_compiling" = yes; then
  9628. ac_cv_func_stat_empty_string_bug=yes
  9629. else
  9630. cat >conftest.$ac_ext <<_ACEOF
  9631. /* confdefs.h. */
  9632. _ACEOF
  9633. cat confdefs.h >>conftest.$ac_ext
  9634. cat >>conftest.$ac_ext <<_ACEOF
  9635. /* end confdefs.h. */
  9636. $ac_includes_default
  9637. int
  9638. main ()
  9639. {
  9640. struct stat sbuf;
  9641. exit (stat ("", &sbuf) ? 1 : 0);
  9642. ;
  9643. return 0;
  9644. }
  9645. _ACEOF
  9646. rm -f conftest$ac_exeext
  9647. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9648. (eval $ac_link) 2>&5
  9649. ac_status=$?
  9650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9651. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9652. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9653. (eval $ac_try) 2>&5
  9654. ac_status=$?
  9655. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9656. (exit $ac_status); }; }; then
  9657. ac_cv_func_stat_empty_string_bug=yes
  9658. else
  9659. echo "$as_me: program exited with status $ac_status" >&5
  9660. echo "$as_me: failed program was:" >&5
  9661. sed 's/^/| /' conftest.$ac_ext >&5
  9662. ( exit $ac_status )
  9663. ac_cv_func_stat_empty_string_bug=no
  9664. fi
  9665. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9666. fi
  9667. fi
  9668. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9669. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  9670. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9671. case $LIBOBJS in
  9672. "stat.$ac_objext" | \
  9673. *" stat.$ac_objext" | \
  9674. "stat.$ac_objext "* | \
  9675. *" stat.$ac_objext "* ) ;;
  9676. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  9677. esac
  9678. cat >>confdefs.h <<_ACEOF
  9679. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9680. _ACEOF
  9681. fi
  9682. for ac_func in strftime
  9683. do
  9684. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9685. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9686. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9687. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9688. echo $ECHO_N "(cached) $ECHO_C" >&6
  9689. else
  9690. cat >conftest.$ac_ext <<_ACEOF
  9691. /* confdefs.h. */
  9692. _ACEOF
  9693. cat confdefs.h >>conftest.$ac_ext
  9694. cat >>conftest.$ac_ext <<_ACEOF
  9695. /* end confdefs.h. */
  9696. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9697. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9698. #define $ac_func innocuous_$ac_func
  9699. /* System header to define __stub macros and hopefully few prototypes,
  9700. which can conflict with char $ac_func (); below.
  9701. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9702. <limits.h> exists even on freestanding compilers. */
  9703. #ifdef __STDC__
  9704. # include <limits.h>
  9705. #else
  9706. # include <assert.h>
  9707. #endif
  9708. #undef $ac_func
  9709. /* Override any gcc2 internal prototype to avoid an error. */
  9710. #ifdef __cplusplus
  9711. extern "C"
  9712. {
  9713. #endif
  9714. /* We use char because int might match the return type of a gcc2
  9715. builtin and then its argument prototype would still apply. */
  9716. char $ac_func ();
  9717. /* The GNU C library defines this for functions which it implements
  9718. to always fail with ENOSYS. Some functions are actually named
  9719. something starting with __ and the normal name is an alias. */
  9720. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9721. choke me
  9722. #else
  9723. char (*f) () = $ac_func;
  9724. #endif
  9725. #ifdef __cplusplus
  9726. }
  9727. #endif
  9728. int
  9729. main ()
  9730. {
  9731. return f != $ac_func;
  9732. ;
  9733. return 0;
  9734. }
  9735. _ACEOF
  9736. rm -f conftest.$ac_objext conftest$ac_exeext
  9737. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9738. (eval $ac_link) 2>conftest.er1
  9739. ac_status=$?
  9740. grep -v '^ *+' conftest.er1 >conftest.err
  9741. rm -f conftest.er1
  9742. cat conftest.err >&5
  9743. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9744. (exit $ac_status); } &&
  9745. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  9751. { ac_try='test -s conftest$ac_exeext'
  9752. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9753. (eval $ac_try) 2>&5
  9754. ac_status=$?
  9755. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9756. (exit $ac_status); }; }; then
  9757. eval "$as_ac_var=yes"
  9758. else
  9759. echo "$as_me: failed program was:" >&5
  9760. sed 's/^/| /' conftest.$ac_ext >&5
  9761. eval "$as_ac_var=no"
  9762. fi
  9763. rm -f conftest.err conftest.$ac_objext \
  9764. conftest$ac_exeext conftest.$ac_ext
  9765. fi
  9766. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9767. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9768. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9769. cat >>confdefs.h <<_ACEOF
  9770. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9771. _ACEOF
  9772. else
  9773. # strftime is in -lintl on SCO UNIX.
  9774. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9775. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  9776. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9777. echo $ECHO_N "(cached) $ECHO_C" >&6
  9778. else
  9779. ac_check_lib_save_LIBS=$LIBS
  9780. LIBS="-lintl $LIBS"
  9781. cat >conftest.$ac_ext <<_ACEOF
  9782. /* confdefs.h. */
  9783. _ACEOF
  9784. cat confdefs.h >>conftest.$ac_ext
  9785. cat >>conftest.$ac_ext <<_ACEOF
  9786. /* end confdefs.h. */
  9787. /* Override any gcc2 internal prototype to avoid an error. */
  9788. #ifdef __cplusplus
  9789. extern "C"
  9790. #endif
  9791. /* We use char because int might match the return type of a gcc2
  9792. builtin and then its argument prototype would still apply. */
  9793. char strftime ();
  9794. int
  9795. main ()
  9796. {
  9797. strftime ();
  9798. ;
  9799. return 0;
  9800. }
  9801. _ACEOF
  9802. rm -f conftest.$ac_objext conftest$ac_exeext
  9803. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9804. (eval $ac_link) 2>conftest.er1
  9805. ac_status=$?
  9806. grep -v '^ *+' conftest.er1 >conftest.err
  9807. rm -f conftest.er1
  9808. cat conftest.err >&5
  9809. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9810. (exit $ac_status); } &&
  9811. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  9817. { ac_try='test -s conftest$ac_exeext'
  9818. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9819. (eval $ac_try) 2>&5
  9820. ac_status=$?
  9821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9822. (exit $ac_status); }; }; then
  9823. ac_cv_lib_intl_strftime=yes
  9824. else
  9825. echo "$as_me: failed program was:" >&5
  9826. sed 's/^/| /' conftest.$ac_ext >&5
  9827. ac_cv_lib_intl_strftime=no
  9828. fi
  9829. rm -f conftest.err conftest.$ac_objext \
  9830. conftest$ac_exeext conftest.$ac_ext
  9831. LIBS=$ac_check_lib_save_LIBS
  9832. fi
  9833. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9834. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9835. if test $ac_cv_lib_intl_strftime = yes; then
  9836. cat >>confdefs.h <<\_ACEOF
  9837. #define HAVE_STRFTIME 1
  9838. _ACEOF
  9839. LIBS="-lintl $LIBS"
  9840. fi
  9841. fi
  9842. done
  9843. #checkpoint
  9844. cat >confcache <<\_ACEOF
  9845. # This file is a shell script that caches the results of configure
  9846. # tests run on this system so they can be shared between configure
  9847. # scripts and configure runs, see configure's option --config-cache.
  9848. # It is not useful on other systems. If it contains results you don't
  9849. # want to keep, you may remove or edit it.
  9850. #
  9851. # config.status only pays attention to the cache file if you give it
  9852. # the --recheck option to rerun configure.
  9853. #
  9854. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9855. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9856. # following values.
  9857. _ACEOF
  9858. # The following way of writing the cache mishandles newlines in values,
  9859. # but we know of no workaround that is simple, portable, and efficient.
  9860. # So, don't put newlines in cache variables' values.
  9861. # Ultrix sh set writes to stderr and can't be redirected directly,
  9862. # and sets the high bit in the cache file unless we assign to the vars.
  9863. {
  9864. (set) 2>&1 |
  9865. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9866. *ac_space=\ *)
  9867. # `set' does not quote correctly, so add quotes (double-quote
  9868. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9869. sed -n \
  9870. "s/'/'\\\\''/g;
  9871. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9872. ;;
  9873. *)
  9874. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9875. sed -n \
  9876. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9877. ;;
  9878. esac;
  9879. } |
  9880. sed '
  9881. t clear
  9882. : clear
  9883. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9884. t end
  9885. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9886. : end' >>confcache
  9887. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9888. if test -w $cache_file; then
  9889. test "x$cache_file" != "x/dev/null"
  9890. cat confcache >$cache_file
  9891. else
  9892. echo "not updating unwritable cache $cache_file"
  9893. fi
  9894. fi
  9895. rm -f confcache
  9896. for ac_func in clock fsync getrusage isascii inet_aton gethostbyname2
  9897. do
  9898. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9899. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9900. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9901. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9902. echo $ECHO_N "(cached) $ECHO_C" >&6
  9903. else
  9904. cat >conftest.$ac_ext <<_ACEOF
  9905. /* confdefs.h. */
  9906. _ACEOF
  9907. cat confdefs.h >>conftest.$ac_ext
  9908. cat >>conftest.$ac_ext <<_ACEOF
  9909. /* end confdefs.h. */
  9910. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9911. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9912. #define $ac_func innocuous_$ac_func
  9913. /* System header to define __stub macros and hopefully few prototypes,
  9914. which can conflict with char $ac_func (); below.
  9915. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9916. <limits.h> exists even on freestanding compilers. */
  9917. #ifdef __STDC__
  9918. # include <limits.h>
  9919. #else
  9920. # include <assert.h>
  9921. #endif
  9922. #undef $ac_func
  9923. /* Override any gcc2 internal prototype to avoid an error. */
  9924. #ifdef __cplusplus
  9925. extern "C"
  9926. {
  9927. #endif
  9928. /* We use char because int might match the return type of a gcc2
  9929. builtin and then its argument prototype would still apply. */
  9930. char $ac_func ();
  9931. /* The GNU C library defines this for functions which it implements
  9932. to always fail with ENOSYS. Some functions are actually named
  9933. something starting with __ and the normal name is an alias. */
  9934. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9935. choke me
  9936. #else
  9937. char (*f) () = $ac_func;
  9938. #endif
  9939. #ifdef __cplusplus
  9940. }
  9941. #endif
  9942. int
  9943. main ()
  9944. {
  9945. return f != $ac_func;
  9946. ;
  9947. return 0;
  9948. }
  9949. _ACEOF
  9950. rm -f conftest.$ac_objext conftest$ac_exeext
  9951. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9952. (eval $ac_link) 2>conftest.er1
  9953. ac_status=$?
  9954. grep -v '^ *+' conftest.er1 >conftest.err
  9955. rm -f conftest.er1
  9956. cat conftest.err >&5
  9957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9958. (exit $ac_status); } &&
  9959. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  9965. { ac_try='test -s conftest$ac_exeext'
  9966. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9967. (eval $ac_try) 2>&5
  9968. ac_status=$?
  9969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9970. (exit $ac_status); }; }; then
  9971. eval "$as_ac_var=yes"
  9972. else
  9973. echo "$as_me: failed program was:" >&5
  9974. sed 's/^/| /' conftest.$ac_ext >&5
  9975. eval "$as_ac_var=no"
  9976. fi
  9977. rm -f conftest.err conftest.$ac_objext \
  9978. conftest$ac_exeext conftest.$ac_ext
  9979. fi
  9980. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9981. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9982. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9983. cat >>confdefs.h <<_ACEOF
  9984. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9985. _ACEOF
  9986. fi
  9987. done
  9988. for ac_func in getipnodebyname memcpy memset random rename snprintf srandom
  9989. do
  9990. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9991. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9992. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9993. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9994. echo $ECHO_N "(cached) $ECHO_C" >&6
  9995. else
  9996. cat >conftest.$ac_ext <<_ACEOF
  9997. /* confdefs.h. */
  9998. _ACEOF
  9999. cat confdefs.h >>conftest.$ac_ext
  10000. cat >>conftest.$ac_ext <<_ACEOF
  10001. /* end confdefs.h. */
  10002. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10003. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10004. #define $ac_func innocuous_$ac_func
  10005. /* System header to define __stub macros and hopefully few prototypes,
  10006. which can conflict with char $ac_func (); below.
  10007. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10008. <limits.h> exists even on freestanding compilers. */
  10009. #ifdef __STDC__
  10010. # include <limits.h>
  10011. #else
  10012. # include <assert.h>
  10013. #endif
  10014. #undef $ac_func
  10015. /* Override any gcc2 internal prototype to avoid an error. */
  10016. #ifdef __cplusplus
  10017. extern "C"
  10018. {
  10019. #endif
  10020. /* We use char because int might match the return type of a gcc2
  10021. builtin and then its argument prototype would still apply. */
  10022. char $ac_func ();
  10023. /* The GNU C library defines this for functions which it implements
  10024. to always fail with ENOSYS. Some functions are actually named
  10025. something starting with __ and the normal name is an alias. */
  10026. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10027. choke me
  10028. #else
  10029. char (*f) () = $ac_func;
  10030. #endif
  10031. #ifdef __cplusplus
  10032. }
  10033. #endif
  10034. int
  10035. main ()
  10036. {
  10037. return f != $ac_func;
  10038. ;
  10039. return 0;
  10040. }
  10041. _ACEOF
  10042. rm -f conftest.$ac_objext conftest$ac_exeext
  10043. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10044. (eval $ac_link) 2>conftest.er1
  10045. ac_status=$?
  10046. grep -v '^ *+' conftest.er1 >conftest.err
  10047. rm -f conftest.er1
  10048. cat conftest.err >&5
  10049. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10050. (exit $ac_status); } &&
  10051. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  10057. { ac_try='test -s conftest$ac_exeext'
  10058. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10059. (eval $ac_try) 2>&5
  10060. ac_status=$?
  10061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10062. (exit $ac_status); }; }; then
  10063. eval "$as_ac_var=yes"
  10064. else
  10065. echo "$as_me: failed program was:" >&5
  10066. sed 's/^/| /' conftest.$ac_ext >&5
  10067. eval "$as_ac_var=no"
  10068. fi
  10069. rm -f conftest.err conftest.$ac_objext \
  10070. conftest$ac_exeext conftest.$ac_ext
  10071. fi
  10072. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10073. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10074. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10075. cat >>confdefs.h <<_ACEOF
  10076. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10077. _ACEOF
  10078. fi
  10079. done
  10080. #checkpoint
  10081. cat >confcache <<\_ACEOF
  10082. # This file is a shell script that caches the results of configure
  10083. # tests run on this system so they can be shared between configure
  10084. # scripts and configure runs, see configure's option --config-cache.
  10085. # It is not useful on other systems. If it contains results you don't
  10086. # want to keep, you may remove or edit it.
  10087. #
  10088. # config.status only pays attention to the cache file if you give it
  10089. # the --recheck option to rerun configure.
  10090. #
  10091. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10092. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10093. # following values.
  10094. _ACEOF
  10095. # The following way of writing the cache mishandles newlines in values,
  10096. # but we know of no workaround that is simple, portable, and efficient.
  10097. # So, don't put newlines in cache variables' values.
  10098. # Ultrix sh set writes to stderr and can't be redirected directly,
  10099. # and sets the high bit in the cache file unless we assign to the vars.
  10100. {
  10101. (set) 2>&1 |
  10102. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10103. *ac_space=\ *)
  10104. # `set' does not quote correctly, so add quotes (double-quote
  10105. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10106. sed -n \
  10107. "s/'/'\\\\''/g;
  10108. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10109. ;;
  10110. *)
  10111. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10112. sed -n \
  10113. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10114. ;;
  10115. esac;
  10116. } |
  10117. sed '
  10118. t clear
  10119. : clear
  10120. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10121. t end
  10122. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10123. : end' >>confcache
  10124. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10125. if test -w $cache_file; then
  10126. test "x$cache_file" != "x/dev/null"
  10127. cat confcache >$cache_file
  10128. else
  10129. echo "not updating unwritable cache $cache_file"
  10130. fi
  10131. fi
  10132. rm -f confcache
  10133. for ac_func in strcasecmp strncasecmp vsnprintf
  10134. do
  10135. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10136. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10137. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10138. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10139. echo $ECHO_N "(cached) $ECHO_C" >&6
  10140. else
  10141. cat >conftest.$ac_ext <<_ACEOF
  10142. /* confdefs.h. */
  10143. _ACEOF
  10144. cat confdefs.h >>conftest.$ac_ext
  10145. cat >>conftest.$ac_ext <<_ACEOF
  10146. /* end confdefs.h. */
  10147. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10148. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10149. #define $ac_func innocuous_$ac_func
  10150. /* System header to define __stub macros and hopefully few prototypes,
  10151. which can conflict with char $ac_func (); below.
  10152. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10153. <limits.h> exists even on freestanding compilers. */
  10154. #ifdef __STDC__
  10155. # include <limits.h>
  10156. #else
  10157. # include <assert.h>
  10158. #endif
  10159. #undef $ac_func
  10160. /* Override any gcc2 internal prototype to avoid an error. */
  10161. #ifdef __cplusplus
  10162. extern "C"
  10163. {
  10164. #endif
  10165. /* We use char because int might match the return type of a gcc2
  10166. builtin and then its argument prototype would still apply. */
  10167. char $ac_func ();
  10168. /* The GNU C library defines this for functions which it implements
  10169. to always fail with ENOSYS. Some functions are actually named
  10170. something starting with __ and the normal name is an alias. */
  10171. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10172. choke me
  10173. #else
  10174. char (*f) () = $ac_func;
  10175. #endif
  10176. #ifdef __cplusplus
  10177. }
  10178. #endif
  10179. int
  10180. main ()
  10181. {
  10182. return f != $ac_func;
  10183. ;
  10184. return 0;
  10185. }
  10186. _ACEOF
  10187. rm -f conftest.$ac_objext conftest$ac_exeext
  10188. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10189. (eval $ac_link) 2>conftest.er1
  10190. ac_status=$?
  10191. grep -v '^ *+' conftest.er1 >conftest.err
  10192. rm -f conftest.er1
  10193. cat conftest.err >&5
  10194. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10195. (exit $ac_status); } &&
  10196. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  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); }; } &&
  10202. { ac_try='test -s conftest$ac_exeext'
  10203. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10204. (eval $ac_try) 2>&5
  10205. ac_status=$?
  10206. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10207. (exit $ac_status); }; }; then
  10208. eval "$as_ac_var=yes"
  10209. else
  10210. echo "$as_me: failed program was:" >&5
  10211. sed 's/^/| /' conftest.$ac_ext >&5
  10212. eval "$as_ac_var=no"
  10213. fi
  10214. rm -f conftest.err conftest.$ac_objext \
  10215. conftest$ac_exeext conftest.$ac_ext
  10216. fi
  10217. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10218. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10219. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10220. cat >>confdefs.h <<_ACEOF
  10221. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10222. _ACEOF
  10223. fi
  10224. done
  10225. #autoscan suggested this....
  10226. #These are recommended by autoscan, but no code supports it currently
  10227. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10228. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10229. for ac_func in vsprintf
  10230. do
  10231. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10232. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10233. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10234. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10235. echo $ECHO_N "(cached) $ECHO_C" >&6
  10236. else
  10237. cat >conftest.$ac_ext <<_ACEOF
  10238. /* confdefs.h. */
  10239. _ACEOF
  10240. cat confdefs.h >>conftest.$ac_ext
  10241. cat >>conftest.$ac_ext <<_ACEOF
  10242. /* end confdefs.h. */
  10243. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10244. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10245. #define $ac_func innocuous_$ac_func
  10246. /* System header to define __stub macros and hopefully few prototypes,
  10247. which can conflict with char $ac_func (); below.
  10248. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10249. <limits.h> exists even on freestanding compilers. */
  10250. #ifdef __STDC__
  10251. # include <limits.h>
  10252. #else
  10253. # include <assert.h>
  10254. #endif
  10255. #undef $ac_func
  10256. /* Override any gcc2 internal prototype to avoid an error. */
  10257. #ifdef __cplusplus
  10258. extern "C"
  10259. {
  10260. #endif
  10261. /* We use char because int might match the return type of a gcc2
  10262. builtin and then its argument prototype would still apply. */
  10263. char $ac_func ();
  10264. /* The GNU C library defines this for functions which it implements
  10265. to always fail with ENOSYS. Some functions are actually named
  10266. something starting with __ and the normal name is an alias. */
  10267. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10268. choke me
  10269. #else
  10270. char (*f) () = $ac_func;
  10271. #endif
  10272. #ifdef __cplusplus
  10273. }
  10274. #endif
  10275. int
  10276. main ()
  10277. {
  10278. return f != $ac_func;
  10279. ;
  10280. return 0;
  10281. }
  10282. _ACEOF
  10283. rm -f conftest.$ac_objext conftest$ac_exeext
  10284. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10285. (eval $ac_link) 2>conftest.er1
  10286. ac_status=$?
  10287. grep -v '^ *+' conftest.er1 >conftest.err
  10288. rm -f conftest.er1
  10289. cat conftest.err >&5
  10290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10291. (exit $ac_status); } &&
  10292. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10293. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10294. (eval $ac_try) 2>&5
  10295. ac_status=$?
  10296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10297. (exit $ac_status); }; } &&
  10298. { ac_try='test -s conftest$ac_exeext'
  10299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10300. (eval $ac_try) 2>&5
  10301. ac_status=$?
  10302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10303. (exit $ac_status); }; }; then
  10304. eval "$as_ac_var=yes"
  10305. else
  10306. echo "$as_me: failed program was:" >&5
  10307. sed 's/^/| /' conftest.$ac_ext >&5
  10308. eval "$as_ac_var=no"
  10309. fi
  10310. rm -f conftest.err conftest.$ac_objext \
  10311. conftest$ac_exeext conftest.$ac_ext
  10312. fi
  10313. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10314. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10315. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10316. cat >>confdefs.h <<_ACEOF
  10317. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10318. _ACEOF
  10319. fi
  10320. done
  10321. if test "$ac_cv_func_vsprintf" = "no"
  10322. then
  10323. cat << 'EOF' >&2
  10324. configure: error:
  10325. Your system does not have the sprintf/vsprintf libraries.
  10326. These are required to compile almost anything. Sorry.
  10327. EOF
  10328. exit 1
  10329. fi
  10330. for ac_func in uname
  10331. do
  10332. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10333. echo "$as_me:$LINENO: checking for $ac_func" >&5
  10334. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  10335. if eval "test \"\${$as_ac_var+set}\" = set"; then
  10336. echo $ECHO_N "(cached) $ECHO_C" >&6
  10337. else
  10338. cat >conftest.$ac_ext <<_ACEOF
  10339. /* confdefs.h. */
  10340. _ACEOF
  10341. cat confdefs.h >>conftest.$ac_ext
  10342. cat >>conftest.$ac_ext <<_ACEOF
  10343. /* end confdefs.h. */
  10344. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10345. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10346. #define $ac_func innocuous_$ac_func
  10347. /* System header to define __stub macros and hopefully few prototypes,
  10348. which can conflict with char $ac_func (); below.
  10349. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10350. <limits.h> exists even on freestanding compilers. */
  10351. #ifdef __STDC__
  10352. # include <limits.h>
  10353. #else
  10354. # include <assert.h>
  10355. #endif
  10356. #undef $ac_func
  10357. /* Override any gcc2 internal prototype to avoid an error. */
  10358. #ifdef __cplusplus
  10359. extern "C"
  10360. {
  10361. #endif
  10362. /* We use char because int might match the return type of a gcc2
  10363. builtin and then its argument prototype would still apply. */
  10364. char $ac_func ();
  10365. /* The GNU C library defines this for functions which it implements
  10366. to always fail with ENOSYS. Some functions are actually named
  10367. something starting with __ and the normal name is an alias. */
  10368. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10369. choke me
  10370. #else
  10371. char (*f) () = $ac_func;
  10372. #endif
  10373. #ifdef __cplusplus
  10374. }
  10375. #endif
  10376. int
  10377. main ()
  10378. {
  10379. return f != $ac_func;
  10380. ;
  10381. return 0;
  10382. }
  10383. _ACEOF
  10384. rm -f conftest.$ac_objext conftest$ac_exeext
  10385. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10386. (eval $ac_link) 2>conftest.er1
  10387. ac_status=$?
  10388. grep -v '^ *+' conftest.er1 >conftest.err
  10389. rm -f conftest.er1
  10390. cat conftest.err >&5
  10391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10392. (exit $ac_status); } &&
  10393. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  10394. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10395. (eval $ac_try) 2>&5
  10396. ac_status=$?
  10397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10398. (exit $ac_status); }; } &&
  10399. { ac_try='test -s conftest$ac_exeext'
  10400. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10401. (eval $ac_try) 2>&5
  10402. ac_status=$?
  10403. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10404. (exit $ac_status); }; }; then
  10405. eval "$as_ac_var=yes"
  10406. else
  10407. echo "$as_me: failed program was:" >&5
  10408. sed 's/^/| /' conftest.$ac_ext >&5
  10409. eval "$as_ac_var=no"
  10410. fi
  10411. rm -f conftest.err conftest.$ac_objext \
  10412. conftest$ac_exeext conftest.$ac_ext
  10413. fi
  10414. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  10415. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  10416. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10417. cat >>confdefs.h <<_ACEOF
  10418. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10419. _ACEOF
  10420. fi
  10421. done
  10422. if test "$ac_cv_func_uname" = "no"
  10423. then
  10424. cat << 'EOF' >&2
  10425. configure: error:
  10426. Your system does not have the uname() function.
  10427. This is required for the botpack.
  10428. EOF
  10429. exit 1
  10430. fi
  10431. # Make sure we have stdc headers, since we can't compile without them
  10432. if test "$ac_cv_header_stdc" = "no"
  10433. then
  10434. cat << 'EOF' >&2
  10435. configure: error:
  10436. Your system must support ANSI C Header files.
  10437. These are required for the language support. Sorry.
  10438. EOF
  10439. exit 1
  10440. fi
  10441. #checkpoint
  10442. cat >confcache <<\_ACEOF
  10443. # This file is a shell script that caches the results of configure
  10444. # tests run on this system so they can be shared between configure
  10445. # scripts and configure runs, see configure's option --config-cache.
  10446. # It is not useful on other systems. If it contains results you don't
  10447. # want to keep, you may remove or edit it.
  10448. #
  10449. # config.status only pays attention to the cache file if you give it
  10450. # the --recheck option to rerun configure.
  10451. #
  10452. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10453. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10454. # following values.
  10455. _ACEOF
  10456. # The following way of writing the cache mishandles newlines in values,
  10457. # but we know of no workaround that is simple, portable, and efficient.
  10458. # So, don't put newlines in cache variables' values.
  10459. # Ultrix sh set writes to stderr and can't be redirected directly,
  10460. # and sets the high bit in the cache file unless we assign to the vars.
  10461. {
  10462. (set) 2>&1 |
  10463. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10464. *ac_space=\ *)
  10465. # `set' does not quote correctly, so add quotes (double-quote
  10466. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10467. sed -n \
  10468. "s/'/'\\\\''/g;
  10469. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10470. ;;
  10471. *)
  10472. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10473. sed -n \
  10474. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10475. ;;
  10476. esac;
  10477. } |
  10478. sed '
  10479. t clear
  10480. : clear
  10481. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10482. t end
  10483. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10484. : end' >>confcache
  10485. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10486. if test -w $cache_file; then
  10487. test "x$cache_file" != "x/dev/null"
  10488. cat confcache >$cache_file
  10489. else
  10490. echo "not updating unwritable cache $cache_file"
  10491. fi
  10492. fi
  10493. rm -f confcache
  10494. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10495. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10496. cat >>confdefs.h <<_ACEOF
  10497. #define EGG_VERSION $version_num
  10498. _ACEOF
  10499. #FIND_WRAPS
  10500. case "$srcdir" in
  10501. [\\/]* | ?:[\\/]*)
  10502. MOD_UPDIR=""
  10503. ;;
  10504. *)
  10505. MOD_UPDIR="../"
  10506. ;;
  10507. esac
  10508. files="src/Makefile.in src/compat/Makefile.in src/crypto/Makefile.in src/mod/channels.mod/Makefile src/mod/compress.mod/Makefile src/mod/console.mod/Makefile src/mod/ctcp.mod/Makefile src/mod/dns.mod/Makefile.in src/mod/irc.mod/Makefile src/mod/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  10509. for mf in $files; do
  10510. # Strip MF so we end up with the name of the file.
  10511. # echo "MF: $mf"
  10512. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10513. dirpart=`(dirname "$mf") 2>/dev/null ||
  10514. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10515. X"$mf" : 'X\(//\)[^/]' \| \
  10516. X"$mf" : 'X\(//\)$' \| \
  10517. X"$mf" : 'X\(/\)' \| \
  10518. . : '\(.\)' 2>/dev/null ||
  10519. echo X"$mf" |
  10520. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10521. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10522. /^X\(\/\/\)$/{ s//\1/; q; }
  10523. /^X\(\/\).*/{ s//\1/; q; }
  10524. s/.*/./; q'`
  10525. # echo "dirpart: $dirpart mf: $mf"
  10526. # rm -rf "$dirpart/.deps/"
  10527. rm -f "$dirpart/.deps/includes"
  10528. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10529. for file in `sed -n -e '
  10530. /^OBJS = .*\\\\$/ {
  10531. s/^OBJS = //
  10532. :loop
  10533. s/\\\\$//
  10534. p
  10535. n
  10536. /\\\\$/ b loop
  10537. p
  10538. }
  10539. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10540. do
  10541. base=`basename $file .o`
  10542. test -f "$dirpart/$base.c" || continue
  10543. if ! test -f "$dirpart/.deps/$base.Po"; then
  10544. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10545. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10546. if test -f "$dirpart/$base.o"; then
  10547. rm -f "$dirpart/$base.o"
  10548. fi
  10549. fi
  10550. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10551. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10552. done
  10553. done
  10554. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/mod/dns.mod/Makefile"
  10555. cat >confcache <<\_ACEOF
  10556. # This file is a shell script that caches the results of configure
  10557. # tests run on this system so they can be shared between configure
  10558. # scripts and configure runs, see configure's option --config-cache.
  10559. # It is not useful on other systems. If it contains results you don't
  10560. # want to keep, you may remove or edit it.
  10561. #
  10562. # config.status only pays attention to the cache file if you give it
  10563. # the --recheck option to rerun configure.
  10564. #
  10565. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10566. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10567. # following values.
  10568. _ACEOF
  10569. # The following way of writing the cache mishandles newlines in values,
  10570. # but we know of no workaround that is simple, portable, and efficient.
  10571. # So, don't put newlines in cache variables' values.
  10572. # Ultrix sh set writes to stderr and can't be redirected directly,
  10573. # and sets the high bit in the cache file unless we assign to the vars.
  10574. {
  10575. (set) 2>&1 |
  10576. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  10577. *ac_space=\ *)
  10578. # `set' does not quote correctly, so add quotes (double-quote
  10579. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10580. sed -n \
  10581. "s/'/'\\\\''/g;
  10582. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10583. ;;
  10584. *)
  10585. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10586. sed -n \
  10587. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10588. ;;
  10589. esac;
  10590. } |
  10591. sed '
  10592. t clear
  10593. : clear
  10594. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10595. t end
  10596. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10597. : end' >>confcache
  10598. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  10599. if test -w $cache_file; then
  10600. test "x$cache_file" != "x/dev/null"
  10601. cat confcache >$cache_file
  10602. else
  10603. echo "not updating unwritable cache $cache_file"
  10604. fi
  10605. fi
  10606. rm -f confcache
  10607. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10608. # Let make expand exec_prefix.
  10609. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10610. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  10611. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  10612. # trailing colons and then remove the whole line if VPATH becomes empty
  10613. # (actually we leave an empty line to preserve line numbers).
  10614. if test "x$srcdir" = x.; then
  10615. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10616. s/:*\$(srcdir):*/:/;
  10617. s/:*\${srcdir}:*/:/;
  10618. s/:*@srcdir@:*/:/;
  10619. s/^\([^=]*=[ ]*\):*/\1/;
  10620. s/:*$//;
  10621. s/^[^=]*=[ ]*$//;
  10622. }'
  10623. fi
  10624. DEFS=-DHAVE_CONFIG_H
  10625. ac_libobjs=
  10626. ac_ltlibobjs=
  10627. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10628. # 1. Remove the extension, and $U if already installed.
  10629. ac_i=`echo "$ac_i" |
  10630. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10631. # 2. Add them.
  10632. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10633. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10634. done
  10635. LIBOBJS=$ac_libobjs
  10636. LTLIBOBJS=$ac_ltlibobjs
  10637. : ${CONFIG_STATUS=./config.status}
  10638. ac_clean_files_save=$ac_clean_files
  10639. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10640. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10641. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10642. cat >$CONFIG_STATUS <<_ACEOF
  10643. #! $SHELL
  10644. # Generated by $as_me.
  10645. # Run this file to recreate the current configuration.
  10646. # Compiler output produced by configure, useful for debugging
  10647. # configure, is in config.log if it exists.
  10648. debug=false
  10649. ac_cs_recheck=false
  10650. ac_cs_silent=false
  10651. SHELL=\${CONFIG_SHELL-$SHELL}
  10652. _ACEOF
  10653. cat >>$CONFIG_STATUS <<\_ACEOF
  10654. ## --------------------- ##
  10655. ## M4sh Initialization. ##
  10656. ## --------------------- ##
  10657. # Be Bourne compatible
  10658. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10659. emulate sh
  10660. NULLCMD=:
  10661. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10662. # is contrary to our usage. Disable this feature.
  10663. alias -g '${1+"$@"}'='"$@"'
  10664. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10665. set -o posix
  10666. fi
  10667. DUALCASE=1; export DUALCASE # for MKS sh
  10668. # Support unset when possible.
  10669. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10670. as_unset=unset
  10671. else
  10672. as_unset=false
  10673. fi
  10674. # Work around bugs in pre-3.0 UWIN ksh.
  10675. $as_unset ENV MAIL MAILPATH
  10676. PS1='$ '
  10677. PS2='> '
  10678. PS4='+ '
  10679. # NLS nuisances.
  10680. for as_var in \
  10681. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10682. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10683. LC_TELEPHONE LC_TIME
  10684. do
  10685. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10686. eval $as_var=C; export $as_var
  10687. else
  10688. $as_unset $as_var
  10689. fi
  10690. done
  10691. # Required to use basename.
  10692. if expr a : '\(a\)' >/dev/null 2>&1; then
  10693. as_expr=expr
  10694. else
  10695. as_expr=false
  10696. fi
  10697. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  10698. as_basename=basename
  10699. else
  10700. as_basename=false
  10701. fi
  10702. # Name of the executable.
  10703. as_me=`$as_basename "$0" ||
  10704. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10705. X"$0" : 'X\(//\)$' \| \
  10706. X"$0" : 'X\(/\)$' \| \
  10707. . : '\(.\)' 2>/dev/null ||
  10708. echo X/"$0" |
  10709. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  10710. /^X\/\(\/\/\)$/{ s//\1/; q; }
  10711. /^X\/\(\/\).*/{ s//\1/; q; }
  10712. s/.*/./; q'`
  10713. # PATH needs CR, and LINENO needs CR and PATH.
  10714. # Avoid depending upon Character Ranges.
  10715. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10716. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10717. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10718. as_cr_digits='0123456789'
  10719. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10720. # The user is always right.
  10721. if test "${PATH_SEPARATOR+set}" != set; then
  10722. echo "#! /bin/sh" >conf$$.sh
  10723. echo "exit 0" >>conf$$.sh
  10724. chmod +x conf$$.sh
  10725. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10726. PATH_SEPARATOR=';'
  10727. else
  10728. PATH_SEPARATOR=:
  10729. fi
  10730. rm -f conf$$.sh
  10731. fi
  10732. as_lineno_1=$LINENO
  10733. as_lineno_2=$LINENO
  10734. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10735. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10736. test "x$as_lineno_3" = "x$as_lineno_2" || {
  10737. # Find who we are. Look in the path if we contain no path at all
  10738. # relative or not.
  10739. case $0 in
  10740. *[\\/]* ) as_myself=$0 ;;
  10741. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10742. for as_dir in $PATH
  10743. do
  10744. IFS=$as_save_IFS
  10745. test -z "$as_dir" && as_dir=.
  10746. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10747. done
  10748. ;;
  10749. esac
  10750. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10751. # in which case we are not to be found in the path.
  10752. if test "x$as_myself" = x; then
  10753. as_myself=$0
  10754. fi
  10755. if test ! -f "$as_myself"; then
  10756. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  10757. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  10758. { (exit 1); exit 1; }; }
  10759. fi
  10760. case $CONFIG_SHELL in
  10761. '')
  10762. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10763. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  10764. do
  10765. IFS=$as_save_IFS
  10766. test -z "$as_dir" && as_dir=.
  10767. for as_base in sh bash ksh sh5; do
  10768. case $as_dir in
  10769. /*)
  10770. if ("$as_dir/$as_base" -c '
  10771. as_lineno_1=$LINENO
  10772. as_lineno_2=$LINENO
  10773. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  10774. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10775. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  10776. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  10777. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  10778. CONFIG_SHELL=$as_dir/$as_base
  10779. export CONFIG_SHELL
  10780. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  10781. fi;;
  10782. esac
  10783. done
  10784. done
  10785. ;;
  10786. esac
  10787. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10788. # uniformly replaced by the line number. The first 'sed' inserts a
  10789. # line-number line before each line; the second 'sed' does the real
  10790. # work. The second script uses 'N' to pair each line-number line
  10791. # with the numbered line, and appends trailing '-' during
  10792. # substitution so that $LINENO is not a special case at line end.
  10793. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10794. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  10795. sed '=' <$as_myself |
  10796. sed '
  10797. N
  10798. s,$,-,
  10799. : loop
  10800. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  10801. t loop
  10802. s,-$,,
  10803. s,^['$as_cr_digits']*\n,,
  10804. ' >$as_me.lineno &&
  10805. chmod +x $as_me.lineno ||
  10806. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  10807. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  10808. { (exit 1); exit 1; }; }
  10809. # Don't try to exec as it changes $[0], causing all sort of problems
  10810. # (the dirname of $[0] is not the place where we might find the
  10811. # original and so on. Autoconf is especially sensible to this).
  10812. . ./$as_me.lineno
  10813. # Exit status is that of the last command.
  10814. exit
  10815. }
  10816. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  10817. *c*,-n*) ECHO_N= ECHO_C='
  10818. ' ECHO_T=' ' ;;
  10819. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  10820. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  10821. esac
  10822. if expr a : '\(a\)' >/dev/null 2>&1; then
  10823. as_expr=expr
  10824. else
  10825. as_expr=false
  10826. fi
  10827. rm -f conf$$ conf$$.exe conf$$.file
  10828. echo >conf$$.file
  10829. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10830. # We could just check for DJGPP; but this test a) works b) is more generic
  10831. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10832. if test -f conf$$.exe; then
  10833. # Don't use ln at all; we don't have any links
  10834. as_ln_s='cp -p'
  10835. else
  10836. as_ln_s='ln -s'
  10837. fi
  10838. elif ln conf$$.file conf$$ 2>/dev/null; then
  10839. as_ln_s=ln
  10840. else
  10841. as_ln_s='cp -p'
  10842. fi
  10843. rm -f conf$$ conf$$.exe conf$$.file
  10844. if mkdir -p . 2>/dev/null; then
  10845. as_mkdir_p=:
  10846. else
  10847. test -d ./-p && rmdir ./-p
  10848. as_mkdir_p=false
  10849. fi
  10850. as_executable_p="test -f"
  10851. # Sed expression to map a string onto a valid CPP name.
  10852. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10853. # Sed expression to map a string onto a valid variable name.
  10854. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10855. # IFS
  10856. # We need space, tab and new line, in precisely that order.
  10857. as_nl='
  10858. '
  10859. IFS=" $as_nl"
  10860. # CDPATH.
  10861. $as_unset CDPATH
  10862. exec 6>&1
  10863. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10864. # report actual input values of CONFIG_FILES etc. instead of their
  10865. # values after options handling. Logging --version etc. is OK.
  10866. exec 5>>config.log
  10867. {
  10868. echo
  10869. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10870. ## Running $as_me. ##
  10871. _ASBOX
  10872. } >&5
  10873. cat >&5 <<_CSEOF
  10874. This file was extended by $as_me, which was
  10875. generated by GNU Autoconf 2.59. Invocation command line was
  10876. CONFIG_FILES = $CONFIG_FILES
  10877. CONFIG_HEADERS = $CONFIG_HEADERS
  10878. CONFIG_LINKS = $CONFIG_LINKS
  10879. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10880. $ $0 $@
  10881. _CSEOF
  10882. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10883. echo >&5
  10884. _ACEOF
  10885. # Files that config.status was made for.
  10886. if test -n "$ac_config_files"; then
  10887. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10888. fi
  10889. if test -n "$ac_config_headers"; then
  10890. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10891. fi
  10892. if test -n "$ac_config_links"; then
  10893. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10894. fi
  10895. if test -n "$ac_config_commands"; then
  10896. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10897. fi
  10898. cat >>$CONFIG_STATUS <<\_ACEOF
  10899. ac_cs_usage="\
  10900. \`$as_me' instantiates files from templates according to the
  10901. current configuration.
  10902. Usage: $0 [OPTIONS] [FILE]...
  10903. -h, --help print this help, then exit
  10904. -V, --version print version number, then exit
  10905. -q, --quiet do not print progress messages
  10906. -d, --debug don't remove temporary files
  10907. --recheck update $as_me by reconfiguring in the same conditions
  10908. --file=FILE[:TEMPLATE]
  10909. instantiate the configuration file FILE
  10910. --header=FILE[:TEMPLATE]
  10911. instantiate the configuration header FILE
  10912. Configuration files:
  10913. $config_files
  10914. Configuration headers:
  10915. $config_headers
  10916. Report bugs to <bug-autoconf@gnu.org>."
  10917. _ACEOF
  10918. cat >>$CONFIG_STATUS <<_ACEOF
  10919. ac_cs_version="\\
  10920. config.status
  10921. configured by $0, generated by GNU Autoconf 2.59,
  10922. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10923. Copyright (C) 2003 Free Software Foundation, Inc.
  10924. This config.status script is free software; the Free Software Foundation
  10925. gives unlimited permission to copy, distribute and modify it."
  10926. srcdir=$srcdir
  10927. _ACEOF
  10928. cat >>$CONFIG_STATUS <<\_ACEOF
  10929. # If no file are specified by the user, then we need to provide default
  10930. # value. By we need to know if files were specified by the user.
  10931. ac_need_defaults=:
  10932. while test $# != 0
  10933. do
  10934. case $1 in
  10935. --*=*)
  10936. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10937. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10938. ac_shift=:
  10939. ;;
  10940. -*)
  10941. ac_option=$1
  10942. ac_optarg=$2
  10943. ac_shift=shift
  10944. ;;
  10945. *) # This is not an option, so the user has probably given explicit
  10946. # arguments.
  10947. ac_option=$1
  10948. ac_need_defaults=false;;
  10949. esac
  10950. case $ac_option in
  10951. # Handling of the options.
  10952. _ACEOF
  10953. cat >>$CONFIG_STATUS <<\_ACEOF
  10954. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10955. ac_cs_recheck=: ;;
  10956. --version | --vers* | -V )
  10957. echo "$ac_cs_version"; exit 0 ;;
  10958. --he | --h)
  10959. # Conflict between --help and --header
  10960. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10961. Try \`$0 --help' for more information." >&5
  10962. echo "$as_me: error: ambiguous option: $1
  10963. Try \`$0 --help' for more information." >&2;}
  10964. { (exit 1); exit 1; }; };;
  10965. --help | --hel | -h )
  10966. echo "$ac_cs_usage"; exit 0 ;;
  10967. --debug | --d* | -d )
  10968. debug=: ;;
  10969. --file | --fil | --fi | --f )
  10970. $ac_shift
  10971. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10972. ac_need_defaults=false;;
  10973. --header | --heade | --head | --hea )
  10974. $ac_shift
  10975. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10976. ac_need_defaults=false;;
  10977. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10978. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10979. ac_cs_silent=: ;;
  10980. # This is an error.
  10981. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10982. Try \`$0 --help' for more information." >&5
  10983. echo "$as_me: error: unrecognized option: $1
  10984. Try \`$0 --help' for more information." >&2;}
  10985. { (exit 1); exit 1; }; } ;;
  10986. *) ac_config_targets="$ac_config_targets $1" ;;
  10987. esac
  10988. shift
  10989. done
  10990. ac_configure_extra_args=
  10991. if $ac_cs_silent; then
  10992. exec 6>/dev/null
  10993. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10994. fi
  10995. _ACEOF
  10996. cat >>$CONFIG_STATUS <<_ACEOF
  10997. if \$ac_cs_recheck; then
  10998. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10999. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11000. fi
  11001. _ACEOF
  11002. cat >>$CONFIG_STATUS <<\_ACEOF
  11003. for ac_config_target in $ac_config_targets
  11004. do
  11005. case "$ac_config_target" in
  11006. # Handling of arguments.
  11007. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11008. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11009. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11010. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11011. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11012. "src/mod/dns.mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/dns.mod/Makefile" ;;
  11013. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11014. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11015. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11016. { (exit 1); exit 1; }; };;
  11017. esac
  11018. done
  11019. # If the user did not use the arguments to specify the items to instantiate,
  11020. # then the envvar interface is used. Set only those that are not.
  11021. # We use the long form for the default assignment because of an extremely
  11022. # bizarre bug on SunOS 4.1.3.
  11023. if $ac_need_defaults; then
  11024. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11025. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11026. fi
  11027. # Have a temporary directory for convenience. Make it in the build tree
  11028. # simply because there is no reason to put it here, and in addition,
  11029. # creating and moving files from /tmp can sometimes cause problems.
  11030. # Create a temporary directory, and hook for its removal unless debugging.
  11031. $debug ||
  11032. {
  11033. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  11034. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11035. }
  11036. # Create a (secure) tmp directory for tmp files.
  11037. {
  11038. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  11039. test -n "$tmp" && test -d "$tmp"
  11040. } ||
  11041. {
  11042. tmp=./confstat$$-$RANDOM
  11043. (umask 077 && mkdir $tmp)
  11044. } ||
  11045. {
  11046. echo "$me: cannot create a temporary directory in ." >&2
  11047. { (exit 1); exit 1; }
  11048. }
  11049. _ACEOF
  11050. cat >>$CONFIG_STATUS <<_ACEOF
  11051. #
  11052. # CONFIG_FILES section.
  11053. #
  11054. # No need to generate the scripts if there are no CONFIG_FILES.
  11055. # This happens for instance when ./config.status config.h
  11056. if test -n "\$CONFIG_FILES"; then
  11057. # Protect against being on the right side of a sed subst in config.status.
  11058. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  11059. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  11060. s,@SHELL@,$SHELL,;t t
  11061. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  11062. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  11063. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  11064. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  11065. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  11066. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  11067. s,@exec_prefix@,$exec_prefix,;t t
  11068. s,@prefix@,$prefix,;t t
  11069. s,@program_transform_name@,$program_transform_name,;t t
  11070. s,@bindir@,$bindir,;t t
  11071. s,@sbindir@,$sbindir,;t t
  11072. s,@libexecdir@,$libexecdir,;t t
  11073. s,@datadir@,$datadir,;t t
  11074. s,@sysconfdir@,$sysconfdir,;t t
  11075. s,@sharedstatedir@,$sharedstatedir,;t t
  11076. s,@localstatedir@,$localstatedir,;t t
  11077. s,@libdir@,$libdir,;t t
  11078. s,@includedir@,$includedir,;t t
  11079. s,@oldincludedir@,$oldincludedir,;t t
  11080. s,@infodir@,$infodir,;t t
  11081. s,@mandir@,$mandir,;t t
  11082. s,@build_alias@,$build_alias,;t t
  11083. s,@host_alias@,$host_alias,;t t
  11084. s,@target_alias@,$target_alias,;t t
  11085. s,@DEFS@,$DEFS,;t t
  11086. s,@ECHO_C@,$ECHO_C,;t t
  11087. s,@ECHO_N@,$ECHO_N,;t t
  11088. s,@ECHO_T@,$ECHO_T,;t t
  11089. s,@LIBS@,$LIBS,;t t
  11090. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  11091. s,@CXX@,$CXX,;t t
  11092. s,@CXXFLAGS@,$CXXFLAGS,;t t
  11093. s,@LDFLAGS@,$LDFLAGS,;t t
  11094. s,@CPPFLAGS@,$CPPFLAGS,;t t
  11095. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  11096. s,@EXEEXT@,$EXEEXT,;t t
  11097. s,@OBJEXT@,$OBJEXT,;t t
  11098. s,@CXXCPP@,$CXXCPP,;t t
  11099. s,@EGREP@,$EGREP,;t t
  11100. s,@CCDEPMODE@,$CCDEPMODE,;t t
  11101. s,@GCC3@,$GCC3,;t t
  11102. s,@SET_MAKE@,$SET_MAKE,;t t
  11103. s,@HEAD_1@,$HEAD_1,;t t
  11104. s,@AWK@,$AWK,;t t
  11105. s,@BASENAME@,$BASENAME,;t t
  11106. s,@OBJCOPY@,$OBJCOPY,;t t
  11107. s,@STRIP@,$STRIP,;t t
  11108. s,@UNAME@,$UNAME,;t t
  11109. s,@DISTCC@,$DISTCC,;t t
  11110. s,@RESLIB@,$RESLIB,;t t
  11111. s,@RESINCLUDE@,$RESINCLUDE,;t t
  11112. s,@CCDEBUG@,$CCDEBUG,;t t
  11113. s,@ZLIB@,$ZLIB,;t t
  11114. s,@LIBOBJS@,$LIBOBJS,;t t
  11115. s,@VERSION@,$VERSION,;t t
  11116. s,@NUMVER@,$NUMVER,;t t
  11117. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  11118. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  11119. CEOF
  11120. _ACEOF
  11121. cat >>$CONFIG_STATUS <<\_ACEOF
  11122. # Split the substitutions into bite-sized pieces for seds with
  11123. # small command number limits, like on Digital OSF/1 and HP-UX.
  11124. ac_max_sed_lines=48
  11125. ac_sed_frag=1 # Number of current file.
  11126. ac_beg=1 # First line for current file.
  11127. ac_end=$ac_max_sed_lines # Line after last line for current file.
  11128. ac_more_lines=:
  11129. ac_sed_cmds=
  11130. while $ac_more_lines; do
  11131. if test $ac_beg -gt 1; then
  11132. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11133. else
  11134. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  11135. fi
  11136. if test ! -s $tmp/subs.frag; then
  11137. ac_more_lines=false
  11138. else
  11139. # The purpose of the label and of the branching condition is to
  11140. # speed up the sed processing (if there are no `@' at all, there
  11141. # is no need to browse any of the substitutions).
  11142. # These are the two extra sed commands mentioned above.
  11143. (echo ':t
  11144. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11145. if test -z "$ac_sed_cmds"; then
  11146. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11147. else
  11148. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11149. fi
  11150. ac_sed_frag=`expr $ac_sed_frag + 1`
  11151. ac_beg=$ac_end
  11152. ac_end=`expr $ac_end + $ac_max_sed_lines`
  11153. fi
  11154. done
  11155. if test -z "$ac_sed_cmds"; then
  11156. ac_sed_cmds=cat
  11157. fi
  11158. fi # test -n "$CONFIG_FILES"
  11159. _ACEOF
  11160. cat >>$CONFIG_STATUS <<\_ACEOF
  11161. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  11162. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11163. case $ac_file in
  11164. - | *:- | *:-:* ) # input from stdin
  11165. cat >$tmp/stdin
  11166. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11167. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11168. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11169. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11170. * ) ac_file_in=$ac_file.in ;;
  11171. esac
  11172. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11173. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11174. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11175. X"$ac_file" : 'X\(//\)[^/]' \| \
  11176. X"$ac_file" : 'X\(//\)$' \| \
  11177. X"$ac_file" : 'X\(/\)' \| \
  11178. . : '\(.\)' 2>/dev/null ||
  11179. echo X"$ac_file" |
  11180. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11181. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11182. /^X\(\/\/\)$/{ s//\1/; q; }
  11183. /^X\(\/\).*/{ s//\1/; q; }
  11184. s/.*/./; q'`
  11185. { if $as_mkdir_p; then
  11186. mkdir -p "$ac_dir"
  11187. else
  11188. as_dir="$ac_dir"
  11189. as_dirs=
  11190. while test ! -d "$as_dir"; do
  11191. as_dirs="$as_dir $as_dirs"
  11192. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11193. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11194. X"$as_dir" : 'X\(//\)[^/]' \| \
  11195. X"$as_dir" : 'X\(//\)$' \| \
  11196. X"$as_dir" : 'X\(/\)' \| \
  11197. . : '\(.\)' 2>/dev/null ||
  11198. echo X"$as_dir" |
  11199. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11200. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11201. /^X\(\/\/\)$/{ s//\1/; q; }
  11202. /^X\(\/\).*/{ s//\1/; q; }
  11203. s/.*/./; q'`
  11204. done
  11205. test ! -n "$as_dirs" || mkdir $as_dirs
  11206. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11207. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11208. { (exit 1); exit 1; }; }; }
  11209. ac_builddir=.
  11210. if test "$ac_dir" != .; then
  11211. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11212. # A "../" for each directory in $ac_dir_suffix.
  11213. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  11214. else
  11215. ac_dir_suffix= ac_top_builddir=
  11216. fi
  11217. case $srcdir in
  11218. .) # No --srcdir option. We are building in place.
  11219. ac_srcdir=.
  11220. if test -z "$ac_top_builddir"; then
  11221. ac_top_srcdir=.
  11222. else
  11223. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  11224. fi ;;
  11225. [\\/]* | ?:[\\/]* ) # Absolute path.
  11226. ac_srcdir=$srcdir$ac_dir_suffix;
  11227. ac_top_srcdir=$srcdir ;;
  11228. *) # Relative path.
  11229. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11230. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11231. esac
  11232. # Do not use `cd foo && pwd` to compute absolute paths, because
  11233. # the directories may not exist.
  11234. case `pwd` in
  11235. .) ac_abs_builddir="$ac_dir";;
  11236. *)
  11237. case "$ac_dir" in
  11238. .) ac_abs_builddir=`pwd`;;
  11239. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11240. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11241. esac;;
  11242. esac
  11243. case $ac_abs_builddir in
  11244. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  11245. *)
  11246. case ${ac_top_builddir}. in
  11247. .) ac_abs_top_builddir=$ac_abs_builddir;;
  11248. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11249. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11250. esac;;
  11251. esac
  11252. case $ac_abs_builddir in
  11253. .) ac_abs_srcdir=$ac_srcdir;;
  11254. *)
  11255. case $ac_srcdir in
  11256. .) ac_abs_srcdir=$ac_abs_builddir;;
  11257. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11258. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11259. esac;;
  11260. esac
  11261. case $ac_abs_builddir in
  11262. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  11263. *)
  11264. case $ac_top_srcdir in
  11265. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11266. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11267. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11268. esac;;
  11269. esac
  11270. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11271. # use $as_me), people would be surprised to read:
  11272. # /* config.h. Generated by config.status. */
  11273. if test x"$ac_file" = x-; then
  11274. configure_input=
  11275. else
  11276. configure_input="$ac_file. "
  11277. fi
  11278. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11279. sed 's,.*/,,'` by configure."
  11280. # First look for the input files in the build tree, otherwise in the
  11281. # src tree.
  11282. ac_file_inputs=`IFS=:
  11283. for f in $ac_file_in; do
  11284. case $f in
  11285. -) echo $tmp/stdin ;;
  11286. [\\/$]*)
  11287. # Absolute (can't be DOS-style, as IFS=:)
  11288. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11289. echo "$as_me: error: cannot find input file: $f" >&2;}
  11290. { (exit 1); exit 1; }; }
  11291. echo "$f";;
  11292. *) # Relative
  11293. if test -f "$f"; then
  11294. # Build tree
  11295. echo "$f"
  11296. elif test -f "$srcdir/$f"; then
  11297. # Source tree
  11298. echo "$srcdir/$f"
  11299. else
  11300. # /dev/null tree
  11301. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11302. echo "$as_me: error: cannot find input file: $f" >&2;}
  11303. { (exit 1); exit 1; }; }
  11304. fi;;
  11305. esac
  11306. done` || { (exit 1); exit 1; }
  11307. if test x"$ac_file" != x-; then
  11308. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11309. echo "$as_me: creating $ac_file" >&6;}
  11310. rm -f "$ac_file"
  11311. fi
  11312. _ACEOF
  11313. cat >>$CONFIG_STATUS <<_ACEOF
  11314. sed "$ac_vpsub
  11315. $extrasub
  11316. _ACEOF
  11317. cat >>$CONFIG_STATUS <<\_ACEOF
  11318. :t
  11319. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11320. s,@configure_input@,$configure_input,;t t
  11321. s,@srcdir@,$ac_srcdir,;t t
  11322. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  11323. s,@top_srcdir@,$ac_top_srcdir,;t t
  11324. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  11325. s,@builddir@,$ac_builddir,;t t
  11326. s,@abs_builddir@,$ac_abs_builddir,;t t
  11327. s,@top_builddir@,$ac_top_builddir,;t t
  11328. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  11329. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  11330. rm -f $tmp/stdin
  11331. if test x"$ac_file" != x-; then
  11332. mv $tmp/out $ac_file
  11333. else
  11334. cat $tmp/out
  11335. rm -f $tmp/out
  11336. fi
  11337. done
  11338. _ACEOF
  11339. cat >>$CONFIG_STATUS <<\_ACEOF
  11340. #
  11341. # CONFIG_HEADER section.
  11342. #
  11343. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  11344. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11345. #
  11346. # ac_d sets the value in "#define NAME VALUE" lines.
  11347. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11348. ac_dB='[ ].*$,\1#\2'
  11349. ac_dC=' '
  11350. ac_dD=',;t'
  11351. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11352. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11353. ac_uB='$,\1#\2define\3'
  11354. ac_uC=' '
  11355. ac_uD=',;t'
  11356. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  11357. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11358. case $ac_file in
  11359. - | *:- | *:-:* ) # input from stdin
  11360. cat >$tmp/stdin
  11361. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11362. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11363. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11364. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11365. * ) ac_file_in=$ac_file.in ;;
  11366. esac
  11367. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  11368. echo "$as_me: creating $ac_file" >&6;}
  11369. # First look for the input files in the build tree, otherwise in the
  11370. # src tree.
  11371. ac_file_inputs=`IFS=:
  11372. for f in $ac_file_in; do
  11373. case $f in
  11374. -) echo $tmp/stdin ;;
  11375. [\\/$]*)
  11376. # Absolute (can't be DOS-style, as IFS=:)
  11377. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11378. echo "$as_me: error: cannot find input file: $f" >&2;}
  11379. { (exit 1); exit 1; }; }
  11380. # Do quote $f, to prevent DOS paths from being IFS'd.
  11381. echo "$f";;
  11382. *) # Relative
  11383. if test -f "$f"; then
  11384. # Build tree
  11385. echo "$f"
  11386. elif test -f "$srcdir/$f"; then
  11387. # Source tree
  11388. echo "$srcdir/$f"
  11389. else
  11390. # /dev/null tree
  11391. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11392. echo "$as_me: error: cannot find input file: $f" >&2;}
  11393. { (exit 1); exit 1; }; }
  11394. fi;;
  11395. esac
  11396. done` || { (exit 1); exit 1; }
  11397. # Remove the trailing spaces.
  11398. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11399. _ACEOF
  11400. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  11401. # `conftest.undefs', that substitutes the proper values into
  11402. # config.h.in to produce config.h. The first handles `#define'
  11403. # templates, and the second `#undef' templates.
  11404. # And first: Protect against being on the right side of a sed subst in
  11405. # config.status. Protect against being in an unquoted here document
  11406. # in config.status.
  11407. rm -f conftest.defines conftest.undefs
  11408. # Using a here document instead of a string reduces the quoting nightmare.
  11409. # Putting comments in sed scripts is not portable.
  11410. #
  11411. # `end' is used to avoid that the second main sed command (meant for
  11412. # 0-ary CPP macros) applies to n-ary macro definitions.
  11413. # See the Autoconf documentation for `clear'.
  11414. cat >confdef2sed.sed <<\_ACEOF
  11415. s/[\\&,]/\\&/g
  11416. s,[\\$`],\\&,g
  11417. t clear
  11418. : clear
  11419. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11420. t end
  11421. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11422. : end
  11423. _ACEOF
  11424. # If some macros were called several times there might be several times
  11425. # the same #defines, which is useless. Nevertheless, we may not want to
  11426. # sort them, since we want the *last* AC-DEFINE to be honored.
  11427. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  11428. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  11429. rm -f confdef2sed.sed
  11430. # This sed command replaces #undef with comments. This is necessary, for
  11431. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11432. # on some systems where configure will not decide to define it.
  11433. cat >>conftest.undefs <<\_ACEOF
  11434. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11435. _ACEOF
  11436. # Break up conftest.defines because some shells have a limit on the size
  11437. # of here documents, and old seds have small limits too (100 cmds).
  11438. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11439. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11440. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11441. echo ' :' >>$CONFIG_STATUS
  11442. rm -f conftest.tail
  11443. while grep . conftest.defines >/dev/null
  11444. do
  11445. # Write a limited-size here document to $tmp/defines.sed.
  11446. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11447. # Speed up: don't consider the non `#define' lines.
  11448. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11449. # Work around the forget-to-reset-the-flag bug.
  11450. echo 't clr' >>$CONFIG_STATUS
  11451. echo ': clr' >>$CONFIG_STATUS
  11452. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  11453. echo 'CEOF
  11454. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  11455. rm -f $tmp/in
  11456. mv $tmp/out $tmp/in
  11457. ' >>$CONFIG_STATUS
  11458. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  11459. rm -f conftest.defines
  11460. mv conftest.tail conftest.defines
  11461. done
  11462. rm -f conftest.defines
  11463. echo ' fi # grep' >>$CONFIG_STATUS
  11464. echo >>$CONFIG_STATUS
  11465. # Break up conftest.undefs because some shells have a limit on the size
  11466. # of here documents, and old seds have small limits too (100 cmds).
  11467. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  11468. rm -f conftest.tail
  11469. while grep . conftest.undefs >/dev/null
  11470. do
  11471. # Write a limited-size here document to $tmp/undefs.sed.
  11472. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11473. # Speed up: don't consider the non `#undef'
  11474. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11475. # Work around the forget-to-reset-the-flag bug.
  11476. echo 't clr' >>$CONFIG_STATUS
  11477. echo ': clr' >>$CONFIG_STATUS
  11478. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  11479. echo 'CEOF
  11480. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  11481. rm -f $tmp/in
  11482. mv $tmp/out $tmp/in
  11483. ' >>$CONFIG_STATUS
  11484. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  11485. rm -f conftest.undefs
  11486. mv conftest.tail conftest.undefs
  11487. done
  11488. rm -f conftest.undefs
  11489. cat >>$CONFIG_STATUS <<\_ACEOF
  11490. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11491. # use $as_me), people would be surprised to read:
  11492. # /* config.h. Generated by config.status. */
  11493. if test x"$ac_file" = x-; then
  11494. echo "/* Generated by configure. */" >$tmp/config.h
  11495. else
  11496. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  11497. fi
  11498. cat $tmp/in >>$tmp/config.h
  11499. rm -f $tmp/in
  11500. if test x"$ac_file" != x-; then
  11501. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  11502. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11503. echo "$as_me: $ac_file is unchanged" >&6;}
  11504. else
  11505. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11506. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11507. X"$ac_file" : 'X\(//\)[^/]' \| \
  11508. X"$ac_file" : 'X\(//\)$' \| \
  11509. X"$ac_file" : 'X\(/\)' \| \
  11510. . : '\(.\)' 2>/dev/null ||
  11511. echo X"$ac_file" |
  11512. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11513. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11514. /^X\(\/\/\)$/{ s//\1/; q; }
  11515. /^X\(\/\).*/{ s//\1/; q; }
  11516. s/.*/./; q'`
  11517. { if $as_mkdir_p; then
  11518. mkdir -p "$ac_dir"
  11519. else
  11520. as_dir="$ac_dir"
  11521. as_dirs=
  11522. while test ! -d "$as_dir"; do
  11523. as_dirs="$as_dir $as_dirs"
  11524. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11525. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11526. X"$as_dir" : 'X\(//\)[^/]' \| \
  11527. X"$as_dir" : 'X\(//\)$' \| \
  11528. X"$as_dir" : 'X\(/\)' \| \
  11529. . : '\(.\)' 2>/dev/null ||
  11530. echo X"$as_dir" |
  11531. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11532. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11533. /^X\(\/\/\)$/{ s//\1/; q; }
  11534. /^X\(\/\).*/{ s//\1/; q; }
  11535. s/.*/./; q'`
  11536. done
  11537. test ! -n "$as_dirs" || mkdir $as_dirs
  11538. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11539. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11540. { (exit 1); exit 1; }; }; }
  11541. rm -f $ac_file
  11542. mv $tmp/config.h $ac_file
  11543. fi
  11544. else
  11545. cat $tmp/config.h
  11546. rm -f $tmp/config.h
  11547. fi
  11548. done
  11549. _ACEOF
  11550. cat >>$CONFIG_STATUS <<\_ACEOF
  11551. { (exit 0); exit 0; }
  11552. _ACEOF
  11553. chmod +x $CONFIG_STATUS
  11554. ac_clean_files=$ac_clean_files_save
  11555. # configure is writing to config.log, and then calls config.status.
  11556. # config.status does its own redirection, appending to config.log.
  11557. # Unfortunately, on DOS this fails, as config.log is still kept open
  11558. # by configure, so config.status won't be able to write to it; its
  11559. # output is simply discarded. So we exec the FD to /dev/null,
  11560. # effectively closing config.log, so it can be properly (re)opened and
  11561. # appended to by config.status. When coming back to configure, we
  11562. # need to make the FD available again.
  11563. if test "$no_create" != yes; then
  11564. ac_cs_success=:
  11565. ac_config_status_args=
  11566. test "$silent" = yes &&
  11567. ac_config_status_args="$ac_config_status_args --quiet"
  11568. exec 5>/dev/null
  11569. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11570. exec 5>>config.log
  11571. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11572. # would make configure fail if this is the last instruction.
  11573. $ac_cs_success || { (exit 1); exit 1; }
  11574. fi