configure 350 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065
  1. #! /bin/sh
  2. # From configure.ac Revision: 3869 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.61.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  8. # This configure script is free software; the Free Software Foundation
  9. # gives unlimited permission to copy, distribute and modify it.
  10. #
  11. # Copyright (c) 2003, 2004 Bryan Drewery
  12. ## --------------------- ##
  13. ## M4sh Initialization. ##
  14. ## --------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  18. emulate sh
  19. NULLCMD=:
  20. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in
  26. *posix*) set -o posix ;;
  27. esac
  28. fi
  29. # PATH needs CR
  30. # Avoid depending upon Character Ranges.
  31. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  32. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  33. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  34. as_cr_digits='0123456789'
  35. as_cr_alnum=$as_cr_Letters$as_cr_digits
  36. # The user is always right.
  37. if test "${PATH_SEPARATOR+set}" != set; then
  38. echo "#! /bin/sh" >conf$$.sh
  39. echo "exit 0" >>conf$$.sh
  40. chmod +x conf$$.sh
  41. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  42. PATH_SEPARATOR=';'
  43. else
  44. PATH_SEPARATOR=:
  45. fi
  46. rm -f conf$$.sh
  47. fi
  48. # Support unset when possible.
  49. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  50. as_unset=unset
  51. else
  52. as_unset=false
  53. fi
  54. # IFS
  55. # We need space, tab and new line, in precisely that order. Quoting is
  56. # there to prevent editors from complaining about space-tab.
  57. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  58. # splitting by setting IFS to empty value.)
  59. as_nl='
  60. '
  61. IFS=" "" $as_nl"
  62. # Find who we are. Look in the path if we contain no directory separator.
  63. case $0 in
  64. *[\\/]* ) as_myself=$0 ;;
  65. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  66. for as_dir in $PATH
  67. do
  68. IFS=$as_save_IFS
  69. test -z "$as_dir" && as_dir=.
  70. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  71. done
  72. IFS=$as_save_IFS
  73. ;;
  74. esac
  75. # We did not find ourselves, most probably we were run as `sh COMMAND'
  76. # in which case we are not to be found in the path.
  77. if test "x$as_myself" = x; then
  78. as_myself=$0
  79. fi
  80. if test ! -f "$as_myself"; then
  81. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  82. { (exit 1); exit 1; }
  83. fi
  84. # Work around bugs in pre-3.0 UWIN ksh.
  85. for as_var in ENV MAIL MAILPATH
  86. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  87. done
  88. PS1='$ '
  89. PS2='> '
  90. PS4='+ '
  91. # NLS nuisances.
  92. for as_var in \
  93. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  94. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  95. LC_TELEPHONE LC_TIME
  96. do
  97. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  98. eval $as_var=C; export $as_var
  99. else
  100. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  101. fi
  102. done
  103. # Required to use basename.
  104. if expr a : '\(a\)' >/dev/null 2>&1 &&
  105. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  106. as_expr=expr
  107. else
  108. as_expr=false
  109. fi
  110. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  111. as_basename=basename
  112. else
  113. as_basename=false
  114. fi
  115. # Name of the executable.
  116. as_me=`$as_basename -- "$0" ||
  117. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  118. X"$0" : 'X\(//\)$' \| \
  119. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  120. echo X/"$0" |
  121. sed '/^.*\/\([^/][^/]*\)\/*$/{
  122. s//\1/
  123. q
  124. }
  125. /^X\/\(\/\/\)$/{
  126. s//\1/
  127. q
  128. }
  129. /^X\/\(\/\).*/{
  130. s//\1/
  131. q
  132. }
  133. s/.*/./; q'`
  134. # CDPATH.
  135. $as_unset CDPATH
  136. if test "x$CONFIG_SHELL" = x; then
  137. if (eval ":") 2>/dev/null; then
  138. as_have_required=yes
  139. else
  140. as_have_required=no
  141. fi
  142. if test $as_have_required = yes && (eval ":
  143. (as_func_return () {
  144. (exit \$1)
  145. }
  146. as_func_success () {
  147. as_func_return 0
  148. }
  149. as_func_failure () {
  150. as_func_return 1
  151. }
  152. as_func_ret_success () {
  153. return 0
  154. }
  155. as_func_ret_failure () {
  156. return 1
  157. }
  158. exitcode=0
  159. if as_func_success; then
  160. :
  161. else
  162. exitcode=1
  163. echo as_func_success failed.
  164. fi
  165. if as_func_failure; then
  166. exitcode=1
  167. echo as_func_failure succeeded.
  168. fi
  169. if as_func_ret_success; then
  170. :
  171. else
  172. exitcode=1
  173. echo as_func_ret_success failed.
  174. fi
  175. if as_func_ret_failure; then
  176. exitcode=1
  177. echo as_func_ret_failure succeeded.
  178. fi
  179. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  180. :
  181. else
  182. exitcode=1
  183. echo positional parameters were not saved.
  184. fi
  185. test \$exitcode = 0) || { (exit 1); exit 1; }
  186. (
  187. as_lineno_1=\$LINENO
  188. as_lineno_2=\$LINENO
  189. test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
  190. test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
  191. ") 2> /dev/null; then
  192. :
  193. else
  194. as_candidate_shells=
  195. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  196. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  197. do
  198. IFS=$as_save_IFS
  199. test -z "$as_dir" && as_dir=.
  200. case $as_dir in
  201. /*)
  202. for as_base in sh bash ksh sh5; do
  203. as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
  204. done;;
  205. esac
  206. done
  207. IFS=$as_save_IFS
  208. for as_shell in $as_candidate_shells $SHELL; do
  209. # Try only shells that exist, to save several forks.
  210. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  211. { ("$as_shell") 2> /dev/null <<\_ASEOF
  212. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  213. emulate sh
  214. NULLCMD=:
  215. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  216. # is contrary to our usage. Disable this feature.
  217. alias -g '${1+"$@"}'='"$@"'
  218. setopt NO_GLOB_SUBST
  219. else
  220. case `(set -o) 2>/dev/null` in
  221. *posix*) set -o posix ;;
  222. esac
  223. fi
  224. :
  225. _ASEOF
  226. }; then
  227. CONFIG_SHELL=$as_shell
  228. as_have_required=yes
  229. if { "$as_shell" 2> /dev/null <<\_ASEOF
  230. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  231. emulate sh
  232. NULLCMD=:
  233. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  234. # is contrary to our usage. Disable this feature.
  235. alias -g '${1+"$@"}'='"$@"'
  236. setopt NO_GLOB_SUBST
  237. else
  238. case `(set -o) 2>/dev/null` in
  239. *posix*) set -o posix ;;
  240. esac
  241. fi
  242. :
  243. (as_func_return () {
  244. (exit $1)
  245. }
  246. as_func_success () {
  247. as_func_return 0
  248. }
  249. as_func_failure () {
  250. as_func_return 1
  251. }
  252. as_func_ret_success () {
  253. return 0
  254. }
  255. as_func_ret_failure () {
  256. return 1
  257. }
  258. exitcode=0
  259. if as_func_success; then
  260. :
  261. else
  262. exitcode=1
  263. echo as_func_success failed.
  264. fi
  265. if as_func_failure; then
  266. exitcode=1
  267. echo as_func_failure succeeded.
  268. fi
  269. if as_func_ret_success; then
  270. :
  271. else
  272. exitcode=1
  273. echo as_func_ret_success failed.
  274. fi
  275. if as_func_ret_failure; then
  276. exitcode=1
  277. echo as_func_ret_failure succeeded.
  278. fi
  279. if ( set x; as_func_ret_success y && test x = "$1" ); then
  280. :
  281. else
  282. exitcode=1
  283. echo positional parameters were not saved.
  284. fi
  285. test $exitcode = 0) || { (exit 1); exit 1; }
  286. (
  287. as_lineno_1=$LINENO
  288. as_lineno_2=$LINENO
  289. test "x$as_lineno_1" != "x$as_lineno_2" &&
  290. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
  291. _ASEOF
  292. }; then
  293. break
  294. fi
  295. fi
  296. done
  297. if test "x$CONFIG_SHELL" != x; then
  298. for as_var in BASH_ENV ENV
  299. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  300. done
  301. export CONFIG_SHELL
  302. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  303. fi
  304. if test $as_have_required = no; then
  305. echo This script requires a shell more modern than all the
  306. echo shells that I found on your system. Please install a
  307. echo modern shell, or manually run the script under such a
  308. echo shell if you do have one.
  309. { (exit 1); exit 1; }
  310. fi
  311. fi
  312. fi
  313. (eval "as_func_return () {
  314. (exit \$1)
  315. }
  316. as_func_success () {
  317. as_func_return 0
  318. }
  319. as_func_failure () {
  320. as_func_return 1
  321. }
  322. as_func_ret_success () {
  323. return 0
  324. }
  325. as_func_ret_failure () {
  326. return 1
  327. }
  328. exitcode=0
  329. if as_func_success; then
  330. :
  331. else
  332. exitcode=1
  333. echo as_func_success failed.
  334. fi
  335. if as_func_failure; then
  336. exitcode=1
  337. echo as_func_failure succeeded.
  338. fi
  339. if as_func_ret_success; then
  340. :
  341. else
  342. exitcode=1
  343. echo as_func_ret_success failed.
  344. fi
  345. if as_func_ret_failure; then
  346. exitcode=1
  347. echo as_func_ret_failure succeeded.
  348. fi
  349. if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
  350. :
  351. else
  352. exitcode=1
  353. echo positional parameters were not saved.
  354. fi
  355. test \$exitcode = 0") || {
  356. echo No shell found that supports shell functions.
  357. echo Please tell autoconf@gnu.org about your system,
  358. echo including any error possibly output before this
  359. echo message
  360. }
  361. as_lineno_1=$LINENO
  362. as_lineno_2=$LINENO
  363. test "x$as_lineno_1" != "x$as_lineno_2" &&
  364. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  365. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  366. # uniformly replaced by the line number. The first 'sed' inserts a
  367. # line-number line after each line using $LINENO; the second 'sed'
  368. # does the real work. The second script uses 'N' to pair each
  369. # line-number line with the line containing $LINENO, and appends
  370. # trailing '-' during substitution so that $LINENO is not a special
  371. # case at line end.
  372. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  373. # scripts with optimization help from Paolo Bonzini. Blame Lee
  374. # E. McMahon (1931-1989) for sed's syntax. :-)
  375. sed -n '
  376. p
  377. /[$]LINENO/=
  378. ' <$as_myself |
  379. sed '
  380. s/[$]LINENO.*/&-/
  381. t lineno
  382. b
  383. :lineno
  384. N
  385. :loop
  386. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  387. t loop
  388. s/-\n.*//
  389. ' >$as_me.lineno &&
  390. chmod +x "$as_me.lineno" ||
  391. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  392. { (exit 1); exit 1; }; }
  393. # Don't try to exec as it changes $[0], causing all sort of problems
  394. # (the dirname of $[0] is not the place where we might find the
  395. # original and so on. Autoconf is especially sensitive to this).
  396. . "./$as_me.lineno"
  397. # Exit status is that of the last command.
  398. exit
  399. }
  400. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  401. as_dirname=dirname
  402. else
  403. as_dirname=false
  404. fi
  405. ECHO_C= ECHO_N= ECHO_T=
  406. case `echo -n x` in
  407. -n*)
  408. case `echo 'x\c'` in
  409. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  410. *) ECHO_C='\c';;
  411. esac;;
  412. *)
  413. ECHO_N='-n';;
  414. esac
  415. if expr a : '\(a\)' >/dev/null 2>&1 &&
  416. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  417. as_expr=expr
  418. else
  419. as_expr=false
  420. fi
  421. rm -f conf$$ conf$$.exe conf$$.file
  422. if test -d conf$$.dir; then
  423. rm -f conf$$.dir/conf$$.file
  424. else
  425. rm -f conf$$.dir
  426. mkdir conf$$.dir
  427. fi
  428. echo >conf$$.file
  429. if ln -s conf$$.file conf$$ 2>/dev/null; then
  430. as_ln_s='ln -s'
  431. # ... but there are two gotchas:
  432. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  433. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  434. # In both cases, we have to default to `cp -p'.
  435. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  436. as_ln_s='cp -p'
  437. elif ln conf$$.file conf$$ 2>/dev/null; then
  438. as_ln_s=ln
  439. else
  440. as_ln_s='cp -p'
  441. fi
  442. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  443. rmdir conf$$.dir 2>/dev/null
  444. if mkdir -p . 2>/dev/null; then
  445. as_mkdir_p=:
  446. else
  447. test -d ./-p && rmdir ./-p
  448. as_mkdir_p=false
  449. fi
  450. if test -x / >/dev/null 2>&1; then
  451. as_test_x='test -x'
  452. else
  453. if ls -dL / >/dev/null 2>&1; then
  454. as_ls_L_option=L
  455. else
  456. as_ls_L_option=
  457. fi
  458. as_test_x='
  459. eval sh -c '\''
  460. if test -d "$1"; then
  461. test -d "$1/.";
  462. else
  463. case $1 in
  464. -*)set "./$1";;
  465. esac;
  466. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  467. ???[sx]*):;;*)false;;esac;fi
  468. '\'' sh
  469. '
  470. fi
  471. as_executable_p=$as_test_x
  472. # Sed expression to map a string onto a valid CPP name.
  473. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  474. # Sed expression to map a string onto a valid variable name.
  475. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  476. exec 7<&0 </dev/null 6>&1
  477. # Name of the host.
  478. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  479. # so uname gets run too.
  480. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  481. #
  482. # Initializations.
  483. #
  484. ac_default_prefix=/usr/local
  485. ac_clean_files=
  486. ac_config_libobj_dir=.
  487. LIBOBJS=
  488. cross_compiling=no
  489. subdirs=
  490. MFLAGS=
  491. MAKEFLAGS=
  492. SHELL=${CONFIG_SHELL-/bin/sh}
  493. # Identity of this package.
  494. PACKAGE_NAME=
  495. PACKAGE_TARNAME=
  496. PACKAGE_VERSION=
  497. PACKAGE_STRING=
  498. PACKAGE_BUGREPORT=
  499. ac_unique_file="wraith"
  500. ac_unique_file="src/eggdrop.h"
  501. # Factoring default headers for most tests.
  502. ac_includes_default="\
  503. #include <stdio.h>
  504. #ifdef HAVE_SYS_TYPES_H
  505. # include <sys/types.h>
  506. #endif
  507. #ifdef HAVE_SYS_STAT_H
  508. # include <sys/stat.h>
  509. #endif
  510. #ifdef STDC_HEADERS
  511. # include <stdlib.h>
  512. # include <stddef.h>
  513. #else
  514. # ifdef HAVE_STDLIB_H
  515. # include <stdlib.h>
  516. # endif
  517. #endif
  518. #ifdef HAVE_STRING_H
  519. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  520. # include <memory.h>
  521. # endif
  522. # include <string.h>
  523. #endif
  524. #ifdef HAVE_STRINGS_H
  525. # include <strings.h>
  526. #endif
  527. #ifdef HAVE_INTTYPES_H
  528. # include <inttypes.h>
  529. #endif
  530. #ifdef HAVE_STDINT_H
  531. # include <stdint.h>
  532. #endif
  533. #ifdef HAVE_UNISTD_H
  534. # include <unistd.h>
  535. #endif"
  536. ac_header_list=
  537. ac_func_list=
  538. ac_subst_vars='SHELL
  539. PATH_SEPARATOR
  540. PACKAGE_NAME
  541. PACKAGE_TARNAME
  542. PACKAGE_VERSION
  543. PACKAGE_STRING
  544. PACKAGE_BUGREPORT
  545. exec_prefix
  546. prefix
  547. program_transform_name
  548. bindir
  549. sbindir
  550. libexecdir
  551. datarootdir
  552. datadir
  553. sysconfdir
  554. sharedstatedir
  555. localstatedir
  556. includedir
  557. oldincludedir
  558. docdir
  559. infodir
  560. htmldir
  561. dvidir
  562. pdfdir
  563. psdir
  564. libdir
  565. localedir
  566. mandir
  567. DEFS
  568. ECHO_C
  569. ECHO_N
  570. ECHO_T
  571. LIBS
  572. build_alias
  573. host_alias
  574. target_alias
  575. egg_ac_parameters
  576. CXX
  577. CXXFLAGS
  578. LDFLAGS
  579. CPPFLAGS
  580. ac_ct_CXX
  581. EXEEXT
  582. OBJEXT
  583. CXXCPP
  584. GREP
  585. EGREP
  586. CCDEPMODE
  587. GCC3
  588. GCC3DEB
  589. SET_MAKE
  590. HEAD_1
  591. AWK
  592. BASENAME
  593. OBJCOPY
  594. STRIP
  595. DIFF
  596. UNAME
  597. CCACHE
  598. DISTCC
  599. BUILDOS
  600. BUILDARCH
  601. CCDEBUG
  602. ZLIB
  603. LIBOBJS
  604. VERSION
  605. NUMVER
  606. MOD_UPDIR
  607. LTLIBOBJS'
  608. ac_subst_files=''
  609. ac_precious_vars='build_alias
  610. host_alias
  611. target_alias
  612. CXX
  613. CXXFLAGS
  614. LDFLAGS
  615. LIBS
  616. CPPFLAGS
  617. CCC
  618. CXXCPP'
  619. # Initialize some variables set by options.
  620. ac_init_help=
  621. ac_init_version=false
  622. # The variables have the same names as the options, with
  623. # dashes changed to underlines.
  624. cache_file=./config.cache
  625. exec_prefix=NONE
  626. no_create=
  627. no_recursion=
  628. prefix=NONE
  629. program_prefix=NONE
  630. program_suffix=NONE
  631. program_transform_name=s,x,x,
  632. silent=
  633. site=
  634. srcdir=
  635. verbose=
  636. x_includes=NONE
  637. x_libraries=NONE
  638. # Installation directory options.
  639. # These are left unexpanded so users can "make install exec_prefix=/foo"
  640. # and all the variables that are supposed to be based on exec_prefix
  641. # by default will actually change.
  642. # Use braces instead of parens because sh, perl, etc. also accept them.
  643. # (The list follows the same order as the GNU Coding Standards.)
  644. bindir='${exec_prefix}/bin'
  645. sbindir='${exec_prefix}/sbin'
  646. libexecdir='${exec_prefix}/libexec'
  647. datarootdir='${prefix}/share'
  648. datadir='${datarootdir}'
  649. sysconfdir='${prefix}/etc'
  650. sharedstatedir='${prefix}/com'
  651. localstatedir='${prefix}/var'
  652. includedir='${prefix}/include'
  653. oldincludedir='/usr/include'
  654. docdir='${datarootdir}/doc/${PACKAGE}'
  655. infodir='${datarootdir}/info'
  656. htmldir='${docdir}'
  657. dvidir='${docdir}'
  658. pdfdir='${docdir}'
  659. psdir='${docdir}'
  660. libdir='${exec_prefix}/lib'
  661. localedir='${datarootdir}/locale'
  662. mandir='${datarootdir}/man'
  663. ac_prev=
  664. ac_dashdash=
  665. for ac_option
  666. do
  667. # If the previous option needs an argument, assign it.
  668. if test -n "$ac_prev"; then
  669. eval $ac_prev=\$ac_option
  670. ac_prev=
  671. continue
  672. fi
  673. case $ac_option in
  674. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  675. *) ac_optarg=yes ;;
  676. esac
  677. # Accept the important Cygnus configure options, so we can diagnose typos.
  678. case $ac_dashdash$ac_option in
  679. --)
  680. ac_dashdash=yes ;;
  681. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  682. ac_prev=bindir ;;
  683. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  684. bindir=$ac_optarg ;;
  685. -build | --build | --buil | --bui | --bu)
  686. ac_prev=build_alias ;;
  687. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  688. build_alias=$ac_optarg ;;
  689. -cache-file | --cache-file | --cache-fil | --cache-fi \
  690. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  691. ac_prev=cache_file ;;
  692. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  693. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  694. cache_file=$ac_optarg ;;
  695. --config-cache | -C)
  696. cache_file=config.cache ;;
  697. -datadir | --datadir | --datadi | --datad)
  698. ac_prev=datadir ;;
  699. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  700. datadir=$ac_optarg ;;
  701. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  702. | --dataroo | --dataro | --datar)
  703. ac_prev=datarootdir ;;
  704. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  705. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  706. datarootdir=$ac_optarg ;;
  707. -disable-* | --disable-*)
  708. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  709. # Reject names that are not valid shell variable names.
  710. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  711. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  712. { (exit 1); exit 1; }; }
  713. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  714. eval enable_$ac_feature=no ;;
  715. -docdir | --docdir | --docdi | --doc | --do)
  716. ac_prev=docdir ;;
  717. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  718. docdir=$ac_optarg ;;
  719. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  720. ac_prev=dvidir ;;
  721. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  722. dvidir=$ac_optarg ;;
  723. -enable-* | --enable-*)
  724. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  725. # Reject names that are not valid shell variable names.
  726. expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  727. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  728. { (exit 1); exit 1; }; }
  729. ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
  730. eval enable_$ac_feature=\$ac_optarg ;;
  731. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  732. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  733. | --exec | --exe | --ex)
  734. ac_prev=exec_prefix ;;
  735. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  736. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  737. | --exec=* | --exe=* | --ex=*)
  738. exec_prefix=$ac_optarg ;;
  739. -gas | --gas | --ga | --g)
  740. # Obsolete; use --with-gas.
  741. with_gas=yes ;;
  742. -help | --help | --hel | --he | -h)
  743. ac_init_help=long ;;
  744. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  745. ac_init_help=recursive ;;
  746. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  747. ac_init_help=short ;;
  748. -host | --host | --hos | --ho)
  749. ac_prev=host_alias ;;
  750. -host=* | --host=* | --hos=* | --ho=*)
  751. host_alias=$ac_optarg ;;
  752. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  753. ac_prev=htmldir ;;
  754. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  755. | --ht=*)
  756. htmldir=$ac_optarg ;;
  757. -includedir | --includedir | --includedi | --included | --include \
  758. | --includ | --inclu | --incl | --inc)
  759. ac_prev=includedir ;;
  760. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  761. | --includ=* | --inclu=* | --incl=* | --inc=*)
  762. includedir=$ac_optarg ;;
  763. -infodir | --infodir | --infodi | --infod | --info | --inf)
  764. ac_prev=infodir ;;
  765. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  766. infodir=$ac_optarg ;;
  767. -libdir | --libdir | --libdi | --libd)
  768. ac_prev=libdir ;;
  769. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  770. libdir=$ac_optarg ;;
  771. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  772. | --libexe | --libex | --libe)
  773. ac_prev=libexecdir ;;
  774. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  775. | --libexe=* | --libex=* | --libe=*)
  776. libexecdir=$ac_optarg ;;
  777. -localedir | --localedir | --localedi | --localed | --locale)
  778. ac_prev=localedir ;;
  779. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  780. localedir=$ac_optarg ;;
  781. -localstatedir | --localstatedir | --localstatedi | --localstated \
  782. | --localstate | --localstat | --localsta | --localst | --locals)
  783. ac_prev=localstatedir ;;
  784. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  785. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  786. localstatedir=$ac_optarg ;;
  787. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  788. ac_prev=mandir ;;
  789. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  790. mandir=$ac_optarg ;;
  791. -nfp | --nfp | --nf)
  792. # Obsolete; use --without-fp.
  793. with_fp=no ;;
  794. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  795. | --no-cr | --no-c | -n)
  796. no_create=yes ;;
  797. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  798. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  799. no_recursion=yes ;;
  800. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  801. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  802. | --oldin | --oldi | --old | --ol | --o)
  803. ac_prev=oldincludedir ;;
  804. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  805. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  806. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  807. oldincludedir=$ac_optarg ;;
  808. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  809. ac_prev=prefix ;;
  810. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  811. prefix=$ac_optarg ;;
  812. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  813. | --program-pre | --program-pr | --program-p)
  814. ac_prev=program_prefix ;;
  815. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  816. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  817. program_prefix=$ac_optarg ;;
  818. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  819. | --program-suf | --program-su | --program-s)
  820. ac_prev=program_suffix ;;
  821. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  822. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  823. program_suffix=$ac_optarg ;;
  824. -program-transform-name | --program-transform-name \
  825. | --program-transform-nam | --program-transform-na \
  826. | --program-transform-n | --program-transform- \
  827. | --program-transform | --program-transfor \
  828. | --program-transfo | --program-transf \
  829. | --program-trans | --program-tran \
  830. | --progr-tra | --program-tr | --program-t)
  831. ac_prev=program_transform_name ;;
  832. -program-transform-name=* | --program-transform-name=* \
  833. | --program-transform-nam=* | --program-transform-na=* \
  834. | --program-transform-n=* | --program-transform-=* \
  835. | --program-transform=* | --program-transfor=* \
  836. | --program-transfo=* | --program-transf=* \
  837. | --program-trans=* | --program-tran=* \
  838. | --progr-tra=* | --program-tr=* | --program-t=*)
  839. program_transform_name=$ac_optarg ;;
  840. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  841. ac_prev=pdfdir ;;
  842. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  843. pdfdir=$ac_optarg ;;
  844. -psdir | --psdir | --psdi | --psd | --ps)
  845. ac_prev=psdir ;;
  846. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  847. psdir=$ac_optarg ;;
  848. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  849. | -silent | --silent | --silen | --sile | --sil)
  850. silent=yes ;;
  851. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  852. ac_prev=sbindir ;;
  853. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  854. | --sbi=* | --sb=*)
  855. sbindir=$ac_optarg ;;
  856. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  857. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  858. | --sharedst | --shareds | --shared | --share | --shar \
  859. | --sha | --sh)
  860. ac_prev=sharedstatedir ;;
  861. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  862. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  863. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  864. | --sha=* | --sh=*)
  865. sharedstatedir=$ac_optarg ;;
  866. -site | --site | --sit)
  867. ac_prev=site ;;
  868. -site=* | --site=* | --sit=*)
  869. site=$ac_optarg ;;
  870. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  871. ac_prev=srcdir ;;
  872. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  873. srcdir=$ac_optarg ;;
  874. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  875. | --syscon | --sysco | --sysc | --sys | --sy)
  876. ac_prev=sysconfdir ;;
  877. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  878. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  879. sysconfdir=$ac_optarg ;;
  880. -target | --target | --targe | --targ | --tar | --ta | --t)
  881. ac_prev=target_alias ;;
  882. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  883. target_alias=$ac_optarg ;;
  884. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  885. verbose=yes ;;
  886. -version | --version | --versio | --versi | --vers | -V)
  887. ac_init_version=: ;;
  888. -with-* | --with-*)
  889. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  890. # Reject names that are not valid shell variable names.
  891. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  892. { echo "$as_me: error: invalid package name: $ac_package" >&2
  893. { (exit 1); exit 1; }; }
  894. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  895. eval with_$ac_package=\$ac_optarg ;;
  896. -without-* | --without-*)
  897. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  898. # Reject names that are not valid shell variable names.
  899. expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  900. { echo "$as_me: error: invalid package name: $ac_package" >&2
  901. { (exit 1); exit 1; }; }
  902. ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
  903. eval with_$ac_package=no ;;
  904. --x)
  905. # Obsolete; use --with-x.
  906. with_x=yes ;;
  907. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  908. | --x-incl | --x-inc | --x-in | --x-i)
  909. ac_prev=x_includes ;;
  910. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  911. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  912. x_includes=$ac_optarg ;;
  913. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  914. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  915. ac_prev=x_libraries ;;
  916. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  917. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  918. x_libraries=$ac_optarg ;;
  919. -*) { echo "$as_me: error: unrecognized option: $ac_option
  920. Try \`$0 --help' for more information." >&2
  921. { (exit 1); exit 1; }; }
  922. ;;
  923. *=*)
  924. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  925. # Reject names that are not valid shell variable names.
  926. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  927. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  928. { (exit 1); exit 1; }; }
  929. eval $ac_envvar=\$ac_optarg
  930. export $ac_envvar ;;
  931. *)
  932. # FIXME: should be removed in autoconf 3.0.
  933. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  934. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  935. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  936. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  937. ;;
  938. esac
  939. done
  940. if test -n "$ac_prev"; then
  941. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  942. { echo "$as_me: error: missing argument to $ac_option" >&2
  943. { (exit 1); exit 1; }; }
  944. fi
  945. # Be sure to have absolute directory names.
  946. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  947. datadir sysconfdir sharedstatedir localstatedir includedir \
  948. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  949. libdir localedir mandir
  950. do
  951. eval ac_val=\$$ac_var
  952. case $ac_val in
  953. [\\/$]* | ?:[\\/]* ) continue;;
  954. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  955. esac
  956. { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  957. { (exit 1); exit 1; }; }
  958. done
  959. # There might be people who depend on the old broken behavior: `$host'
  960. # used to hold the argument of --host etc.
  961. # FIXME: To remove some day.
  962. build=$build_alias
  963. host=$host_alias
  964. target=$target_alias
  965. # FIXME: To remove some day.
  966. if test "x$host_alias" != x; then
  967. if test "x$build_alias" = x; then
  968. cross_compiling=maybe
  969. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  970. If a cross compiler is detected then cross compile mode will be used." >&2
  971. elif test "x$build_alias" != "x$host_alias"; then
  972. cross_compiling=yes
  973. fi
  974. fi
  975. ac_tool_prefix=
  976. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  977. test "$silent" = yes && exec 6>/dev/null
  978. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  979. ac_ls_di=`ls -di .` &&
  980. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  981. { echo "$as_me: error: Working directory cannot be determined" >&2
  982. { (exit 1); exit 1; }; }
  983. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  984. { echo "$as_me: error: pwd does not report name of working directory" >&2
  985. { (exit 1); exit 1; }; }
  986. # Find the source files, if location was not specified.
  987. if test -z "$srcdir"; then
  988. ac_srcdir_defaulted=yes
  989. # Try the directory containing this script, then the parent directory.
  990. ac_confdir=`$as_dirname -- "$0" ||
  991. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  992. X"$0" : 'X\(//\)[^/]' \| \
  993. X"$0" : 'X\(//\)$' \| \
  994. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  995. echo X"$0" |
  996. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  997. s//\1/
  998. q
  999. }
  1000. /^X\(\/\/\)[^/].*/{
  1001. s//\1/
  1002. q
  1003. }
  1004. /^X\(\/\/\)$/{
  1005. s//\1/
  1006. q
  1007. }
  1008. /^X\(\/\).*/{
  1009. s//\1/
  1010. q
  1011. }
  1012. s/.*/./; q'`
  1013. srcdir=$ac_confdir
  1014. if test ! -r "$srcdir/$ac_unique_file"; then
  1015. srcdir=..
  1016. fi
  1017. else
  1018. ac_srcdir_defaulted=no
  1019. fi
  1020. if test ! -r "$srcdir/$ac_unique_file"; then
  1021. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1022. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  1023. { (exit 1); exit 1; }; }
  1024. fi
  1025. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1026. ac_abs_confdir=`(
  1027. cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
  1028. { (exit 1); exit 1; }; }
  1029. pwd)`
  1030. # When building in place, set srcdir=.
  1031. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1032. srcdir=.
  1033. fi
  1034. # Remove unnecessary trailing slashes from srcdir.
  1035. # Double slashes in file names in object file debugging info
  1036. # mess up M-x gdb in Emacs.
  1037. case $srcdir in
  1038. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1039. esac
  1040. for ac_var in $ac_precious_vars; do
  1041. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1042. eval ac_env_${ac_var}_value=\$${ac_var}
  1043. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1044. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1045. done
  1046. #
  1047. # Report the --help message.
  1048. #
  1049. if test "$ac_init_help" = "long"; then
  1050. # Omit some internal or obsolete options to make the list less imposing.
  1051. # This message is too long to be a string in the A/UX 3.1 sh.
  1052. cat <<_ACEOF
  1053. \`configure' configures this package to adapt to many kinds of systems.
  1054. Usage: $0 [OPTION]... [VAR=VALUE]...
  1055. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1056. VAR=VALUE. See below for descriptions of some of the useful variables.
  1057. Defaults for the options are specified in brackets.
  1058. Configuration:
  1059. -h, --help display this help and exit
  1060. --help=short display options specific to this package
  1061. --help=recursive display the short help of all the included packages
  1062. -V, --version display version information and exit
  1063. -q, --quiet, --silent do not print \`checking...' messages
  1064. --cache-file=FILE cache test results in FILE [disabled]
  1065. -C, --config-cache alias for \`--cache-file=config.cache'
  1066. -n, --no-create do not create output files
  1067. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1068. Installation directories:
  1069. --prefix=PREFIX install architecture-independent files in PREFIX
  1070. [$ac_default_prefix]
  1071. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1072. [PREFIX]
  1073. By default, \`make install' will install all the files in
  1074. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1075. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1076. for instance \`--prefix=\$HOME'.
  1077. For better control, use the options below.
  1078. Fine tuning of the installation directories:
  1079. --bindir=DIR user executables [EPREFIX/bin]
  1080. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1081. --libexecdir=DIR program executables [EPREFIX/libexec]
  1082. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1083. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1084. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1085. --libdir=DIR object code libraries [EPREFIX/lib]
  1086. --includedir=DIR C header files [PREFIX/include]
  1087. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1088. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1089. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1090. --infodir=DIR info documentation [DATAROOTDIR/info]
  1091. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1092. --mandir=DIR man documentation [DATAROOTDIR/man]
  1093. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1094. --htmldir=DIR html documentation [DOCDIR]
  1095. --dvidir=DIR dvi documentation [DOCDIR]
  1096. --pdfdir=DIR pdf documentation [DOCDIR]
  1097. --psdir=DIR ps documentation [DOCDIR]
  1098. _ACEOF
  1099. cat <<\_ACEOF
  1100. _ACEOF
  1101. fi
  1102. if test -n "$ac_init_help"; then
  1103. cat <<\_ACEOF
  1104. Optional Features:
  1105. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1106. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1107. --disable-ipv6 disable IPv6 support
  1108. Some influential environment variables:
  1109. CXX C++ compiler command
  1110. CXXFLAGS C++ compiler flags
  1111. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1112. nonstandard directory <lib dir>
  1113. LIBS libraries to pass to the linker, e.g. -l<library>
  1114. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  1115. you have headers in a nonstandard directory <include dir>
  1116. CXXCPP C++ preprocessor
  1117. Use these variables to override the choices made by `configure' or to help
  1118. it to find libraries and programs with nonstandard names/locations.
  1119. _ACEOF
  1120. ac_status=$?
  1121. fi
  1122. if test "$ac_init_help" = "recursive"; then
  1123. # If there are subdirs, report their specific --help.
  1124. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1125. test -d "$ac_dir" || continue
  1126. ac_builddir=.
  1127. case "$ac_dir" in
  1128. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1129. *)
  1130. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  1131. # A ".." for each directory in $ac_dir_suffix.
  1132. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  1133. case $ac_top_builddir_sub in
  1134. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1135. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1136. esac ;;
  1137. esac
  1138. ac_abs_top_builddir=$ac_pwd
  1139. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1140. # for backward compatibility:
  1141. ac_top_builddir=$ac_top_build_prefix
  1142. case $srcdir in
  1143. .) # We are building in place.
  1144. ac_srcdir=.
  1145. ac_top_srcdir=$ac_top_builddir_sub
  1146. ac_abs_top_srcdir=$ac_pwd ;;
  1147. [\\/]* | ?:[\\/]* ) # Absolute name.
  1148. ac_srcdir=$srcdir$ac_dir_suffix;
  1149. ac_top_srcdir=$srcdir
  1150. ac_abs_top_srcdir=$srcdir ;;
  1151. *) # Relative name.
  1152. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1153. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1154. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1155. esac
  1156. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1157. cd "$ac_dir" || { ac_status=$?; continue; }
  1158. # Check for guested configure.
  1159. if test -f "$ac_srcdir/configure.gnu"; then
  1160. echo &&
  1161. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1162. elif test -f "$ac_srcdir/configure"; then
  1163. echo &&
  1164. $SHELL "$ac_srcdir/configure" --help=recursive
  1165. else
  1166. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1167. fi || ac_status=$?
  1168. cd "$ac_pwd" || { ac_status=$?; break; }
  1169. done
  1170. fi
  1171. test -n "$ac_init_help" && exit $ac_status
  1172. if $ac_init_version; then
  1173. cat <<\_ACEOF
  1174. configure
  1175. generated by GNU Autoconf 2.61
  1176. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  1177. 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  1178. This configure script is free software; the Free Software Foundation
  1179. gives unlimited permission to copy, distribute and modify it.
  1180. Copyright (c) 2003, 2004 Bryan Drewery
  1181. _ACEOF
  1182. exit
  1183. fi
  1184. cat >config.log <<_ACEOF
  1185. This file contains any messages produced by compilers while
  1186. running configure, to aid debugging if configure makes a mistake.
  1187. It was created by $as_me, which was
  1188. generated by GNU Autoconf 2.61. Invocation command line was
  1189. $ $0 $@
  1190. _ACEOF
  1191. exec 5>>config.log
  1192. {
  1193. cat <<_ASUNAME
  1194. ## --------- ##
  1195. ## Platform. ##
  1196. ## --------- ##
  1197. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1198. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1199. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1200. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1201. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1202. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1203. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1204. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1205. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1206. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1207. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1208. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1209. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1210. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1211. _ASUNAME
  1212. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1213. for as_dir in $PATH
  1214. do
  1215. IFS=$as_save_IFS
  1216. test -z "$as_dir" && as_dir=.
  1217. echo "PATH: $as_dir"
  1218. done
  1219. IFS=$as_save_IFS
  1220. } >&5
  1221. cat >&5 <<_ACEOF
  1222. ## ----------- ##
  1223. ## Core tests. ##
  1224. ## ----------- ##
  1225. _ACEOF
  1226. # Keep a trace of the command line.
  1227. # Strip out --no-create and --no-recursion so they do not pile up.
  1228. # Strip out --silent because we don't want to record it for future runs.
  1229. # Also quote any args containing shell meta-characters.
  1230. # Make two passes to allow for proper duplicate-argument suppression.
  1231. ac_configure_args=
  1232. ac_configure_args0=
  1233. ac_configure_args1=
  1234. ac_must_keep_next=false
  1235. for ac_pass in 1 2
  1236. do
  1237. for ac_arg
  1238. do
  1239. case $ac_arg in
  1240. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1241. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1242. | -silent | --silent | --silen | --sile | --sil)
  1243. continue ;;
  1244. *\'*)
  1245. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1246. esac
  1247. case $ac_pass in
  1248. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  1249. 2)
  1250. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  1251. if test $ac_must_keep_next = true; then
  1252. ac_must_keep_next=false # Got value, back to normal.
  1253. else
  1254. case $ac_arg in
  1255. *=* | --config-cache | -C | -disable-* | --disable-* \
  1256. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1257. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1258. | -with-* | --with-* | -without-* | --without-* | --x)
  1259. case "$ac_configure_args0 " in
  1260. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1261. esac
  1262. ;;
  1263. -* ) ac_must_keep_next=true ;;
  1264. esac
  1265. fi
  1266. ac_configure_args="$ac_configure_args '$ac_arg'"
  1267. ;;
  1268. esac
  1269. done
  1270. done
  1271. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  1272. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  1273. # When interrupted or exit'd, cleanup temporary files, and complete
  1274. # config.log. We remove comments because anyway the quotes in there
  1275. # would cause problems or look ugly.
  1276. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1277. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1278. trap 'exit_status=$?
  1279. # Save into config.log some information that might help in debugging.
  1280. {
  1281. echo
  1282. cat <<\_ASBOX
  1283. ## ---------------- ##
  1284. ## Cache variables. ##
  1285. ## ---------------- ##
  1286. _ASBOX
  1287. echo
  1288. # The following way of writing the cache mishandles newlines in values,
  1289. (
  1290. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1291. eval ac_val=\$$ac_var
  1292. case $ac_val in #(
  1293. *${as_nl}*)
  1294. case $ac_var in #(
  1295. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  1296. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  1297. esac
  1298. case $ac_var in #(
  1299. _ | IFS | as_nl) ;; #(
  1300. *) $as_unset $ac_var ;;
  1301. esac ;;
  1302. esac
  1303. done
  1304. (set) 2>&1 |
  1305. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1306. *${as_nl}ac_space=\ *)
  1307. sed -n \
  1308. "s/'\''/'\''\\\\'\'''\''/g;
  1309. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1310. ;; #(
  1311. *)
  1312. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1313. ;;
  1314. esac |
  1315. sort
  1316. )
  1317. echo
  1318. cat <<\_ASBOX
  1319. ## ----------------- ##
  1320. ## Output variables. ##
  1321. ## ----------------- ##
  1322. _ASBOX
  1323. echo
  1324. for ac_var in $ac_subst_vars
  1325. do
  1326. eval ac_val=\$$ac_var
  1327. case $ac_val in
  1328. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1329. esac
  1330. echo "$ac_var='\''$ac_val'\''"
  1331. done | sort
  1332. echo
  1333. if test -n "$ac_subst_files"; then
  1334. cat <<\_ASBOX
  1335. ## ------------------- ##
  1336. ## File substitutions. ##
  1337. ## ------------------- ##
  1338. _ASBOX
  1339. echo
  1340. for ac_var in $ac_subst_files
  1341. do
  1342. eval ac_val=\$$ac_var
  1343. case $ac_val in
  1344. *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1345. esac
  1346. echo "$ac_var='\''$ac_val'\''"
  1347. done | sort
  1348. echo
  1349. fi
  1350. if test -s confdefs.h; then
  1351. cat <<\_ASBOX
  1352. ## ----------- ##
  1353. ## confdefs.h. ##
  1354. ## ----------- ##
  1355. _ASBOX
  1356. echo
  1357. cat confdefs.h
  1358. echo
  1359. fi
  1360. test "$ac_signal" != 0 &&
  1361. echo "$as_me: caught signal $ac_signal"
  1362. echo "$as_me: exit $exit_status"
  1363. } >&5
  1364. rm -f core *.core core.conftest.* &&
  1365. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1366. exit $exit_status
  1367. ' 0
  1368. for ac_signal in 1 2 13 15; do
  1369. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1370. done
  1371. ac_signal=0
  1372. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1373. rm -f -r conftest* confdefs.h
  1374. # Predefined preprocessor variables.
  1375. cat >>confdefs.h <<_ACEOF
  1376. #define PACKAGE_NAME "$PACKAGE_NAME"
  1377. _ACEOF
  1378. cat >>confdefs.h <<_ACEOF
  1379. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1380. _ACEOF
  1381. cat >>confdefs.h <<_ACEOF
  1382. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1383. _ACEOF
  1384. cat >>confdefs.h <<_ACEOF
  1385. #define PACKAGE_STRING "$PACKAGE_STRING"
  1386. _ACEOF
  1387. cat >>confdefs.h <<_ACEOF
  1388. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1389. _ACEOF
  1390. # Let the site file select an alternate cache file if it wants to.
  1391. # Prefer explicitly selected file to automatically selected ones.
  1392. if test -n "$CONFIG_SITE"; then
  1393. set x "$CONFIG_SITE"
  1394. elif test "x$prefix" != xNONE; then
  1395. set x "$prefix/share/config.site" "$prefix/etc/config.site"
  1396. else
  1397. set x "$ac_default_prefix/share/config.site" \
  1398. "$ac_default_prefix/etc/config.site"
  1399. fi
  1400. shift
  1401. for ac_site_file
  1402. do
  1403. if test -r "$ac_site_file"; then
  1404. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1405. echo "$as_me: loading site script $ac_site_file" >&6;}
  1406. sed 's/^/| /' "$ac_site_file" >&5
  1407. . "$ac_site_file"
  1408. fi
  1409. done
  1410. if test -r "$cache_file"; then
  1411. # Some versions of bash will fail to source /dev/null (special
  1412. # files actually), so we avoid doing that.
  1413. if test -f "$cache_file"; then
  1414. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1415. echo "$as_me: loading cache $cache_file" >&6;}
  1416. case $cache_file in
  1417. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1418. *) . "./$cache_file";;
  1419. esac
  1420. fi
  1421. else
  1422. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1423. echo "$as_me: creating cache $cache_file" >&6;}
  1424. >$cache_file
  1425. fi
  1426. ac_header_list="$ac_header_list sys/time.h"
  1427. ac_header_list="$ac_header_list unistd.h"
  1428. ac_func_list="$ac_func_list alarm"
  1429. # Check that the precious variables saved in the cache have kept the same
  1430. # value.
  1431. ac_cache_corrupted=false
  1432. for ac_var in $ac_precious_vars; do
  1433. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1434. eval ac_new_set=\$ac_env_${ac_var}_set
  1435. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1436. eval ac_new_val=\$ac_env_${ac_var}_value
  1437. case $ac_old_set,$ac_new_set in
  1438. set,)
  1439. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1440. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1441. ac_cache_corrupted=: ;;
  1442. ,set)
  1443. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1444. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1445. ac_cache_corrupted=: ;;
  1446. ,);;
  1447. *)
  1448. if test "x$ac_old_val" != "x$ac_new_val"; then
  1449. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1450. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1451. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1452. echo "$as_me: former value: $ac_old_val" >&2;}
  1453. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1454. echo "$as_me: current value: $ac_new_val" >&2;}
  1455. ac_cache_corrupted=:
  1456. fi;;
  1457. esac
  1458. # Pass precious variables to config.status.
  1459. if test "$ac_new_set" = set; then
  1460. case $ac_new_val in
  1461. *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1462. *) ac_arg=$ac_var=$ac_new_val ;;
  1463. esac
  1464. case " $ac_configure_args " in
  1465. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1466. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1467. esac
  1468. fi
  1469. done
  1470. if $ac_cache_corrupted; then
  1471. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1472. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1473. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1474. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1475. { (exit 1); exit 1; }; }
  1476. fi
  1477. ac_ext=c
  1478. ac_cpp='$CPP $CPPFLAGS'
  1479. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1480. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1481. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1482. ac_config_headers="$ac_config_headers config.h"
  1483. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1484. egg_ac_parameters=
  1485. ac_prev=
  1486. for ac_arg in $ac_configure_args; do
  1487. if test -n "$ac_prev"; then
  1488. ac_prev=
  1489. continue
  1490. fi
  1491. case $ac_arg in
  1492. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1493. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1494. ac_prev=cache_file ;;
  1495. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1496. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1497. | --c=*)
  1498. ;;
  1499. --config-cache | -C)
  1500. ;;
  1501. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1502. ac_prev=srcdir ;;
  1503. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1504. ;;
  1505. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1506. esac
  1507. done
  1508. # Setup build environment
  1509. #AC_REQUIRE_CPP
  1510. ac_ext=cpp
  1511. ac_cpp='$CXXCPP $CPPFLAGS'
  1512. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1513. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1514. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1515. ac_ext=cpp
  1516. ac_cpp='$CXXCPP $CPPFLAGS'
  1517. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1518. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1519. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1520. if test -z "$CXX"; then
  1521. if test -n "$CCC"; then
  1522. CXX=$CCC
  1523. else
  1524. if test -n "$ac_tool_prefix"; then
  1525. for ac_prog in g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1526. do
  1527. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1528. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1529. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1530. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1531. if test "${ac_cv_prog_CXX+set}" = set; then
  1532. echo $ECHO_N "(cached) $ECHO_C" >&6
  1533. else
  1534. if test -n "$CXX"; then
  1535. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1536. else
  1537. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1538. for as_dir in $PATH
  1539. do
  1540. IFS=$as_save_IFS
  1541. test -z "$as_dir" && as_dir=.
  1542. for ac_exec_ext in '' $ac_executable_extensions; do
  1543. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1544. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1545. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1546. break 2
  1547. fi
  1548. done
  1549. done
  1550. IFS=$as_save_IFS
  1551. fi
  1552. fi
  1553. CXX=$ac_cv_prog_CXX
  1554. if test -n "$CXX"; then
  1555. { echo "$as_me:$LINENO: result: $CXX" >&5
  1556. echo "${ECHO_T}$CXX" >&6; }
  1557. else
  1558. { echo "$as_me:$LINENO: result: no" >&5
  1559. echo "${ECHO_T}no" >&6; }
  1560. fi
  1561. test -n "$CXX" && break
  1562. done
  1563. fi
  1564. if test -z "$CXX"; then
  1565. ac_ct_CXX=$CXX
  1566. for ac_prog in g++-3.3 g++33 g++-3 g++3 g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1567. do
  1568. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1569. set dummy $ac_prog; ac_word=$2
  1570. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  1571. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  1572. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1573. echo $ECHO_N "(cached) $ECHO_C" >&6
  1574. else
  1575. if test -n "$ac_ct_CXX"; then
  1576. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1577. else
  1578. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1579. for as_dir in $PATH
  1580. do
  1581. IFS=$as_save_IFS
  1582. test -z "$as_dir" && as_dir=.
  1583. for ac_exec_ext in '' $ac_executable_extensions; do
  1584. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  1585. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1586. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1587. break 2
  1588. fi
  1589. done
  1590. done
  1591. IFS=$as_save_IFS
  1592. fi
  1593. fi
  1594. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1595. if test -n "$ac_ct_CXX"; then
  1596. { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1597. echo "${ECHO_T}$ac_ct_CXX" >&6; }
  1598. else
  1599. { echo "$as_me:$LINENO: result: no" >&5
  1600. echo "${ECHO_T}no" >&6; }
  1601. fi
  1602. test -n "$ac_ct_CXX" && break
  1603. done
  1604. if test "x$ac_ct_CXX" = x; then
  1605. CXX="g++"
  1606. else
  1607. case $cross_compiling:$ac_tool_warned in
  1608. yes:)
  1609. { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
  1610. whose name does not start with the host triplet. If you think this
  1611. configuration is useful to you, please write to autoconf@gnu.org." >&5
  1612. echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
  1613. whose name does not start with the host triplet. If you think this
  1614. configuration is useful to you, please write to autoconf@gnu.org." >&2;}
  1615. ac_tool_warned=yes ;;
  1616. esac
  1617. CXX=$ac_ct_CXX
  1618. fi
  1619. fi
  1620. fi
  1621. fi
  1622. # Provide some information about the compiler.
  1623. echo "$as_me:$LINENO: checking for C++ compiler version" >&5
  1624. ac_compiler=`set X $ac_compile; echo $2`
  1625. { (ac_try="$ac_compiler --version >&5"
  1626. case "(($ac_try" in
  1627. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1628. *) ac_try_echo=$ac_try;;
  1629. esac
  1630. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1631. (eval "$ac_compiler --version >&5") 2>&5
  1632. ac_status=$?
  1633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1634. (exit $ac_status); }
  1635. { (ac_try="$ac_compiler -v >&5"
  1636. case "(($ac_try" in
  1637. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1638. *) ac_try_echo=$ac_try;;
  1639. esac
  1640. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1641. (eval "$ac_compiler -v >&5") 2>&5
  1642. ac_status=$?
  1643. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1644. (exit $ac_status); }
  1645. { (ac_try="$ac_compiler -V >&5"
  1646. case "(($ac_try" in
  1647. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1648. *) ac_try_echo=$ac_try;;
  1649. esac
  1650. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1651. (eval "$ac_compiler -V >&5") 2>&5
  1652. ac_status=$?
  1653. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1654. (exit $ac_status); }
  1655. cat >conftest.$ac_ext <<_ACEOF
  1656. /* confdefs.h. */
  1657. _ACEOF
  1658. cat confdefs.h >>conftest.$ac_ext
  1659. cat >>conftest.$ac_ext <<_ACEOF
  1660. /* end confdefs.h. */
  1661. int
  1662. main ()
  1663. {
  1664. ;
  1665. return 0;
  1666. }
  1667. _ACEOF
  1668. ac_clean_files_save=$ac_clean_files
  1669. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1670. # Try to create an executable without -o first, disregard a.out.
  1671. # It will help us diagnose broken compilers, and finding out an intuition
  1672. # of exeext.
  1673. { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1674. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
  1675. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1676. #
  1677. # List of possible output files, starting from the most likely.
  1678. # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
  1679. # only as a last resort. b.out is created by i960 compilers.
  1680. ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
  1681. #
  1682. # The IRIX 6 linker writes into existing files which may not be
  1683. # executable, retaining their permissions. Remove them first so a
  1684. # subsequent execution test works.
  1685. ac_rmfiles=
  1686. for ac_file in $ac_files
  1687. do
  1688. case $ac_file in
  1689. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1690. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  1691. esac
  1692. done
  1693. rm -f $ac_rmfiles
  1694. if { (ac_try="$ac_link_default"
  1695. case "(($ac_try" in
  1696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1697. *) ac_try_echo=$ac_try;;
  1698. esac
  1699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1700. (eval "$ac_link_default") 2>&5
  1701. ac_status=$?
  1702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1703. (exit $ac_status); }; then
  1704. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  1705. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  1706. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  1707. # so that the user can short-circuit this test for compilers unknown to
  1708. # Autoconf.
  1709. for ac_file in $ac_files ''
  1710. do
  1711. test -f "$ac_file" || continue
  1712. case $ac_file in
  1713. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
  1714. ;;
  1715. [ab].out )
  1716. # We found the default executable, but exeext='' is most
  1717. # certainly right.
  1718. break;;
  1719. *.* )
  1720. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  1721. then :; else
  1722. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1723. fi
  1724. # We set ac_cv_exeext here because the later test for it is not
  1725. # safe: cross compilers may not add the suffix if given an `-o'
  1726. # argument, so we may need to know it at that point already.
  1727. # Even if this section looks crufty: it has the advantage of
  1728. # actually working.
  1729. break;;
  1730. * )
  1731. break;;
  1732. esac
  1733. done
  1734. test "$ac_cv_exeext" = no && ac_cv_exeext=
  1735. else
  1736. ac_file=''
  1737. fi
  1738. { echo "$as_me:$LINENO: result: $ac_file" >&5
  1739. echo "${ECHO_T}$ac_file" >&6; }
  1740. if test -z "$ac_file"; then
  1741. echo "$as_me: failed program was:" >&5
  1742. sed 's/^/| /' conftest.$ac_ext >&5
  1743. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1744. See \`config.log' for more details." >&5
  1745. echo "$as_me: error: C++ compiler cannot create executables
  1746. See \`config.log' for more details." >&2;}
  1747. { (exit 77); exit 77; }; }
  1748. fi
  1749. ac_exeext=$ac_cv_exeext
  1750. # Check that the compiler produces executables we can run. If not, either
  1751. # the compiler is broken, or we cross compile.
  1752. { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1753. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
  1754. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1755. # If not cross compiling, check that we can run a simple program.
  1756. if test "$cross_compiling" != yes; then
  1757. if { ac_try='./$ac_file'
  1758. { (case "(($ac_try" in
  1759. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1760. *) ac_try_echo=$ac_try;;
  1761. esac
  1762. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1763. (eval "$ac_try") 2>&5
  1764. ac_status=$?
  1765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1766. (exit $ac_status); }; }; then
  1767. cross_compiling=no
  1768. else
  1769. if test "$cross_compiling" = maybe; then
  1770. cross_compiling=yes
  1771. else
  1772. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1773. If you meant to cross compile, use \`--host'.
  1774. See \`config.log' for more details." >&5
  1775. echo "$as_me: error: cannot run C++ compiled programs.
  1776. If you meant to cross compile, use \`--host'.
  1777. See \`config.log' for more details." >&2;}
  1778. { (exit 1); exit 1; }; }
  1779. fi
  1780. fi
  1781. fi
  1782. { echo "$as_me:$LINENO: result: yes" >&5
  1783. echo "${ECHO_T}yes" >&6; }
  1784. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1785. ac_clean_files=$ac_clean_files_save
  1786. # Check that the compiler produces executables we can run. If not, either
  1787. # the compiler is broken, or we cross compile.
  1788. { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1789. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
  1790. { echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1791. echo "${ECHO_T}$cross_compiling" >&6; }
  1792. { echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1793. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
  1794. if { (ac_try="$ac_link"
  1795. case "(($ac_try" in
  1796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1797. *) ac_try_echo=$ac_try;;
  1798. esac
  1799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1800. (eval "$ac_link") 2>&5
  1801. ac_status=$?
  1802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1803. (exit $ac_status); }; then
  1804. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1805. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1806. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1807. # `rm'.
  1808. for ac_file in conftest.exe conftest conftest.*; do
  1809. test -f "$ac_file" || continue
  1810. case $ac_file in
  1811. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
  1812. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1813. break;;
  1814. * ) break;;
  1815. esac
  1816. done
  1817. else
  1818. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1819. See \`config.log' for more details." >&5
  1820. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1821. See \`config.log' for more details." >&2;}
  1822. { (exit 1); exit 1; }; }
  1823. fi
  1824. rm -f conftest$ac_cv_exeext
  1825. { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1826. echo "${ECHO_T}$ac_cv_exeext" >&6; }
  1827. rm -f conftest.$ac_ext
  1828. EXEEXT=$ac_cv_exeext
  1829. ac_exeext=$EXEEXT
  1830. { echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1831. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
  1832. if test "${ac_cv_objext+set}" = set; then
  1833. echo $ECHO_N "(cached) $ECHO_C" >&6
  1834. else
  1835. cat >conftest.$ac_ext <<_ACEOF
  1836. /* confdefs.h. */
  1837. _ACEOF
  1838. cat confdefs.h >>conftest.$ac_ext
  1839. cat >>conftest.$ac_ext <<_ACEOF
  1840. /* end confdefs.h. */
  1841. int
  1842. main ()
  1843. {
  1844. ;
  1845. return 0;
  1846. }
  1847. _ACEOF
  1848. rm -f conftest.o conftest.obj
  1849. if { (ac_try="$ac_compile"
  1850. case "(($ac_try" in
  1851. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1852. *) ac_try_echo=$ac_try;;
  1853. esac
  1854. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1855. (eval "$ac_compile") 2>&5
  1856. ac_status=$?
  1857. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1858. (exit $ac_status); }; then
  1859. for ac_file in conftest.o conftest.obj conftest.*; do
  1860. test -f "$ac_file" || continue;
  1861. case $ac_file in
  1862. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
  1863. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1864. break;;
  1865. esac
  1866. done
  1867. else
  1868. echo "$as_me: failed program was:" >&5
  1869. sed 's/^/| /' conftest.$ac_ext >&5
  1870. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1871. See \`config.log' for more details." >&5
  1872. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1873. See \`config.log' for more details." >&2;}
  1874. { (exit 1); exit 1; }; }
  1875. fi
  1876. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1877. fi
  1878. { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1879. echo "${ECHO_T}$ac_cv_objext" >&6; }
  1880. OBJEXT=$ac_cv_objext
  1881. ac_objext=$OBJEXT
  1882. { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1883. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
  1884. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1885. echo $ECHO_N "(cached) $ECHO_C" >&6
  1886. else
  1887. cat >conftest.$ac_ext <<_ACEOF
  1888. /* confdefs.h. */
  1889. _ACEOF
  1890. cat confdefs.h >>conftest.$ac_ext
  1891. cat >>conftest.$ac_ext <<_ACEOF
  1892. /* end confdefs.h. */
  1893. int
  1894. main ()
  1895. {
  1896. #ifndef __GNUC__
  1897. choke me
  1898. #endif
  1899. ;
  1900. return 0;
  1901. }
  1902. _ACEOF
  1903. rm -f conftest.$ac_objext
  1904. if { (ac_try="$ac_compile"
  1905. case "(($ac_try" in
  1906. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1907. *) ac_try_echo=$ac_try;;
  1908. esac
  1909. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1910. (eval "$ac_compile") 2>conftest.er1
  1911. ac_status=$?
  1912. grep -v '^ *+' conftest.er1 >conftest.err
  1913. rm -f conftest.er1
  1914. cat conftest.err >&5
  1915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1916. (exit $ac_status); } && {
  1917. test -z "$ac_cxx_werror_flag" ||
  1918. test ! -s conftest.err
  1919. } && test -s conftest.$ac_objext; then
  1920. ac_compiler_gnu=yes
  1921. else
  1922. echo "$as_me: failed program was:" >&5
  1923. sed 's/^/| /' conftest.$ac_ext >&5
  1924. ac_compiler_gnu=no
  1925. fi
  1926. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1927. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1928. fi
  1929. { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1930. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
  1931. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1932. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1933. ac_save_CXXFLAGS=$CXXFLAGS
  1934. { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1935. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
  1936. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1937. echo $ECHO_N "(cached) $ECHO_C" >&6
  1938. else
  1939. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  1940. ac_cxx_werror_flag=yes
  1941. ac_cv_prog_cxx_g=no
  1942. CXXFLAGS="-g"
  1943. cat >conftest.$ac_ext <<_ACEOF
  1944. /* confdefs.h. */
  1945. _ACEOF
  1946. cat confdefs.h >>conftest.$ac_ext
  1947. cat >>conftest.$ac_ext <<_ACEOF
  1948. /* end confdefs.h. */
  1949. int
  1950. main ()
  1951. {
  1952. ;
  1953. return 0;
  1954. }
  1955. _ACEOF
  1956. rm -f conftest.$ac_objext
  1957. if { (ac_try="$ac_compile"
  1958. case "(($ac_try" in
  1959. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1960. *) ac_try_echo=$ac_try;;
  1961. esac
  1962. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1963. (eval "$ac_compile") 2>conftest.er1
  1964. ac_status=$?
  1965. grep -v '^ *+' conftest.er1 >conftest.err
  1966. rm -f conftest.er1
  1967. cat conftest.err >&5
  1968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1969. (exit $ac_status); } && {
  1970. test -z "$ac_cxx_werror_flag" ||
  1971. test ! -s conftest.err
  1972. } && test -s conftest.$ac_objext; then
  1973. ac_cv_prog_cxx_g=yes
  1974. else
  1975. echo "$as_me: failed program was:" >&5
  1976. sed 's/^/| /' conftest.$ac_ext >&5
  1977. CXXFLAGS=""
  1978. cat >conftest.$ac_ext <<_ACEOF
  1979. /* confdefs.h. */
  1980. _ACEOF
  1981. cat confdefs.h >>conftest.$ac_ext
  1982. cat >>conftest.$ac_ext <<_ACEOF
  1983. /* end confdefs.h. */
  1984. int
  1985. main ()
  1986. {
  1987. ;
  1988. return 0;
  1989. }
  1990. _ACEOF
  1991. rm -f conftest.$ac_objext
  1992. if { (ac_try="$ac_compile"
  1993. case "(($ac_try" in
  1994. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1995. *) ac_try_echo=$ac_try;;
  1996. esac
  1997. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  1998. (eval "$ac_compile") 2>conftest.er1
  1999. ac_status=$?
  2000. grep -v '^ *+' conftest.er1 >conftest.err
  2001. rm -f conftest.er1
  2002. cat conftest.err >&5
  2003. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2004. (exit $ac_status); } && {
  2005. test -z "$ac_cxx_werror_flag" ||
  2006. test ! -s conftest.err
  2007. } && test -s conftest.$ac_objext; then
  2008. :
  2009. else
  2010. echo "$as_me: failed program was:" >&5
  2011. sed 's/^/| /' conftest.$ac_ext >&5
  2012. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2013. CXXFLAGS="-g"
  2014. cat >conftest.$ac_ext <<_ACEOF
  2015. /* confdefs.h. */
  2016. _ACEOF
  2017. cat confdefs.h >>conftest.$ac_ext
  2018. cat >>conftest.$ac_ext <<_ACEOF
  2019. /* end confdefs.h. */
  2020. int
  2021. main ()
  2022. {
  2023. ;
  2024. return 0;
  2025. }
  2026. _ACEOF
  2027. rm -f conftest.$ac_objext
  2028. if { (ac_try="$ac_compile"
  2029. case "(($ac_try" in
  2030. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2031. *) ac_try_echo=$ac_try;;
  2032. esac
  2033. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2034. (eval "$ac_compile") 2>conftest.er1
  2035. ac_status=$?
  2036. grep -v '^ *+' conftest.er1 >conftest.err
  2037. rm -f conftest.er1
  2038. cat conftest.err >&5
  2039. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2040. (exit $ac_status); } && {
  2041. test -z "$ac_cxx_werror_flag" ||
  2042. test ! -s conftest.err
  2043. } && test -s conftest.$ac_objext; then
  2044. ac_cv_prog_cxx_g=yes
  2045. else
  2046. echo "$as_me: failed program was:" >&5
  2047. sed 's/^/| /' conftest.$ac_ext >&5
  2048. fi
  2049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2050. fi
  2051. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2052. fi
  2053. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2054. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  2055. fi
  2056. { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  2057. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
  2058. if test "$ac_test_CXXFLAGS" = set; then
  2059. CXXFLAGS=$ac_save_CXXFLAGS
  2060. elif test $ac_cv_prog_cxx_g = yes; then
  2061. if test "$GXX" = yes; then
  2062. CXXFLAGS="-g -O2"
  2063. else
  2064. CXXFLAGS="-g"
  2065. fi
  2066. else
  2067. if test "$GXX" = yes; then
  2068. CXXFLAGS="-O2"
  2069. else
  2070. CXXFLAGS=
  2071. fi
  2072. fi
  2073. ac_ext=cpp
  2074. ac_cpp='$CXXCPP $CPPFLAGS'
  2075. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2076. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2077. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2078. if test "${cross_compiling-x}" = "x"
  2079. then
  2080. cat << 'EOF' >&2
  2081. configure: error:
  2082. This system does not appear to have a working C compiler.
  2083. A working C compiler is required to compile Eggdrop.
  2084. EOF
  2085. exit 1
  2086. fi
  2087. if test -n "$GXX"; then
  2088. CXXFLAGS="$CXXFLAGS -O3"
  2089. fi
  2090. # Crazy machines
  2091. ac_ext=cpp
  2092. ac_cpp='$CXXCPP $CPPFLAGS'
  2093. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2094. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2095. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2096. { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  2097. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
  2098. if test -z "$CXXCPP"; then
  2099. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  2100. echo $ECHO_N "(cached) $ECHO_C" >&6
  2101. else
  2102. # Double quotes because CXXCPP needs to be expanded
  2103. for CXXCPP in "$CXX -E" "/lib/cpp"
  2104. do
  2105. ac_preproc_ok=false
  2106. for ac_cxx_preproc_warn_flag in '' yes
  2107. do
  2108. # Use a header file that comes with gcc, so configuring glibc
  2109. # with a fresh cross-compiler works.
  2110. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2111. # <limits.h> exists even on freestanding compilers.
  2112. # On the NeXT, cc -E runs the code through the compiler's parser,
  2113. # not just through cpp. "Syntax error" is here to catch this case.
  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. #ifdef __STDC__
  2121. # include <limits.h>
  2122. #else
  2123. # include <assert.h>
  2124. #endif
  2125. Syntax error
  2126. _ACEOF
  2127. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2128. case "(($ac_try" in
  2129. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2130. *) ac_try_echo=$ac_try;;
  2131. esac
  2132. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2133. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2134. ac_status=$?
  2135. grep -v '^ *+' conftest.er1 >conftest.err
  2136. rm -f conftest.er1
  2137. cat conftest.err >&5
  2138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2139. (exit $ac_status); } >/dev/null && {
  2140. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2141. test ! -s conftest.err
  2142. }; then
  2143. :
  2144. else
  2145. echo "$as_me: failed program was:" >&5
  2146. sed 's/^/| /' conftest.$ac_ext >&5
  2147. # Broken: fails on valid input.
  2148. continue
  2149. fi
  2150. rm -f conftest.err conftest.$ac_ext
  2151. # OK, works on sane cases. Now check whether nonexistent headers
  2152. # can be detected and how.
  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 <ac_nonexistent.h>
  2160. _ACEOF
  2161. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2162. case "(($ac_try" in
  2163. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2164. *) ac_try_echo=$ac_try;;
  2165. esac
  2166. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2167. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2168. ac_status=$?
  2169. grep -v '^ *+' conftest.er1 >conftest.err
  2170. rm -f conftest.er1
  2171. cat conftest.err >&5
  2172. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2173. (exit $ac_status); } >/dev/null && {
  2174. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2175. test ! -s conftest.err
  2176. }; then
  2177. # Broken: success on invalid input.
  2178. continue
  2179. else
  2180. echo "$as_me: failed program was:" >&5
  2181. sed 's/^/| /' conftest.$ac_ext >&5
  2182. # Passes both tests.
  2183. ac_preproc_ok=:
  2184. break
  2185. fi
  2186. rm -f conftest.err conftest.$ac_ext
  2187. done
  2188. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2189. rm -f conftest.err conftest.$ac_ext
  2190. if $ac_preproc_ok; then
  2191. break
  2192. fi
  2193. done
  2194. ac_cv_prog_CXXCPP=$CXXCPP
  2195. fi
  2196. CXXCPP=$ac_cv_prog_CXXCPP
  2197. else
  2198. ac_cv_prog_CXXCPP=$CXXCPP
  2199. fi
  2200. { echo "$as_me:$LINENO: result: $CXXCPP" >&5
  2201. echo "${ECHO_T}$CXXCPP" >&6; }
  2202. ac_preproc_ok=false
  2203. for ac_cxx_preproc_warn_flag in '' yes
  2204. do
  2205. # Use a header file that comes with gcc, so configuring glibc
  2206. # with a fresh cross-compiler works.
  2207. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2208. # <limits.h> exists even on freestanding compilers.
  2209. # On the NeXT, cc -E runs the code through the compiler's parser,
  2210. # not just through cpp. "Syntax error" is here to catch this case.
  2211. cat >conftest.$ac_ext <<_ACEOF
  2212. /* confdefs.h. */
  2213. _ACEOF
  2214. cat confdefs.h >>conftest.$ac_ext
  2215. cat >>conftest.$ac_ext <<_ACEOF
  2216. /* end confdefs.h. */
  2217. #ifdef __STDC__
  2218. # include <limits.h>
  2219. #else
  2220. # include <assert.h>
  2221. #endif
  2222. Syntax error
  2223. _ACEOF
  2224. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2225. case "(($ac_try" in
  2226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2227. *) ac_try_echo=$ac_try;;
  2228. esac
  2229. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2230. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2231. ac_status=$?
  2232. grep -v '^ *+' conftest.er1 >conftest.err
  2233. rm -f conftest.er1
  2234. cat conftest.err >&5
  2235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2236. (exit $ac_status); } >/dev/null && {
  2237. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2238. test ! -s conftest.err
  2239. }; then
  2240. :
  2241. else
  2242. echo "$as_me: failed program was:" >&5
  2243. sed 's/^/| /' conftest.$ac_ext >&5
  2244. # Broken: fails on valid input.
  2245. continue
  2246. fi
  2247. rm -f conftest.err conftest.$ac_ext
  2248. # OK, works on sane cases. Now check whether nonexistent headers
  2249. # can be detected and how.
  2250. cat >conftest.$ac_ext <<_ACEOF
  2251. /* confdefs.h. */
  2252. _ACEOF
  2253. cat confdefs.h >>conftest.$ac_ext
  2254. cat >>conftest.$ac_ext <<_ACEOF
  2255. /* end confdefs.h. */
  2256. #include <ac_nonexistent.h>
  2257. _ACEOF
  2258. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2259. case "(($ac_try" in
  2260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2261. *) ac_try_echo=$ac_try;;
  2262. esac
  2263. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2264. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2265. ac_status=$?
  2266. grep -v '^ *+' conftest.er1 >conftest.err
  2267. rm -f conftest.er1
  2268. cat conftest.err >&5
  2269. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2270. (exit $ac_status); } >/dev/null && {
  2271. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2272. test ! -s conftest.err
  2273. }; then
  2274. # Broken: success on invalid input.
  2275. continue
  2276. else
  2277. echo "$as_me: failed program was:" >&5
  2278. sed 's/^/| /' conftest.$ac_ext >&5
  2279. # Passes both tests.
  2280. ac_preproc_ok=:
  2281. break
  2282. fi
  2283. rm -f conftest.err conftest.$ac_ext
  2284. done
  2285. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2286. rm -f conftest.err conftest.$ac_ext
  2287. if $ac_preproc_ok; then
  2288. :
  2289. else
  2290. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2291. See \`config.log' for more details." >&5
  2292. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  2293. See \`config.log' for more details." >&2;}
  2294. { (exit 1); exit 1; }; }
  2295. fi
  2296. ac_ext=cpp
  2297. ac_cpp='$CXXCPP $CPPFLAGS'
  2298. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2299. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2300. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  2301. { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
  2302. echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
  2303. if test "${ac_cv_path_GREP+set}" = set; then
  2304. echo $ECHO_N "(cached) $ECHO_C" >&6
  2305. else
  2306. # Extract the first word of "grep ggrep" to use in msg output
  2307. if test -z "$GREP"; then
  2308. set dummy grep ggrep; ac_prog_name=$2
  2309. if test "${ac_cv_path_GREP+set}" = set; then
  2310. echo $ECHO_N "(cached) $ECHO_C" >&6
  2311. else
  2312. ac_path_GREP_found=false
  2313. # Loop through the user's path and test for each of PROGNAME-LIST
  2314. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2315. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2316. do
  2317. IFS=$as_save_IFS
  2318. test -z "$as_dir" && as_dir=.
  2319. for ac_prog in grep ggrep; do
  2320. for ac_exec_ext in '' $ac_executable_extensions; do
  2321. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  2322. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  2323. # Check for GNU ac_path_GREP and select it if it is found.
  2324. # Check for GNU $ac_path_GREP
  2325. case `"$ac_path_GREP" --version 2>&1` in
  2326. *GNU*)
  2327. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  2328. *)
  2329. ac_count=0
  2330. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2331. while :
  2332. do
  2333. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2334. mv "conftest.tmp" "conftest.in"
  2335. cp "conftest.in" "conftest.nl"
  2336. echo 'GREP' >> "conftest.nl"
  2337. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2338. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2339. ac_count=`expr $ac_count + 1`
  2340. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  2341. # Best one so far, save it but keep looking for a better one
  2342. ac_cv_path_GREP="$ac_path_GREP"
  2343. ac_path_GREP_max=$ac_count
  2344. fi
  2345. # 10*(2^10) chars as input seems more than enough
  2346. test $ac_count -gt 10 && break
  2347. done
  2348. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2349. esac
  2350. $ac_path_GREP_found && break 3
  2351. done
  2352. done
  2353. done
  2354. IFS=$as_save_IFS
  2355. fi
  2356. GREP="$ac_cv_path_GREP"
  2357. if test -z "$GREP"; then
  2358. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2359. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2360. { (exit 1); exit 1; }; }
  2361. fi
  2362. else
  2363. ac_cv_path_GREP=$GREP
  2364. fi
  2365. fi
  2366. { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
  2367. echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
  2368. GREP="$ac_cv_path_GREP"
  2369. { echo "$as_me:$LINENO: checking for egrep" >&5
  2370. echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
  2371. if test "${ac_cv_path_EGREP+set}" = set; then
  2372. echo $ECHO_N "(cached) $ECHO_C" >&6
  2373. else
  2374. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  2375. then ac_cv_path_EGREP="$GREP -E"
  2376. else
  2377. # Extract the first word of "egrep" to use in msg output
  2378. if test -z "$EGREP"; then
  2379. set dummy egrep; ac_prog_name=$2
  2380. if test "${ac_cv_path_EGREP+set}" = set; then
  2381. echo $ECHO_N "(cached) $ECHO_C" >&6
  2382. else
  2383. ac_path_EGREP_found=false
  2384. # Loop through the user's path and test for each of PROGNAME-LIST
  2385. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2386. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  2387. do
  2388. IFS=$as_save_IFS
  2389. test -z "$as_dir" && as_dir=.
  2390. for ac_prog in egrep; do
  2391. for ac_exec_ext in '' $ac_executable_extensions; do
  2392. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  2393. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  2394. # Check for GNU ac_path_EGREP and select it if it is found.
  2395. # Check for GNU $ac_path_EGREP
  2396. case `"$ac_path_EGREP" --version 2>&1` in
  2397. *GNU*)
  2398. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  2399. *)
  2400. ac_count=0
  2401. echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
  2402. while :
  2403. do
  2404. cat "conftest.in" "conftest.in" >"conftest.tmp"
  2405. mv "conftest.tmp" "conftest.in"
  2406. cp "conftest.in" "conftest.nl"
  2407. echo 'EGREP' >> "conftest.nl"
  2408. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  2409. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  2410. ac_count=`expr $ac_count + 1`
  2411. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  2412. # Best one so far, save it but keep looking for a better one
  2413. ac_cv_path_EGREP="$ac_path_EGREP"
  2414. ac_path_EGREP_max=$ac_count
  2415. fi
  2416. # 10*(2^10) chars as input seems more than enough
  2417. test $ac_count -gt 10 && break
  2418. done
  2419. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  2420. esac
  2421. $ac_path_EGREP_found && break 3
  2422. done
  2423. done
  2424. done
  2425. IFS=$as_save_IFS
  2426. fi
  2427. EGREP="$ac_cv_path_EGREP"
  2428. if test -z "$EGREP"; then
  2429. { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
  2430. echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
  2431. { (exit 1); exit 1; }; }
  2432. fi
  2433. else
  2434. ac_cv_path_EGREP=$EGREP
  2435. fi
  2436. fi
  2437. fi
  2438. { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
  2439. echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
  2440. EGREP="$ac_cv_path_EGREP"
  2441. { echo "$as_me:$LINENO: checking for AIX" >&5
  2442. echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
  2443. cat >conftest.$ac_ext <<_ACEOF
  2444. /* confdefs.h. */
  2445. _ACEOF
  2446. cat confdefs.h >>conftest.$ac_ext
  2447. cat >>conftest.$ac_ext <<_ACEOF
  2448. /* end confdefs.h. */
  2449. #ifdef _AIX
  2450. yes
  2451. #endif
  2452. _ACEOF
  2453. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2454. $EGREP "yes" >/dev/null 2>&1; then
  2455. { echo "$as_me:$LINENO: result: yes" >&5
  2456. echo "${ECHO_T}yes" >&6; }
  2457. cat >>confdefs.h <<\_ACEOF
  2458. #define _ALL_SOURCE 1
  2459. _ACEOF
  2460. else
  2461. { echo "$as_me:$LINENO: result: no" >&5
  2462. echo "${ECHO_T}no" >&6; }
  2463. fi
  2464. rm -f conftest*
  2465. { echo "$as_me:$LINENO: checking for library containing strerror" >&5
  2466. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
  2467. if test "${ac_cv_search_strerror+set}" = set; then
  2468. echo $ECHO_N "(cached) $ECHO_C" >&6
  2469. else
  2470. ac_func_search_save_LIBS=$LIBS
  2471. cat >conftest.$ac_ext <<_ACEOF
  2472. /* confdefs.h. */
  2473. _ACEOF
  2474. cat confdefs.h >>conftest.$ac_ext
  2475. cat >>conftest.$ac_ext <<_ACEOF
  2476. /* end confdefs.h. */
  2477. /* Override any GCC internal prototype to avoid an error.
  2478. Use char because int might match the return type of a GCC
  2479. builtin and then its argument prototype would still apply. */
  2480. #ifdef __cplusplus
  2481. extern "C"
  2482. #endif
  2483. char strerror ();
  2484. int
  2485. main ()
  2486. {
  2487. return strerror ();
  2488. ;
  2489. return 0;
  2490. }
  2491. _ACEOF
  2492. for ac_lib in '' cposix; do
  2493. if test -z "$ac_lib"; then
  2494. ac_res="none required"
  2495. else
  2496. ac_res=-l$ac_lib
  2497. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2498. fi
  2499. rm -f conftest.$ac_objext conftest$ac_exeext
  2500. if { (ac_try="$ac_link"
  2501. case "(($ac_try" in
  2502. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2503. *) ac_try_echo=$ac_try;;
  2504. esac
  2505. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2506. (eval "$ac_link") 2>conftest.er1
  2507. ac_status=$?
  2508. grep -v '^ *+' conftest.er1 >conftest.err
  2509. rm -f conftest.er1
  2510. cat conftest.err >&5
  2511. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2512. (exit $ac_status); } && {
  2513. test -z "$ac_cxx_werror_flag" ||
  2514. test ! -s conftest.err
  2515. } && test -s conftest$ac_exeext &&
  2516. $as_test_x conftest$ac_exeext; then
  2517. ac_cv_search_strerror=$ac_res
  2518. else
  2519. echo "$as_me: failed program was:" >&5
  2520. sed 's/^/| /' conftest.$ac_ext >&5
  2521. fi
  2522. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  2523. conftest$ac_exeext
  2524. if test "${ac_cv_search_strerror+set}" = set; then
  2525. break
  2526. fi
  2527. done
  2528. if test "${ac_cv_search_strerror+set}" = set; then
  2529. :
  2530. else
  2531. ac_cv_search_strerror=no
  2532. fi
  2533. rm conftest.$ac_ext
  2534. LIBS=$ac_func_search_save_LIBS
  2535. fi
  2536. { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2537. echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
  2538. ac_res=$ac_cv_search_strerror
  2539. if test "$ac_res" != no; then
  2540. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  2541. fi
  2542. { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2543. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
  2544. if test "${ac_cv_header_stdc+set}" = set; then
  2545. echo $ECHO_N "(cached) $ECHO_C" >&6
  2546. else
  2547. cat >conftest.$ac_ext <<_ACEOF
  2548. /* confdefs.h. */
  2549. _ACEOF
  2550. cat confdefs.h >>conftest.$ac_ext
  2551. cat >>conftest.$ac_ext <<_ACEOF
  2552. /* end confdefs.h. */
  2553. #include <stdlib.h>
  2554. #include <stdarg.h>
  2555. #include <string.h>
  2556. #include <float.h>
  2557. int
  2558. main ()
  2559. {
  2560. ;
  2561. return 0;
  2562. }
  2563. _ACEOF
  2564. rm -f conftest.$ac_objext
  2565. if { (ac_try="$ac_compile"
  2566. case "(($ac_try" in
  2567. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2568. *) ac_try_echo=$ac_try;;
  2569. esac
  2570. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2571. (eval "$ac_compile") 2>conftest.er1
  2572. ac_status=$?
  2573. grep -v '^ *+' conftest.er1 >conftest.err
  2574. rm -f conftest.er1
  2575. cat conftest.err >&5
  2576. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2577. (exit $ac_status); } && {
  2578. test -z "$ac_cxx_werror_flag" ||
  2579. test ! -s conftest.err
  2580. } && test -s conftest.$ac_objext; then
  2581. ac_cv_header_stdc=yes
  2582. else
  2583. echo "$as_me: failed program was:" >&5
  2584. sed 's/^/| /' conftest.$ac_ext >&5
  2585. ac_cv_header_stdc=no
  2586. fi
  2587. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2588. if test $ac_cv_header_stdc = yes; then
  2589. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2590. cat >conftest.$ac_ext <<_ACEOF
  2591. /* confdefs.h. */
  2592. _ACEOF
  2593. cat confdefs.h >>conftest.$ac_ext
  2594. cat >>conftest.$ac_ext <<_ACEOF
  2595. /* end confdefs.h. */
  2596. #include <string.h>
  2597. _ACEOF
  2598. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2599. $EGREP "memchr" >/dev/null 2>&1; then
  2600. :
  2601. else
  2602. ac_cv_header_stdc=no
  2603. fi
  2604. rm -f conftest*
  2605. fi
  2606. if test $ac_cv_header_stdc = yes; then
  2607. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2608. cat >conftest.$ac_ext <<_ACEOF
  2609. /* confdefs.h. */
  2610. _ACEOF
  2611. cat confdefs.h >>conftest.$ac_ext
  2612. cat >>conftest.$ac_ext <<_ACEOF
  2613. /* end confdefs.h. */
  2614. #include <stdlib.h>
  2615. _ACEOF
  2616. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2617. $EGREP "free" >/dev/null 2>&1; then
  2618. :
  2619. else
  2620. ac_cv_header_stdc=no
  2621. fi
  2622. rm -f conftest*
  2623. fi
  2624. if test $ac_cv_header_stdc = yes; then
  2625. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2626. if test "$cross_compiling" = yes; then
  2627. :
  2628. else
  2629. cat >conftest.$ac_ext <<_ACEOF
  2630. /* confdefs.h. */
  2631. _ACEOF
  2632. cat confdefs.h >>conftest.$ac_ext
  2633. cat >>conftest.$ac_ext <<_ACEOF
  2634. /* end confdefs.h. */
  2635. #include <ctype.h>
  2636. #include <stdlib.h>
  2637. #if ((' ' & 0x0FF) == 0x020)
  2638. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2639. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2640. #else
  2641. # define ISLOWER(c) \
  2642. (('a' <= (c) && (c) <= 'i') \
  2643. || ('j' <= (c) && (c) <= 'r') \
  2644. || ('s' <= (c) && (c) <= 'z'))
  2645. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2646. #endif
  2647. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2648. int
  2649. main ()
  2650. {
  2651. int i;
  2652. for (i = 0; i < 256; i++)
  2653. if (XOR (islower (i), ISLOWER (i))
  2654. || toupper (i) != TOUPPER (i))
  2655. return 2;
  2656. return 0;
  2657. }
  2658. _ACEOF
  2659. rm -f conftest$ac_exeext
  2660. if { (ac_try="$ac_link"
  2661. case "(($ac_try" in
  2662. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2663. *) ac_try_echo=$ac_try;;
  2664. esac
  2665. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2666. (eval "$ac_link") 2>&5
  2667. ac_status=$?
  2668. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2669. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2670. { (case "(($ac_try" in
  2671. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2672. *) ac_try_echo=$ac_try;;
  2673. esac
  2674. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2675. (eval "$ac_try") 2>&5
  2676. ac_status=$?
  2677. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2678. (exit $ac_status); }; }; then
  2679. :
  2680. else
  2681. echo "$as_me: program exited with status $ac_status" >&5
  2682. echo "$as_me: failed program was:" >&5
  2683. sed 's/^/| /' conftest.$ac_ext >&5
  2684. ( exit $ac_status )
  2685. ac_cv_header_stdc=no
  2686. fi
  2687. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2688. fi
  2689. fi
  2690. fi
  2691. { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2692. echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
  2693. if test $ac_cv_header_stdc = yes; then
  2694. cat >>confdefs.h <<\_ACEOF
  2695. #define STDC_HEADERS 1
  2696. _ACEOF
  2697. fi
  2698. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2699. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2700. inttypes.h stdint.h unistd.h
  2701. do
  2702. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2703. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  2704. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  2705. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  2706. echo $ECHO_N "(cached) $ECHO_C" >&6
  2707. else
  2708. cat >conftest.$ac_ext <<_ACEOF
  2709. /* confdefs.h. */
  2710. _ACEOF
  2711. cat confdefs.h >>conftest.$ac_ext
  2712. cat >>conftest.$ac_ext <<_ACEOF
  2713. /* end confdefs.h. */
  2714. $ac_includes_default
  2715. #include <$ac_header>
  2716. _ACEOF
  2717. rm -f conftest.$ac_objext
  2718. if { (ac_try="$ac_compile"
  2719. case "(($ac_try" in
  2720. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2721. *) ac_try_echo=$ac_try;;
  2722. esac
  2723. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2724. (eval "$ac_compile") 2>conftest.er1
  2725. ac_status=$?
  2726. grep -v '^ *+' conftest.er1 >conftest.err
  2727. rm -f conftest.er1
  2728. cat conftest.err >&5
  2729. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2730. (exit $ac_status); } && {
  2731. test -z "$ac_cxx_werror_flag" ||
  2732. test ! -s conftest.err
  2733. } && test -s conftest.$ac_objext; then
  2734. eval "$as_ac_Header=yes"
  2735. else
  2736. echo "$as_me: failed program was:" >&5
  2737. sed 's/^/| /' conftest.$ac_ext >&5
  2738. eval "$as_ac_Header=no"
  2739. fi
  2740. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2741. fi
  2742. ac_res=`eval echo '${'$as_ac_Header'}'`
  2743. { echo "$as_me:$LINENO: result: $ac_res" >&5
  2744. echo "${ECHO_T}$ac_res" >&6; }
  2745. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2746. cat >>confdefs.h <<_ACEOF
  2747. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2748. _ACEOF
  2749. fi
  2750. done
  2751. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2752. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2753. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  2754. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2755. echo $ECHO_N "(cached) $ECHO_C" >&6
  2756. fi
  2757. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2758. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  2759. else
  2760. # Is the header compilable?
  2761. { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2762. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
  2763. cat >conftest.$ac_ext <<_ACEOF
  2764. /* confdefs.h. */
  2765. _ACEOF
  2766. cat confdefs.h >>conftest.$ac_ext
  2767. cat >>conftest.$ac_ext <<_ACEOF
  2768. /* end confdefs.h. */
  2769. $ac_includes_default
  2770. #include <minix/config.h>
  2771. _ACEOF
  2772. rm -f conftest.$ac_objext
  2773. if { (ac_try="$ac_compile"
  2774. case "(($ac_try" in
  2775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2776. *) ac_try_echo=$ac_try;;
  2777. esac
  2778. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2779. (eval "$ac_compile") 2>conftest.er1
  2780. ac_status=$?
  2781. grep -v '^ *+' conftest.er1 >conftest.err
  2782. rm -f conftest.er1
  2783. cat conftest.err >&5
  2784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2785. (exit $ac_status); } && {
  2786. test -z "$ac_cxx_werror_flag" ||
  2787. test ! -s conftest.err
  2788. } && test -s conftest.$ac_objext; then
  2789. ac_header_compiler=yes
  2790. else
  2791. echo "$as_me: failed program was:" >&5
  2792. sed 's/^/| /' conftest.$ac_ext >&5
  2793. ac_header_compiler=no
  2794. fi
  2795. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2796. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2797. echo "${ECHO_T}$ac_header_compiler" >&6; }
  2798. # Is the header present?
  2799. { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2800. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
  2801. cat >conftest.$ac_ext <<_ACEOF
  2802. /* confdefs.h. */
  2803. _ACEOF
  2804. cat confdefs.h >>conftest.$ac_ext
  2805. cat >>conftest.$ac_ext <<_ACEOF
  2806. /* end confdefs.h. */
  2807. #include <minix/config.h>
  2808. _ACEOF
  2809. if { (ac_try="$ac_cpp conftest.$ac_ext"
  2810. case "(($ac_try" in
  2811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2812. *) ac_try_echo=$ac_try;;
  2813. esac
  2814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2815. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  2816. ac_status=$?
  2817. grep -v '^ *+' conftest.er1 >conftest.err
  2818. rm -f conftest.er1
  2819. cat conftest.err >&5
  2820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2821. (exit $ac_status); } >/dev/null && {
  2822. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2823. test ! -s conftest.err
  2824. }; then
  2825. ac_header_preproc=yes
  2826. else
  2827. echo "$as_me: failed program was:" >&5
  2828. sed 's/^/| /' conftest.$ac_ext >&5
  2829. ac_header_preproc=no
  2830. fi
  2831. rm -f conftest.err conftest.$ac_ext
  2832. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2833. echo "${ECHO_T}$ac_header_preproc" >&6; }
  2834. # So? What about this header?
  2835. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2836. yes:no: )
  2837. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2838. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2839. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2840. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2841. ac_header_preproc=yes
  2842. ;;
  2843. no:yes:* )
  2844. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2845. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2846. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2847. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2848. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2849. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2850. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2851. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2852. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2853. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2854. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2855. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2856. ;;
  2857. esac
  2858. { echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2859. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
  2860. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2861. echo $ECHO_N "(cached) $ECHO_C" >&6
  2862. else
  2863. ac_cv_header_minix_config_h=$ac_header_preproc
  2864. fi
  2865. { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2866. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
  2867. fi
  2868. if test $ac_cv_header_minix_config_h = yes; then
  2869. MINIX=yes
  2870. else
  2871. MINIX=
  2872. fi
  2873. if test "$MINIX" = yes; then
  2874. cat >>confdefs.h <<\_ACEOF
  2875. #define _POSIX_SOURCE 1
  2876. _ACEOF
  2877. cat >>confdefs.h <<\_ACEOF
  2878. #define _POSIX_1_SOURCE 2
  2879. _ACEOF
  2880. cat >>confdefs.h <<\_ACEOF
  2881. #define _MINIX 1
  2882. _ACEOF
  2883. fi
  2884. #checkpoint
  2885. cat >confcache <<\_ACEOF
  2886. # This file is a shell script that caches the results of configure
  2887. # tests run on this system so they can be shared between configure
  2888. # scripts and configure runs, see configure's option --config-cache.
  2889. # It is not useful on other systems. If it contains results you don't
  2890. # want to keep, you may remove or edit it.
  2891. #
  2892. # config.status only pays attention to the cache file if you give it
  2893. # the --recheck option to rerun configure.
  2894. #
  2895. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2896. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2897. # following values.
  2898. _ACEOF
  2899. # The following way of writing the cache mishandles newlines in values,
  2900. # but we know of no workaround that is simple, portable, and efficient.
  2901. # So, we kill variables containing newlines.
  2902. # Ultrix sh set writes to stderr and can't be redirected directly,
  2903. # and sets the high bit in the cache file unless we assign to the vars.
  2904. (
  2905. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  2906. eval ac_val=\$$ac_var
  2907. case $ac_val in #(
  2908. *${as_nl}*)
  2909. case $ac_var in #(
  2910. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  2911. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  2912. esac
  2913. case $ac_var in #(
  2914. _ | IFS | as_nl) ;; #(
  2915. *) $as_unset $ac_var ;;
  2916. esac ;;
  2917. esac
  2918. done
  2919. (set) 2>&1 |
  2920. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  2921. *${as_nl}ac_space=\ *)
  2922. # `set' does not quote correctly, so add quotes (double-quote
  2923. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2924. sed -n \
  2925. "s/'/'\\\\''/g;
  2926. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2927. ;; #(
  2928. *)
  2929. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2930. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2931. ;;
  2932. esac |
  2933. sort
  2934. ) |
  2935. sed '
  2936. /^ac_cv_env_/b end
  2937. t clear
  2938. :clear
  2939. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2940. t end
  2941. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2942. :end' >>confcache
  2943. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  2944. if test -w "$cache_file"; then
  2945. test "x$cache_file" != "x/dev/null" &&
  2946. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  2947. echo "$as_me: updating cache $cache_file" >&6;}
  2948. cat confcache >$cache_file
  2949. else
  2950. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  2951. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  2952. fi
  2953. fi
  2954. rm -f confcache
  2955. # Speedup compile
  2956. if test -n "$GXX" && test -z "$no_wall"; then
  2957. { echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  2958. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6; }
  2959. if test "${egg_cv_var_ccwall+set}" = set; then
  2960. echo $ECHO_N "(cached) $ECHO_C" >&6
  2961. else
  2962. ac_old_CXXFLAGS="$CXXFLAGS"
  2963. CXXFLAGS="$CXXFLAGS -Wall"
  2964. cat >conftest.$ac_ext <<_ACEOF
  2965. int main ()
  2966. {
  2967. return(0);
  2968. }
  2969. _ACEOF
  2970. rm -f conftest.$ac_objext
  2971. if { (ac_try="$ac_compile"
  2972. case "(($ac_try" in
  2973. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2974. *) ac_try_echo=$ac_try;;
  2975. esac
  2976. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  2977. (eval "$ac_compile") 2>conftest.er1
  2978. ac_status=$?
  2979. grep -v '^ *+' conftest.er1 >conftest.err
  2980. rm -f conftest.er1
  2981. cat conftest.err >&5
  2982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2983. (exit $ac_status); } && {
  2984. test -z "$ac_cxx_werror_flag" ||
  2985. test ! -s conftest.err
  2986. } && test -s conftest.$ac_objext; then
  2987. egg_cv_var_ccwall="yes"
  2988. else
  2989. echo "$as_me: failed program was:" >&5
  2990. sed 's/^/| /' conftest.$ac_ext >&5
  2991. egg_cv_var_ccwall="no"
  2992. fi
  2993. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2994. CXXFLAGS="$ac_old_CXXFLAGS"
  2995. fi
  2996. { echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  2997. echo "${ECHO_T}$egg_cv_var_ccwall" >&6; }
  2998. if test "$egg_cv_var_ccwall" = "yes"; then
  2999. CXXFLAGS="$CXXFLAGS -Wall"
  3000. fi
  3001. fi
  3002. if test -n "$GXX" && test -z "$no_pipe"; then
  3003. { echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  3004. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6; }
  3005. if test "${egg_cv_var_ccpipe+set}" = set; then
  3006. echo $ECHO_N "(cached) $ECHO_C" >&6
  3007. else
  3008. ac_old_CXX="$CXX"
  3009. CXX="$CXX -pipe"
  3010. cat >conftest.$ac_ext <<_ACEOF
  3011. int main ()
  3012. {
  3013. return(0);
  3014. }
  3015. _ACEOF
  3016. rm -f conftest.$ac_objext
  3017. if { (ac_try="$ac_compile"
  3018. case "(($ac_try" in
  3019. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3020. *) ac_try_echo=$ac_try;;
  3021. esac
  3022. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3023. (eval "$ac_compile") 2>conftest.er1
  3024. ac_status=$?
  3025. grep -v '^ *+' conftest.er1 >conftest.err
  3026. rm -f conftest.er1
  3027. cat conftest.err >&5
  3028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3029. (exit $ac_status); } && {
  3030. test -z "$ac_cxx_werror_flag" ||
  3031. test ! -s conftest.err
  3032. } && test -s conftest.$ac_objext; then
  3033. egg_cv_var_ccpipe="yes"
  3034. else
  3035. echo "$as_me: failed program was:" >&5
  3036. sed 's/^/| /' conftest.$ac_ext >&5
  3037. egg_cv_var_ccpipe="no"
  3038. fi
  3039. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3040. CXX="$ac_old_CXX"
  3041. fi
  3042. { echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  3043. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6; }
  3044. if test "$egg_cv_var_ccpipe" = "yes"; then
  3045. CXX="$CXX -pipe"
  3046. fi
  3047. fi
  3048. CCDEPMODE=gcc
  3049. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  3050. if test $num -ge "3"; then
  3051. CCDEPMODE=gcc3
  3052. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  3053. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wno-write-strings"
  3054. GCC3DEB="-Wno-disabled-optimization -Wmissing-format-attribute"
  3055. fi
  3056. #checkpoint
  3057. cat >confcache <<\_ACEOF
  3058. # This file is a shell script that caches the results of configure
  3059. # tests run on this system so they can be shared between configure
  3060. # scripts and configure runs, see configure's option --config-cache.
  3061. # It is not useful on other systems. If it contains results you don't
  3062. # want to keep, you may remove or edit it.
  3063. #
  3064. # config.status only pays attention to the cache file if you give it
  3065. # the --recheck option to rerun configure.
  3066. #
  3067. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3068. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3069. # following values.
  3070. _ACEOF
  3071. # The following way of writing the cache mishandles newlines in values,
  3072. # but we know of no workaround that is simple, portable, and efficient.
  3073. # So, we kill variables containing newlines.
  3074. # Ultrix sh set writes to stderr and can't be redirected directly,
  3075. # and sets the high bit in the cache file unless we assign to the vars.
  3076. (
  3077. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3078. eval ac_val=\$$ac_var
  3079. case $ac_val in #(
  3080. *${as_nl}*)
  3081. case $ac_var in #(
  3082. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3083. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3084. esac
  3085. case $ac_var in #(
  3086. _ | IFS | as_nl) ;; #(
  3087. *) $as_unset $ac_var ;;
  3088. esac ;;
  3089. esac
  3090. done
  3091. (set) 2>&1 |
  3092. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3093. *${as_nl}ac_space=\ *)
  3094. # `set' does not quote correctly, so add quotes (double-quote
  3095. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3096. sed -n \
  3097. "s/'/'\\\\''/g;
  3098. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3099. ;; #(
  3100. *)
  3101. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3102. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3103. ;;
  3104. esac |
  3105. sort
  3106. ) |
  3107. sed '
  3108. /^ac_cv_env_/b end
  3109. t clear
  3110. :clear
  3111. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3112. t end
  3113. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3114. :end' >>confcache
  3115. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3116. if test -w "$cache_file"; then
  3117. test "x$cache_file" != "x/dev/null" &&
  3118. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3119. echo "$as_me: updating cache $cache_file" >&6;}
  3120. cat confcache >$cache_file
  3121. else
  3122. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3123. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3124. fi
  3125. fi
  3126. rm -f confcache
  3127. # Checks for programs
  3128. { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  3129. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
  3130. set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  3131. if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
  3132. echo $ECHO_N "(cached) $ECHO_C" >&6
  3133. else
  3134. cat >conftest.make <<\_ACEOF
  3135. SHELL = /bin/sh
  3136. all:
  3137. @echo '@@@%%%=$(MAKE)=@@@%%%'
  3138. _ACEOF
  3139. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  3140. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  3141. *@@@%%%=?*=@@@%%%*)
  3142. eval ac_cv_prog_make_${ac_make}_set=yes;;
  3143. *)
  3144. eval ac_cv_prog_make_${ac_make}_set=no;;
  3145. esac
  3146. rm -f conftest.make
  3147. fi
  3148. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  3149. { echo "$as_me:$LINENO: result: yes" >&5
  3150. echo "${ECHO_T}yes" >&6; }
  3151. SET_MAKE=
  3152. else
  3153. { echo "$as_me:$LINENO: result: no" >&5
  3154. echo "${ECHO_T}no" >&6; }
  3155. SET_MAKE="MAKE=${MAKE-make}"
  3156. fi
  3157. cat << 'EOF' > conftest.head
  3158. a
  3159. b
  3160. c
  3161. EOF
  3162. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  3163. do
  3164. { echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  3165. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6; }
  3166. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  3167. echo $ECHO_N "(cached) $ECHO_C" >&6
  3168. else
  3169. if test -n "$HEAD_1"
  3170. then
  3171. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  3172. else
  3173. if test "`cat conftest.head | $ac_prog`" = "a";
  3174. then
  3175. { echo "$as_me:$LINENO: result: yes" >&5
  3176. echo "${ECHO_T}yes" >&6; }
  3177. ac_cv_prog_HEAD_1=$ac_prog
  3178. else
  3179. { echo "$as_me:$LINENO: result: no" >&5
  3180. echo "${ECHO_T}no" >&6; }
  3181. fi
  3182. fi
  3183. fi
  3184. test -n "$ac_cv_prog_HEAD_1" && break
  3185. done
  3186. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  3187. then
  3188. cat << 'EOF' >&2
  3189. configure: error:
  3190. This system seems to lack a working 'head -1' or 'head -n 1' command.
  3191. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  3192. EOF
  3193. exit 1
  3194. fi
  3195. rm -f conftest.head
  3196. HEAD_1=$ac_cv_prog_HEAD_1
  3197. # awk is needed for Tcl library and header checks, and eggdrop version subst
  3198. for ac_prog in gawk mawk nawk awk
  3199. do
  3200. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3201. set dummy $ac_prog; ac_word=$2
  3202. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3203. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3204. if test "${ac_cv_prog_AWK+set}" = set; then
  3205. echo $ECHO_N "(cached) $ECHO_C" >&6
  3206. else
  3207. if test -n "$AWK"; then
  3208. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  3209. else
  3210. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3211. for as_dir in $PATH
  3212. do
  3213. IFS=$as_save_IFS
  3214. test -z "$as_dir" && as_dir=.
  3215. for ac_exec_ext in '' $ac_executable_extensions; do
  3216. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3217. ac_cv_prog_AWK="$ac_prog"
  3218. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3219. break 2
  3220. fi
  3221. done
  3222. done
  3223. IFS=$as_save_IFS
  3224. fi
  3225. fi
  3226. AWK=$ac_cv_prog_AWK
  3227. if test -n "$AWK"; then
  3228. { echo "$as_me:$LINENO: result: $AWK" >&5
  3229. echo "${ECHO_T}$AWK" >&6; }
  3230. else
  3231. { echo "$as_me:$LINENO: result: no" >&5
  3232. echo "${ECHO_T}no" >&6; }
  3233. fi
  3234. test -n "$AWK" && break
  3235. done
  3236. if test "${AWK-x}" = "x"
  3237. then
  3238. cat << 'EOF' >&2
  3239. configure: error:
  3240. This system seems to lack a working 'awk' command.
  3241. A working 'awk' command is required to compile Eggdrop.
  3242. EOF
  3243. exit 1
  3244. fi
  3245. # basename is needed for Tcl library and header checks
  3246. # Extract the first word of "basename", so it can be a program name with args.
  3247. set dummy basename; ac_word=$2
  3248. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3249. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3250. if test "${ac_cv_prog_BASENAME+set}" = set; then
  3251. echo $ECHO_N "(cached) $ECHO_C" >&6
  3252. else
  3253. if test -n "$BASENAME"; then
  3254. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  3255. else
  3256. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3257. for as_dir in $PATH
  3258. do
  3259. IFS=$as_save_IFS
  3260. test -z "$as_dir" && as_dir=.
  3261. for ac_exec_ext in '' $ac_executable_extensions; do
  3262. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3263. ac_cv_prog_BASENAME="basename"
  3264. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3265. break 2
  3266. fi
  3267. done
  3268. done
  3269. IFS=$as_save_IFS
  3270. fi
  3271. fi
  3272. BASENAME=$ac_cv_prog_BASENAME
  3273. if test -n "$BASENAME"; then
  3274. { echo "$as_me:$LINENO: result: $BASENAME" >&5
  3275. echo "${ECHO_T}$BASENAME" >&6; }
  3276. else
  3277. { echo "$as_me:$LINENO: result: no" >&5
  3278. echo "${ECHO_T}no" >&6; }
  3279. fi
  3280. if test "${BASENAME-x}" = "x"
  3281. then
  3282. cat << 'EOF' >&2
  3283. configure: error:
  3284. This system seems to lack a working 'basename' command.
  3285. A working 'basename' command is required to compile Eggdrop.
  3286. EOF
  3287. exit 1
  3288. fi
  3289. # Extract the first word of "objcopy", so it can be a program name with args.
  3290. set dummy objcopy; ac_word=$2
  3291. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3292. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3293. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  3294. echo $ECHO_N "(cached) $ECHO_C" >&6
  3295. else
  3296. if test -n "$OBJCOPY"; then
  3297. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  3298. else
  3299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3300. for as_dir in $PATH
  3301. do
  3302. IFS=$as_save_IFS
  3303. test -z "$as_dir" && as_dir=.
  3304. for ac_exec_ext in '' $ac_executable_extensions; do
  3305. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3306. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  3307. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3308. break 2
  3309. fi
  3310. done
  3311. done
  3312. IFS=$as_save_IFS
  3313. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  3314. fi
  3315. fi
  3316. OBJCOPY=$ac_cv_prog_OBJCOPY
  3317. if test -n "$OBJCOPY"; then
  3318. { echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  3319. echo "${ECHO_T}$OBJCOPY" >&6; }
  3320. else
  3321. { echo "$as_me:$LINENO: result: no" >&5
  3322. echo "${ECHO_T}no" >&6; }
  3323. fi
  3324. # Extract the first word of "strip", so it can be a program name with args.
  3325. set dummy strip; ac_word=$2
  3326. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3327. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3328. if test "${ac_cv_prog_STRIP+set}" = set; then
  3329. echo $ECHO_N "(cached) $ECHO_C" >&6
  3330. else
  3331. if test -n "$STRIP"; then
  3332. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  3333. else
  3334. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3335. for as_dir in $PATH
  3336. do
  3337. IFS=$as_save_IFS
  3338. test -z "$as_dir" && as_dir=.
  3339. for ac_exec_ext in '' $ac_executable_extensions; do
  3340. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3341. ac_cv_prog_STRIP="strip"
  3342. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3343. break 2
  3344. fi
  3345. done
  3346. done
  3347. IFS=$as_save_IFS
  3348. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  3349. fi
  3350. fi
  3351. STRIP=$ac_cv_prog_STRIP
  3352. if test -n "$STRIP"; then
  3353. { echo "$as_me:$LINENO: result: $STRIP" >&5
  3354. echo "${ECHO_T}$STRIP" >&6; }
  3355. else
  3356. { echo "$as_me:$LINENO: result: no" >&5
  3357. echo "${ECHO_T}no" >&6; }
  3358. fi
  3359. # Extract the first word of "gdiff", so it can be a program name with args.
  3360. set dummy gdiff; ac_word=$2
  3361. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3362. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3363. if test "${ac_cv_prog_DIFF+set}" = set; then
  3364. echo $ECHO_N "(cached) $ECHO_C" >&6
  3365. else
  3366. if test -n "$DIFF"; then
  3367. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  3368. else
  3369. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3370. for as_dir in $PATH
  3371. do
  3372. IFS=$as_save_IFS
  3373. test -z "$as_dir" && as_dir=.
  3374. for ac_exec_ext in '' $ac_executable_extensions; do
  3375. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3376. ac_cv_prog_DIFF="gdiff"
  3377. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3378. break 2
  3379. fi
  3380. done
  3381. done
  3382. IFS=$as_save_IFS
  3383. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  3384. fi
  3385. fi
  3386. DIFF=$ac_cv_prog_DIFF
  3387. if test -n "$DIFF"; then
  3388. { echo "$as_me:$LINENO: result: $DIFF" >&5
  3389. echo "${ECHO_T}$DIFF" >&6; }
  3390. else
  3391. { echo "$as_me:$LINENO: result: no" >&5
  3392. echo "${ECHO_T}no" >&6; }
  3393. fi
  3394. # Extract the first word of "uname", so it can be a program name with args.
  3395. set dummy uname; ac_word=$2
  3396. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3397. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3398. if test "${ac_cv_prog_UNAME+set}" = set; then
  3399. echo $ECHO_N "(cached) $ECHO_C" >&6
  3400. else
  3401. if test -n "$UNAME"; then
  3402. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  3403. else
  3404. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3405. for as_dir in $PATH
  3406. do
  3407. IFS=$as_save_IFS
  3408. test -z "$as_dir" && as_dir=.
  3409. for ac_exec_ext in '' $ac_executable_extensions; do
  3410. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3411. ac_cv_prog_UNAME="uname"
  3412. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3413. break 2
  3414. fi
  3415. done
  3416. done
  3417. IFS=$as_save_IFS
  3418. fi
  3419. fi
  3420. UNAME=$ac_cv_prog_UNAME
  3421. if test -n "$UNAME"; then
  3422. { echo "$as_me:$LINENO: result: $UNAME" >&5
  3423. echo "${ECHO_T}$UNAME" >&6; }
  3424. else
  3425. { echo "$as_me:$LINENO: result: no" >&5
  3426. echo "${ECHO_T}no" >&6; }
  3427. fi
  3428. # Extract the first word of "ccache", so it can be a program name with args.
  3429. set dummy ccache; ac_word=$2
  3430. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3431. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3432. if test "${ac_cv_prog_CCACHE+set}" = set; then
  3433. echo $ECHO_N "(cached) $ECHO_C" >&6
  3434. else
  3435. if test -n "$CCACHE"; then
  3436. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  3437. else
  3438. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3439. for as_dir in $PATH
  3440. do
  3441. IFS=$as_save_IFS
  3442. test -z "$as_dir" && as_dir=.
  3443. for ac_exec_ext in '' $ac_executable_extensions; do
  3444. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3445. ac_cv_prog_CCACHE="ccache"
  3446. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3447. break 2
  3448. fi
  3449. done
  3450. done
  3451. IFS=$as_save_IFS
  3452. fi
  3453. fi
  3454. CCACHE=$ac_cv_prog_CCACHE
  3455. if test -n "$CCACHE"; then
  3456. { echo "$as_me:$LINENO: result: $CCACHE" >&5
  3457. echo "${ECHO_T}$CCACHE" >&6; }
  3458. else
  3459. { echo "$as_me:$LINENO: result: no" >&5
  3460. echo "${ECHO_T}no" >&6; }
  3461. fi
  3462. # Extract the first word of "distcc", so it can be a program name with args.
  3463. set dummy distcc; ac_word=$2
  3464. { echo "$as_me:$LINENO: checking for $ac_word" >&5
  3465. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
  3466. if test "${ac_cv_prog_DISTCC+set}" = set; then
  3467. echo $ECHO_N "(cached) $ECHO_C" >&6
  3468. else
  3469. if test -n "$DISTCC"; then
  3470. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  3471. else
  3472. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3473. for as_dir in $PATH
  3474. do
  3475. IFS=$as_save_IFS
  3476. test -z "$as_dir" && as_dir=.
  3477. for ac_exec_ext in '' $ac_executable_extensions; do
  3478. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  3479. ac_cv_prog_DISTCC="distcc"
  3480. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  3481. break 2
  3482. fi
  3483. done
  3484. done
  3485. IFS=$as_save_IFS
  3486. fi
  3487. fi
  3488. DISTCC=$ac_cv_prog_DISTCC
  3489. if test -n "$DISTCC"; then
  3490. { echo "$as_me:$LINENO: result: $DISTCC" >&5
  3491. echo "${ECHO_T}$DISTCC" >&6; }
  3492. else
  3493. { echo "$as_me:$LINENO: result: no" >&5
  3494. echo "${ECHO_T}no" >&6; }
  3495. fi
  3496. # Test the os and set the module linking settings
  3497. EGG_CYGWIN=no
  3498. { echo "$as_me:$LINENO: checking system type" >&5
  3499. echo $ECHO_N "checking system type... $ECHO_C" >&6; }
  3500. if test "${egg_cv_var_system_type+set}" = set; then
  3501. echo $ECHO_N "(cached) $ECHO_C" >&6
  3502. else
  3503. egg_cv_var_system_type=`$UNAME -s`
  3504. fi
  3505. { echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  3506. echo "${ECHO_T}$egg_cv_var_system_type" >&6; }
  3507. { echo "$as_me:$LINENO: checking system release" >&5
  3508. echo $ECHO_N "checking system release... $ECHO_C" >&6; }
  3509. if test "${egg_cv_var_system_release+set}" = set; then
  3510. echo $ECHO_N "(cached) $ECHO_C" >&6
  3511. else
  3512. egg_cv_var_system_release=`$UNAME -r`
  3513. fi
  3514. { echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3515. echo "${ECHO_T}$egg_cv_var_system_release" >&6; }
  3516. { echo "$as_me:$LINENO: checking system machine" >&5
  3517. echo $ECHO_N "checking system machine... $ECHO_C" >&6; }
  3518. if test "${egg_cv_var_system_machine+set}" = set; then
  3519. echo $ECHO_N "(cached) $ECHO_C" >&6
  3520. else
  3521. egg_cv_var_system_machine=`$UNAME -m`
  3522. fi
  3523. { echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3524. echo "${ECHO_T}$egg_cv_var_system_machine" >&6; }
  3525. BUILDOS="$egg_cv_var_system_type"
  3526. BUILDARCH="$egg_cv_var_system_machine"
  3527. case "$egg_cv_var_system_machine" in
  3528. i*)
  3529. CXX="$CXX -march=i486"
  3530. BUILDARCH="i486"
  3531. ;;
  3532. *)
  3533. ;;
  3534. esac
  3535. case "$egg_cv_var_system_type" in
  3536. BSD/OS)
  3537. ;;
  3538. CYGWI*)
  3539. { echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3540. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6; }
  3541. WIN32FLAGS=
  3542. cat >conftest.$ac_ext <<_ACEOF
  3543. /* confdefs.h. */
  3544. _ACEOF
  3545. cat confdefs.h >>conftest.$ac_ext
  3546. cat >>conftest.$ac_ext <<_ACEOF
  3547. /* end confdefs.h. */
  3548. int
  3549. main ()
  3550. {
  3551. #ifndef WIN32
  3552. # ifndef _WIN32
  3553. # error WIN32 or _WIN32 not defined
  3554. # endif
  3555. #endif
  3556. ;
  3557. return 0;
  3558. }
  3559. _ACEOF
  3560. rm -f conftest.$ac_objext
  3561. if { (ac_try="$ac_compile"
  3562. case "(($ac_try" in
  3563. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3564. *) ac_try_echo=$ac_try;;
  3565. esac
  3566. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3567. (eval "$ac_compile") 2>conftest.er1
  3568. ac_status=$?
  3569. grep -v '^ *+' conftest.er1 >conftest.err
  3570. rm -f conftest.er1
  3571. cat conftest.err >&5
  3572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3573. (exit $ac_status); } && {
  3574. test -z "$ac_cxx_werror_flag" ||
  3575. test ! -s conftest.err
  3576. } && test -s conftest.$ac_objext; then
  3577. { echo "$as_me:$LINENO: result: present by default" >&5
  3578. echo "${ECHO_T}present by default" >&6; }
  3579. else
  3580. echo "$as_me: failed program was:" >&5
  3581. sed 's/^/| /' conftest.$ac_ext >&5
  3582. ac_compile_save="$ac_compile"
  3583. save_CXX="$CXX"
  3584. ac_compile="$ac_compile -mwin32"
  3585. CXX="$CXX -mwin32"
  3586. cat >conftest.$ac_ext <<_ACEOF
  3587. /* confdefs.h. */
  3588. _ACEOF
  3589. cat confdefs.h >>conftest.$ac_ext
  3590. cat >>conftest.$ac_ext <<_ACEOF
  3591. /* end confdefs.h. */
  3592. int
  3593. main ()
  3594. {
  3595. #ifndef WIN32
  3596. # ifndef _WIN32
  3597. # error WIN32 or _WIN32 not defined
  3598. # endif
  3599. #endif
  3600. ;
  3601. return 0;
  3602. }
  3603. _ACEOF
  3604. rm -f conftest.$ac_objext
  3605. if { (ac_try="$ac_compile"
  3606. case "(($ac_try" in
  3607. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3608. *) ac_try_echo=$ac_try;;
  3609. esac
  3610. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3611. (eval "$ac_compile") 2>conftest.er1
  3612. ac_status=$?
  3613. grep -v '^ *+' conftest.er1 >conftest.err
  3614. rm -f conftest.er1
  3615. cat conftest.err >&5
  3616. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3617. (exit $ac_status); } && {
  3618. test -z "$ac_cxx_werror_flag" ||
  3619. test ! -s conftest.err
  3620. } && test -s conftest.$ac_objext; then
  3621. { echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3622. echo "${ECHO_T}found via -mwin32" >&6; }
  3623. ac_compile="$ac_compile_save"
  3624. CXX="$save_CXX"
  3625. WIN32FLAGS="-mwin32"
  3626. else
  3627. echo "$as_me: failed program was:" >&5
  3628. sed 's/^/| /' conftest.$ac_ext >&5
  3629. ac_compile="$ac_compile_save"
  3630. CXX="$save_CXX"
  3631. { echo "$as_me:$LINENO: result: not found" >&5
  3632. echo "${ECHO_T}not found" >&6; }
  3633. fi
  3634. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3635. fi
  3636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3637. CXX="$CXX $WIN32FLAGS"
  3638. EGG_CYGWIN="yes"
  3639. if test $EGG_CYGWIN = "yes"; then
  3640. { echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3641. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6; }
  3642. if test -r /usr/lib/binmode.o; then
  3643. { echo "$as_me:$LINENO: result: yes" >&5
  3644. echo "${ECHO_T}yes" >&6; }
  3645. LIBS="$LIBS /usr/lib/binmode.o"
  3646. else
  3647. { echo "$as_me:$LINENO: result: no" >&5
  3648. echo "${ECHO_T}no" >&6; }
  3649. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3650. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3651. fi
  3652. fi
  3653. cat >>confdefs.h <<\_ACEOF
  3654. #define CYGWIN_HACKS 1
  3655. _ACEOF
  3656. cat >>confdefs.h <<\_ACEOF
  3657. #define WIN32_LEAN_AND_MEAN 1
  3658. _ACEOF
  3659. ;;
  3660. IRIX)
  3661. ;;
  3662. HP-UX)
  3663. cat >>confdefs.h <<\_ACEOF
  3664. #define MD32_XARRAY 1
  3665. _ACEOF
  3666. ;;
  3667. Ultrix)
  3668. SHELL=/bin/sh5
  3669. ;;
  3670. SINIX*)
  3671. ;;
  3672. BeOS)
  3673. ;;
  3674. Linux)
  3675. ;;
  3676. Lynx)
  3677. ;;
  3678. QNX)
  3679. ;;
  3680. OSF1)
  3681. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3682. V*)
  3683. if test "$AWK" = "gawk"
  3684. then
  3685. AWK=awk
  3686. fi
  3687. ;;
  3688. 1.0|1.1|1.2)
  3689. cat >>confdefs.h <<\_ACEOF
  3690. #define OSF1_HACKS 1
  3691. _ACEOF
  3692. ;;
  3693. 1.*)
  3694. cat >>confdefs.h <<\_ACEOF
  3695. #define OSF1_HACKS 1
  3696. _ACEOF
  3697. ;;
  3698. *)
  3699. ;;
  3700. esac
  3701. cat >>confdefs.h <<\_ACEOF
  3702. #define STOP_UAC 1
  3703. _ACEOF
  3704. cat >>confdefs.h <<\_ACEOF
  3705. #define BROKEN_SNPRINTF 1
  3706. _ACEOF
  3707. ;;
  3708. SunOS)
  3709. SUNOS="yes"
  3710. ;;
  3711. *BSD)
  3712. # FreeBSD/OpenBSD/NetBSD
  3713. ;;
  3714. *)
  3715. { echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3716. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6; }
  3717. if test -r /mach
  3718. then
  3719. { echo "$as_me:$LINENO: result: yes" >&5
  3720. echo "${ECHO_T}yes" >&6; }
  3721. cat >>confdefs.h <<\_ACEOF
  3722. #define BORGCUBES 1
  3723. _ACEOF
  3724. else
  3725. { echo "$as_me:$LINENO: result: no" >&5
  3726. echo "${ECHO_T}no" >&6; }
  3727. { echo "$as_me:$LINENO: checking if system is QNX" >&5
  3728. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6; }
  3729. if test -r /cmds
  3730. then
  3731. { echo "$as_me:$LINENO: result: yes" >&5
  3732. echo "${ECHO_T}yes" >&6; }
  3733. else
  3734. { echo "$as_me:$LINENO: result: no" >&5
  3735. echo "${ECHO_T}no" >&6; }
  3736. { echo "$as_me:$LINENO: result: Something unknown!" >&5
  3737. echo "${ECHO_T}Something unknown!" >&6; }
  3738. { echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3739. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6; }
  3740. fi
  3741. fi
  3742. ;;
  3743. esac
  3744. # Check for IPv6 support
  3745. #EGG_IPV6_SUPPORTED
  3746. { echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  3747. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6; }
  3748. # Check whether --enable-ipv6 was given.
  3749. if test "${enable_ipv6+set}" = set; then
  3750. enableval=$enable_ipv6; ac_cv_dipv6="yes"
  3751. { echo "$as_me:$LINENO: result: yes" >&5
  3752. echo "${ECHO_T}yes" >&6; }
  3753. else
  3754. ac_cv_dipv6="no"
  3755. if test "$egg_cv_ipv6_supported" = "no"; then
  3756. ac_cv_dipv6="no"
  3757. fi
  3758. { echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  3759. echo "${ECHO_T}$ac_cv_dipv6" >&6; }
  3760. fi
  3761. if ! test "$EGG_CYGWIN" = "yes"; then
  3762. if test "$ac_cv_dipv6" = "no"; then
  3763. cat >>confdefs.h <<\_ACEOF
  3764. #define USE_IPV6 1
  3765. _ACEOF
  3766. fi
  3767. fi
  3768. { echo "$as_me:$LINENO: checking for socklen_t" >&5
  3769. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
  3770. if test "${egg_cv_socklen_t+set}" = set; then
  3771. echo $ECHO_N "(cached) $ECHO_C" >&6
  3772. else
  3773. if test "$cross_compiling" = yes; then
  3774. egg_cv_socklen_t=no
  3775. else
  3776. cat >conftest.$ac_ext <<_ACEOF
  3777. /* confdefs.h. */
  3778. _ACEOF
  3779. cat confdefs.h >>conftest.$ac_ext
  3780. cat >>conftest.$ac_ext <<_ACEOF
  3781. /* end confdefs.h. */
  3782. #include <unistd.h>
  3783. #include <sys/types.h>
  3784. #include <sys/socket.h>
  3785. #include <netinet/in.h>
  3786. #include <arpa/inet.h>
  3787. int main()
  3788. {
  3789. socklen_t test = sizeof(int);
  3790. return 0;
  3791. }
  3792. _ACEOF
  3793. rm -f conftest$ac_exeext
  3794. if { (ac_try="$ac_link"
  3795. case "(($ac_try" in
  3796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3797. *) ac_try_echo=$ac_try;;
  3798. esac
  3799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3800. (eval "$ac_link") 2>&5
  3801. ac_status=$?
  3802. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3803. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3804. { (case "(($ac_try" in
  3805. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3806. *) ac_try_echo=$ac_try;;
  3807. esac
  3808. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3809. (eval "$ac_try") 2>&5
  3810. ac_status=$?
  3811. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3812. (exit $ac_status); }; }; then
  3813. egg_cv_socklen_t=yes
  3814. else
  3815. echo "$as_me: program exited with status $ac_status" >&5
  3816. echo "$as_me: failed program was:" >&5
  3817. sed 's/^/| /' conftest.$ac_ext >&5
  3818. ( exit $ac_status )
  3819. egg_cv_socklen_t=no
  3820. fi
  3821. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3822. fi
  3823. fi
  3824. if test "$egg_cv_socklen_t" = "yes"; then
  3825. cat >>confdefs.h <<\_ACEOF
  3826. #define HAVE_SOCKLEN_T 1
  3827. _ACEOF
  3828. { echo "$as_me:$LINENO: result: yes" >&5
  3829. echo "${ECHO_T}yes" >&6; }
  3830. else
  3831. { echo "$as_me:$LINENO: result: no" >&5
  3832. echo "${ECHO_T}no" >&6; }
  3833. fi
  3834. # Check for inconsistent random() functions
  3835. { echo "$as_me:$LINENO: checking for random limit" >&5
  3836. echo $ECHO_N "checking for random limit... $ECHO_C" >&6; }
  3837. case "$egg_cv_var_system_type" in
  3838. SunOS) RMAX=0x7FFFFFFF
  3839. ;;
  3840. *) RMAX=RAND_MAX
  3841. ;;
  3842. esac
  3843. { echo "$as_me:$LINENO: result: $RMAX" >&5
  3844. echo "${ECHO_T}$RMAX" >&6; }
  3845. cat >>confdefs.h <<_ACEOF
  3846. #define RANDOM_MAX $RMAX
  3847. _ACEOF
  3848. # Create static binaries
  3849. if test -z "$no_static"
  3850. then
  3851. if test -n "$GXX"
  3852. then
  3853. { echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  3854. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6; }
  3855. if test "${egg_cv_var_ccstatic+set}" = set; then
  3856. echo $ECHO_N "(cached) $ECHO_C" >&6
  3857. else
  3858. ac_old_CXX="$CXX"
  3859. CXX="$CXX -static"
  3860. cat >conftest.$ac_ext <<_ACEOF
  3861. /* confdefs.h. */
  3862. _ACEOF
  3863. cat confdefs.h >>conftest.$ac_ext
  3864. cat >>conftest.$ac_ext <<_ACEOF
  3865. /* end confdefs.h. */
  3866. int
  3867. main ()
  3868. {
  3869. ;
  3870. return 0;
  3871. }
  3872. _ACEOF
  3873. rm -f conftest.$ac_objext
  3874. if { (ac_try="$ac_compile"
  3875. case "(($ac_try" in
  3876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3877. *) ac_try_echo=$ac_try;;
  3878. esac
  3879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  3880. (eval "$ac_compile") 2>conftest.er1
  3881. ac_status=$?
  3882. grep -v '^ *+' conftest.er1 >conftest.err
  3883. rm -f conftest.er1
  3884. cat conftest.err >&5
  3885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3886. (exit $ac_status); } && {
  3887. test -z "$ac_cxx_werror_flag" ||
  3888. test ! -s conftest.err
  3889. } && test -s conftest.$ac_objext; then
  3890. egg_cv_var_ccstatic="yes"
  3891. else
  3892. echo "$as_me: failed program was:" >&5
  3893. sed 's/^/| /' conftest.$ac_ext >&5
  3894. egg_cv_var_ccstatic="no"
  3895. fi
  3896. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3897. CXX="$ac_old_CXX"
  3898. fi
  3899. { echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  3900. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6; }
  3901. if test "$egg_cv_var_ccstatic" = "yes"
  3902. then
  3903. CCDEBUG="$CXX"
  3904. # CXX="$CXX -static"
  3905. else
  3906. cat << 'EOF' >&2
  3907. configure: error:
  3908. Your C compiler does not support -static.
  3909. This compile flag is required for the botpack.
  3910. EOF
  3911. exit 1
  3912. fi
  3913. fi
  3914. fi
  3915. #checkpoint
  3916. cat >confcache <<\_ACEOF
  3917. # This file is a shell script that caches the results of configure
  3918. # tests run on this system so they can be shared between configure
  3919. # scripts and configure runs, see configure's option --config-cache.
  3920. # It is not useful on other systems. If it contains results you don't
  3921. # want to keep, you may remove or edit it.
  3922. #
  3923. # config.status only pays attention to the cache file if you give it
  3924. # the --recheck option to rerun configure.
  3925. #
  3926. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3927. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3928. # following values.
  3929. _ACEOF
  3930. # The following way of writing the cache mishandles newlines in values,
  3931. # but we know of no workaround that is simple, portable, and efficient.
  3932. # So, we kill variables containing newlines.
  3933. # Ultrix sh set writes to stderr and can't be redirected directly,
  3934. # and sets the high bit in the cache file unless we assign to the vars.
  3935. (
  3936. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  3937. eval ac_val=\$$ac_var
  3938. case $ac_val in #(
  3939. *${as_nl}*)
  3940. case $ac_var in #(
  3941. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  3942. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  3943. esac
  3944. case $ac_var in #(
  3945. _ | IFS | as_nl) ;; #(
  3946. *) $as_unset $ac_var ;;
  3947. esac ;;
  3948. esac
  3949. done
  3950. (set) 2>&1 |
  3951. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  3952. *${as_nl}ac_space=\ *)
  3953. # `set' does not quote correctly, so add quotes (double-quote
  3954. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3955. sed -n \
  3956. "s/'/'\\\\''/g;
  3957. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3958. ;; #(
  3959. *)
  3960. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3961. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3962. ;;
  3963. esac |
  3964. sort
  3965. ) |
  3966. sed '
  3967. /^ac_cv_env_/b end
  3968. t clear
  3969. :clear
  3970. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3971. t end
  3972. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3973. :end' >>confcache
  3974. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  3975. if test -w "$cache_file"; then
  3976. test "x$cache_file" != "x/dev/null" &&
  3977. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  3978. echo "$as_me: updating cache $cache_file" >&6;}
  3979. cat confcache >$cache_file
  3980. else
  3981. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  3982. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  3983. fi
  3984. fi
  3985. rm -f confcache
  3986. # Checks for system libraries
  3987. { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3988. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
  3989. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3990. echo $ECHO_N "(cached) $ECHO_C" >&6
  3991. else
  3992. ac_check_lib_save_LIBS=$LIBS
  3993. LIBS="-lsocket $LIBS"
  3994. cat >conftest.$ac_ext <<_ACEOF
  3995. /* confdefs.h. */
  3996. _ACEOF
  3997. cat confdefs.h >>conftest.$ac_ext
  3998. cat >>conftest.$ac_ext <<_ACEOF
  3999. /* end confdefs.h. */
  4000. /* Override any GCC internal prototype to avoid an error.
  4001. Use char because int might match the return type of a GCC
  4002. builtin and then its argument prototype would still apply. */
  4003. #ifdef __cplusplus
  4004. extern "C"
  4005. #endif
  4006. char socket ();
  4007. int
  4008. main ()
  4009. {
  4010. return socket ();
  4011. ;
  4012. return 0;
  4013. }
  4014. _ACEOF
  4015. rm -f conftest.$ac_objext conftest$ac_exeext
  4016. if { (ac_try="$ac_link"
  4017. case "(($ac_try" in
  4018. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4019. *) ac_try_echo=$ac_try;;
  4020. esac
  4021. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4022. (eval "$ac_link") 2>conftest.er1
  4023. ac_status=$?
  4024. grep -v '^ *+' conftest.er1 >conftest.err
  4025. rm -f conftest.er1
  4026. cat conftest.err >&5
  4027. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4028. (exit $ac_status); } && {
  4029. test -z "$ac_cxx_werror_flag" ||
  4030. test ! -s conftest.err
  4031. } && test -s conftest$ac_exeext &&
  4032. $as_test_x conftest$ac_exeext; then
  4033. ac_cv_lib_socket_socket=yes
  4034. else
  4035. echo "$as_me: failed program was:" >&5
  4036. sed 's/^/| /' conftest.$ac_ext >&5
  4037. ac_cv_lib_socket_socket=no
  4038. fi
  4039. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4040. conftest$ac_exeext conftest.$ac_ext
  4041. LIBS=$ac_check_lib_save_LIBS
  4042. fi
  4043. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  4044. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
  4045. if test $ac_cv_lib_socket_socket = yes; then
  4046. cat >>confdefs.h <<_ACEOF
  4047. #define HAVE_LIBSOCKET 1
  4048. _ACEOF
  4049. LIBS="-lsocket $LIBS"
  4050. fi
  4051. # AC_CHECK_LIB(nsl, connect)
  4052. # AC_CHECK_LIB(dl, dlopen)
  4053. # AC_CHECK_LIB(nsl, gethostbyname)
  4054. # AC_CHECK_LIB(dns, gethostbyname)
  4055. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  4056. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  4057. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  4058. # This is needed for Tcl libraries compiled with thread support
  4059. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  4060. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4061. # ac_cv_lib_pthread="-lpthread"], [dnl
  4062. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  4063. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4064. # ac_cv_lib_pthread="-lpthread"], [dnl
  4065. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  4066. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4067. # ac_cv_lib_pthread="-lpthreads"], [dnl
  4068. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  4069. # ac_cv_lib_pthread_pthread_mutex_init=yes
  4070. # ac_cv_lib_pthread=""],
  4071. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  4072. if test "$SUNOS" = "yes"; then
  4073. # For suns without yp
  4074. { echo "$as_me:$LINENO: checking for main in -ldl" >&5
  4075. echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
  4076. if test "${ac_cv_lib_dl_main+set}" = set; then
  4077. echo $ECHO_N "(cached) $ECHO_C" >&6
  4078. else
  4079. ac_check_lib_save_LIBS=$LIBS
  4080. LIBS="-ldl $LIBS"
  4081. cat >conftest.$ac_ext <<_ACEOF
  4082. /* confdefs.h. */
  4083. _ACEOF
  4084. cat confdefs.h >>conftest.$ac_ext
  4085. cat >>conftest.$ac_ext <<_ACEOF
  4086. /* end confdefs.h. */
  4087. int
  4088. main ()
  4089. {
  4090. return main ();
  4091. ;
  4092. return 0;
  4093. }
  4094. _ACEOF
  4095. rm -f conftest.$ac_objext conftest$ac_exeext
  4096. if { (ac_try="$ac_link"
  4097. case "(($ac_try" in
  4098. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4099. *) ac_try_echo=$ac_try;;
  4100. esac
  4101. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4102. (eval "$ac_link") 2>conftest.er1
  4103. ac_status=$?
  4104. grep -v '^ *+' conftest.er1 >conftest.err
  4105. rm -f conftest.er1
  4106. cat conftest.err >&5
  4107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4108. (exit $ac_status); } && {
  4109. test -z "$ac_cxx_werror_flag" ||
  4110. test ! -s conftest.err
  4111. } && test -s conftest$ac_exeext &&
  4112. $as_test_x conftest$ac_exeext; then
  4113. ac_cv_lib_dl_main=yes
  4114. else
  4115. echo "$as_me: failed program was:" >&5
  4116. sed 's/^/| /' conftest.$ac_ext >&5
  4117. ac_cv_lib_dl_main=no
  4118. fi
  4119. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4120. conftest$ac_exeext conftest.$ac_ext
  4121. LIBS=$ac_check_lib_save_LIBS
  4122. fi
  4123. { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
  4124. echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
  4125. if test $ac_cv_lib_dl_main = yes; then
  4126. cat >>confdefs.h <<_ACEOF
  4127. #define HAVE_LIBDL 1
  4128. _ACEOF
  4129. LIBS="-ldl $LIBS"
  4130. fi
  4131. { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
  4132. echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
  4133. if test "${ac_cv_lib_socket_main+set}" = set; then
  4134. echo $ECHO_N "(cached) $ECHO_C" >&6
  4135. else
  4136. ac_check_lib_save_LIBS=$LIBS
  4137. LIBS="-lsocket $LIBS"
  4138. cat >conftest.$ac_ext <<_ACEOF
  4139. /* confdefs.h. */
  4140. _ACEOF
  4141. cat confdefs.h >>conftest.$ac_ext
  4142. cat >>conftest.$ac_ext <<_ACEOF
  4143. /* end confdefs.h. */
  4144. int
  4145. main ()
  4146. {
  4147. return main ();
  4148. ;
  4149. return 0;
  4150. }
  4151. _ACEOF
  4152. rm -f conftest.$ac_objext conftest$ac_exeext
  4153. if { (ac_try="$ac_link"
  4154. case "(($ac_try" in
  4155. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4156. *) ac_try_echo=$ac_try;;
  4157. esac
  4158. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4159. (eval "$ac_link") 2>conftest.er1
  4160. ac_status=$?
  4161. grep -v '^ *+' conftest.er1 >conftest.err
  4162. rm -f conftest.er1
  4163. cat conftest.err >&5
  4164. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4165. (exit $ac_status); } && {
  4166. test -z "$ac_cxx_werror_flag" ||
  4167. test ! -s conftest.err
  4168. } && test -s conftest$ac_exeext &&
  4169. $as_test_x conftest$ac_exeext; then
  4170. ac_cv_lib_socket_main=yes
  4171. else
  4172. echo "$as_me: failed program was:" >&5
  4173. sed 's/^/| /' conftest.$ac_ext >&5
  4174. ac_cv_lib_socket_main=no
  4175. fi
  4176. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4177. conftest$ac_exeext conftest.$ac_ext
  4178. LIBS=$ac_check_lib_save_LIBS
  4179. fi
  4180. { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
  4181. echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
  4182. if test $ac_cv_lib_socket_main = yes; then
  4183. cat >>confdefs.h <<_ACEOF
  4184. #define HAVE_LIBSOCKET 1
  4185. _ACEOF
  4186. LIBS="-lsocket $LIBS"
  4187. fi
  4188. { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
  4189. echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
  4190. if test "${ac_cv_lib_nsl_main+set}" = set; then
  4191. echo $ECHO_N "(cached) $ECHO_C" >&6
  4192. else
  4193. ac_check_lib_save_LIBS=$LIBS
  4194. LIBS="-lnsl $LIBS"
  4195. cat >conftest.$ac_ext <<_ACEOF
  4196. /* confdefs.h. */
  4197. _ACEOF
  4198. cat confdefs.h >>conftest.$ac_ext
  4199. cat >>conftest.$ac_ext <<_ACEOF
  4200. /* end confdefs.h. */
  4201. int
  4202. main ()
  4203. {
  4204. return main ();
  4205. ;
  4206. return 0;
  4207. }
  4208. _ACEOF
  4209. rm -f conftest.$ac_objext conftest$ac_exeext
  4210. if { (ac_try="$ac_link"
  4211. case "(($ac_try" in
  4212. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4213. *) ac_try_echo=$ac_try;;
  4214. esac
  4215. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4216. (eval "$ac_link") 2>conftest.er1
  4217. ac_status=$?
  4218. grep -v '^ *+' conftest.er1 >conftest.err
  4219. rm -f conftest.er1
  4220. cat conftest.err >&5
  4221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4222. (exit $ac_status); } && {
  4223. test -z "$ac_cxx_werror_flag" ||
  4224. test ! -s conftest.err
  4225. } && test -s conftest$ac_exeext &&
  4226. $as_test_x conftest$ac_exeext; then
  4227. ac_cv_lib_nsl_main=yes
  4228. else
  4229. echo "$as_me: failed program was:" >&5
  4230. sed 's/^/| /' conftest.$ac_ext >&5
  4231. ac_cv_lib_nsl_main=no
  4232. fi
  4233. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4234. conftest$ac_exeext conftest.$ac_ext
  4235. LIBS=$ac_check_lib_save_LIBS
  4236. fi
  4237. { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
  4238. echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
  4239. if test $ac_cv_lib_nsl_main = yes; then
  4240. cat >>confdefs.h <<_ACEOF
  4241. #define HAVE_LIBNSL 1
  4242. _ACEOF
  4243. LIBS="-lnsl $LIBS"
  4244. fi
  4245. fi
  4246. # Checks for header files
  4247. ac_header_dirent=no
  4248. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  4249. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  4250. { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  4251. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
  4252. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4253. echo $ECHO_N "(cached) $ECHO_C" >&6
  4254. else
  4255. cat >conftest.$ac_ext <<_ACEOF
  4256. /* confdefs.h. */
  4257. _ACEOF
  4258. cat confdefs.h >>conftest.$ac_ext
  4259. cat >>conftest.$ac_ext <<_ACEOF
  4260. /* end confdefs.h. */
  4261. #include <sys/types.h>
  4262. #include <$ac_hdr>
  4263. int
  4264. main ()
  4265. {
  4266. if ((DIR *) 0)
  4267. return 0;
  4268. ;
  4269. return 0;
  4270. }
  4271. _ACEOF
  4272. rm -f conftest.$ac_objext
  4273. if { (ac_try="$ac_compile"
  4274. case "(($ac_try" in
  4275. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4276. *) ac_try_echo=$ac_try;;
  4277. esac
  4278. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4279. (eval "$ac_compile") 2>conftest.er1
  4280. ac_status=$?
  4281. grep -v '^ *+' conftest.er1 >conftest.err
  4282. rm -f conftest.er1
  4283. cat conftest.err >&5
  4284. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4285. (exit $ac_status); } && {
  4286. test -z "$ac_cxx_werror_flag" ||
  4287. test ! -s conftest.err
  4288. } && test -s conftest.$ac_objext; then
  4289. eval "$as_ac_Header=yes"
  4290. else
  4291. echo "$as_me: failed program was:" >&5
  4292. sed 's/^/| /' conftest.$ac_ext >&5
  4293. eval "$as_ac_Header=no"
  4294. fi
  4295. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4296. fi
  4297. ac_res=`eval echo '${'$as_ac_Header'}'`
  4298. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4299. echo "${ECHO_T}$ac_res" >&6; }
  4300. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4301. cat >>confdefs.h <<_ACEOF
  4302. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  4303. _ACEOF
  4304. ac_header_dirent=$ac_hdr; break
  4305. fi
  4306. done
  4307. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  4308. if test $ac_header_dirent = dirent.h; then
  4309. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4310. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4311. if test "${ac_cv_search_opendir+set}" = set; then
  4312. echo $ECHO_N "(cached) $ECHO_C" >&6
  4313. else
  4314. ac_func_search_save_LIBS=$LIBS
  4315. cat >conftest.$ac_ext <<_ACEOF
  4316. /* confdefs.h. */
  4317. _ACEOF
  4318. cat confdefs.h >>conftest.$ac_ext
  4319. cat >>conftest.$ac_ext <<_ACEOF
  4320. /* end confdefs.h. */
  4321. /* Override any GCC internal prototype to avoid an error.
  4322. Use char because int might match the return type of a GCC
  4323. builtin and then its argument prototype would still apply. */
  4324. #ifdef __cplusplus
  4325. extern "C"
  4326. #endif
  4327. char opendir ();
  4328. int
  4329. main ()
  4330. {
  4331. return opendir ();
  4332. ;
  4333. return 0;
  4334. }
  4335. _ACEOF
  4336. for ac_lib in '' dir; do
  4337. if test -z "$ac_lib"; then
  4338. ac_res="none required"
  4339. else
  4340. ac_res=-l$ac_lib
  4341. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4342. fi
  4343. rm -f conftest.$ac_objext conftest$ac_exeext
  4344. if { (ac_try="$ac_link"
  4345. case "(($ac_try" in
  4346. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4347. *) ac_try_echo=$ac_try;;
  4348. esac
  4349. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4350. (eval "$ac_link") 2>conftest.er1
  4351. ac_status=$?
  4352. grep -v '^ *+' conftest.er1 >conftest.err
  4353. rm -f conftest.er1
  4354. cat conftest.err >&5
  4355. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4356. (exit $ac_status); } && {
  4357. test -z "$ac_cxx_werror_flag" ||
  4358. test ! -s conftest.err
  4359. } && test -s conftest$ac_exeext &&
  4360. $as_test_x conftest$ac_exeext; then
  4361. ac_cv_search_opendir=$ac_res
  4362. else
  4363. echo "$as_me: failed program was:" >&5
  4364. sed 's/^/| /' conftest.$ac_ext >&5
  4365. fi
  4366. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4367. conftest$ac_exeext
  4368. if test "${ac_cv_search_opendir+set}" = set; then
  4369. break
  4370. fi
  4371. done
  4372. if test "${ac_cv_search_opendir+set}" = set; then
  4373. :
  4374. else
  4375. ac_cv_search_opendir=no
  4376. fi
  4377. rm conftest.$ac_ext
  4378. LIBS=$ac_func_search_save_LIBS
  4379. fi
  4380. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4381. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4382. ac_res=$ac_cv_search_opendir
  4383. if test "$ac_res" != no; then
  4384. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4385. fi
  4386. else
  4387. { echo "$as_me:$LINENO: checking for library containing opendir" >&5
  4388. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
  4389. if test "${ac_cv_search_opendir+set}" = set; then
  4390. echo $ECHO_N "(cached) $ECHO_C" >&6
  4391. else
  4392. ac_func_search_save_LIBS=$LIBS
  4393. cat >conftest.$ac_ext <<_ACEOF
  4394. /* confdefs.h. */
  4395. _ACEOF
  4396. cat confdefs.h >>conftest.$ac_ext
  4397. cat >>conftest.$ac_ext <<_ACEOF
  4398. /* end confdefs.h. */
  4399. /* Override any GCC internal prototype to avoid an error.
  4400. Use char because int might match the return type of a GCC
  4401. builtin and then its argument prototype would still apply. */
  4402. #ifdef __cplusplus
  4403. extern "C"
  4404. #endif
  4405. char opendir ();
  4406. int
  4407. main ()
  4408. {
  4409. return opendir ();
  4410. ;
  4411. return 0;
  4412. }
  4413. _ACEOF
  4414. for ac_lib in '' x; do
  4415. if test -z "$ac_lib"; then
  4416. ac_res="none required"
  4417. else
  4418. ac_res=-l$ac_lib
  4419. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4420. fi
  4421. rm -f conftest.$ac_objext conftest$ac_exeext
  4422. if { (ac_try="$ac_link"
  4423. case "(($ac_try" in
  4424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4425. *) ac_try_echo=$ac_try;;
  4426. esac
  4427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4428. (eval "$ac_link") 2>conftest.er1
  4429. ac_status=$?
  4430. grep -v '^ *+' conftest.er1 >conftest.err
  4431. rm -f conftest.er1
  4432. cat conftest.err >&5
  4433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4434. (exit $ac_status); } && {
  4435. test -z "$ac_cxx_werror_flag" ||
  4436. test ! -s conftest.err
  4437. } && test -s conftest$ac_exeext &&
  4438. $as_test_x conftest$ac_exeext; then
  4439. ac_cv_search_opendir=$ac_res
  4440. else
  4441. echo "$as_me: failed program was:" >&5
  4442. sed 's/^/| /' conftest.$ac_ext >&5
  4443. fi
  4444. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  4445. conftest$ac_exeext
  4446. if test "${ac_cv_search_opendir+set}" = set; then
  4447. break
  4448. fi
  4449. done
  4450. if test "${ac_cv_search_opendir+set}" = set; then
  4451. :
  4452. else
  4453. ac_cv_search_opendir=no
  4454. fi
  4455. rm conftest.$ac_ext
  4456. LIBS=$ac_func_search_save_LIBS
  4457. fi
  4458. { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  4459. echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
  4460. ac_res=$ac_cv_search_opendir
  4461. if test "$ac_res" != no; then
  4462. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  4463. fi
  4464. fi
  4465. { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  4466. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
  4467. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  4468. echo $ECHO_N "(cached) $ECHO_C" >&6
  4469. else
  4470. cat >conftest.$ac_ext <<_ACEOF
  4471. /* confdefs.h. */
  4472. _ACEOF
  4473. cat confdefs.h >>conftest.$ac_ext
  4474. cat >>conftest.$ac_ext <<_ACEOF
  4475. /* end confdefs.h. */
  4476. #include <sys/types.h>
  4477. #include <sys/wait.h>
  4478. #ifndef WEXITSTATUS
  4479. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  4480. #endif
  4481. #ifndef WIFEXITED
  4482. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  4483. #endif
  4484. int
  4485. main ()
  4486. {
  4487. int s;
  4488. wait (&s);
  4489. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  4490. ;
  4491. return 0;
  4492. }
  4493. _ACEOF
  4494. rm -f conftest.$ac_objext
  4495. if { (ac_try="$ac_compile"
  4496. case "(($ac_try" in
  4497. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4498. *) ac_try_echo=$ac_try;;
  4499. esac
  4500. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4501. (eval "$ac_compile") 2>conftest.er1
  4502. ac_status=$?
  4503. grep -v '^ *+' conftest.er1 >conftest.err
  4504. rm -f conftest.er1
  4505. cat conftest.err >&5
  4506. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4507. (exit $ac_status); } && {
  4508. test -z "$ac_cxx_werror_flag" ||
  4509. test ! -s conftest.err
  4510. } && test -s conftest.$ac_objext; then
  4511. ac_cv_header_sys_wait_h=yes
  4512. else
  4513. echo "$as_me: failed program was:" >&5
  4514. sed 's/^/| /' conftest.$ac_ext >&5
  4515. ac_cv_header_sys_wait_h=no
  4516. fi
  4517. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4518. fi
  4519. { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  4520. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
  4521. if test $ac_cv_header_sys_wait_h = yes; then
  4522. cat >>confdefs.h <<\_ACEOF
  4523. #define HAVE_SYS_WAIT_H 1
  4524. _ACEOF
  4525. fi
  4526. { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  4527. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
  4528. if test "${ac_cv_header_time+set}" = set; then
  4529. echo $ECHO_N "(cached) $ECHO_C" >&6
  4530. else
  4531. cat >conftest.$ac_ext <<_ACEOF
  4532. /* confdefs.h. */
  4533. _ACEOF
  4534. cat confdefs.h >>conftest.$ac_ext
  4535. cat >>conftest.$ac_ext <<_ACEOF
  4536. /* end confdefs.h. */
  4537. #include <sys/types.h>
  4538. #include <sys/time.h>
  4539. #include <time.h>
  4540. int
  4541. main ()
  4542. {
  4543. if ((struct tm *) 0)
  4544. return 0;
  4545. ;
  4546. return 0;
  4547. }
  4548. _ACEOF
  4549. rm -f conftest.$ac_objext
  4550. if { (ac_try="$ac_compile"
  4551. case "(($ac_try" in
  4552. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4553. *) ac_try_echo=$ac_try;;
  4554. esac
  4555. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4556. (eval "$ac_compile") 2>conftest.er1
  4557. ac_status=$?
  4558. grep -v '^ *+' conftest.er1 >conftest.err
  4559. rm -f conftest.er1
  4560. cat conftest.err >&5
  4561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4562. (exit $ac_status); } && {
  4563. test -z "$ac_cxx_werror_flag" ||
  4564. test ! -s conftest.err
  4565. } && test -s conftest.$ac_objext; then
  4566. ac_cv_header_time=yes
  4567. else
  4568. echo "$as_me: failed program was:" >&5
  4569. sed 's/^/| /' conftest.$ac_ext >&5
  4570. ac_cv_header_time=no
  4571. fi
  4572. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4573. fi
  4574. { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4575. echo "${ECHO_T}$ac_cv_header_time" >&6; }
  4576. if test $ac_cv_header_time = yes; then
  4577. cat >>confdefs.h <<\_ACEOF
  4578. #define TIME_WITH_SYS_TIME 1
  4579. _ACEOF
  4580. fi
  4581. { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4582. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
  4583. if test "${ac_cv_header_stat_broken+set}" = set; then
  4584. echo $ECHO_N "(cached) $ECHO_C" >&6
  4585. else
  4586. cat >conftest.$ac_ext <<_ACEOF
  4587. /* confdefs.h. */
  4588. _ACEOF
  4589. cat confdefs.h >>conftest.$ac_ext
  4590. cat >>conftest.$ac_ext <<_ACEOF
  4591. /* end confdefs.h. */
  4592. #include <sys/types.h>
  4593. #include <sys/stat.h>
  4594. #if defined S_ISBLK && defined S_IFDIR
  4595. extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
  4596. #endif
  4597. #if defined S_ISBLK && defined S_IFCHR
  4598. extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
  4599. #endif
  4600. #if defined S_ISLNK && defined S_IFREG
  4601. extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
  4602. #endif
  4603. #if defined S_ISSOCK && defined S_IFREG
  4604. extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
  4605. #endif
  4606. _ACEOF
  4607. rm -f conftest.$ac_objext
  4608. if { (ac_try="$ac_compile"
  4609. case "(($ac_try" in
  4610. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4611. *) ac_try_echo=$ac_try;;
  4612. esac
  4613. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4614. (eval "$ac_compile") 2>conftest.er1
  4615. ac_status=$?
  4616. grep -v '^ *+' conftest.er1 >conftest.err
  4617. rm -f conftest.er1
  4618. cat conftest.err >&5
  4619. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4620. (exit $ac_status); } && {
  4621. test -z "$ac_cxx_werror_flag" ||
  4622. test ! -s conftest.err
  4623. } && test -s conftest.$ac_objext; then
  4624. ac_cv_header_stat_broken=no
  4625. else
  4626. echo "$as_me: failed program was:" >&5
  4627. sed 's/^/| /' conftest.$ac_ext >&5
  4628. ac_cv_header_stat_broken=yes
  4629. fi
  4630. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4631. fi
  4632. { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4633. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
  4634. if test $ac_cv_header_stat_broken = yes; then
  4635. cat >>confdefs.h <<\_ACEOF
  4636. #define STAT_MACROS_BROKEN 1
  4637. _ACEOF
  4638. fi
  4639. #checkpoint
  4640. cat >confcache <<\_ACEOF
  4641. # This file is a shell script that caches the results of configure
  4642. # tests run on this system so they can be shared between configure
  4643. # scripts and configure runs, see configure's option --config-cache.
  4644. # It is not useful on other systems. If it contains results you don't
  4645. # want to keep, you may remove or edit it.
  4646. #
  4647. # config.status only pays attention to the cache file if you give it
  4648. # the --recheck option to rerun configure.
  4649. #
  4650. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4651. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4652. # following values.
  4653. _ACEOF
  4654. # The following way of writing the cache mishandles newlines in values,
  4655. # but we know of no workaround that is simple, portable, and efficient.
  4656. # So, we kill variables containing newlines.
  4657. # Ultrix sh set writes to stderr and can't be redirected directly,
  4658. # and sets the high bit in the cache file unless we assign to the vars.
  4659. (
  4660. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4661. eval ac_val=\$$ac_var
  4662. case $ac_val in #(
  4663. *${as_nl}*)
  4664. case $ac_var in #(
  4665. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  4666. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  4667. esac
  4668. case $ac_var in #(
  4669. _ | IFS | as_nl) ;; #(
  4670. *) $as_unset $ac_var ;;
  4671. esac ;;
  4672. esac
  4673. done
  4674. (set) 2>&1 |
  4675. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  4676. *${as_nl}ac_space=\ *)
  4677. # `set' does not quote correctly, so add quotes (double-quote
  4678. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4679. sed -n \
  4680. "s/'/'\\\\''/g;
  4681. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4682. ;; #(
  4683. *)
  4684. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4685. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  4686. ;;
  4687. esac |
  4688. sort
  4689. ) |
  4690. sed '
  4691. /^ac_cv_env_/b end
  4692. t clear
  4693. :clear
  4694. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4695. t end
  4696. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4697. :end' >>confcache
  4698. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  4699. if test -w "$cache_file"; then
  4700. test "x$cache_file" != "x/dev/null" &&
  4701. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  4702. echo "$as_me: updating cache $cache_file" >&6;}
  4703. cat confcache >$cache_file
  4704. else
  4705. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  4706. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  4707. fi
  4708. fi
  4709. rm -f confcache
  4710. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4711. do
  4712. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4713. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4714. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4715. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4716. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4717. echo $ECHO_N "(cached) $ECHO_C" >&6
  4718. fi
  4719. ac_res=`eval echo '${'$as_ac_Header'}'`
  4720. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4721. echo "${ECHO_T}$ac_res" >&6; }
  4722. else
  4723. # Is the header compilable?
  4724. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4725. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4726. cat >conftest.$ac_ext <<_ACEOF
  4727. /* confdefs.h. */
  4728. _ACEOF
  4729. cat confdefs.h >>conftest.$ac_ext
  4730. cat >>conftest.$ac_ext <<_ACEOF
  4731. /* end confdefs.h. */
  4732. $ac_includes_default
  4733. #include <$ac_header>
  4734. _ACEOF
  4735. rm -f conftest.$ac_objext
  4736. if { (ac_try="$ac_compile"
  4737. case "(($ac_try" in
  4738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4739. *) ac_try_echo=$ac_try;;
  4740. esac
  4741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4742. (eval "$ac_compile") 2>conftest.er1
  4743. ac_status=$?
  4744. grep -v '^ *+' conftest.er1 >conftest.err
  4745. rm -f conftest.er1
  4746. cat conftest.err >&5
  4747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4748. (exit $ac_status); } && {
  4749. test -z "$ac_cxx_werror_flag" ||
  4750. test ! -s conftest.err
  4751. } && test -s conftest.$ac_objext; then
  4752. ac_header_compiler=yes
  4753. else
  4754. echo "$as_me: failed program was:" >&5
  4755. sed 's/^/| /' conftest.$ac_ext >&5
  4756. ac_header_compiler=no
  4757. fi
  4758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4759. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4760. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4761. # Is the header present?
  4762. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4763. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4764. cat >conftest.$ac_ext <<_ACEOF
  4765. /* confdefs.h. */
  4766. _ACEOF
  4767. cat confdefs.h >>conftest.$ac_ext
  4768. cat >>conftest.$ac_ext <<_ACEOF
  4769. /* end confdefs.h. */
  4770. #include <$ac_header>
  4771. _ACEOF
  4772. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4773. case "(($ac_try" in
  4774. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4775. *) ac_try_echo=$ac_try;;
  4776. esac
  4777. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4778. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4779. ac_status=$?
  4780. grep -v '^ *+' conftest.er1 >conftest.err
  4781. rm -f conftest.er1
  4782. cat conftest.err >&5
  4783. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4784. (exit $ac_status); } >/dev/null && {
  4785. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4786. test ! -s conftest.err
  4787. }; then
  4788. ac_header_preproc=yes
  4789. else
  4790. echo "$as_me: failed program was:" >&5
  4791. sed 's/^/| /' conftest.$ac_ext >&5
  4792. ac_header_preproc=no
  4793. fi
  4794. rm -f conftest.err conftest.$ac_ext
  4795. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4796. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4797. # So? What about this header?
  4798. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4799. yes:no: )
  4800. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4801. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4802. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4803. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4804. ac_header_preproc=yes
  4805. ;;
  4806. no:yes:* )
  4807. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4808. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4809. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4810. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4811. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4812. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4813. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4814. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4815. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4816. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4817. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4818. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4819. ;;
  4820. esac
  4821. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4822. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4823. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4824. echo $ECHO_N "(cached) $ECHO_C" >&6
  4825. else
  4826. eval "$as_ac_Header=\$ac_header_preproc"
  4827. fi
  4828. ac_res=`eval echo '${'$as_ac_Header'}'`
  4829. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4830. echo "${ECHO_T}$ac_res" >&6; }
  4831. fi
  4832. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4833. cat >>confdefs.h <<_ACEOF
  4834. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4835. _ACEOF
  4836. fi
  4837. done
  4838. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  4839. do
  4840. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4841. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4842. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4843. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4844. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4845. echo $ECHO_N "(cached) $ECHO_C" >&6
  4846. fi
  4847. ac_res=`eval echo '${'$as_ac_Header'}'`
  4848. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4849. echo "${ECHO_T}$ac_res" >&6; }
  4850. else
  4851. # Is the header compilable?
  4852. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4853. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  4854. cat >conftest.$ac_ext <<_ACEOF
  4855. /* confdefs.h. */
  4856. _ACEOF
  4857. cat confdefs.h >>conftest.$ac_ext
  4858. cat >>conftest.$ac_ext <<_ACEOF
  4859. /* end confdefs.h. */
  4860. $ac_includes_default
  4861. #include <$ac_header>
  4862. _ACEOF
  4863. rm -f conftest.$ac_objext
  4864. if { (ac_try="$ac_compile"
  4865. case "(($ac_try" in
  4866. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4867. *) ac_try_echo=$ac_try;;
  4868. esac
  4869. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4870. (eval "$ac_compile") 2>conftest.er1
  4871. ac_status=$?
  4872. grep -v '^ *+' conftest.er1 >conftest.err
  4873. rm -f conftest.er1
  4874. cat conftest.err >&5
  4875. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4876. (exit $ac_status); } && {
  4877. test -z "$ac_cxx_werror_flag" ||
  4878. test ! -s conftest.err
  4879. } && test -s conftest.$ac_objext; then
  4880. ac_header_compiler=yes
  4881. else
  4882. echo "$as_me: failed program was:" >&5
  4883. sed 's/^/| /' conftest.$ac_ext >&5
  4884. ac_header_compiler=no
  4885. fi
  4886. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4887. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4888. echo "${ECHO_T}$ac_header_compiler" >&6; }
  4889. # Is the header present?
  4890. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4891. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  4892. cat >conftest.$ac_ext <<_ACEOF
  4893. /* confdefs.h. */
  4894. _ACEOF
  4895. cat confdefs.h >>conftest.$ac_ext
  4896. cat >>conftest.$ac_ext <<_ACEOF
  4897. /* end confdefs.h. */
  4898. #include <$ac_header>
  4899. _ACEOF
  4900. if { (ac_try="$ac_cpp conftest.$ac_ext"
  4901. case "(($ac_try" in
  4902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4903. *) ac_try_echo=$ac_try;;
  4904. esac
  4905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  4906. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  4907. ac_status=$?
  4908. grep -v '^ *+' conftest.er1 >conftest.err
  4909. rm -f conftest.er1
  4910. cat conftest.err >&5
  4911. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4912. (exit $ac_status); } >/dev/null && {
  4913. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  4914. test ! -s conftest.err
  4915. }; then
  4916. ac_header_preproc=yes
  4917. else
  4918. echo "$as_me: failed program was:" >&5
  4919. sed 's/^/| /' conftest.$ac_ext >&5
  4920. ac_header_preproc=no
  4921. fi
  4922. rm -f conftest.err conftest.$ac_ext
  4923. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4924. echo "${ECHO_T}$ac_header_preproc" >&6; }
  4925. # So? What about this header?
  4926. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4927. yes:no: )
  4928. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4929. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4930. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4931. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4932. ac_header_preproc=yes
  4933. ;;
  4934. no:yes:* )
  4935. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4936. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4937. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4938. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4939. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4940. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4941. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4942. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4943. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4944. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4945. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4946. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4947. ;;
  4948. esac
  4949. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  4950. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  4951. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  4952. echo $ECHO_N "(cached) $ECHO_C" >&6
  4953. else
  4954. eval "$as_ac_Header=\$ac_header_preproc"
  4955. fi
  4956. ac_res=`eval echo '${'$as_ac_Header'}'`
  4957. { echo "$as_me:$LINENO: result: $ac_res" >&5
  4958. echo "${ECHO_T}$ac_res" >&6; }
  4959. fi
  4960. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4961. cat >>confdefs.h <<_ACEOF
  4962. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4963. _ACEOF
  4964. fi
  4965. done
  4966. #checkpoint
  4967. cat >confcache <<\_ACEOF
  4968. # This file is a shell script that caches the results of configure
  4969. # tests run on this system so they can be shared between configure
  4970. # scripts and configure runs, see configure's option --config-cache.
  4971. # It is not useful on other systems. If it contains results you don't
  4972. # want to keep, you may remove or edit it.
  4973. #
  4974. # config.status only pays attention to the cache file if you give it
  4975. # the --recheck option to rerun configure.
  4976. #
  4977. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4978. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4979. # following values.
  4980. _ACEOF
  4981. # The following way of writing the cache mishandles newlines in values,
  4982. # but we know of no workaround that is simple, portable, and efficient.
  4983. # So, we kill variables containing newlines.
  4984. # Ultrix sh set writes to stderr and can't be redirected directly,
  4985. # and sets the high bit in the cache file unless we assign to the vars.
  4986. (
  4987. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  4988. eval ac_val=\$$ac_var
  4989. case $ac_val in #(
  4990. *${as_nl}*)
  4991. case $ac_var in #(
  4992. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  4993. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  4994. esac
  4995. case $ac_var in #(
  4996. _ | IFS | as_nl) ;; #(
  4997. *) $as_unset $ac_var ;;
  4998. esac ;;
  4999. esac
  5000. done
  5001. (set) 2>&1 |
  5002. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5003. *${as_nl}ac_space=\ *)
  5004. # `set' does not quote correctly, so add quotes (double-quote
  5005. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5006. sed -n \
  5007. "s/'/'\\\\''/g;
  5008. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5009. ;; #(
  5010. *)
  5011. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5012. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5013. ;;
  5014. esac |
  5015. sort
  5016. ) |
  5017. sed '
  5018. /^ac_cv_env_/b end
  5019. t clear
  5020. :clear
  5021. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5022. t end
  5023. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5024. :end' >>confcache
  5025. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5026. if test -w "$cache_file"; then
  5027. test "x$cache_file" != "x/dev/null" &&
  5028. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5029. echo "$as_me: updating cache $cache_file" >&6;}
  5030. cat confcache >$cache_file
  5031. else
  5032. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5033. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5034. fi
  5035. fi
  5036. rm -f confcache
  5037. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  5038. #AC_CHECK_HEADERS(zlib.h)
  5039. #EGG_CHECK_ZLIB
  5040. #EGG_CHECK_SSL
  5041. #AC_SUBST(SSL)dnl
  5042. # Checks for typedefs, structures, and compiler characteristics
  5043. { echo "$as_me:$LINENO: checking for pid_t" >&5
  5044. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
  5045. if test "${ac_cv_type_pid_t+set}" = set; then
  5046. echo $ECHO_N "(cached) $ECHO_C" >&6
  5047. else
  5048. cat >conftest.$ac_ext <<_ACEOF
  5049. /* confdefs.h. */
  5050. _ACEOF
  5051. cat confdefs.h >>conftest.$ac_ext
  5052. cat >>conftest.$ac_ext <<_ACEOF
  5053. /* end confdefs.h. */
  5054. $ac_includes_default
  5055. typedef pid_t ac__type_new_;
  5056. int
  5057. main ()
  5058. {
  5059. if ((ac__type_new_ *) 0)
  5060. return 0;
  5061. if (sizeof (ac__type_new_))
  5062. return 0;
  5063. ;
  5064. return 0;
  5065. }
  5066. _ACEOF
  5067. rm -f conftest.$ac_objext
  5068. if { (ac_try="$ac_compile"
  5069. case "(($ac_try" in
  5070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5071. *) ac_try_echo=$ac_try;;
  5072. esac
  5073. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5074. (eval "$ac_compile") 2>conftest.er1
  5075. ac_status=$?
  5076. grep -v '^ *+' conftest.er1 >conftest.err
  5077. rm -f conftest.er1
  5078. cat conftest.err >&5
  5079. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5080. (exit $ac_status); } && {
  5081. test -z "$ac_cxx_werror_flag" ||
  5082. test ! -s conftest.err
  5083. } && test -s conftest.$ac_objext; then
  5084. ac_cv_type_pid_t=yes
  5085. else
  5086. echo "$as_me: failed program was:" >&5
  5087. sed 's/^/| /' conftest.$ac_ext >&5
  5088. ac_cv_type_pid_t=no
  5089. fi
  5090. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5091. fi
  5092. { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  5093. echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
  5094. if test $ac_cv_type_pid_t = yes; then
  5095. :
  5096. else
  5097. cat >>confdefs.h <<_ACEOF
  5098. #define pid_t int
  5099. _ACEOF
  5100. fi
  5101. { echo "$as_me:$LINENO: checking for size_t" >&5
  5102. echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
  5103. if test "${ac_cv_type_size_t+set}" = set; then
  5104. echo $ECHO_N "(cached) $ECHO_C" >&6
  5105. else
  5106. cat >conftest.$ac_ext <<_ACEOF
  5107. /* confdefs.h. */
  5108. _ACEOF
  5109. cat confdefs.h >>conftest.$ac_ext
  5110. cat >>conftest.$ac_ext <<_ACEOF
  5111. /* end confdefs.h. */
  5112. $ac_includes_default
  5113. typedef size_t ac__type_new_;
  5114. int
  5115. main ()
  5116. {
  5117. if ((ac__type_new_ *) 0)
  5118. return 0;
  5119. if (sizeof (ac__type_new_))
  5120. return 0;
  5121. ;
  5122. return 0;
  5123. }
  5124. _ACEOF
  5125. rm -f conftest.$ac_objext
  5126. if { (ac_try="$ac_compile"
  5127. case "(($ac_try" in
  5128. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5129. *) ac_try_echo=$ac_try;;
  5130. esac
  5131. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5132. (eval "$ac_compile") 2>conftest.er1
  5133. ac_status=$?
  5134. grep -v '^ *+' conftest.er1 >conftest.err
  5135. rm -f conftest.er1
  5136. cat conftest.err >&5
  5137. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5138. (exit $ac_status); } && {
  5139. test -z "$ac_cxx_werror_flag" ||
  5140. test ! -s conftest.err
  5141. } && test -s conftest.$ac_objext; then
  5142. ac_cv_type_size_t=yes
  5143. else
  5144. echo "$as_me: failed program was:" >&5
  5145. sed 's/^/| /' conftest.$ac_ext >&5
  5146. ac_cv_type_size_t=no
  5147. fi
  5148. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5149. fi
  5150. { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  5151. echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
  5152. if test $ac_cv_type_size_t = yes; then
  5153. :
  5154. else
  5155. cat >>confdefs.h <<_ACEOF
  5156. #define size_t unsigned int
  5157. _ACEOF
  5158. fi
  5159. { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  5160. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
  5161. if test "${ac_cv_type_uid_t+set}" = set; then
  5162. echo $ECHO_N "(cached) $ECHO_C" >&6
  5163. else
  5164. cat >conftest.$ac_ext <<_ACEOF
  5165. /* confdefs.h. */
  5166. _ACEOF
  5167. cat confdefs.h >>conftest.$ac_ext
  5168. cat >>conftest.$ac_ext <<_ACEOF
  5169. /* end confdefs.h. */
  5170. #include <sys/types.h>
  5171. _ACEOF
  5172. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  5173. $EGREP "uid_t" >/dev/null 2>&1; then
  5174. ac_cv_type_uid_t=yes
  5175. else
  5176. ac_cv_type_uid_t=no
  5177. fi
  5178. rm -f conftest*
  5179. fi
  5180. { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  5181. echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
  5182. if test $ac_cv_type_uid_t = no; then
  5183. cat >>confdefs.h <<\_ACEOF
  5184. #define uid_t int
  5185. _ACEOF
  5186. cat >>confdefs.h <<\_ACEOF
  5187. #define gid_t int
  5188. _ACEOF
  5189. fi
  5190. #AC_C_CONST
  5191. { echo "$as_me:$LINENO: checking for working volatile" >&5
  5192. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
  5193. if test "${ac_cv_c_volatile+set}" = set; then
  5194. echo $ECHO_N "(cached) $ECHO_C" >&6
  5195. else
  5196. cat >conftest.$ac_ext <<_ACEOF
  5197. /* confdefs.h. */
  5198. _ACEOF
  5199. cat confdefs.h >>conftest.$ac_ext
  5200. cat >>conftest.$ac_ext <<_ACEOF
  5201. /* end confdefs.h. */
  5202. int
  5203. main ()
  5204. {
  5205. volatile int x;
  5206. int * volatile y = (int *) 0;
  5207. return !x && !y;
  5208. ;
  5209. return 0;
  5210. }
  5211. _ACEOF
  5212. rm -f conftest.$ac_objext
  5213. if { (ac_try="$ac_compile"
  5214. case "(($ac_try" in
  5215. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5216. *) ac_try_echo=$ac_try;;
  5217. esac
  5218. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5219. (eval "$ac_compile") 2>conftest.er1
  5220. ac_status=$?
  5221. grep -v '^ *+' conftest.er1 >conftest.err
  5222. rm -f conftest.er1
  5223. cat conftest.err >&5
  5224. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5225. (exit $ac_status); } && {
  5226. test -z "$ac_cxx_werror_flag" ||
  5227. test ! -s conftest.err
  5228. } && test -s conftest.$ac_objext; then
  5229. ac_cv_c_volatile=yes
  5230. else
  5231. echo "$as_me: failed program was:" >&5
  5232. sed 's/^/| /' conftest.$ac_ext >&5
  5233. ac_cv_c_volatile=no
  5234. fi
  5235. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5236. fi
  5237. { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  5238. echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
  5239. if test $ac_cv_c_volatile = no; then
  5240. cat >>confdefs.h <<\_ACEOF
  5241. #define volatile
  5242. _ACEOF
  5243. fi
  5244. { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  5245. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
  5246. if test "${ac_cv_c_bigendian+set}" = set; then
  5247. echo $ECHO_N "(cached) $ECHO_C" >&6
  5248. else
  5249. # See if sys/param.h defines the BYTE_ORDER macro.
  5250. cat >conftest.$ac_ext <<_ACEOF
  5251. /* confdefs.h. */
  5252. _ACEOF
  5253. cat confdefs.h >>conftest.$ac_ext
  5254. cat >>conftest.$ac_ext <<_ACEOF
  5255. /* end confdefs.h. */
  5256. #include <sys/types.h>
  5257. #include <sys/param.h>
  5258. int
  5259. main ()
  5260. {
  5261. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
  5262. && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
  5263. bogus endian macros
  5264. #endif
  5265. ;
  5266. return 0;
  5267. }
  5268. _ACEOF
  5269. rm -f conftest.$ac_objext
  5270. if { (ac_try="$ac_compile"
  5271. case "(($ac_try" in
  5272. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5273. *) ac_try_echo=$ac_try;;
  5274. esac
  5275. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5276. (eval "$ac_compile") 2>conftest.er1
  5277. ac_status=$?
  5278. grep -v '^ *+' conftest.er1 >conftest.err
  5279. rm -f conftest.er1
  5280. cat conftest.err >&5
  5281. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5282. (exit $ac_status); } && {
  5283. test -z "$ac_cxx_werror_flag" ||
  5284. test ! -s conftest.err
  5285. } && test -s conftest.$ac_objext; then
  5286. # It does; now see whether it defined to BIG_ENDIAN or not.
  5287. cat >conftest.$ac_ext <<_ACEOF
  5288. /* confdefs.h. */
  5289. _ACEOF
  5290. cat confdefs.h >>conftest.$ac_ext
  5291. cat >>conftest.$ac_ext <<_ACEOF
  5292. /* end confdefs.h. */
  5293. #include <sys/types.h>
  5294. #include <sys/param.h>
  5295. int
  5296. main ()
  5297. {
  5298. #if BYTE_ORDER != BIG_ENDIAN
  5299. not big endian
  5300. #endif
  5301. ;
  5302. return 0;
  5303. }
  5304. _ACEOF
  5305. rm -f conftest.$ac_objext
  5306. if { (ac_try="$ac_compile"
  5307. case "(($ac_try" in
  5308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5309. *) ac_try_echo=$ac_try;;
  5310. esac
  5311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5312. (eval "$ac_compile") 2>conftest.er1
  5313. ac_status=$?
  5314. grep -v '^ *+' conftest.er1 >conftest.err
  5315. rm -f conftest.er1
  5316. cat conftest.err >&5
  5317. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5318. (exit $ac_status); } && {
  5319. test -z "$ac_cxx_werror_flag" ||
  5320. test ! -s conftest.err
  5321. } && test -s conftest.$ac_objext; then
  5322. ac_cv_c_bigendian=yes
  5323. else
  5324. echo "$as_me: failed program was:" >&5
  5325. sed 's/^/| /' conftest.$ac_ext >&5
  5326. ac_cv_c_bigendian=no
  5327. fi
  5328. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5329. else
  5330. echo "$as_me: failed program was:" >&5
  5331. sed 's/^/| /' conftest.$ac_ext >&5
  5332. # It does not; compile a test program.
  5333. if test "$cross_compiling" = yes; then
  5334. # try to guess the endianness by grepping values into an object file
  5335. ac_cv_c_bigendian=unknown
  5336. cat >conftest.$ac_ext <<_ACEOF
  5337. /* confdefs.h. */
  5338. _ACEOF
  5339. cat confdefs.h >>conftest.$ac_ext
  5340. cat >>conftest.$ac_ext <<_ACEOF
  5341. /* end confdefs.h. */
  5342. short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  5343. short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  5344. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  5345. short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  5346. short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  5347. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  5348. int
  5349. main ()
  5350. {
  5351. _ascii (); _ebcdic ();
  5352. ;
  5353. return 0;
  5354. }
  5355. _ACEOF
  5356. rm -f conftest.$ac_objext
  5357. if { (ac_try="$ac_compile"
  5358. case "(($ac_try" in
  5359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5360. *) ac_try_echo=$ac_try;;
  5361. esac
  5362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5363. (eval "$ac_compile") 2>conftest.er1
  5364. ac_status=$?
  5365. grep -v '^ *+' conftest.er1 >conftest.err
  5366. rm -f conftest.er1
  5367. cat conftest.err >&5
  5368. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5369. (exit $ac_status); } && {
  5370. test -z "$ac_cxx_werror_flag" ||
  5371. test ! -s conftest.err
  5372. } && test -s conftest.$ac_objext; then
  5373. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  5374. ac_cv_c_bigendian=yes
  5375. fi
  5376. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  5377. if test "$ac_cv_c_bigendian" = unknown; then
  5378. ac_cv_c_bigendian=no
  5379. else
  5380. # finding both strings is unlikely to happen, but who knows?
  5381. ac_cv_c_bigendian=unknown
  5382. fi
  5383. fi
  5384. else
  5385. echo "$as_me: failed program was:" >&5
  5386. sed 's/^/| /' conftest.$ac_ext >&5
  5387. fi
  5388. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5389. else
  5390. cat >conftest.$ac_ext <<_ACEOF
  5391. /* confdefs.h. */
  5392. _ACEOF
  5393. cat confdefs.h >>conftest.$ac_ext
  5394. cat >>conftest.$ac_ext <<_ACEOF
  5395. /* end confdefs.h. */
  5396. $ac_includes_default
  5397. int
  5398. main ()
  5399. {
  5400. /* Are we little or big endian? From Harbison&Steele. */
  5401. union
  5402. {
  5403. long int l;
  5404. char c[sizeof (long int)];
  5405. } u;
  5406. u.l = 1;
  5407. return u.c[sizeof (long int) - 1] == 1;
  5408. ;
  5409. return 0;
  5410. }
  5411. _ACEOF
  5412. rm -f conftest$ac_exeext
  5413. if { (ac_try="$ac_link"
  5414. case "(($ac_try" in
  5415. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5416. *) ac_try_echo=$ac_try;;
  5417. esac
  5418. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5419. (eval "$ac_link") 2>&5
  5420. ac_status=$?
  5421. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5422. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5423. { (case "(($ac_try" in
  5424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5425. *) ac_try_echo=$ac_try;;
  5426. esac
  5427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5428. (eval "$ac_try") 2>&5
  5429. ac_status=$?
  5430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5431. (exit $ac_status); }; }; then
  5432. ac_cv_c_bigendian=no
  5433. else
  5434. echo "$as_me: program exited with status $ac_status" >&5
  5435. echo "$as_me: failed program was:" >&5
  5436. sed 's/^/| /' conftest.$ac_ext >&5
  5437. ( exit $ac_status )
  5438. ac_cv_c_bigendian=yes
  5439. fi
  5440. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5441. fi
  5442. fi
  5443. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5444. fi
  5445. { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  5446. echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
  5447. case $ac_cv_c_bigendian in
  5448. yes)
  5449. cat >>confdefs.h <<\_ACEOF
  5450. #define B_ENDIAN 1
  5451. _ACEOF
  5452. ;;
  5453. no)
  5454. cat >>confdefs.h <<\_ACEOF
  5455. #define L_ENDIAN 1
  5456. _ACEOF
  5457. ;;
  5458. *)
  5459. { { echo "$as_me:$LINENO: error: unknown endianness
  5460. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  5461. echo "$as_me: error: unknown endianness
  5462. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  5463. { (exit 1); exit 1; }; } ;;
  5464. esac
  5465. #AC_C_INLINE
  5466. { echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  5467. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6; }
  5468. if test "${ac_cv_c_char_unsigned+set}" = set; then
  5469. echo $ECHO_N "(cached) $ECHO_C" >&6
  5470. else
  5471. cat >conftest.$ac_ext <<_ACEOF
  5472. /* confdefs.h. */
  5473. _ACEOF
  5474. cat confdefs.h >>conftest.$ac_ext
  5475. cat >>conftest.$ac_ext <<_ACEOF
  5476. /* end confdefs.h. */
  5477. $ac_includes_default
  5478. int
  5479. main ()
  5480. {
  5481. static int test_array [1 - 2 * !(((char) -1) < 0)];
  5482. test_array [0] = 0
  5483. ;
  5484. return 0;
  5485. }
  5486. _ACEOF
  5487. rm -f conftest.$ac_objext
  5488. if { (ac_try="$ac_compile"
  5489. case "(($ac_try" in
  5490. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5491. *) ac_try_echo=$ac_try;;
  5492. esac
  5493. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5494. (eval "$ac_compile") 2>conftest.er1
  5495. ac_status=$?
  5496. grep -v '^ *+' conftest.er1 >conftest.err
  5497. rm -f conftest.er1
  5498. cat conftest.err >&5
  5499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5500. (exit $ac_status); } && {
  5501. test -z "$ac_cxx_werror_flag" ||
  5502. test ! -s conftest.err
  5503. } && test -s conftest.$ac_objext; then
  5504. ac_cv_c_char_unsigned=no
  5505. else
  5506. echo "$as_me: failed program was:" >&5
  5507. sed 's/^/| /' conftest.$ac_ext >&5
  5508. ac_cv_c_char_unsigned=yes
  5509. fi
  5510. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5511. fi
  5512. { echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  5513. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6; }
  5514. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  5515. cat >>confdefs.h <<\_ACEOF
  5516. #define __CHAR_UNSIGNED__ 1
  5517. _ACEOF
  5518. fi
  5519. #AC_C_STRINGIZE
  5520. #AC_C_PROTOTYPES
  5521. #checkpoint
  5522. cat >confcache <<\_ACEOF
  5523. # This file is a shell script that caches the results of configure
  5524. # tests run on this system so they can be shared between configure
  5525. # scripts and configure runs, see configure's option --config-cache.
  5526. # It is not useful on other systems. If it contains results you don't
  5527. # want to keep, you may remove or edit it.
  5528. #
  5529. # config.status only pays attention to the cache file if you give it
  5530. # the --recheck option to rerun configure.
  5531. #
  5532. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5533. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5534. # following values.
  5535. _ACEOF
  5536. # The following way of writing the cache mishandles newlines in values,
  5537. # but we know of no workaround that is simple, portable, and efficient.
  5538. # So, we kill variables containing newlines.
  5539. # Ultrix sh set writes to stderr and can't be redirected directly,
  5540. # and sets the high bit in the cache file unless we assign to the vars.
  5541. (
  5542. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  5543. eval ac_val=\$$ac_var
  5544. case $ac_val in #(
  5545. *${as_nl}*)
  5546. case $ac_var in #(
  5547. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  5548. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  5549. esac
  5550. case $ac_var in #(
  5551. _ | IFS | as_nl) ;; #(
  5552. *) $as_unset $ac_var ;;
  5553. esac ;;
  5554. esac
  5555. done
  5556. (set) 2>&1 |
  5557. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  5558. *${as_nl}ac_space=\ *)
  5559. # `set' does not quote correctly, so add quotes (double-quote
  5560. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5561. sed -n \
  5562. "s/'/'\\\\''/g;
  5563. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5564. ;; #(
  5565. *)
  5566. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5567. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  5568. ;;
  5569. esac |
  5570. sort
  5571. ) |
  5572. sed '
  5573. /^ac_cv_env_/b end
  5574. t clear
  5575. :clear
  5576. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5577. t end
  5578. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5579. :end' >>confcache
  5580. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  5581. if test -w "$cache_file"; then
  5582. test "x$cache_file" != "x/dev/null" &&
  5583. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  5584. echo "$as_me: updating cache $cache_file" >&6;}
  5585. cat confcache >$cache_file
  5586. else
  5587. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  5588. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  5589. fi
  5590. fi
  5591. rm -f confcache
  5592. { echo "$as_me:$LINENO: checking for int" >&5
  5593. echo $ECHO_N "checking for int... $ECHO_C" >&6; }
  5594. if test "${ac_cv_type_int+set}" = set; then
  5595. echo $ECHO_N "(cached) $ECHO_C" >&6
  5596. else
  5597. cat >conftest.$ac_ext <<_ACEOF
  5598. /* confdefs.h. */
  5599. _ACEOF
  5600. cat confdefs.h >>conftest.$ac_ext
  5601. cat >>conftest.$ac_ext <<_ACEOF
  5602. /* end confdefs.h. */
  5603. $ac_includes_default
  5604. typedef int ac__type_new_;
  5605. int
  5606. main ()
  5607. {
  5608. if ((ac__type_new_ *) 0)
  5609. return 0;
  5610. if (sizeof (ac__type_new_))
  5611. return 0;
  5612. ;
  5613. return 0;
  5614. }
  5615. _ACEOF
  5616. rm -f conftest.$ac_objext
  5617. if { (ac_try="$ac_compile"
  5618. case "(($ac_try" in
  5619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5620. *) ac_try_echo=$ac_try;;
  5621. esac
  5622. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5623. (eval "$ac_compile") 2>conftest.er1
  5624. ac_status=$?
  5625. grep -v '^ *+' conftest.er1 >conftest.err
  5626. rm -f conftest.er1
  5627. cat conftest.err >&5
  5628. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5629. (exit $ac_status); } && {
  5630. test -z "$ac_cxx_werror_flag" ||
  5631. test ! -s conftest.err
  5632. } && test -s conftest.$ac_objext; then
  5633. ac_cv_type_int=yes
  5634. else
  5635. echo "$as_me: failed program was:" >&5
  5636. sed 's/^/| /' conftest.$ac_ext >&5
  5637. ac_cv_type_int=no
  5638. fi
  5639. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5640. fi
  5641. { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  5642. echo "${ECHO_T}$ac_cv_type_int" >&6; }
  5643. # The cast to long int works around a bug in the HP C Compiler
  5644. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5645. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5646. # This bug is HP SR number 8606223364.
  5647. { echo "$as_me:$LINENO: checking size of int" >&5
  5648. echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
  5649. if test "${ac_cv_sizeof_int+set}" = set; then
  5650. echo $ECHO_N "(cached) $ECHO_C" >&6
  5651. else
  5652. if test "$cross_compiling" = yes; then
  5653. # Depending upon the size, compute the lo and hi bounds.
  5654. cat >conftest.$ac_ext <<_ACEOF
  5655. /* confdefs.h. */
  5656. _ACEOF
  5657. cat confdefs.h >>conftest.$ac_ext
  5658. cat >>conftest.$ac_ext <<_ACEOF
  5659. /* end confdefs.h. */
  5660. $ac_includes_default
  5661. typedef int ac__type_sizeof_;
  5662. int
  5663. main ()
  5664. {
  5665. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  5666. test_array [0] = 0
  5667. ;
  5668. return 0;
  5669. }
  5670. _ACEOF
  5671. rm -f conftest.$ac_objext
  5672. if { (ac_try="$ac_compile"
  5673. case "(($ac_try" in
  5674. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5675. *) ac_try_echo=$ac_try;;
  5676. esac
  5677. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5678. (eval "$ac_compile") 2>conftest.er1
  5679. ac_status=$?
  5680. grep -v '^ *+' conftest.er1 >conftest.err
  5681. rm -f conftest.er1
  5682. cat conftest.err >&5
  5683. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5684. (exit $ac_status); } && {
  5685. test -z "$ac_cxx_werror_flag" ||
  5686. test ! -s conftest.err
  5687. } && test -s conftest.$ac_objext; then
  5688. ac_lo=0 ac_mid=0
  5689. while :; do
  5690. cat >conftest.$ac_ext <<_ACEOF
  5691. /* confdefs.h. */
  5692. _ACEOF
  5693. cat confdefs.h >>conftest.$ac_ext
  5694. cat >>conftest.$ac_ext <<_ACEOF
  5695. /* end confdefs.h. */
  5696. $ac_includes_default
  5697. typedef int ac__type_sizeof_;
  5698. int
  5699. main ()
  5700. {
  5701. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5702. test_array [0] = 0
  5703. ;
  5704. return 0;
  5705. }
  5706. _ACEOF
  5707. rm -f conftest.$ac_objext
  5708. if { (ac_try="$ac_compile"
  5709. case "(($ac_try" in
  5710. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5711. *) ac_try_echo=$ac_try;;
  5712. esac
  5713. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5714. (eval "$ac_compile") 2>conftest.er1
  5715. ac_status=$?
  5716. grep -v '^ *+' conftest.er1 >conftest.err
  5717. rm -f conftest.er1
  5718. cat conftest.err >&5
  5719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5720. (exit $ac_status); } && {
  5721. test -z "$ac_cxx_werror_flag" ||
  5722. test ! -s conftest.err
  5723. } && test -s conftest.$ac_objext; then
  5724. ac_hi=$ac_mid; break
  5725. else
  5726. echo "$as_me: failed program was:" >&5
  5727. sed 's/^/| /' conftest.$ac_ext >&5
  5728. ac_lo=`expr $ac_mid + 1`
  5729. if test $ac_lo -le $ac_mid; then
  5730. ac_lo= ac_hi=
  5731. break
  5732. fi
  5733. ac_mid=`expr 2 '*' $ac_mid + 1`
  5734. fi
  5735. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5736. done
  5737. else
  5738. echo "$as_me: failed program was:" >&5
  5739. sed 's/^/| /' conftest.$ac_ext >&5
  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. typedef int ac__type_sizeof_;
  5748. int
  5749. main ()
  5750. {
  5751. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  5752. test_array [0] = 0
  5753. ;
  5754. return 0;
  5755. }
  5756. _ACEOF
  5757. rm -f conftest.$ac_objext
  5758. if { (ac_try="$ac_compile"
  5759. case "(($ac_try" in
  5760. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5761. *) ac_try_echo=$ac_try;;
  5762. esac
  5763. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5764. (eval "$ac_compile") 2>conftest.er1
  5765. ac_status=$?
  5766. grep -v '^ *+' conftest.er1 >conftest.err
  5767. rm -f conftest.er1
  5768. cat conftest.err >&5
  5769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5770. (exit $ac_status); } && {
  5771. test -z "$ac_cxx_werror_flag" ||
  5772. test ! -s conftest.err
  5773. } && test -s conftest.$ac_objext; then
  5774. ac_hi=-1 ac_mid=-1
  5775. while :; do
  5776. cat >conftest.$ac_ext <<_ACEOF
  5777. /* confdefs.h. */
  5778. _ACEOF
  5779. cat confdefs.h >>conftest.$ac_ext
  5780. cat >>conftest.$ac_ext <<_ACEOF
  5781. /* end confdefs.h. */
  5782. $ac_includes_default
  5783. typedef int ac__type_sizeof_;
  5784. int
  5785. main ()
  5786. {
  5787. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  5788. test_array [0] = 0
  5789. ;
  5790. return 0;
  5791. }
  5792. _ACEOF
  5793. rm -f conftest.$ac_objext
  5794. if { (ac_try="$ac_compile"
  5795. case "(($ac_try" in
  5796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5797. *) ac_try_echo=$ac_try;;
  5798. esac
  5799. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5800. (eval "$ac_compile") 2>conftest.er1
  5801. ac_status=$?
  5802. grep -v '^ *+' conftest.er1 >conftest.err
  5803. rm -f conftest.er1
  5804. cat conftest.err >&5
  5805. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5806. (exit $ac_status); } && {
  5807. test -z "$ac_cxx_werror_flag" ||
  5808. test ! -s conftest.err
  5809. } && test -s conftest.$ac_objext; then
  5810. ac_lo=$ac_mid; break
  5811. else
  5812. echo "$as_me: failed program was:" >&5
  5813. sed 's/^/| /' conftest.$ac_ext >&5
  5814. ac_hi=`expr '(' $ac_mid ')' - 1`
  5815. if test $ac_mid -le $ac_hi; then
  5816. ac_lo= ac_hi=
  5817. break
  5818. fi
  5819. ac_mid=`expr 2 '*' $ac_mid`
  5820. fi
  5821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5822. done
  5823. else
  5824. echo "$as_me: failed program was:" >&5
  5825. sed 's/^/| /' conftest.$ac_ext >&5
  5826. ac_lo= ac_hi=
  5827. fi
  5828. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5829. fi
  5830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5831. # Binary search between lo and hi bounds.
  5832. while test "x$ac_lo" != "x$ac_hi"; do
  5833. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5834. cat >conftest.$ac_ext <<_ACEOF
  5835. /* confdefs.h. */
  5836. _ACEOF
  5837. cat confdefs.h >>conftest.$ac_ext
  5838. cat >>conftest.$ac_ext <<_ACEOF
  5839. /* end confdefs.h. */
  5840. $ac_includes_default
  5841. typedef int ac__type_sizeof_;
  5842. int
  5843. main ()
  5844. {
  5845. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  5846. test_array [0] = 0
  5847. ;
  5848. return 0;
  5849. }
  5850. _ACEOF
  5851. rm -f conftest.$ac_objext
  5852. if { (ac_try="$ac_compile"
  5853. case "(($ac_try" in
  5854. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5855. *) ac_try_echo=$ac_try;;
  5856. esac
  5857. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5858. (eval "$ac_compile") 2>conftest.er1
  5859. ac_status=$?
  5860. grep -v '^ *+' conftest.er1 >conftest.err
  5861. rm -f conftest.er1
  5862. cat conftest.err >&5
  5863. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5864. (exit $ac_status); } && {
  5865. test -z "$ac_cxx_werror_flag" ||
  5866. test ! -s conftest.err
  5867. } && test -s conftest.$ac_objext; then
  5868. ac_hi=$ac_mid
  5869. else
  5870. echo "$as_me: failed program was:" >&5
  5871. sed 's/^/| /' conftest.$ac_ext >&5
  5872. ac_lo=`expr '(' $ac_mid ')' + 1`
  5873. fi
  5874. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5875. done
  5876. case $ac_lo in
  5877. ?*) ac_cv_sizeof_int=$ac_lo;;
  5878. '') if test "$ac_cv_type_int" = yes; then
  5879. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  5880. See \`config.log' for more details." >&5
  5881. echo "$as_me: error: cannot compute sizeof (int)
  5882. See \`config.log' for more details." >&2;}
  5883. { (exit 77); exit 77; }; }
  5884. else
  5885. ac_cv_sizeof_int=0
  5886. fi ;;
  5887. esac
  5888. else
  5889. cat >conftest.$ac_ext <<_ACEOF
  5890. /* confdefs.h. */
  5891. _ACEOF
  5892. cat confdefs.h >>conftest.$ac_ext
  5893. cat >>conftest.$ac_ext <<_ACEOF
  5894. /* end confdefs.h. */
  5895. $ac_includes_default
  5896. typedef int ac__type_sizeof_;
  5897. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5898. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  5899. #include <stdio.h>
  5900. #include <stdlib.h>
  5901. int
  5902. main ()
  5903. {
  5904. FILE *f = fopen ("conftest.val", "w");
  5905. if (! f)
  5906. return 1;
  5907. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  5908. {
  5909. long int i = longval ();
  5910. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5911. return 1;
  5912. fprintf (f, "%ld\n", i);
  5913. }
  5914. else
  5915. {
  5916. unsigned long int i = ulongval ();
  5917. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  5918. return 1;
  5919. fprintf (f, "%lu\n", i);
  5920. }
  5921. return ferror (f) || fclose (f) != 0;
  5922. ;
  5923. return 0;
  5924. }
  5925. _ACEOF
  5926. rm -f conftest$ac_exeext
  5927. if { (ac_try="$ac_link"
  5928. case "(($ac_try" in
  5929. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5930. *) ac_try_echo=$ac_try;;
  5931. esac
  5932. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5933. (eval "$ac_link") 2>&5
  5934. ac_status=$?
  5935. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5936. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5937. { (case "(($ac_try" in
  5938. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5939. *) ac_try_echo=$ac_try;;
  5940. esac
  5941. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  5942. (eval "$ac_try") 2>&5
  5943. ac_status=$?
  5944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5945. (exit $ac_status); }; }; then
  5946. ac_cv_sizeof_int=`cat conftest.val`
  5947. else
  5948. echo "$as_me: program exited with status $ac_status" >&5
  5949. echo "$as_me: failed program was:" >&5
  5950. sed 's/^/| /' conftest.$ac_ext >&5
  5951. ( exit $ac_status )
  5952. if test "$ac_cv_type_int" = yes; then
  5953. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
  5954. See \`config.log' for more details." >&5
  5955. echo "$as_me: error: cannot compute sizeof (int)
  5956. See \`config.log' for more details." >&2;}
  5957. { (exit 77); exit 77; }; }
  5958. else
  5959. ac_cv_sizeof_int=0
  5960. fi
  5961. fi
  5962. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5963. fi
  5964. rm -f conftest.val
  5965. fi
  5966. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  5967. echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
  5968. cat >>confdefs.h <<_ACEOF
  5969. #define SIZEOF_INT $ac_cv_sizeof_int
  5970. _ACEOF
  5971. { echo "$as_me:$LINENO: checking for short" >&5
  5972. echo $ECHO_N "checking for short... $ECHO_C" >&6; }
  5973. if test "${ac_cv_type_short+set}" = set; then
  5974. echo $ECHO_N "(cached) $ECHO_C" >&6
  5975. else
  5976. cat >conftest.$ac_ext <<_ACEOF
  5977. /* confdefs.h. */
  5978. _ACEOF
  5979. cat confdefs.h >>conftest.$ac_ext
  5980. cat >>conftest.$ac_ext <<_ACEOF
  5981. /* end confdefs.h. */
  5982. $ac_includes_default
  5983. typedef short ac__type_new_;
  5984. int
  5985. main ()
  5986. {
  5987. if ((ac__type_new_ *) 0)
  5988. return 0;
  5989. if (sizeof (ac__type_new_))
  5990. return 0;
  5991. ;
  5992. return 0;
  5993. }
  5994. _ACEOF
  5995. rm -f conftest.$ac_objext
  5996. if { (ac_try="$ac_compile"
  5997. case "(($ac_try" in
  5998. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5999. *) ac_try_echo=$ac_try;;
  6000. esac
  6001. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6002. (eval "$ac_compile") 2>conftest.er1
  6003. ac_status=$?
  6004. grep -v '^ *+' conftest.er1 >conftest.err
  6005. rm -f conftest.er1
  6006. cat conftest.err >&5
  6007. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6008. (exit $ac_status); } && {
  6009. test -z "$ac_cxx_werror_flag" ||
  6010. test ! -s conftest.err
  6011. } && test -s conftest.$ac_objext; then
  6012. ac_cv_type_short=yes
  6013. else
  6014. echo "$as_me: failed program was:" >&5
  6015. sed 's/^/| /' conftest.$ac_ext >&5
  6016. ac_cv_type_short=no
  6017. fi
  6018. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6019. fi
  6020. { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  6021. echo "${ECHO_T}$ac_cv_type_short" >&6; }
  6022. # The cast to long int works around a bug in the HP C Compiler
  6023. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6024. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6025. # This bug is HP SR number 8606223364.
  6026. { echo "$as_me:$LINENO: checking size of short" >&5
  6027. echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
  6028. if test "${ac_cv_sizeof_short+set}" = set; then
  6029. echo $ECHO_N "(cached) $ECHO_C" >&6
  6030. else
  6031. if test "$cross_compiling" = yes; then
  6032. # Depending upon the size, compute the lo and hi bounds.
  6033. cat >conftest.$ac_ext <<_ACEOF
  6034. /* confdefs.h. */
  6035. _ACEOF
  6036. cat confdefs.h >>conftest.$ac_ext
  6037. cat >>conftest.$ac_ext <<_ACEOF
  6038. /* end confdefs.h. */
  6039. $ac_includes_default
  6040. typedef short ac__type_sizeof_;
  6041. int
  6042. main ()
  6043. {
  6044. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6045. test_array [0] = 0
  6046. ;
  6047. return 0;
  6048. }
  6049. _ACEOF
  6050. rm -f conftest.$ac_objext
  6051. if { (ac_try="$ac_compile"
  6052. case "(($ac_try" in
  6053. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6054. *) ac_try_echo=$ac_try;;
  6055. esac
  6056. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6057. (eval "$ac_compile") 2>conftest.er1
  6058. ac_status=$?
  6059. grep -v '^ *+' conftest.er1 >conftest.err
  6060. rm -f conftest.er1
  6061. cat conftest.err >&5
  6062. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6063. (exit $ac_status); } && {
  6064. test -z "$ac_cxx_werror_flag" ||
  6065. test ! -s conftest.err
  6066. } && test -s conftest.$ac_objext; then
  6067. ac_lo=0 ac_mid=0
  6068. while :; do
  6069. cat >conftest.$ac_ext <<_ACEOF
  6070. /* confdefs.h. */
  6071. _ACEOF
  6072. cat confdefs.h >>conftest.$ac_ext
  6073. cat >>conftest.$ac_ext <<_ACEOF
  6074. /* end confdefs.h. */
  6075. $ac_includes_default
  6076. typedef short ac__type_sizeof_;
  6077. int
  6078. main ()
  6079. {
  6080. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6081. test_array [0] = 0
  6082. ;
  6083. return 0;
  6084. }
  6085. _ACEOF
  6086. rm -f conftest.$ac_objext
  6087. if { (ac_try="$ac_compile"
  6088. case "(($ac_try" in
  6089. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6090. *) ac_try_echo=$ac_try;;
  6091. esac
  6092. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6093. (eval "$ac_compile") 2>conftest.er1
  6094. ac_status=$?
  6095. grep -v '^ *+' conftest.er1 >conftest.err
  6096. rm -f conftest.er1
  6097. cat conftest.err >&5
  6098. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6099. (exit $ac_status); } && {
  6100. test -z "$ac_cxx_werror_flag" ||
  6101. test ! -s conftest.err
  6102. } && test -s conftest.$ac_objext; then
  6103. ac_hi=$ac_mid; break
  6104. else
  6105. echo "$as_me: failed program was:" >&5
  6106. sed 's/^/| /' conftest.$ac_ext >&5
  6107. ac_lo=`expr $ac_mid + 1`
  6108. if test $ac_lo -le $ac_mid; then
  6109. ac_lo= ac_hi=
  6110. break
  6111. fi
  6112. ac_mid=`expr 2 '*' $ac_mid + 1`
  6113. fi
  6114. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6115. done
  6116. else
  6117. echo "$as_me: failed program was:" >&5
  6118. sed 's/^/| /' conftest.$ac_ext >&5
  6119. cat >conftest.$ac_ext <<_ACEOF
  6120. /* confdefs.h. */
  6121. _ACEOF
  6122. cat confdefs.h >>conftest.$ac_ext
  6123. cat >>conftest.$ac_ext <<_ACEOF
  6124. /* end confdefs.h. */
  6125. $ac_includes_default
  6126. typedef short ac__type_sizeof_;
  6127. int
  6128. main ()
  6129. {
  6130. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6131. test_array [0] = 0
  6132. ;
  6133. return 0;
  6134. }
  6135. _ACEOF
  6136. rm -f conftest.$ac_objext
  6137. if { (ac_try="$ac_compile"
  6138. case "(($ac_try" in
  6139. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6140. *) ac_try_echo=$ac_try;;
  6141. esac
  6142. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6143. (eval "$ac_compile") 2>conftest.er1
  6144. ac_status=$?
  6145. grep -v '^ *+' conftest.er1 >conftest.err
  6146. rm -f conftest.er1
  6147. cat conftest.err >&5
  6148. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6149. (exit $ac_status); } && {
  6150. test -z "$ac_cxx_werror_flag" ||
  6151. test ! -s conftest.err
  6152. } && test -s conftest.$ac_objext; then
  6153. ac_hi=-1 ac_mid=-1
  6154. while :; do
  6155. cat >conftest.$ac_ext <<_ACEOF
  6156. /* confdefs.h. */
  6157. _ACEOF
  6158. cat confdefs.h >>conftest.$ac_ext
  6159. cat >>conftest.$ac_ext <<_ACEOF
  6160. /* end confdefs.h. */
  6161. $ac_includes_default
  6162. typedef short ac__type_sizeof_;
  6163. int
  6164. main ()
  6165. {
  6166. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6167. test_array [0] = 0
  6168. ;
  6169. return 0;
  6170. }
  6171. _ACEOF
  6172. rm -f conftest.$ac_objext
  6173. if { (ac_try="$ac_compile"
  6174. case "(($ac_try" in
  6175. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6176. *) ac_try_echo=$ac_try;;
  6177. esac
  6178. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6179. (eval "$ac_compile") 2>conftest.er1
  6180. ac_status=$?
  6181. grep -v '^ *+' conftest.er1 >conftest.err
  6182. rm -f conftest.er1
  6183. cat conftest.err >&5
  6184. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6185. (exit $ac_status); } && {
  6186. test -z "$ac_cxx_werror_flag" ||
  6187. test ! -s conftest.err
  6188. } && test -s conftest.$ac_objext; then
  6189. ac_lo=$ac_mid; break
  6190. else
  6191. echo "$as_me: failed program was:" >&5
  6192. sed 's/^/| /' conftest.$ac_ext >&5
  6193. ac_hi=`expr '(' $ac_mid ')' - 1`
  6194. if test $ac_mid -le $ac_hi; then
  6195. ac_lo= ac_hi=
  6196. break
  6197. fi
  6198. ac_mid=`expr 2 '*' $ac_mid`
  6199. fi
  6200. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6201. done
  6202. else
  6203. echo "$as_me: failed program was:" >&5
  6204. sed 's/^/| /' conftest.$ac_ext >&5
  6205. ac_lo= ac_hi=
  6206. fi
  6207. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6208. fi
  6209. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6210. # Binary search between lo and hi bounds.
  6211. while test "x$ac_lo" != "x$ac_hi"; do
  6212. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6213. cat >conftest.$ac_ext <<_ACEOF
  6214. /* confdefs.h. */
  6215. _ACEOF
  6216. cat confdefs.h >>conftest.$ac_ext
  6217. cat >>conftest.$ac_ext <<_ACEOF
  6218. /* end confdefs.h. */
  6219. $ac_includes_default
  6220. typedef short ac__type_sizeof_;
  6221. int
  6222. main ()
  6223. {
  6224. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6225. test_array [0] = 0
  6226. ;
  6227. return 0;
  6228. }
  6229. _ACEOF
  6230. rm -f conftest.$ac_objext
  6231. if { (ac_try="$ac_compile"
  6232. case "(($ac_try" in
  6233. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6234. *) ac_try_echo=$ac_try;;
  6235. esac
  6236. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6237. (eval "$ac_compile") 2>conftest.er1
  6238. ac_status=$?
  6239. grep -v '^ *+' conftest.er1 >conftest.err
  6240. rm -f conftest.er1
  6241. cat conftest.err >&5
  6242. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6243. (exit $ac_status); } && {
  6244. test -z "$ac_cxx_werror_flag" ||
  6245. test ! -s conftest.err
  6246. } && test -s conftest.$ac_objext; then
  6247. ac_hi=$ac_mid
  6248. else
  6249. echo "$as_me: failed program was:" >&5
  6250. sed 's/^/| /' conftest.$ac_ext >&5
  6251. ac_lo=`expr '(' $ac_mid ')' + 1`
  6252. fi
  6253. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6254. done
  6255. case $ac_lo in
  6256. ?*) ac_cv_sizeof_short=$ac_lo;;
  6257. '') if test "$ac_cv_type_short" = yes; then
  6258. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6259. See \`config.log' for more details." >&5
  6260. echo "$as_me: error: cannot compute sizeof (short)
  6261. See \`config.log' for more details." >&2;}
  6262. { (exit 77); exit 77; }; }
  6263. else
  6264. ac_cv_sizeof_short=0
  6265. fi ;;
  6266. esac
  6267. else
  6268. cat >conftest.$ac_ext <<_ACEOF
  6269. /* confdefs.h. */
  6270. _ACEOF
  6271. cat confdefs.h >>conftest.$ac_ext
  6272. cat >>conftest.$ac_ext <<_ACEOF
  6273. /* end confdefs.h. */
  6274. $ac_includes_default
  6275. typedef short ac__type_sizeof_;
  6276. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6277. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6278. #include <stdio.h>
  6279. #include <stdlib.h>
  6280. int
  6281. main ()
  6282. {
  6283. FILE *f = fopen ("conftest.val", "w");
  6284. if (! f)
  6285. return 1;
  6286. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6287. {
  6288. long int i = longval ();
  6289. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6290. return 1;
  6291. fprintf (f, "%ld\n", i);
  6292. }
  6293. else
  6294. {
  6295. unsigned long int i = ulongval ();
  6296. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6297. return 1;
  6298. fprintf (f, "%lu\n", i);
  6299. }
  6300. return ferror (f) || fclose (f) != 0;
  6301. ;
  6302. return 0;
  6303. }
  6304. _ACEOF
  6305. rm -f conftest$ac_exeext
  6306. if { (ac_try="$ac_link"
  6307. case "(($ac_try" in
  6308. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6309. *) ac_try_echo=$ac_try;;
  6310. esac
  6311. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6312. (eval "$ac_link") 2>&5
  6313. ac_status=$?
  6314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6315. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6316. { (case "(($ac_try" in
  6317. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6318. *) ac_try_echo=$ac_try;;
  6319. esac
  6320. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6321. (eval "$ac_try") 2>&5
  6322. ac_status=$?
  6323. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6324. (exit $ac_status); }; }; then
  6325. ac_cv_sizeof_short=`cat conftest.val`
  6326. else
  6327. echo "$as_me: program exited with status $ac_status" >&5
  6328. echo "$as_me: failed program was:" >&5
  6329. sed 's/^/| /' conftest.$ac_ext >&5
  6330. ( exit $ac_status )
  6331. if test "$ac_cv_type_short" = yes; then
  6332. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
  6333. See \`config.log' for more details." >&5
  6334. echo "$as_me: error: cannot compute sizeof (short)
  6335. See \`config.log' for more details." >&2;}
  6336. { (exit 77); exit 77; }; }
  6337. else
  6338. ac_cv_sizeof_short=0
  6339. fi
  6340. fi
  6341. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6342. fi
  6343. rm -f conftest.val
  6344. fi
  6345. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  6346. echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
  6347. cat >>confdefs.h <<_ACEOF
  6348. #define SIZEOF_SHORT $ac_cv_sizeof_short
  6349. _ACEOF
  6350. { echo "$as_me:$LINENO: checking for long" >&5
  6351. echo $ECHO_N "checking for long... $ECHO_C" >&6; }
  6352. if test "${ac_cv_type_long+set}" = set; then
  6353. echo $ECHO_N "(cached) $ECHO_C" >&6
  6354. else
  6355. cat >conftest.$ac_ext <<_ACEOF
  6356. /* confdefs.h. */
  6357. _ACEOF
  6358. cat confdefs.h >>conftest.$ac_ext
  6359. cat >>conftest.$ac_ext <<_ACEOF
  6360. /* end confdefs.h. */
  6361. $ac_includes_default
  6362. typedef long ac__type_new_;
  6363. int
  6364. main ()
  6365. {
  6366. if ((ac__type_new_ *) 0)
  6367. return 0;
  6368. if (sizeof (ac__type_new_))
  6369. return 0;
  6370. ;
  6371. return 0;
  6372. }
  6373. _ACEOF
  6374. rm -f conftest.$ac_objext
  6375. if { (ac_try="$ac_compile"
  6376. case "(($ac_try" in
  6377. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6378. *) ac_try_echo=$ac_try;;
  6379. esac
  6380. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6381. (eval "$ac_compile") 2>conftest.er1
  6382. ac_status=$?
  6383. grep -v '^ *+' conftest.er1 >conftest.err
  6384. rm -f conftest.er1
  6385. cat conftest.err >&5
  6386. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6387. (exit $ac_status); } && {
  6388. test -z "$ac_cxx_werror_flag" ||
  6389. test ! -s conftest.err
  6390. } && test -s conftest.$ac_objext; then
  6391. ac_cv_type_long=yes
  6392. else
  6393. echo "$as_me: failed program was:" >&5
  6394. sed 's/^/| /' conftest.$ac_ext >&5
  6395. ac_cv_type_long=no
  6396. fi
  6397. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6398. fi
  6399. { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  6400. echo "${ECHO_T}$ac_cv_type_long" >&6; }
  6401. # The cast to long int works around a bug in the HP C Compiler
  6402. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6403. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6404. # This bug is HP SR number 8606223364.
  6405. { echo "$as_me:$LINENO: checking size of long" >&5
  6406. echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
  6407. if test "${ac_cv_sizeof_long+set}" = set; then
  6408. echo $ECHO_N "(cached) $ECHO_C" >&6
  6409. else
  6410. if test "$cross_compiling" = yes; then
  6411. # Depending upon the size, compute the lo and hi bounds.
  6412. cat >conftest.$ac_ext <<_ACEOF
  6413. /* confdefs.h. */
  6414. _ACEOF
  6415. cat confdefs.h >>conftest.$ac_ext
  6416. cat >>conftest.$ac_ext <<_ACEOF
  6417. /* end confdefs.h. */
  6418. $ac_includes_default
  6419. typedef long ac__type_sizeof_;
  6420. int
  6421. main ()
  6422. {
  6423. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6424. test_array [0] = 0
  6425. ;
  6426. return 0;
  6427. }
  6428. _ACEOF
  6429. rm -f conftest.$ac_objext
  6430. if { (ac_try="$ac_compile"
  6431. case "(($ac_try" in
  6432. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6433. *) ac_try_echo=$ac_try;;
  6434. esac
  6435. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6436. (eval "$ac_compile") 2>conftest.er1
  6437. ac_status=$?
  6438. grep -v '^ *+' conftest.er1 >conftest.err
  6439. rm -f conftest.er1
  6440. cat conftest.err >&5
  6441. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6442. (exit $ac_status); } && {
  6443. test -z "$ac_cxx_werror_flag" ||
  6444. test ! -s conftest.err
  6445. } && test -s conftest.$ac_objext; then
  6446. ac_lo=0 ac_mid=0
  6447. while :; do
  6448. cat >conftest.$ac_ext <<_ACEOF
  6449. /* confdefs.h. */
  6450. _ACEOF
  6451. cat confdefs.h >>conftest.$ac_ext
  6452. cat >>conftest.$ac_ext <<_ACEOF
  6453. /* end confdefs.h. */
  6454. $ac_includes_default
  6455. typedef long ac__type_sizeof_;
  6456. int
  6457. main ()
  6458. {
  6459. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6460. test_array [0] = 0
  6461. ;
  6462. return 0;
  6463. }
  6464. _ACEOF
  6465. rm -f conftest.$ac_objext
  6466. if { (ac_try="$ac_compile"
  6467. case "(($ac_try" in
  6468. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6469. *) ac_try_echo=$ac_try;;
  6470. esac
  6471. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6472. (eval "$ac_compile") 2>conftest.er1
  6473. ac_status=$?
  6474. grep -v '^ *+' conftest.er1 >conftest.err
  6475. rm -f conftest.er1
  6476. cat conftest.err >&5
  6477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6478. (exit $ac_status); } && {
  6479. test -z "$ac_cxx_werror_flag" ||
  6480. test ! -s conftest.err
  6481. } && test -s conftest.$ac_objext; then
  6482. ac_hi=$ac_mid; break
  6483. else
  6484. echo "$as_me: failed program was:" >&5
  6485. sed 's/^/| /' conftest.$ac_ext >&5
  6486. ac_lo=`expr $ac_mid + 1`
  6487. if test $ac_lo -le $ac_mid; then
  6488. ac_lo= ac_hi=
  6489. break
  6490. fi
  6491. ac_mid=`expr 2 '*' $ac_mid + 1`
  6492. fi
  6493. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6494. done
  6495. else
  6496. echo "$as_me: failed program was:" >&5
  6497. sed 's/^/| /' conftest.$ac_ext >&5
  6498. cat >conftest.$ac_ext <<_ACEOF
  6499. /* confdefs.h. */
  6500. _ACEOF
  6501. cat confdefs.h >>conftest.$ac_ext
  6502. cat >>conftest.$ac_ext <<_ACEOF
  6503. /* end confdefs.h. */
  6504. $ac_includes_default
  6505. typedef long ac__type_sizeof_;
  6506. int
  6507. main ()
  6508. {
  6509. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6510. test_array [0] = 0
  6511. ;
  6512. return 0;
  6513. }
  6514. _ACEOF
  6515. rm -f conftest.$ac_objext
  6516. if { (ac_try="$ac_compile"
  6517. case "(($ac_try" in
  6518. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6519. *) ac_try_echo=$ac_try;;
  6520. esac
  6521. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6522. (eval "$ac_compile") 2>conftest.er1
  6523. ac_status=$?
  6524. grep -v '^ *+' conftest.er1 >conftest.err
  6525. rm -f conftest.er1
  6526. cat conftest.err >&5
  6527. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6528. (exit $ac_status); } && {
  6529. test -z "$ac_cxx_werror_flag" ||
  6530. test ! -s conftest.err
  6531. } && test -s conftest.$ac_objext; then
  6532. ac_hi=-1 ac_mid=-1
  6533. while :; do
  6534. cat >conftest.$ac_ext <<_ACEOF
  6535. /* confdefs.h. */
  6536. _ACEOF
  6537. cat confdefs.h >>conftest.$ac_ext
  6538. cat >>conftest.$ac_ext <<_ACEOF
  6539. /* end confdefs.h. */
  6540. $ac_includes_default
  6541. typedef long ac__type_sizeof_;
  6542. int
  6543. main ()
  6544. {
  6545. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6546. test_array [0] = 0
  6547. ;
  6548. return 0;
  6549. }
  6550. _ACEOF
  6551. rm -f conftest.$ac_objext
  6552. if { (ac_try="$ac_compile"
  6553. case "(($ac_try" in
  6554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6555. *) ac_try_echo=$ac_try;;
  6556. esac
  6557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6558. (eval "$ac_compile") 2>conftest.er1
  6559. ac_status=$?
  6560. grep -v '^ *+' conftest.er1 >conftest.err
  6561. rm -f conftest.er1
  6562. cat conftest.err >&5
  6563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6564. (exit $ac_status); } && {
  6565. test -z "$ac_cxx_werror_flag" ||
  6566. test ! -s conftest.err
  6567. } && test -s conftest.$ac_objext; then
  6568. ac_lo=$ac_mid; break
  6569. else
  6570. echo "$as_me: failed program was:" >&5
  6571. sed 's/^/| /' conftest.$ac_ext >&5
  6572. ac_hi=`expr '(' $ac_mid ')' - 1`
  6573. if test $ac_mid -le $ac_hi; then
  6574. ac_lo= ac_hi=
  6575. break
  6576. fi
  6577. ac_mid=`expr 2 '*' $ac_mid`
  6578. fi
  6579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6580. done
  6581. else
  6582. echo "$as_me: failed program was:" >&5
  6583. sed 's/^/| /' conftest.$ac_ext >&5
  6584. ac_lo= ac_hi=
  6585. fi
  6586. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6587. fi
  6588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6589. # Binary search between lo and hi bounds.
  6590. while test "x$ac_lo" != "x$ac_hi"; do
  6591. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6592. cat >conftest.$ac_ext <<_ACEOF
  6593. /* confdefs.h. */
  6594. _ACEOF
  6595. cat confdefs.h >>conftest.$ac_ext
  6596. cat >>conftest.$ac_ext <<_ACEOF
  6597. /* end confdefs.h. */
  6598. $ac_includes_default
  6599. typedef long ac__type_sizeof_;
  6600. int
  6601. main ()
  6602. {
  6603. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6604. test_array [0] = 0
  6605. ;
  6606. return 0;
  6607. }
  6608. _ACEOF
  6609. rm -f conftest.$ac_objext
  6610. if { (ac_try="$ac_compile"
  6611. case "(($ac_try" in
  6612. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6613. *) ac_try_echo=$ac_try;;
  6614. esac
  6615. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6616. (eval "$ac_compile") 2>conftest.er1
  6617. ac_status=$?
  6618. grep -v '^ *+' conftest.er1 >conftest.err
  6619. rm -f conftest.er1
  6620. cat conftest.err >&5
  6621. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6622. (exit $ac_status); } && {
  6623. test -z "$ac_cxx_werror_flag" ||
  6624. test ! -s conftest.err
  6625. } && test -s conftest.$ac_objext; then
  6626. ac_hi=$ac_mid
  6627. else
  6628. echo "$as_me: failed program was:" >&5
  6629. sed 's/^/| /' conftest.$ac_ext >&5
  6630. ac_lo=`expr '(' $ac_mid ')' + 1`
  6631. fi
  6632. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6633. done
  6634. case $ac_lo in
  6635. ?*) ac_cv_sizeof_long=$ac_lo;;
  6636. '') if test "$ac_cv_type_long" = yes; then
  6637. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  6638. See \`config.log' for more details." >&5
  6639. echo "$as_me: error: cannot compute sizeof (long)
  6640. See \`config.log' for more details." >&2;}
  6641. { (exit 77); exit 77; }; }
  6642. else
  6643. ac_cv_sizeof_long=0
  6644. fi ;;
  6645. esac
  6646. else
  6647. cat >conftest.$ac_ext <<_ACEOF
  6648. /* confdefs.h. */
  6649. _ACEOF
  6650. cat confdefs.h >>conftest.$ac_ext
  6651. cat >>conftest.$ac_ext <<_ACEOF
  6652. /* end confdefs.h. */
  6653. $ac_includes_default
  6654. typedef long ac__type_sizeof_;
  6655. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6656. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  6657. #include <stdio.h>
  6658. #include <stdlib.h>
  6659. int
  6660. main ()
  6661. {
  6662. FILE *f = fopen ("conftest.val", "w");
  6663. if (! f)
  6664. return 1;
  6665. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  6666. {
  6667. long int i = longval ();
  6668. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6669. return 1;
  6670. fprintf (f, "%ld\n", i);
  6671. }
  6672. else
  6673. {
  6674. unsigned long int i = ulongval ();
  6675. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  6676. return 1;
  6677. fprintf (f, "%lu\n", i);
  6678. }
  6679. return ferror (f) || fclose (f) != 0;
  6680. ;
  6681. return 0;
  6682. }
  6683. _ACEOF
  6684. rm -f conftest$ac_exeext
  6685. if { (ac_try="$ac_link"
  6686. case "(($ac_try" in
  6687. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6688. *) ac_try_echo=$ac_try;;
  6689. esac
  6690. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6691. (eval "$ac_link") 2>&5
  6692. ac_status=$?
  6693. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6694. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6695. { (case "(($ac_try" in
  6696. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6697. *) ac_try_echo=$ac_try;;
  6698. esac
  6699. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6700. (eval "$ac_try") 2>&5
  6701. ac_status=$?
  6702. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6703. (exit $ac_status); }; }; then
  6704. ac_cv_sizeof_long=`cat conftest.val`
  6705. else
  6706. echo "$as_me: program exited with status $ac_status" >&5
  6707. echo "$as_me: failed program was:" >&5
  6708. sed 's/^/| /' conftest.$ac_ext >&5
  6709. ( exit $ac_status )
  6710. if test "$ac_cv_type_long" = yes; then
  6711. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
  6712. See \`config.log' for more details." >&5
  6713. echo "$as_me: error: cannot compute sizeof (long)
  6714. See \`config.log' for more details." >&2;}
  6715. { (exit 77); exit 77; }; }
  6716. else
  6717. ac_cv_sizeof_long=0
  6718. fi
  6719. fi
  6720. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6721. fi
  6722. rm -f conftest.val
  6723. fi
  6724. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6725. echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
  6726. cat >>confdefs.h <<_ACEOF
  6727. #define SIZEOF_LONG $ac_cv_sizeof_long
  6728. _ACEOF
  6729. { echo "$as_me:$LINENO: checking for long long" >&5
  6730. echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
  6731. if test "${ac_cv_type_long_long+set}" = set; then
  6732. echo $ECHO_N "(cached) $ECHO_C" >&6
  6733. else
  6734. cat >conftest.$ac_ext <<_ACEOF
  6735. /* confdefs.h. */
  6736. _ACEOF
  6737. cat confdefs.h >>conftest.$ac_ext
  6738. cat >>conftest.$ac_ext <<_ACEOF
  6739. /* end confdefs.h. */
  6740. $ac_includes_default
  6741. typedef long long ac__type_new_;
  6742. int
  6743. main ()
  6744. {
  6745. if ((ac__type_new_ *) 0)
  6746. return 0;
  6747. if (sizeof (ac__type_new_))
  6748. return 0;
  6749. ;
  6750. return 0;
  6751. }
  6752. _ACEOF
  6753. rm -f conftest.$ac_objext
  6754. if { (ac_try="$ac_compile"
  6755. case "(($ac_try" in
  6756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6757. *) ac_try_echo=$ac_try;;
  6758. esac
  6759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6760. (eval "$ac_compile") 2>conftest.er1
  6761. ac_status=$?
  6762. grep -v '^ *+' conftest.er1 >conftest.err
  6763. rm -f conftest.er1
  6764. cat conftest.err >&5
  6765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6766. (exit $ac_status); } && {
  6767. test -z "$ac_cxx_werror_flag" ||
  6768. test ! -s conftest.err
  6769. } && test -s conftest.$ac_objext; then
  6770. ac_cv_type_long_long=yes
  6771. else
  6772. echo "$as_me: failed program was:" >&5
  6773. sed 's/^/| /' conftest.$ac_ext >&5
  6774. ac_cv_type_long_long=no
  6775. fi
  6776. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6777. fi
  6778. { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  6779. echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
  6780. # The cast to long int works around a bug in the HP C Compiler
  6781. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6782. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6783. # This bug is HP SR number 8606223364.
  6784. { echo "$as_me:$LINENO: checking size of long long" >&5
  6785. echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
  6786. if test "${ac_cv_sizeof_long_long+set}" = set; then
  6787. echo $ECHO_N "(cached) $ECHO_C" >&6
  6788. else
  6789. if test "$cross_compiling" = yes; then
  6790. # Depending upon the size, compute the lo and hi bounds.
  6791. cat >conftest.$ac_ext <<_ACEOF
  6792. /* confdefs.h. */
  6793. _ACEOF
  6794. cat confdefs.h >>conftest.$ac_ext
  6795. cat >>conftest.$ac_ext <<_ACEOF
  6796. /* end confdefs.h. */
  6797. $ac_includes_default
  6798. typedef long long ac__type_sizeof_;
  6799. int
  6800. main ()
  6801. {
  6802. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
  6803. test_array [0] = 0
  6804. ;
  6805. return 0;
  6806. }
  6807. _ACEOF
  6808. rm -f conftest.$ac_objext
  6809. if { (ac_try="$ac_compile"
  6810. case "(($ac_try" in
  6811. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6812. *) ac_try_echo=$ac_try;;
  6813. esac
  6814. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6815. (eval "$ac_compile") 2>conftest.er1
  6816. ac_status=$?
  6817. grep -v '^ *+' conftest.er1 >conftest.err
  6818. rm -f conftest.er1
  6819. cat conftest.err >&5
  6820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6821. (exit $ac_status); } && {
  6822. test -z "$ac_cxx_werror_flag" ||
  6823. test ! -s conftest.err
  6824. } && test -s conftest.$ac_objext; then
  6825. ac_lo=0 ac_mid=0
  6826. while :; do
  6827. cat >conftest.$ac_ext <<_ACEOF
  6828. /* confdefs.h. */
  6829. _ACEOF
  6830. cat confdefs.h >>conftest.$ac_ext
  6831. cat >>conftest.$ac_ext <<_ACEOF
  6832. /* end confdefs.h. */
  6833. $ac_includes_default
  6834. typedef long long ac__type_sizeof_;
  6835. int
  6836. main ()
  6837. {
  6838. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6839. test_array [0] = 0
  6840. ;
  6841. return 0;
  6842. }
  6843. _ACEOF
  6844. rm -f conftest.$ac_objext
  6845. if { (ac_try="$ac_compile"
  6846. case "(($ac_try" in
  6847. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6848. *) ac_try_echo=$ac_try;;
  6849. esac
  6850. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6851. (eval "$ac_compile") 2>conftest.er1
  6852. ac_status=$?
  6853. grep -v '^ *+' conftest.er1 >conftest.err
  6854. rm -f conftest.er1
  6855. cat conftest.err >&5
  6856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6857. (exit $ac_status); } && {
  6858. test -z "$ac_cxx_werror_flag" ||
  6859. test ! -s conftest.err
  6860. } && test -s conftest.$ac_objext; then
  6861. ac_hi=$ac_mid; break
  6862. else
  6863. echo "$as_me: failed program was:" >&5
  6864. sed 's/^/| /' conftest.$ac_ext >&5
  6865. ac_lo=`expr $ac_mid + 1`
  6866. if test $ac_lo -le $ac_mid; then
  6867. ac_lo= ac_hi=
  6868. break
  6869. fi
  6870. ac_mid=`expr 2 '*' $ac_mid + 1`
  6871. fi
  6872. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6873. done
  6874. else
  6875. echo "$as_me: failed program was:" >&5
  6876. sed 's/^/| /' conftest.$ac_ext >&5
  6877. cat >conftest.$ac_ext <<_ACEOF
  6878. /* confdefs.h. */
  6879. _ACEOF
  6880. cat confdefs.h >>conftest.$ac_ext
  6881. cat >>conftest.$ac_ext <<_ACEOF
  6882. /* end confdefs.h. */
  6883. $ac_includes_default
  6884. typedef long long ac__type_sizeof_;
  6885. int
  6886. main ()
  6887. {
  6888. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
  6889. test_array [0] = 0
  6890. ;
  6891. return 0;
  6892. }
  6893. _ACEOF
  6894. rm -f conftest.$ac_objext
  6895. if { (ac_try="$ac_compile"
  6896. case "(($ac_try" in
  6897. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6898. *) ac_try_echo=$ac_try;;
  6899. esac
  6900. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&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. test -z "$ac_cxx_werror_flag" ||
  6909. test ! -s conftest.err
  6910. } && test -s conftest.$ac_objext; then
  6911. ac_hi=-1 ac_mid=-1
  6912. while :; do
  6913. cat >conftest.$ac_ext <<_ACEOF
  6914. /* confdefs.h. */
  6915. _ACEOF
  6916. cat confdefs.h >>conftest.$ac_ext
  6917. cat >>conftest.$ac_ext <<_ACEOF
  6918. /* end confdefs.h. */
  6919. $ac_includes_default
  6920. typedef long long ac__type_sizeof_;
  6921. int
  6922. main ()
  6923. {
  6924. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
  6925. test_array [0] = 0
  6926. ;
  6927. return 0;
  6928. }
  6929. _ACEOF
  6930. rm -f conftest.$ac_objext
  6931. if { (ac_try="$ac_compile"
  6932. case "(($ac_try" in
  6933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6934. *) ac_try_echo=$ac_try;;
  6935. esac
  6936. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6937. (eval "$ac_compile") 2>conftest.er1
  6938. ac_status=$?
  6939. grep -v '^ *+' conftest.er1 >conftest.err
  6940. rm -f conftest.er1
  6941. cat conftest.err >&5
  6942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6943. (exit $ac_status); } && {
  6944. test -z "$ac_cxx_werror_flag" ||
  6945. test ! -s conftest.err
  6946. } && test -s conftest.$ac_objext; then
  6947. ac_lo=$ac_mid; break
  6948. else
  6949. echo "$as_me: failed program was:" >&5
  6950. sed 's/^/| /' conftest.$ac_ext >&5
  6951. ac_hi=`expr '(' $ac_mid ')' - 1`
  6952. if test $ac_mid -le $ac_hi; then
  6953. ac_lo= ac_hi=
  6954. break
  6955. fi
  6956. ac_mid=`expr 2 '*' $ac_mid`
  6957. fi
  6958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6959. done
  6960. else
  6961. echo "$as_me: failed program was:" >&5
  6962. sed 's/^/| /' conftest.$ac_ext >&5
  6963. ac_lo= ac_hi=
  6964. fi
  6965. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6966. fi
  6967. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6968. # Binary search between lo and hi bounds.
  6969. while test "x$ac_lo" != "x$ac_hi"; do
  6970. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6971. cat >conftest.$ac_ext <<_ACEOF
  6972. /* confdefs.h. */
  6973. _ACEOF
  6974. cat confdefs.h >>conftest.$ac_ext
  6975. cat >>conftest.$ac_ext <<_ACEOF
  6976. /* end confdefs.h. */
  6977. $ac_includes_default
  6978. typedef long long ac__type_sizeof_;
  6979. int
  6980. main ()
  6981. {
  6982. static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
  6983. test_array [0] = 0
  6984. ;
  6985. return 0;
  6986. }
  6987. _ACEOF
  6988. rm -f conftest.$ac_objext
  6989. if { (ac_try="$ac_compile"
  6990. case "(($ac_try" in
  6991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6992. *) ac_try_echo=$ac_try;;
  6993. esac
  6994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  6995. (eval "$ac_compile") 2>conftest.er1
  6996. ac_status=$?
  6997. grep -v '^ *+' conftest.er1 >conftest.err
  6998. rm -f conftest.er1
  6999. cat conftest.err >&5
  7000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7001. (exit $ac_status); } && {
  7002. test -z "$ac_cxx_werror_flag" ||
  7003. test ! -s conftest.err
  7004. } && test -s conftest.$ac_objext; then
  7005. ac_hi=$ac_mid
  7006. else
  7007. echo "$as_me: failed program was:" >&5
  7008. sed 's/^/| /' conftest.$ac_ext >&5
  7009. ac_lo=`expr '(' $ac_mid ')' + 1`
  7010. fi
  7011. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7012. done
  7013. case $ac_lo in
  7014. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  7015. '') if test "$ac_cv_type_long_long" = yes; then
  7016. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7017. See \`config.log' for more details." >&5
  7018. echo "$as_me: error: cannot compute sizeof (long long)
  7019. See \`config.log' for more details." >&2;}
  7020. { (exit 77); exit 77; }; }
  7021. else
  7022. ac_cv_sizeof_long_long=0
  7023. fi ;;
  7024. esac
  7025. else
  7026. cat >conftest.$ac_ext <<_ACEOF
  7027. /* confdefs.h. */
  7028. _ACEOF
  7029. cat confdefs.h >>conftest.$ac_ext
  7030. cat >>conftest.$ac_ext <<_ACEOF
  7031. /* end confdefs.h. */
  7032. $ac_includes_default
  7033. typedef long long ac__type_sizeof_;
  7034. static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7035. static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
  7036. #include <stdio.h>
  7037. #include <stdlib.h>
  7038. int
  7039. main ()
  7040. {
  7041. FILE *f = fopen ("conftest.val", "w");
  7042. if (! f)
  7043. return 1;
  7044. if (((long int) (sizeof (ac__type_sizeof_))) < 0)
  7045. {
  7046. long int i = longval ();
  7047. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7048. return 1;
  7049. fprintf (f, "%ld\n", i);
  7050. }
  7051. else
  7052. {
  7053. unsigned long int i = ulongval ();
  7054. if (i != ((long int) (sizeof (ac__type_sizeof_))))
  7055. return 1;
  7056. fprintf (f, "%lu\n", i);
  7057. }
  7058. return ferror (f) || fclose (f) != 0;
  7059. ;
  7060. return 0;
  7061. }
  7062. _ACEOF
  7063. rm -f conftest$ac_exeext
  7064. if { (ac_try="$ac_link"
  7065. case "(($ac_try" in
  7066. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7067. *) ac_try_echo=$ac_try;;
  7068. esac
  7069. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7070. (eval "$ac_link") 2>&5
  7071. ac_status=$?
  7072. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7073. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7074. { (case "(($ac_try" in
  7075. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7076. *) ac_try_echo=$ac_try;;
  7077. esac
  7078. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7079. (eval "$ac_try") 2>&5
  7080. ac_status=$?
  7081. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7082. (exit $ac_status); }; }; then
  7083. ac_cv_sizeof_long_long=`cat conftest.val`
  7084. else
  7085. echo "$as_me: program exited with status $ac_status" >&5
  7086. echo "$as_me: failed program was:" >&5
  7087. sed 's/^/| /' conftest.$ac_ext >&5
  7088. ( exit $ac_status )
  7089. if test "$ac_cv_type_long_long" = yes; then
  7090. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
  7091. See \`config.log' for more details." >&5
  7092. echo "$as_me: error: cannot compute sizeof (long long)
  7093. See \`config.log' for more details." >&2;}
  7094. { (exit 77); exit 77; }; }
  7095. else
  7096. ac_cv_sizeof_long_long=0
  7097. fi
  7098. fi
  7099. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7100. fi
  7101. rm -f conftest.val
  7102. fi
  7103. { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  7104. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
  7105. cat >>confdefs.h <<_ACEOF
  7106. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  7107. _ACEOF
  7108. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7109. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  7110. if test "${ac_cv_struct_tm+set}" = set; then
  7111. echo $ECHO_N "(cached) $ECHO_C" >&6
  7112. else
  7113. cat >conftest.$ac_ext <<_ACEOF
  7114. /* confdefs.h. */
  7115. _ACEOF
  7116. cat confdefs.h >>conftest.$ac_ext
  7117. cat >>conftest.$ac_ext <<_ACEOF
  7118. /* end confdefs.h. */
  7119. #include <sys/types.h>
  7120. #include <time.h>
  7121. int
  7122. main ()
  7123. {
  7124. struct tm tm;
  7125. int *p = &tm.tm_sec;
  7126. return !p;
  7127. ;
  7128. return 0;
  7129. }
  7130. _ACEOF
  7131. rm -f conftest.$ac_objext
  7132. if { (ac_try="$ac_compile"
  7133. case "(($ac_try" in
  7134. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7135. *) ac_try_echo=$ac_try;;
  7136. esac
  7137. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7138. (eval "$ac_compile") 2>conftest.er1
  7139. ac_status=$?
  7140. grep -v '^ *+' conftest.er1 >conftest.err
  7141. rm -f conftest.er1
  7142. cat conftest.err >&5
  7143. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7144. (exit $ac_status); } && {
  7145. test -z "$ac_cxx_werror_flag" ||
  7146. test ! -s conftest.err
  7147. } && test -s conftest.$ac_objext; then
  7148. ac_cv_struct_tm=time.h
  7149. else
  7150. echo "$as_me: failed program was:" >&5
  7151. sed 's/^/| /' conftest.$ac_ext >&5
  7152. ac_cv_struct_tm=sys/time.h
  7153. fi
  7154. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7155. fi
  7156. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7157. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  7158. if test $ac_cv_struct_tm = sys/time.h; then
  7159. cat >>confdefs.h <<\_ACEOF
  7160. #define TM_IN_SYS_TIME 1
  7161. _ACEOF
  7162. fi
  7163. { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  7164. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
  7165. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  7166. echo $ECHO_N "(cached) $ECHO_C" >&6
  7167. else
  7168. cat >conftest.$ac_ext <<_ACEOF
  7169. /* confdefs.h. */
  7170. _ACEOF
  7171. cat confdefs.h >>conftest.$ac_ext
  7172. cat >>conftest.$ac_ext <<_ACEOF
  7173. /* end confdefs.h. */
  7174. #include <sys/types.h>
  7175. #include <$ac_cv_struct_tm>
  7176. int
  7177. main ()
  7178. {
  7179. static struct tm ac_aggr;
  7180. if (ac_aggr.tm_zone)
  7181. return 0;
  7182. ;
  7183. return 0;
  7184. }
  7185. _ACEOF
  7186. rm -f conftest.$ac_objext
  7187. if { (ac_try="$ac_compile"
  7188. case "(($ac_try" in
  7189. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7190. *) ac_try_echo=$ac_try;;
  7191. esac
  7192. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7193. (eval "$ac_compile") 2>conftest.er1
  7194. ac_status=$?
  7195. grep -v '^ *+' conftest.er1 >conftest.err
  7196. rm -f conftest.er1
  7197. cat conftest.err >&5
  7198. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7199. (exit $ac_status); } && {
  7200. test -z "$ac_cxx_werror_flag" ||
  7201. test ! -s conftest.err
  7202. } && test -s conftest.$ac_objext; then
  7203. ac_cv_member_struct_tm_tm_zone=yes
  7204. else
  7205. echo "$as_me: failed program was:" >&5
  7206. sed 's/^/| /' conftest.$ac_ext >&5
  7207. cat >conftest.$ac_ext <<_ACEOF
  7208. /* confdefs.h. */
  7209. _ACEOF
  7210. cat confdefs.h >>conftest.$ac_ext
  7211. cat >>conftest.$ac_ext <<_ACEOF
  7212. /* end confdefs.h. */
  7213. #include <sys/types.h>
  7214. #include <$ac_cv_struct_tm>
  7215. int
  7216. main ()
  7217. {
  7218. static struct tm ac_aggr;
  7219. if (sizeof ac_aggr.tm_zone)
  7220. return 0;
  7221. ;
  7222. return 0;
  7223. }
  7224. _ACEOF
  7225. rm -f conftest.$ac_objext
  7226. if { (ac_try="$ac_compile"
  7227. case "(($ac_try" in
  7228. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7229. *) ac_try_echo=$ac_try;;
  7230. esac
  7231. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7232. (eval "$ac_compile") 2>conftest.er1
  7233. ac_status=$?
  7234. grep -v '^ *+' conftest.er1 >conftest.err
  7235. rm -f conftest.er1
  7236. cat conftest.err >&5
  7237. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7238. (exit $ac_status); } && {
  7239. test -z "$ac_cxx_werror_flag" ||
  7240. test ! -s conftest.err
  7241. } && test -s conftest.$ac_objext; then
  7242. ac_cv_member_struct_tm_tm_zone=yes
  7243. else
  7244. echo "$as_me: failed program was:" >&5
  7245. sed 's/^/| /' conftest.$ac_ext >&5
  7246. ac_cv_member_struct_tm_tm_zone=no
  7247. fi
  7248. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7249. fi
  7250. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7251. fi
  7252. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  7253. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
  7254. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  7255. cat >>confdefs.h <<_ACEOF
  7256. #define HAVE_STRUCT_TM_TM_ZONE 1
  7257. _ACEOF
  7258. fi
  7259. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  7260. cat >>confdefs.h <<\_ACEOF
  7261. #define HAVE_TM_ZONE 1
  7262. _ACEOF
  7263. else
  7264. { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
  7265. echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
  7266. if test "${ac_cv_have_decl_tzname+set}" = set; then
  7267. echo $ECHO_N "(cached) $ECHO_C" >&6
  7268. else
  7269. cat >conftest.$ac_ext <<_ACEOF
  7270. /* confdefs.h. */
  7271. _ACEOF
  7272. cat confdefs.h >>conftest.$ac_ext
  7273. cat >>conftest.$ac_ext <<_ACEOF
  7274. /* end confdefs.h. */
  7275. #include <time.h>
  7276. int
  7277. main ()
  7278. {
  7279. #ifndef tzname
  7280. (void) tzname;
  7281. #endif
  7282. ;
  7283. return 0;
  7284. }
  7285. _ACEOF
  7286. rm -f conftest.$ac_objext
  7287. if { (ac_try="$ac_compile"
  7288. case "(($ac_try" in
  7289. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7290. *) ac_try_echo=$ac_try;;
  7291. esac
  7292. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7293. (eval "$ac_compile") 2>conftest.er1
  7294. ac_status=$?
  7295. grep -v '^ *+' conftest.er1 >conftest.err
  7296. rm -f conftest.er1
  7297. cat conftest.err >&5
  7298. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7299. (exit $ac_status); } && {
  7300. test -z "$ac_cxx_werror_flag" ||
  7301. test ! -s conftest.err
  7302. } && test -s conftest.$ac_objext; then
  7303. ac_cv_have_decl_tzname=yes
  7304. else
  7305. echo "$as_me: failed program was:" >&5
  7306. sed 's/^/| /' conftest.$ac_ext >&5
  7307. ac_cv_have_decl_tzname=no
  7308. fi
  7309. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7310. fi
  7311. { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
  7312. echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
  7313. if test $ac_cv_have_decl_tzname = yes; then
  7314. cat >>confdefs.h <<_ACEOF
  7315. #define HAVE_DECL_TZNAME 1
  7316. _ACEOF
  7317. else
  7318. cat >>confdefs.h <<_ACEOF
  7319. #define HAVE_DECL_TZNAME 0
  7320. _ACEOF
  7321. fi
  7322. { echo "$as_me:$LINENO: checking for tzname" >&5
  7323. echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
  7324. if test "${ac_cv_var_tzname+set}" = set; then
  7325. echo $ECHO_N "(cached) $ECHO_C" >&6
  7326. else
  7327. cat >conftest.$ac_ext <<_ACEOF
  7328. /* confdefs.h. */
  7329. _ACEOF
  7330. cat confdefs.h >>conftest.$ac_ext
  7331. cat >>conftest.$ac_ext <<_ACEOF
  7332. /* end confdefs.h. */
  7333. #include <time.h>
  7334. #if !HAVE_DECL_TZNAME
  7335. extern char *tzname[];
  7336. #endif
  7337. int
  7338. main ()
  7339. {
  7340. return tzname[0][0];
  7341. ;
  7342. return 0;
  7343. }
  7344. _ACEOF
  7345. rm -f conftest.$ac_objext conftest$ac_exeext
  7346. if { (ac_try="$ac_link"
  7347. case "(($ac_try" in
  7348. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7349. *) ac_try_echo=$ac_try;;
  7350. esac
  7351. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7352. (eval "$ac_link") 2>conftest.er1
  7353. ac_status=$?
  7354. grep -v '^ *+' conftest.er1 >conftest.err
  7355. rm -f conftest.er1
  7356. cat conftest.err >&5
  7357. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7358. (exit $ac_status); } && {
  7359. test -z "$ac_cxx_werror_flag" ||
  7360. test ! -s conftest.err
  7361. } && test -s conftest$ac_exeext &&
  7362. $as_test_x conftest$ac_exeext; then
  7363. ac_cv_var_tzname=yes
  7364. else
  7365. echo "$as_me: failed program was:" >&5
  7366. sed 's/^/| /' conftest.$ac_ext >&5
  7367. ac_cv_var_tzname=no
  7368. fi
  7369. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7370. conftest$ac_exeext conftest.$ac_ext
  7371. fi
  7372. { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  7373. echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
  7374. if test $ac_cv_var_tzname = yes; then
  7375. cat >>confdefs.h <<\_ACEOF
  7376. #define HAVE_TZNAME 1
  7377. _ACEOF
  7378. fi
  7379. fi
  7380. { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  7381. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
  7382. if test "${ac_cv_struct_tm+set}" = set; then
  7383. echo $ECHO_N "(cached) $ECHO_C" >&6
  7384. else
  7385. cat >conftest.$ac_ext <<_ACEOF
  7386. /* confdefs.h. */
  7387. _ACEOF
  7388. cat confdefs.h >>conftest.$ac_ext
  7389. cat >>conftest.$ac_ext <<_ACEOF
  7390. /* end confdefs.h. */
  7391. #include <sys/types.h>
  7392. #include <time.h>
  7393. int
  7394. main ()
  7395. {
  7396. struct tm tm;
  7397. int *p = &tm.tm_sec;
  7398. return !p;
  7399. ;
  7400. return 0;
  7401. }
  7402. _ACEOF
  7403. rm -f conftest.$ac_objext
  7404. if { (ac_try="$ac_compile"
  7405. case "(($ac_try" in
  7406. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7407. *) ac_try_echo=$ac_try;;
  7408. esac
  7409. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7410. (eval "$ac_compile") 2>conftest.er1
  7411. ac_status=$?
  7412. grep -v '^ *+' conftest.er1 >conftest.err
  7413. rm -f conftest.er1
  7414. cat conftest.err >&5
  7415. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7416. (exit $ac_status); } && {
  7417. test -z "$ac_cxx_werror_flag" ||
  7418. test ! -s conftest.err
  7419. } && test -s conftest.$ac_objext; then
  7420. ac_cv_struct_tm=time.h
  7421. else
  7422. echo "$as_me: failed program was:" >&5
  7423. sed 's/^/| /' conftest.$ac_ext >&5
  7424. ac_cv_struct_tm=sys/time.h
  7425. fi
  7426. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7427. fi
  7428. { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  7429. echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
  7430. if test $ac_cv_struct_tm = sys/time.h; then
  7431. cat >>confdefs.h <<\_ACEOF
  7432. #define TM_IN_SYS_TIME 1
  7433. _ACEOF
  7434. fi
  7435. #checkpoint
  7436. cat >confcache <<\_ACEOF
  7437. # This file is a shell script that caches the results of configure
  7438. # tests run on this system so they can be shared between configure
  7439. # scripts and configure runs, see configure's option --config-cache.
  7440. # It is not useful on other systems. If it contains results you don't
  7441. # want to keep, you may remove or edit it.
  7442. #
  7443. # config.status only pays attention to the cache file if you give it
  7444. # the --recheck option to rerun configure.
  7445. #
  7446. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  7447. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  7448. # following values.
  7449. _ACEOF
  7450. # The following way of writing the cache mishandles newlines in values,
  7451. # but we know of no workaround that is simple, portable, and efficient.
  7452. # So, we kill variables containing newlines.
  7453. # Ultrix sh set writes to stderr and can't be redirected directly,
  7454. # and sets the high bit in the cache file unless we assign to the vars.
  7455. (
  7456. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  7457. eval ac_val=\$$ac_var
  7458. case $ac_val in #(
  7459. *${as_nl}*)
  7460. case $ac_var in #(
  7461. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  7462. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  7463. esac
  7464. case $ac_var in #(
  7465. _ | IFS | as_nl) ;; #(
  7466. *) $as_unset $ac_var ;;
  7467. esac ;;
  7468. esac
  7469. done
  7470. (set) 2>&1 |
  7471. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  7472. *${as_nl}ac_space=\ *)
  7473. # `set' does not quote correctly, so add quotes (double-quote
  7474. # substitution turns \\\\ into \\, and sed turns \\ into \).
  7475. sed -n \
  7476. "s/'/'\\\\''/g;
  7477. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  7478. ;; #(
  7479. *)
  7480. # `set' quotes correctly as required by POSIX, so do not add quotes.
  7481. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  7482. ;;
  7483. esac |
  7484. sort
  7485. ) |
  7486. sed '
  7487. /^ac_cv_env_/b end
  7488. t clear
  7489. :clear
  7490. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  7491. t end
  7492. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  7493. :end' >>confcache
  7494. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  7495. if test -w "$cache_file"; then
  7496. test "x$cache_file" != "x/dev/null" &&
  7497. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  7498. echo "$as_me: updating cache $cache_file" >&6;}
  7499. cat confcache >$cache_file
  7500. else
  7501. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  7502. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  7503. fi
  7504. fi
  7505. rm -f confcache
  7506. # Checks for library functions
  7507. for ac_header in vfork.h
  7508. do
  7509. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7510. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7511. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7512. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7513. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7514. echo $ECHO_N "(cached) $ECHO_C" >&6
  7515. fi
  7516. ac_res=`eval echo '${'$as_ac_Header'}'`
  7517. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7518. echo "${ECHO_T}$ac_res" >&6; }
  7519. else
  7520. # Is the header compilable?
  7521. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7522. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  7523. cat >conftest.$ac_ext <<_ACEOF
  7524. /* confdefs.h. */
  7525. _ACEOF
  7526. cat confdefs.h >>conftest.$ac_ext
  7527. cat >>conftest.$ac_ext <<_ACEOF
  7528. /* end confdefs.h. */
  7529. $ac_includes_default
  7530. #include <$ac_header>
  7531. _ACEOF
  7532. rm -f conftest.$ac_objext
  7533. if { (ac_try="$ac_compile"
  7534. case "(($ac_try" in
  7535. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7536. *) ac_try_echo=$ac_try;;
  7537. esac
  7538. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7539. (eval "$ac_compile") 2>conftest.er1
  7540. ac_status=$?
  7541. grep -v '^ *+' conftest.er1 >conftest.err
  7542. rm -f conftest.er1
  7543. cat conftest.err >&5
  7544. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7545. (exit $ac_status); } && {
  7546. test -z "$ac_cxx_werror_flag" ||
  7547. test ! -s conftest.err
  7548. } && test -s conftest.$ac_objext; then
  7549. ac_header_compiler=yes
  7550. else
  7551. echo "$as_me: failed program was:" >&5
  7552. sed 's/^/| /' conftest.$ac_ext >&5
  7553. ac_header_compiler=no
  7554. fi
  7555. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7556. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7557. echo "${ECHO_T}$ac_header_compiler" >&6; }
  7558. # Is the header present?
  7559. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7560. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  7561. cat >conftest.$ac_ext <<_ACEOF
  7562. /* confdefs.h. */
  7563. _ACEOF
  7564. cat confdefs.h >>conftest.$ac_ext
  7565. cat >>conftest.$ac_ext <<_ACEOF
  7566. /* end confdefs.h. */
  7567. #include <$ac_header>
  7568. _ACEOF
  7569. if { (ac_try="$ac_cpp conftest.$ac_ext"
  7570. case "(($ac_try" in
  7571. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7572. *) ac_try_echo=$ac_try;;
  7573. esac
  7574. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7575. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  7576. ac_status=$?
  7577. grep -v '^ *+' conftest.er1 >conftest.err
  7578. rm -f conftest.er1
  7579. cat conftest.err >&5
  7580. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7581. (exit $ac_status); } >/dev/null && {
  7582. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  7583. test ! -s conftest.err
  7584. }; then
  7585. ac_header_preproc=yes
  7586. else
  7587. echo "$as_me: failed program was:" >&5
  7588. sed 's/^/| /' conftest.$ac_ext >&5
  7589. ac_header_preproc=no
  7590. fi
  7591. rm -f conftest.err conftest.$ac_ext
  7592. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7593. echo "${ECHO_T}$ac_header_preproc" >&6; }
  7594. # So? What about this header?
  7595. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7596. yes:no: )
  7597. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7598. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7599. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7600. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7601. ac_header_preproc=yes
  7602. ;;
  7603. no:yes:* )
  7604. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7605. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7606. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7607. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7608. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7609. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7610. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7611. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7612. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7613. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7614. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7615. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7616. ;;
  7617. esac
  7618. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  7619. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  7620. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  7621. echo $ECHO_N "(cached) $ECHO_C" >&6
  7622. else
  7623. eval "$as_ac_Header=\$ac_header_preproc"
  7624. fi
  7625. ac_res=`eval echo '${'$as_ac_Header'}'`
  7626. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7627. echo "${ECHO_T}$ac_res" >&6; }
  7628. fi
  7629. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7630. cat >>confdefs.h <<_ACEOF
  7631. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7632. _ACEOF
  7633. fi
  7634. done
  7635. for ac_func in fork vfork
  7636. do
  7637. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7638. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  7639. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  7640. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  7641. echo $ECHO_N "(cached) $ECHO_C" >&6
  7642. else
  7643. cat >conftest.$ac_ext <<_ACEOF
  7644. /* confdefs.h. */
  7645. _ACEOF
  7646. cat confdefs.h >>conftest.$ac_ext
  7647. cat >>conftest.$ac_ext <<_ACEOF
  7648. /* end confdefs.h. */
  7649. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7650. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7651. #define $ac_func innocuous_$ac_func
  7652. /* System header to define __stub macros and hopefully few prototypes,
  7653. which can conflict with char $ac_func (); below.
  7654. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7655. <limits.h> exists even on freestanding compilers. */
  7656. #ifdef __STDC__
  7657. # include <limits.h>
  7658. #else
  7659. # include <assert.h>
  7660. #endif
  7661. #undef $ac_func
  7662. /* Override any GCC internal prototype to avoid an error.
  7663. Use char because int might match the return type of a GCC
  7664. builtin and then its argument prototype would still apply. */
  7665. #ifdef __cplusplus
  7666. extern "C"
  7667. #endif
  7668. char $ac_func ();
  7669. /* The GNU C library defines this for functions which it implements
  7670. to always fail with ENOSYS. Some functions are actually named
  7671. something starting with __ and the normal name is an alias. */
  7672. #if defined __stub_$ac_func || defined __stub___$ac_func
  7673. choke me
  7674. #endif
  7675. int
  7676. main ()
  7677. {
  7678. return $ac_func ();
  7679. ;
  7680. return 0;
  7681. }
  7682. _ACEOF
  7683. rm -f conftest.$ac_objext conftest$ac_exeext
  7684. if { (ac_try="$ac_link"
  7685. case "(($ac_try" in
  7686. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7687. *) ac_try_echo=$ac_try;;
  7688. esac
  7689. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7690. (eval "$ac_link") 2>conftest.er1
  7691. ac_status=$?
  7692. grep -v '^ *+' conftest.er1 >conftest.err
  7693. rm -f conftest.er1
  7694. cat conftest.err >&5
  7695. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7696. (exit $ac_status); } && {
  7697. test -z "$ac_cxx_werror_flag" ||
  7698. test ! -s conftest.err
  7699. } && test -s conftest$ac_exeext &&
  7700. $as_test_x conftest$ac_exeext; then
  7701. eval "$as_ac_var=yes"
  7702. else
  7703. echo "$as_me: failed program was:" >&5
  7704. sed 's/^/| /' conftest.$ac_ext >&5
  7705. eval "$as_ac_var=no"
  7706. fi
  7707. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  7708. conftest$ac_exeext conftest.$ac_ext
  7709. fi
  7710. ac_res=`eval echo '${'$as_ac_var'}'`
  7711. { echo "$as_me:$LINENO: result: $ac_res" >&5
  7712. echo "${ECHO_T}$ac_res" >&6; }
  7713. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7714. cat >>confdefs.h <<_ACEOF
  7715. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7716. _ACEOF
  7717. fi
  7718. done
  7719. if test "x$ac_cv_func_fork" = xyes; then
  7720. { echo "$as_me:$LINENO: checking for working fork" >&5
  7721. echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
  7722. if test "${ac_cv_func_fork_works+set}" = set; then
  7723. echo $ECHO_N "(cached) $ECHO_C" >&6
  7724. else
  7725. if test "$cross_compiling" = yes; then
  7726. ac_cv_func_fork_works=cross
  7727. else
  7728. cat >conftest.$ac_ext <<_ACEOF
  7729. /* confdefs.h. */
  7730. _ACEOF
  7731. cat confdefs.h >>conftest.$ac_ext
  7732. cat >>conftest.$ac_ext <<_ACEOF
  7733. /* end confdefs.h. */
  7734. $ac_includes_default
  7735. int
  7736. main ()
  7737. {
  7738. /* By Ruediger Kuhlmann. */
  7739. return fork () < 0;
  7740. ;
  7741. return 0;
  7742. }
  7743. _ACEOF
  7744. rm -f conftest$ac_exeext
  7745. if { (ac_try="$ac_link"
  7746. case "(($ac_try" in
  7747. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7748. *) ac_try_echo=$ac_try;;
  7749. esac
  7750. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7751. (eval "$ac_link") 2>&5
  7752. ac_status=$?
  7753. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7754. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7755. { (case "(($ac_try" in
  7756. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7757. *) ac_try_echo=$ac_try;;
  7758. esac
  7759. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7760. (eval "$ac_try") 2>&5
  7761. ac_status=$?
  7762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7763. (exit $ac_status); }; }; then
  7764. ac_cv_func_fork_works=yes
  7765. else
  7766. echo "$as_me: program exited with status $ac_status" >&5
  7767. echo "$as_me: failed program was:" >&5
  7768. sed 's/^/| /' conftest.$ac_ext >&5
  7769. ( exit $ac_status )
  7770. ac_cv_func_fork_works=no
  7771. fi
  7772. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7773. fi
  7774. fi
  7775. { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7776. echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
  7777. else
  7778. ac_cv_func_fork_works=$ac_cv_func_fork
  7779. fi
  7780. if test "x$ac_cv_func_fork_works" = xcross; then
  7781. case $host in
  7782. *-*-amigaos* | *-*-msdosdjgpp*)
  7783. # Override, as these systems have only a dummy fork() stub
  7784. ac_cv_func_fork_works=no
  7785. ;;
  7786. *)
  7787. ac_cv_func_fork_works=yes
  7788. ;;
  7789. esac
  7790. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7791. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7792. fi
  7793. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7794. if test "x$ac_cv_func_vfork" = xyes; then
  7795. { echo "$as_me:$LINENO: checking for working vfork" >&5
  7796. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
  7797. if test "${ac_cv_func_vfork_works+set}" = set; then
  7798. echo $ECHO_N "(cached) $ECHO_C" >&6
  7799. else
  7800. if test "$cross_compiling" = yes; then
  7801. ac_cv_func_vfork_works=cross
  7802. else
  7803. cat >conftest.$ac_ext <<_ACEOF
  7804. /* confdefs.h. */
  7805. _ACEOF
  7806. cat confdefs.h >>conftest.$ac_ext
  7807. cat >>conftest.$ac_ext <<_ACEOF
  7808. /* end confdefs.h. */
  7809. /* Thanks to Paul Eggert for this test. */
  7810. $ac_includes_default
  7811. #include <sys/wait.h>
  7812. #ifdef HAVE_VFORK_H
  7813. # include <vfork.h>
  7814. #endif
  7815. /* On some sparc systems, changes by the child to local and incoming
  7816. argument registers are propagated back to the parent. The compiler
  7817. is told about this with #include <vfork.h>, but some compilers
  7818. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7819. static variable whose address is put into a register that is
  7820. clobbered by the vfork. */
  7821. static void
  7822. #ifdef __cplusplus
  7823. sparc_address_test (int arg)
  7824. # else
  7825. sparc_address_test (arg) int arg;
  7826. #endif
  7827. {
  7828. static pid_t child;
  7829. if (!child) {
  7830. child = vfork ();
  7831. if (child < 0) {
  7832. perror ("vfork");
  7833. _exit(2);
  7834. }
  7835. if (!child) {
  7836. arg = getpid();
  7837. write(-1, "", 0);
  7838. _exit (arg);
  7839. }
  7840. }
  7841. }
  7842. int
  7843. main ()
  7844. {
  7845. pid_t parent = getpid ();
  7846. pid_t child;
  7847. sparc_address_test (0);
  7848. child = vfork ();
  7849. if (child == 0) {
  7850. /* Here is another test for sparc vfork register problems. This
  7851. test uses lots of local variables, at least as many local
  7852. variables as main has allocated so far including compiler
  7853. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7854. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7855. reuse the register of parent for one of the local variables,
  7856. since it will think that parent can't possibly be used any more
  7857. in this routine. Assigning to the local variable will thus
  7858. munge parent in the parent process. */
  7859. pid_t
  7860. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7861. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7862. /* Convince the compiler that p..p7 are live; otherwise, it might
  7863. use the same hardware register for all 8 local variables. */
  7864. if (p != p1 || p != p2 || p != p3 || p != p4
  7865. || p != p5 || p != p6 || p != p7)
  7866. _exit(1);
  7867. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7868. from child file descriptors. If the child closes a descriptor
  7869. before it execs or exits, this munges the parent's descriptor
  7870. as well. Test for this by closing stdout in the child. */
  7871. _exit(close(fileno(stdout)) != 0);
  7872. } else {
  7873. int status;
  7874. struct stat st;
  7875. while (wait(&status) != child)
  7876. ;
  7877. return (
  7878. /* Was there some problem with vforking? */
  7879. child < 0
  7880. /* Did the child fail? (This shouldn't happen.) */
  7881. || status
  7882. /* Did the vfork/compiler bug occur? */
  7883. || parent != getpid()
  7884. /* Did the file descriptor bug occur? */
  7885. || fstat(fileno(stdout), &st) != 0
  7886. );
  7887. }
  7888. }
  7889. _ACEOF
  7890. rm -f conftest$ac_exeext
  7891. if { (ac_try="$ac_link"
  7892. case "(($ac_try" in
  7893. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7894. *) ac_try_echo=$ac_try;;
  7895. esac
  7896. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7897. (eval "$ac_link") 2>&5
  7898. ac_status=$?
  7899. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7900. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7901. { (case "(($ac_try" in
  7902. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7903. *) ac_try_echo=$ac_try;;
  7904. esac
  7905. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7906. (eval "$ac_try") 2>&5
  7907. ac_status=$?
  7908. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7909. (exit $ac_status); }; }; then
  7910. ac_cv_func_vfork_works=yes
  7911. else
  7912. echo "$as_me: program exited with status $ac_status" >&5
  7913. echo "$as_me: failed program was:" >&5
  7914. sed 's/^/| /' conftest.$ac_ext >&5
  7915. ( exit $ac_status )
  7916. ac_cv_func_vfork_works=no
  7917. fi
  7918. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7919. fi
  7920. fi
  7921. { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7922. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
  7923. fi;
  7924. if test "x$ac_cv_func_fork_works" = xcross; then
  7925. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7926. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7927. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7928. fi
  7929. if test "x$ac_cv_func_vfork_works" = xyes; then
  7930. cat >>confdefs.h <<\_ACEOF
  7931. #define HAVE_WORKING_VFORK 1
  7932. _ACEOF
  7933. else
  7934. cat >>confdefs.h <<\_ACEOF
  7935. #define vfork fork
  7936. _ACEOF
  7937. fi
  7938. if test "x$ac_cv_func_fork_works" = xyes; then
  7939. cat >>confdefs.h <<\_ACEOF
  7940. #define HAVE_WORKING_FORK 1
  7941. _ACEOF
  7942. fi
  7943. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7944. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  7945. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7946. echo $ECHO_N "(cached) $ECHO_C" >&6
  7947. else
  7948. rm -f conftest.sym conftest.file
  7949. echo >conftest.file
  7950. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7951. if test "$cross_compiling" = yes; then
  7952. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7953. else
  7954. cat >conftest.$ac_ext <<_ACEOF
  7955. /* confdefs.h. */
  7956. _ACEOF
  7957. cat confdefs.h >>conftest.$ac_ext
  7958. cat >>conftest.$ac_ext <<_ACEOF
  7959. /* end confdefs.h. */
  7960. $ac_includes_default
  7961. int
  7962. main ()
  7963. {
  7964. struct stat sbuf;
  7965. /* Linux will dereference the symlink and fail.
  7966. That is better in the sense that it means we will not
  7967. have to compile and use the lstat wrapper. */
  7968. return lstat ("conftest.sym/", &sbuf) == 0;
  7969. ;
  7970. return 0;
  7971. }
  7972. _ACEOF
  7973. rm -f conftest$ac_exeext
  7974. if { (ac_try="$ac_link"
  7975. case "(($ac_try" in
  7976. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7977. *) ac_try_echo=$ac_try;;
  7978. esac
  7979. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7980. (eval "$ac_link") 2>&5
  7981. ac_status=$?
  7982. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7983. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7984. { (case "(($ac_try" in
  7985. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  7986. *) ac_try_echo=$ac_try;;
  7987. esac
  7988. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  7989. (eval "$ac_try") 2>&5
  7990. ac_status=$?
  7991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7992. (exit $ac_status); }; }; then
  7993. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7994. else
  7995. echo "$as_me: program exited with status $ac_status" >&5
  7996. echo "$as_me: failed program was:" >&5
  7997. sed 's/^/| /' conftest.$ac_ext >&5
  7998. ( exit $ac_status )
  7999. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8000. fi
  8001. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8002. fi
  8003. else
  8004. # If the `ln -s' command failed, then we probably don't even
  8005. # have an lstat function.
  8006. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8007. fi
  8008. rm -f conftest.sym conftest.file
  8009. fi
  8010. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8011. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  8012. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8013. cat >>confdefs.h <<_ACEOF
  8014. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8015. _ACEOF
  8016. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8017. case " $LIBOBJS " in
  8018. *" lstat.$ac_objext "* ) ;;
  8019. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  8020. ;;
  8021. esac
  8022. fi
  8023. { echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  8024. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
  8025. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  8026. echo $ECHO_N "(cached) $ECHO_C" >&6
  8027. else
  8028. if test "$cross_compiling" = yes; then
  8029. ac_cv_func_lstat_empty_string_bug=yes
  8030. else
  8031. cat >conftest.$ac_ext <<_ACEOF
  8032. /* confdefs.h. */
  8033. _ACEOF
  8034. cat confdefs.h >>conftest.$ac_ext
  8035. cat >>conftest.$ac_ext <<_ACEOF
  8036. /* end confdefs.h. */
  8037. $ac_includes_default
  8038. int
  8039. main ()
  8040. {
  8041. struct stat sbuf;
  8042. return lstat ("", &sbuf) == 0;
  8043. ;
  8044. return 0;
  8045. }
  8046. _ACEOF
  8047. rm -f conftest$ac_exeext
  8048. if { (ac_try="$ac_link"
  8049. case "(($ac_try" in
  8050. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8051. *) ac_try_echo=$ac_try;;
  8052. esac
  8053. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8054. (eval "$ac_link") 2>&5
  8055. ac_status=$?
  8056. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8057. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8058. { (case "(($ac_try" in
  8059. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8060. *) ac_try_echo=$ac_try;;
  8061. esac
  8062. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8063. (eval "$ac_try") 2>&5
  8064. ac_status=$?
  8065. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8066. (exit $ac_status); }; }; then
  8067. ac_cv_func_lstat_empty_string_bug=no
  8068. else
  8069. echo "$as_me: program exited with status $ac_status" >&5
  8070. echo "$as_me: failed program was:" >&5
  8071. sed 's/^/| /' conftest.$ac_ext >&5
  8072. ( exit $ac_status )
  8073. ac_cv_func_lstat_empty_string_bug=yes
  8074. fi
  8075. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8076. fi
  8077. fi
  8078. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  8079. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
  8080. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  8081. case " $LIBOBJS " in
  8082. *" lstat.$ac_objext "* ) ;;
  8083. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  8084. ;;
  8085. esac
  8086. cat >>confdefs.h <<_ACEOF
  8087. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  8088. _ACEOF
  8089. fi
  8090. { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  8091. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
  8092. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  8093. echo $ECHO_N "(cached) $ECHO_C" >&6
  8094. else
  8095. rm -f conftest.sym conftest.file
  8096. echo >conftest.file
  8097. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  8098. if test "$cross_compiling" = yes; then
  8099. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8100. else
  8101. cat >conftest.$ac_ext <<_ACEOF
  8102. /* confdefs.h. */
  8103. _ACEOF
  8104. cat confdefs.h >>conftest.$ac_ext
  8105. cat >>conftest.$ac_ext <<_ACEOF
  8106. /* end confdefs.h. */
  8107. $ac_includes_default
  8108. int
  8109. main ()
  8110. {
  8111. struct stat sbuf;
  8112. /* Linux will dereference the symlink and fail.
  8113. That is better in the sense that it means we will not
  8114. have to compile and use the lstat wrapper. */
  8115. return lstat ("conftest.sym/", &sbuf) == 0;
  8116. ;
  8117. return 0;
  8118. }
  8119. _ACEOF
  8120. rm -f conftest$ac_exeext
  8121. if { (ac_try="$ac_link"
  8122. case "(($ac_try" in
  8123. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8124. *) ac_try_echo=$ac_try;;
  8125. esac
  8126. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8127. (eval "$ac_link") 2>&5
  8128. ac_status=$?
  8129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8130. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8131. { (case "(($ac_try" in
  8132. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8133. *) ac_try_echo=$ac_try;;
  8134. esac
  8135. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8136. (eval "$ac_try") 2>&5
  8137. ac_status=$?
  8138. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8139. (exit $ac_status); }; }; then
  8140. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  8141. else
  8142. echo "$as_me: program exited with status $ac_status" >&5
  8143. echo "$as_me: failed program was:" >&5
  8144. sed 's/^/| /' conftest.$ac_ext >&5
  8145. ( exit $ac_status )
  8146. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8147. fi
  8148. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8149. fi
  8150. else
  8151. # If the `ln -s' command failed, then we probably don't even
  8152. # have an lstat function.
  8153. ac_cv_func_lstat_dereferences_slashed_symlink=no
  8154. fi
  8155. rm -f conftest.sym conftest.file
  8156. fi
  8157. { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  8158. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
  8159. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  8160. cat >>confdefs.h <<_ACEOF
  8161. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  8162. _ACEOF
  8163. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  8164. case " $LIBOBJS " in
  8165. *" lstat.$ac_objext "* ) ;;
  8166. *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
  8167. ;;
  8168. esac
  8169. fi
  8170. for ac_header in stdlib.h
  8171. do
  8172. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8173. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8174. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8175. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8176. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8177. echo $ECHO_N "(cached) $ECHO_C" >&6
  8178. fi
  8179. ac_res=`eval echo '${'$as_ac_Header'}'`
  8180. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8181. echo "${ECHO_T}$ac_res" >&6; }
  8182. else
  8183. # Is the header compilable?
  8184. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8185. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8186. cat >conftest.$ac_ext <<_ACEOF
  8187. /* confdefs.h. */
  8188. _ACEOF
  8189. cat confdefs.h >>conftest.$ac_ext
  8190. cat >>conftest.$ac_ext <<_ACEOF
  8191. /* end confdefs.h. */
  8192. $ac_includes_default
  8193. #include <$ac_header>
  8194. _ACEOF
  8195. rm -f conftest.$ac_objext
  8196. if { (ac_try="$ac_compile"
  8197. case "(($ac_try" in
  8198. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8199. *) ac_try_echo=$ac_try;;
  8200. esac
  8201. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8202. (eval "$ac_compile") 2>conftest.er1
  8203. ac_status=$?
  8204. grep -v '^ *+' conftest.er1 >conftest.err
  8205. rm -f conftest.er1
  8206. cat conftest.err >&5
  8207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8208. (exit $ac_status); } && {
  8209. test -z "$ac_cxx_werror_flag" ||
  8210. test ! -s conftest.err
  8211. } && test -s conftest.$ac_objext; then
  8212. ac_header_compiler=yes
  8213. else
  8214. echo "$as_me: failed program was:" >&5
  8215. sed 's/^/| /' conftest.$ac_ext >&5
  8216. ac_header_compiler=no
  8217. fi
  8218. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8219. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8220. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8221. # Is the header present?
  8222. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8223. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8224. cat >conftest.$ac_ext <<_ACEOF
  8225. /* confdefs.h. */
  8226. _ACEOF
  8227. cat confdefs.h >>conftest.$ac_ext
  8228. cat >>conftest.$ac_ext <<_ACEOF
  8229. /* end confdefs.h. */
  8230. #include <$ac_header>
  8231. _ACEOF
  8232. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8233. case "(($ac_try" in
  8234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8235. *) ac_try_echo=$ac_try;;
  8236. esac
  8237. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8238. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8239. ac_status=$?
  8240. grep -v '^ *+' conftest.er1 >conftest.err
  8241. rm -f conftest.er1
  8242. cat conftest.err >&5
  8243. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8244. (exit $ac_status); } >/dev/null && {
  8245. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8246. test ! -s conftest.err
  8247. }; then
  8248. ac_header_preproc=yes
  8249. else
  8250. echo "$as_me: failed program was:" >&5
  8251. sed 's/^/| /' conftest.$ac_ext >&5
  8252. ac_header_preproc=no
  8253. fi
  8254. rm -f conftest.err conftest.$ac_ext
  8255. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8256. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8257. # So? What about this header?
  8258. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8259. yes:no: )
  8260. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8261. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8262. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8263. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8264. ac_header_preproc=yes
  8265. ;;
  8266. no:yes:* )
  8267. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8268. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8269. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8270. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8271. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8272. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8273. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8274. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8275. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8276. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8277. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8278. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8279. ;;
  8280. esac
  8281. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8282. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8283. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8284. echo $ECHO_N "(cached) $ECHO_C" >&6
  8285. else
  8286. eval "$as_ac_Header=\$ac_header_preproc"
  8287. fi
  8288. ac_res=`eval echo '${'$as_ac_Header'}'`
  8289. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8290. echo "${ECHO_T}$ac_res" >&6; }
  8291. fi
  8292. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8293. cat >>confdefs.h <<_ACEOF
  8294. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8295. _ACEOF
  8296. fi
  8297. done
  8298. { echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  8299. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
  8300. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  8301. echo $ECHO_N "(cached) $ECHO_C" >&6
  8302. else
  8303. if test "$cross_compiling" = yes; then
  8304. ac_cv_func_malloc_0_nonnull=no
  8305. else
  8306. cat >conftest.$ac_ext <<_ACEOF
  8307. /* confdefs.h. */
  8308. _ACEOF
  8309. cat confdefs.h >>conftest.$ac_ext
  8310. cat >>conftest.$ac_ext <<_ACEOF
  8311. /* end confdefs.h. */
  8312. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  8313. # include <stdlib.h>
  8314. #else
  8315. char *malloc ();
  8316. #endif
  8317. int
  8318. main ()
  8319. {
  8320. return ! malloc (0);
  8321. ;
  8322. return 0;
  8323. }
  8324. _ACEOF
  8325. rm -f conftest$ac_exeext
  8326. if { (ac_try="$ac_link"
  8327. case "(($ac_try" in
  8328. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8329. *) ac_try_echo=$ac_try;;
  8330. esac
  8331. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8332. (eval "$ac_link") 2>&5
  8333. ac_status=$?
  8334. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8335. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8336. { (case "(($ac_try" in
  8337. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8338. *) ac_try_echo=$ac_try;;
  8339. esac
  8340. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8341. (eval "$ac_try") 2>&5
  8342. ac_status=$?
  8343. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8344. (exit $ac_status); }; }; then
  8345. ac_cv_func_malloc_0_nonnull=yes
  8346. else
  8347. echo "$as_me: program exited with status $ac_status" >&5
  8348. echo "$as_me: failed program was:" >&5
  8349. sed 's/^/| /' conftest.$ac_ext >&5
  8350. ( exit $ac_status )
  8351. ac_cv_func_malloc_0_nonnull=no
  8352. fi
  8353. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8354. fi
  8355. fi
  8356. { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  8357. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
  8358. if test $ac_cv_func_malloc_0_nonnull = yes; then
  8359. cat >>confdefs.h <<\_ACEOF
  8360. #define HAVE_MALLOC 1
  8361. _ACEOF
  8362. else
  8363. cat >>confdefs.h <<\_ACEOF
  8364. #define HAVE_MALLOC 0
  8365. _ACEOF
  8366. case " $LIBOBJS " in
  8367. *" malloc.$ac_objext "* ) ;;
  8368. *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  8369. ;;
  8370. esac
  8371. cat >>confdefs.h <<\_ACEOF
  8372. #define malloc rpl_malloc
  8373. _ACEOF
  8374. fi
  8375. for ac_header in $ac_header_list
  8376. do
  8377. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8378. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8379. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8380. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8381. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8382. echo $ECHO_N "(cached) $ECHO_C" >&6
  8383. fi
  8384. ac_res=`eval echo '${'$as_ac_Header'}'`
  8385. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8386. echo "${ECHO_T}$ac_res" >&6; }
  8387. else
  8388. # Is the header compilable?
  8389. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8390. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8391. cat >conftest.$ac_ext <<_ACEOF
  8392. /* confdefs.h. */
  8393. _ACEOF
  8394. cat confdefs.h >>conftest.$ac_ext
  8395. cat >>conftest.$ac_ext <<_ACEOF
  8396. /* end confdefs.h. */
  8397. $ac_includes_default
  8398. #include <$ac_header>
  8399. _ACEOF
  8400. rm -f conftest.$ac_objext
  8401. if { (ac_try="$ac_compile"
  8402. case "(($ac_try" in
  8403. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8404. *) ac_try_echo=$ac_try;;
  8405. esac
  8406. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8407. (eval "$ac_compile") 2>conftest.er1
  8408. ac_status=$?
  8409. grep -v '^ *+' conftest.er1 >conftest.err
  8410. rm -f conftest.er1
  8411. cat conftest.err >&5
  8412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8413. (exit $ac_status); } && {
  8414. test -z "$ac_cxx_werror_flag" ||
  8415. test ! -s conftest.err
  8416. } && test -s conftest.$ac_objext; then
  8417. ac_header_compiler=yes
  8418. else
  8419. echo "$as_me: failed program was:" >&5
  8420. sed 's/^/| /' conftest.$ac_ext >&5
  8421. ac_header_compiler=no
  8422. fi
  8423. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8424. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8425. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8426. # Is the header present?
  8427. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8428. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8429. cat >conftest.$ac_ext <<_ACEOF
  8430. /* confdefs.h. */
  8431. _ACEOF
  8432. cat confdefs.h >>conftest.$ac_ext
  8433. cat >>conftest.$ac_ext <<_ACEOF
  8434. /* end confdefs.h. */
  8435. #include <$ac_header>
  8436. _ACEOF
  8437. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8438. case "(($ac_try" in
  8439. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8440. *) ac_try_echo=$ac_try;;
  8441. esac
  8442. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8443. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8444. ac_status=$?
  8445. grep -v '^ *+' conftest.er1 >conftest.err
  8446. rm -f conftest.er1
  8447. cat conftest.err >&5
  8448. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8449. (exit $ac_status); } >/dev/null && {
  8450. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8451. test ! -s conftest.err
  8452. }; then
  8453. ac_header_preproc=yes
  8454. else
  8455. echo "$as_me: failed program was:" >&5
  8456. sed 's/^/| /' conftest.$ac_ext >&5
  8457. ac_header_preproc=no
  8458. fi
  8459. rm -f conftest.err conftest.$ac_ext
  8460. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8461. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8462. # So? What about this header?
  8463. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8464. yes:no: )
  8465. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8466. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8467. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8468. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8469. ac_header_preproc=yes
  8470. ;;
  8471. no:yes:* )
  8472. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8473. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8474. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8475. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8476. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8477. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8478. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8479. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8480. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8481. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8482. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8483. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8484. ;;
  8485. esac
  8486. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8487. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8488. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8489. echo $ECHO_N "(cached) $ECHO_C" >&6
  8490. else
  8491. eval "$as_ac_Header=\$ac_header_preproc"
  8492. fi
  8493. ac_res=`eval echo '${'$as_ac_Header'}'`
  8494. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8495. echo "${ECHO_T}$ac_res" >&6; }
  8496. fi
  8497. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8498. cat >>confdefs.h <<_ACEOF
  8499. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8500. _ACEOF
  8501. fi
  8502. done
  8503. for ac_func in $ac_func_list
  8504. do
  8505. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8506. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8507. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8508. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8509. echo $ECHO_N "(cached) $ECHO_C" >&6
  8510. else
  8511. cat >conftest.$ac_ext <<_ACEOF
  8512. /* confdefs.h. */
  8513. _ACEOF
  8514. cat confdefs.h >>conftest.$ac_ext
  8515. cat >>conftest.$ac_ext <<_ACEOF
  8516. /* end confdefs.h. */
  8517. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8518. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8519. #define $ac_func innocuous_$ac_func
  8520. /* System header to define __stub macros and hopefully few prototypes,
  8521. which can conflict with char $ac_func (); below.
  8522. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8523. <limits.h> exists even on freestanding compilers. */
  8524. #ifdef __STDC__
  8525. # include <limits.h>
  8526. #else
  8527. # include <assert.h>
  8528. #endif
  8529. #undef $ac_func
  8530. /* Override any GCC internal prototype to avoid an error.
  8531. Use char because int might match the return type of a GCC
  8532. builtin and then its argument prototype would still apply. */
  8533. #ifdef __cplusplus
  8534. extern "C"
  8535. #endif
  8536. char $ac_func ();
  8537. /* The GNU C library defines this for functions which it implements
  8538. to always fail with ENOSYS. Some functions are actually named
  8539. something starting with __ and the normal name is an alias. */
  8540. #if defined __stub_$ac_func || defined __stub___$ac_func
  8541. choke me
  8542. #endif
  8543. int
  8544. main ()
  8545. {
  8546. return $ac_func ();
  8547. ;
  8548. return 0;
  8549. }
  8550. _ACEOF
  8551. rm -f conftest.$ac_objext conftest$ac_exeext
  8552. if { (ac_try="$ac_link"
  8553. case "(($ac_try" in
  8554. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8555. *) ac_try_echo=$ac_try;;
  8556. esac
  8557. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8558. (eval "$ac_link") 2>conftest.er1
  8559. ac_status=$?
  8560. grep -v '^ *+' conftest.er1 >conftest.err
  8561. rm -f conftest.er1
  8562. cat conftest.err >&5
  8563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8564. (exit $ac_status); } && {
  8565. test -z "$ac_cxx_werror_flag" ||
  8566. test ! -s conftest.err
  8567. } && test -s conftest$ac_exeext &&
  8568. $as_test_x conftest$ac_exeext; then
  8569. eval "$as_ac_var=yes"
  8570. else
  8571. echo "$as_me: failed program was:" >&5
  8572. sed 's/^/| /' conftest.$ac_ext >&5
  8573. eval "$as_ac_var=no"
  8574. fi
  8575. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  8576. conftest$ac_exeext conftest.$ac_ext
  8577. fi
  8578. ac_res=`eval echo '${'$as_ac_var'}'`
  8579. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8580. echo "${ECHO_T}$ac_res" >&6; }
  8581. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8582. cat >>confdefs.h <<_ACEOF
  8583. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8584. _ACEOF
  8585. fi
  8586. done
  8587. { echo "$as_me:$LINENO: checking for working mktime" >&5
  8588. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
  8589. if test "${ac_cv_func_working_mktime+set}" = set; then
  8590. echo $ECHO_N "(cached) $ECHO_C" >&6
  8591. else
  8592. if test "$cross_compiling" = yes; then
  8593. ac_cv_func_working_mktime=no
  8594. else
  8595. cat >conftest.$ac_ext <<_ACEOF
  8596. /* confdefs.h. */
  8597. _ACEOF
  8598. cat confdefs.h >>conftest.$ac_ext
  8599. cat >>conftest.$ac_ext <<_ACEOF
  8600. /* end confdefs.h. */
  8601. /* Test program from Paul Eggert and Tony Leneis. */
  8602. #ifdef TIME_WITH_SYS_TIME
  8603. # include <sys/time.h>
  8604. # include <time.h>
  8605. #else
  8606. # ifdef HAVE_SYS_TIME_H
  8607. # include <sys/time.h>
  8608. # else
  8609. # include <time.h>
  8610. # endif
  8611. #endif
  8612. #include <limits.h>
  8613. #include <stdlib.h>
  8614. #ifdef HAVE_UNISTD_H
  8615. # include <unistd.h>
  8616. #endif
  8617. #ifndef HAVE_ALARM
  8618. # define alarm(X) /* empty */
  8619. #endif
  8620. /* Work around redefinition to rpl_putenv by other config tests. */
  8621. #undef putenv
  8622. static time_t time_t_max;
  8623. static time_t time_t_min;
  8624. /* Values we'll use to set the TZ environment variable. */
  8625. static char *tz_strings[] = {
  8626. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8627. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8628. };
  8629. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8630. /* Return 0 if mktime fails to convert a date in the spring-forward gap.
  8631. Based on a problem report from Andreas Jaeger. */
  8632. static int
  8633. spring_forward_gap ()
  8634. {
  8635. /* glibc (up to about 1998-10-07) failed this test. */
  8636. struct tm tm;
  8637. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8638. instead of "TZ=America/Vancouver" in order to detect the bug even
  8639. on systems that don't support the Olson extension, or don't have the
  8640. full zoneinfo tables installed. */
  8641. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8642. tm.tm_year = 98;
  8643. tm.tm_mon = 3;
  8644. tm.tm_mday = 5;
  8645. tm.tm_hour = 2;
  8646. tm.tm_min = 0;
  8647. tm.tm_sec = 0;
  8648. tm.tm_isdst = -1;
  8649. return mktime (&tm) != (time_t) -1;
  8650. }
  8651. static int
  8652. mktime_test1 (now)
  8653. time_t now;
  8654. {
  8655. struct tm *lt;
  8656. return ! (lt = localtime (&now)) || mktime (lt) == now;
  8657. }
  8658. static int
  8659. mktime_test (now)
  8660. time_t now;
  8661. {
  8662. return (mktime_test1 (now)
  8663. && mktime_test1 ((time_t) (time_t_max - now))
  8664. && mktime_test1 ((time_t) (time_t_min + now)));
  8665. }
  8666. static int
  8667. irix_6_4_bug ()
  8668. {
  8669. /* Based on code from Ariel Faigon. */
  8670. struct tm tm;
  8671. tm.tm_year = 96;
  8672. tm.tm_mon = 3;
  8673. tm.tm_mday = 0;
  8674. tm.tm_hour = 0;
  8675. tm.tm_min = 0;
  8676. tm.tm_sec = 0;
  8677. tm.tm_isdst = -1;
  8678. mktime (&tm);
  8679. return tm.tm_mon == 2 && tm.tm_mday == 31;
  8680. }
  8681. static int
  8682. bigtime_test (j)
  8683. int j;
  8684. {
  8685. struct tm tm;
  8686. time_t now;
  8687. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8688. now = mktime (&tm);
  8689. if (now != (time_t) -1)
  8690. {
  8691. struct tm *lt = localtime (&now);
  8692. if (! (lt
  8693. && lt->tm_year == tm.tm_year
  8694. && lt->tm_mon == tm.tm_mon
  8695. && lt->tm_mday == tm.tm_mday
  8696. && lt->tm_hour == tm.tm_hour
  8697. && lt->tm_min == tm.tm_min
  8698. && lt->tm_sec == tm.tm_sec
  8699. && lt->tm_yday == tm.tm_yday
  8700. && lt->tm_wday == tm.tm_wday
  8701. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8702. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8703. return 0;
  8704. }
  8705. return 1;
  8706. }
  8707. static int
  8708. year_2050_test ()
  8709. {
  8710. /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
  8711. ignoring leap seconds. */
  8712. unsigned long int answer = 2527315200UL;
  8713. struct tm tm;
  8714. time_t t;
  8715. tm.tm_year = 2050 - 1900;
  8716. tm.tm_mon = 2 - 1;
  8717. tm.tm_mday = 1;
  8718. tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
  8719. tm.tm_isdst = -1;
  8720. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8721. instead of "TZ=America/Vancouver" in order to detect the bug even
  8722. on systems that don't support the Olson extension, or don't have the
  8723. full zoneinfo tables installed. */
  8724. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8725. t = mktime (&tm);
  8726. /* Check that the result is either a failure, or close enough
  8727. to the correct answer that we can assume the discrepancy is
  8728. due to leap seconds. */
  8729. return (t == (time_t) -1
  8730. || (0 < t && answer - 120 <= t && t <= answer + 120));
  8731. }
  8732. int
  8733. main ()
  8734. {
  8735. time_t t, delta;
  8736. int i, j;
  8737. /* This test makes some buggy mktime implementations loop.
  8738. Give up after 60 seconds; a mktime slower than that
  8739. isn't worth using anyway. */
  8740. alarm (60);
  8741. for (;;)
  8742. {
  8743. t = (time_t_max << 1) + 1;
  8744. if (t <= time_t_max)
  8745. break;
  8746. time_t_max = t;
  8747. }
  8748. time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
  8749. delta = time_t_max / 997; /* a suitable prime number */
  8750. for (i = 0; i < N_STRINGS; i++)
  8751. {
  8752. if (tz_strings[i])
  8753. putenv (tz_strings[i]);
  8754. for (t = 0; t <= time_t_max - delta; t += delta)
  8755. if (! mktime_test (t))
  8756. return 1;
  8757. if (! (mktime_test ((time_t) 1)
  8758. && mktime_test ((time_t) (60 * 60))
  8759. && mktime_test ((time_t) (60 * 60 * 24))))
  8760. return 1;
  8761. for (j = 1; ; j <<= 1)
  8762. if (! bigtime_test (j))
  8763. return 1;
  8764. else if (INT_MAX / 2 < j)
  8765. break;
  8766. if (! bigtime_test (INT_MAX))
  8767. return 1;
  8768. }
  8769. return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
  8770. }
  8771. _ACEOF
  8772. rm -f conftest$ac_exeext
  8773. if { (ac_try="$ac_link"
  8774. case "(($ac_try" in
  8775. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8776. *) ac_try_echo=$ac_try;;
  8777. esac
  8778. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8779. (eval "$ac_link") 2>&5
  8780. ac_status=$?
  8781. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8782. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8783. { (case "(($ac_try" in
  8784. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8785. *) ac_try_echo=$ac_try;;
  8786. esac
  8787. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8788. (eval "$ac_try") 2>&5
  8789. ac_status=$?
  8790. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8791. (exit $ac_status); }; }; then
  8792. ac_cv_func_working_mktime=yes
  8793. else
  8794. echo "$as_me: program exited with status $ac_status" >&5
  8795. echo "$as_me: failed program was:" >&5
  8796. sed 's/^/| /' conftest.$ac_ext >&5
  8797. ( exit $ac_status )
  8798. ac_cv_func_working_mktime=no
  8799. fi
  8800. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8801. fi
  8802. fi
  8803. { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8804. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
  8805. if test $ac_cv_func_working_mktime = no; then
  8806. case " $LIBOBJS " in
  8807. *" mktime.$ac_objext "* ) ;;
  8808. *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
  8809. ;;
  8810. esac
  8811. fi
  8812. for ac_header in stdlib.h unistd.h
  8813. do
  8814. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8815. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8816. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8817. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8818. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8819. echo $ECHO_N "(cached) $ECHO_C" >&6
  8820. fi
  8821. ac_res=`eval echo '${'$as_ac_Header'}'`
  8822. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8823. echo "${ECHO_T}$ac_res" >&6; }
  8824. else
  8825. # Is the header compilable?
  8826. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8827. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  8828. cat >conftest.$ac_ext <<_ACEOF
  8829. /* confdefs.h. */
  8830. _ACEOF
  8831. cat confdefs.h >>conftest.$ac_ext
  8832. cat >>conftest.$ac_ext <<_ACEOF
  8833. /* end confdefs.h. */
  8834. $ac_includes_default
  8835. #include <$ac_header>
  8836. _ACEOF
  8837. rm -f conftest.$ac_objext
  8838. if { (ac_try="$ac_compile"
  8839. case "(($ac_try" in
  8840. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8841. *) ac_try_echo=$ac_try;;
  8842. esac
  8843. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8844. (eval "$ac_compile") 2>conftest.er1
  8845. ac_status=$?
  8846. grep -v '^ *+' conftest.er1 >conftest.err
  8847. rm -f conftest.er1
  8848. cat conftest.err >&5
  8849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8850. (exit $ac_status); } && {
  8851. test -z "$ac_cxx_werror_flag" ||
  8852. test ! -s conftest.err
  8853. } && test -s conftest.$ac_objext; then
  8854. ac_header_compiler=yes
  8855. else
  8856. echo "$as_me: failed program was:" >&5
  8857. sed 's/^/| /' conftest.$ac_ext >&5
  8858. ac_header_compiler=no
  8859. fi
  8860. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8861. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8862. echo "${ECHO_T}$ac_header_compiler" >&6; }
  8863. # Is the header present?
  8864. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8865. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  8866. cat >conftest.$ac_ext <<_ACEOF
  8867. /* confdefs.h. */
  8868. _ACEOF
  8869. cat confdefs.h >>conftest.$ac_ext
  8870. cat >>conftest.$ac_ext <<_ACEOF
  8871. /* end confdefs.h. */
  8872. #include <$ac_header>
  8873. _ACEOF
  8874. if { (ac_try="$ac_cpp conftest.$ac_ext"
  8875. case "(($ac_try" in
  8876. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8877. *) ac_try_echo=$ac_try;;
  8878. esac
  8879. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8880. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  8881. ac_status=$?
  8882. grep -v '^ *+' conftest.er1 >conftest.err
  8883. rm -f conftest.er1
  8884. cat conftest.err >&5
  8885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8886. (exit $ac_status); } >/dev/null && {
  8887. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  8888. test ! -s conftest.err
  8889. }; then
  8890. ac_header_preproc=yes
  8891. else
  8892. echo "$as_me: failed program was:" >&5
  8893. sed 's/^/| /' conftest.$ac_ext >&5
  8894. ac_header_preproc=no
  8895. fi
  8896. rm -f conftest.err conftest.$ac_ext
  8897. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8898. echo "${ECHO_T}$ac_header_preproc" >&6; }
  8899. # So? What about this header?
  8900. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8901. yes:no: )
  8902. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8903. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8904. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8905. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8906. ac_header_preproc=yes
  8907. ;;
  8908. no:yes:* )
  8909. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8910. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8911. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8912. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8913. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8914. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8915. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8916. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8917. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8918. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8919. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8920. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8921. ;;
  8922. esac
  8923. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  8924. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  8925. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  8926. echo $ECHO_N "(cached) $ECHO_C" >&6
  8927. else
  8928. eval "$as_ac_Header=\$ac_header_preproc"
  8929. fi
  8930. ac_res=`eval echo '${'$as_ac_Header'}'`
  8931. { echo "$as_me:$LINENO: result: $ac_res" >&5
  8932. echo "${ECHO_T}$ac_res" >&6; }
  8933. fi
  8934. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8935. cat >>confdefs.h <<_ACEOF
  8936. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8937. _ACEOF
  8938. fi
  8939. done
  8940. for ac_func in getpagesize
  8941. do
  8942. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8943. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  8944. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  8945. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  8946. echo $ECHO_N "(cached) $ECHO_C" >&6
  8947. else
  8948. cat >conftest.$ac_ext <<_ACEOF
  8949. /* confdefs.h. */
  8950. _ACEOF
  8951. cat confdefs.h >>conftest.$ac_ext
  8952. cat >>conftest.$ac_ext <<_ACEOF
  8953. /* end confdefs.h. */
  8954. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8955. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8956. #define $ac_func innocuous_$ac_func
  8957. /* System header to define __stub macros and hopefully few prototypes,
  8958. which can conflict with char $ac_func (); below.
  8959. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8960. <limits.h> exists even on freestanding compilers. */
  8961. #ifdef __STDC__
  8962. # include <limits.h>
  8963. #else
  8964. # include <assert.h>
  8965. #endif
  8966. #undef $ac_func
  8967. /* Override any GCC internal prototype to avoid an error.
  8968. Use char because int might match the return type of a GCC
  8969. builtin and then its argument prototype would still apply. */
  8970. #ifdef __cplusplus
  8971. extern "C"
  8972. #endif
  8973. char $ac_func ();
  8974. /* The GNU C library defines this for functions which it implements
  8975. to always fail with ENOSYS. Some functions are actually named
  8976. something starting with __ and the normal name is an alias. */
  8977. #if defined __stub_$ac_func || defined __stub___$ac_func
  8978. choke me
  8979. #endif
  8980. int
  8981. main ()
  8982. {
  8983. return $ac_func ();
  8984. ;
  8985. return 0;
  8986. }
  8987. _ACEOF
  8988. rm -f conftest.$ac_objext conftest$ac_exeext
  8989. if { (ac_try="$ac_link"
  8990. case "(($ac_try" in
  8991. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8992. *) ac_try_echo=$ac_try;;
  8993. esac
  8994. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  8995. (eval "$ac_link") 2>conftest.er1
  8996. ac_status=$?
  8997. grep -v '^ *+' conftest.er1 >conftest.err
  8998. rm -f conftest.er1
  8999. cat conftest.err >&5
  9000. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9001. (exit $ac_status); } && {
  9002. test -z "$ac_cxx_werror_flag" ||
  9003. test ! -s conftest.err
  9004. } && test -s conftest$ac_exeext &&
  9005. $as_test_x conftest$ac_exeext; then
  9006. eval "$as_ac_var=yes"
  9007. else
  9008. echo "$as_me: failed program was:" >&5
  9009. sed 's/^/| /' conftest.$ac_ext >&5
  9010. eval "$as_ac_var=no"
  9011. fi
  9012. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9013. conftest$ac_exeext conftest.$ac_ext
  9014. fi
  9015. ac_res=`eval echo '${'$as_ac_var'}'`
  9016. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9017. echo "${ECHO_T}$ac_res" >&6; }
  9018. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9019. cat >>confdefs.h <<_ACEOF
  9020. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9021. _ACEOF
  9022. fi
  9023. done
  9024. { echo "$as_me:$LINENO: checking for working mmap" >&5
  9025. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
  9026. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  9027. echo $ECHO_N "(cached) $ECHO_C" >&6
  9028. else
  9029. if test "$cross_compiling" = yes; then
  9030. ac_cv_func_mmap_fixed_mapped=no
  9031. else
  9032. cat >conftest.$ac_ext <<_ACEOF
  9033. /* confdefs.h. */
  9034. _ACEOF
  9035. cat confdefs.h >>conftest.$ac_ext
  9036. cat >>conftest.$ac_ext <<_ACEOF
  9037. /* end confdefs.h. */
  9038. $ac_includes_default
  9039. /* malloc might have been renamed as rpl_malloc. */
  9040. #undef malloc
  9041. /* Thanks to Mike Haertel and Jim Avera for this test.
  9042. Here is a matrix of mmap possibilities:
  9043. mmap private not fixed
  9044. mmap private fixed at somewhere currently unmapped
  9045. mmap private fixed at somewhere already mapped
  9046. mmap shared not fixed
  9047. mmap shared fixed at somewhere currently unmapped
  9048. mmap shared fixed at somewhere already mapped
  9049. For private mappings, we should verify that changes cannot be read()
  9050. back from the file, nor mmap's back from the file at a different
  9051. address. (There have been systems where private was not correctly
  9052. implemented like the infamous i386 svr4.0, and systems where the
  9053. VM page cache was not coherent with the file system buffer cache
  9054. like early versions of FreeBSD and possibly contemporary NetBSD.)
  9055. For shared mappings, we should conversely verify that changes get
  9056. propagated back to all the places they're supposed to be.
  9057. Grep wants private fixed already mapped.
  9058. The main things grep needs to know about mmap are:
  9059. * does it exist and is it safe to write into the mmap'd area
  9060. * how to use it (BSD variants) */
  9061. #include <fcntl.h>
  9062. #include <sys/mman.h>
  9063. #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
  9064. char *malloc ();
  9065. #endif
  9066. /* This mess was copied from the GNU getpagesize.h. */
  9067. #ifndef HAVE_GETPAGESIZE
  9068. /* Assume that all systems that can run configure have sys/param.h. */
  9069. # ifndef HAVE_SYS_PARAM_H
  9070. # define HAVE_SYS_PARAM_H 1
  9071. # endif
  9072. # ifdef _SC_PAGESIZE
  9073. # define getpagesize() sysconf(_SC_PAGESIZE)
  9074. # else /* no _SC_PAGESIZE */
  9075. # ifdef HAVE_SYS_PARAM_H
  9076. # include <sys/param.h>
  9077. # ifdef EXEC_PAGESIZE
  9078. # define getpagesize() EXEC_PAGESIZE
  9079. # else /* no EXEC_PAGESIZE */
  9080. # ifdef NBPG
  9081. # define getpagesize() NBPG * CLSIZE
  9082. # ifndef CLSIZE
  9083. # define CLSIZE 1
  9084. # endif /* no CLSIZE */
  9085. # else /* no NBPG */
  9086. # ifdef NBPC
  9087. # define getpagesize() NBPC
  9088. # else /* no NBPC */
  9089. # ifdef PAGESIZE
  9090. # define getpagesize() PAGESIZE
  9091. # endif /* PAGESIZE */
  9092. # endif /* no NBPC */
  9093. # endif /* no NBPG */
  9094. # endif /* no EXEC_PAGESIZE */
  9095. # else /* no HAVE_SYS_PARAM_H */
  9096. # define getpagesize() 8192 /* punt totally */
  9097. # endif /* no HAVE_SYS_PARAM_H */
  9098. # endif /* no _SC_PAGESIZE */
  9099. #endif /* no HAVE_GETPAGESIZE */
  9100. int
  9101. main ()
  9102. {
  9103. char *data, *data2, *data3;
  9104. int i, pagesize;
  9105. int fd;
  9106. pagesize = getpagesize ();
  9107. /* First, make a file with some known garbage in it. */
  9108. data = (char *) malloc (pagesize);
  9109. if (!data)
  9110. return 1;
  9111. for (i = 0; i < pagesize; ++i)
  9112. *(data + i) = rand ();
  9113. umask (0);
  9114. fd = creat ("conftest.mmap", 0600);
  9115. if (fd < 0)
  9116. return 1;
  9117. if (write (fd, data, pagesize) != pagesize)
  9118. return 1;
  9119. close (fd);
  9120. /* Next, try to mmap the file at a fixed address which already has
  9121. something else allocated at it. If we can, also make sure that
  9122. we see the same garbage. */
  9123. fd = open ("conftest.mmap", O_RDWR);
  9124. if (fd < 0)
  9125. return 1;
  9126. data2 = (char *) malloc (2 * pagesize);
  9127. if (!data2)
  9128. return 1;
  9129. data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
  9130. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  9131. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  9132. return 1;
  9133. for (i = 0; i < pagesize; ++i)
  9134. if (*(data + i) != *(data2 + i))
  9135. return 1;
  9136. /* Finally, make sure that changes to the mapped area do not
  9137. percolate back to the file as seen by read(). (This is a bug on
  9138. some variants of i386 svr4.0.) */
  9139. for (i = 0; i < pagesize; ++i)
  9140. *(data2 + i) = *(data2 + i) + 1;
  9141. data3 = (char *) malloc (pagesize);
  9142. if (!data3)
  9143. return 1;
  9144. if (read (fd, data3, pagesize) != pagesize)
  9145. return 1;
  9146. for (i = 0; i < pagesize; ++i)
  9147. if (*(data + i) != *(data3 + i))
  9148. return 1;
  9149. close (fd);
  9150. return 0;
  9151. }
  9152. _ACEOF
  9153. rm -f conftest$ac_exeext
  9154. if { (ac_try="$ac_link"
  9155. case "(($ac_try" in
  9156. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9157. *) ac_try_echo=$ac_try;;
  9158. esac
  9159. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9160. (eval "$ac_link") 2>&5
  9161. ac_status=$?
  9162. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9163. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9164. { (case "(($ac_try" in
  9165. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9166. *) ac_try_echo=$ac_try;;
  9167. esac
  9168. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9169. (eval "$ac_try") 2>&5
  9170. ac_status=$?
  9171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9172. (exit $ac_status); }; }; then
  9173. ac_cv_func_mmap_fixed_mapped=yes
  9174. else
  9175. echo "$as_me: program exited with status $ac_status" >&5
  9176. echo "$as_me: failed program was:" >&5
  9177. sed 's/^/| /' conftest.$ac_ext >&5
  9178. ( exit $ac_status )
  9179. ac_cv_func_mmap_fixed_mapped=no
  9180. fi
  9181. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9182. fi
  9183. fi
  9184. { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  9185. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
  9186. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  9187. cat >>confdefs.h <<\_ACEOF
  9188. #define HAVE_MMAP 1
  9189. _ACEOF
  9190. fi
  9191. rm -f conftest.mmap
  9192. for ac_header in stdlib.h
  9193. do
  9194. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9195. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9196. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9197. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9198. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9199. echo $ECHO_N "(cached) $ECHO_C" >&6
  9200. fi
  9201. ac_res=`eval echo '${'$as_ac_Header'}'`
  9202. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9203. echo "${ECHO_T}$ac_res" >&6; }
  9204. else
  9205. # Is the header compilable?
  9206. { echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9207. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
  9208. cat >conftest.$ac_ext <<_ACEOF
  9209. /* confdefs.h. */
  9210. _ACEOF
  9211. cat confdefs.h >>conftest.$ac_ext
  9212. cat >>conftest.$ac_ext <<_ACEOF
  9213. /* end confdefs.h. */
  9214. $ac_includes_default
  9215. #include <$ac_header>
  9216. _ACEOF
  9217. rm -f conftest.$ac_objext
  9218. if { (ac_try="$ac_compile"
  9219. case "(($ac_try" in
  9220. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9221. *) ac_try_echo=$ac_try;;
  9222. esac
  9223. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9224. (eval "$ac_compile") 2>conftest.er1
  9225. ac_status=$?
  9226. grep -v '^ *+' conftest.er1 >conftest.err
  9227. rm -f conftest.er1
  9228. cat conftest.err >&5
  9229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9230. (exit $ac_status); } && {
  9231. test -z "$ac_cxx_werror_flag" ||
  9232. test ! -s conftest.err
  9233. } && test -s conftest.$ac_objext; then
  9234. ac_header_compiler=yes
  9235. else
  9236. echo "$as_me: failed program was:" >&5
  9237. sed 's/^/| /' conftest.$ac_ext >&5
  9238. ac_header_compiler=no
  9239. fi
  9240. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9241. { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9242. echo "${ECHO_T}$ac_header_compiler" >&6; }
  9243. # Is the header present?
  9244. { echo "$as_me:$LINENO: checking $ac_header presence" >&5
  9245. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
  9246. cat >conftest.$ac_ext <<_ACEOF
  9247. /* confdefs.h. */
  9248. _ACEOF
  9249. cat confdefs.h >>conftest.$ac_ext
  9250. cat >>conftest.$ac_ext <<_ACEOF
  9251. /* end confdefs.h. */
  9252. #include <$ac_header>
  9253. _ACEOF
  9254. if { (ac_try="$ac_cpp conftest.$ac_ext"
  9255. case "(($ac_try" in
  9256. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9257. *) ac_try_echo=$ac_try;;
  9258. esac
  9259. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9260. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
  9261. ac_status=$?
  9262. grep -v '^ *+' conftest.er1 >conftest.err
  9263. rm -f conftest.er1
  9264. cat conftest.err >&5
  9265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9266. (exit $ac_status); } >/dev/null && {
  9267. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  9268. test ! -s conftest.err
  9269. }; then
  9270. ac_header_preproc=yes
  9271. else
  9272. echo "$as_me: failed program was:" >&5
  9273. sed 's/^/| /' conftest.$ac_ext >&5
  9274. ac_header_preproc=no
  9275. fi
  9276. rm -f conftest.err conftest.$ac_ext
  9277. { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  9278. echo "${ECHO_T}$ac_header_preproc" >&6; }
  9279. # So? What about this header?
  9280. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  9281. yes:no: )
  9282. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  9283. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  9284. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  9285. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  9286. ac_header_preproc=yes
  9287. ;;
  9288. no:yes:* )
  9289. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  9290. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  9291. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  9292. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  9293. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  9294. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  9295. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  9296. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  9297. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  9298. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  9299. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  9300. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  9301. ;;
  9302. esac
  9303. { echo "$as_me:$LINENO: checking for $ac_header" >&5
  9304. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
  9305. if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
  9306. echo $ECHO_N "(cached) $ECHO_C" >&6
  9307. else
  9308. eval "$as_ac_Header=\$ac_header_preproc"
  9309. fi
  9310. ac_res=`eval echo '${'$as_ac_Header'}'`
  9311. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9312. echo "${ECHO_T}$ac_res" >&6; }
  9313. fi
  9314. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  9315. cat >>confdefs.h <<_ACEOF
  9316. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  9317. _ACEOF
  9318. fi
  9319. done
  9320. { echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  9321. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
  9322. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  9323. echo $ECHO_N "(cached) $ECHO_C" >&6
  9324. else
  9325. if test "$cross_compiling" = yes; then
  9326. ac_cv_func_realloc_0_nonnull=no
  9327. else
  9328. cat >conftest.$ac_ext <<_ACEOF
  9329. /* confdefs.h. */
  9330. _ACEOF
  9331. cat confdefs.h >>conftest.$ac_ext
  9332. cat >>conftest.$ac_ext <<_ACEOF
  9333. /* end confdefs.h. */
  9334. #if defined STDC_HEADERS || defined HAVE_STDLIB_H
  9335. # include <stdlib.h>
  9336. #else
  9337. char *realloc ();
  9338. #endif
  9339. int
  9340. main ()
  9341. {
  9342. return ! realloc (0, 0);
  9343. ;
  9344. return 0;
  9345. }
  9346. _ACEOF
  9347. rm -f conftest$ac_exeext
  9348. if { (ac_try="$ac_link"
  9349. case "(($ac_try" in
  9350. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9351. *) ac_try_echo=$ac_try;;
  9352. esac
  9353. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9354. (eval "$ac_link") 2>&5
  9355. ac_status=$?
  9356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9357. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9358. { (case "(($ac_try" in
  9359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9360. *) ac_try_echo=$ac_try;;
  9361. esac
  9362. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9363. (eval "$ac_try") 2>&5
  9364. ac_status=$?
  9365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9366. (exit $ac_status); }; }; then
  9367. ac_cv_func_realloc_0_nonnull=yes
  9368. else
  9369. echo "$as_me: program exited with status $ac_status" >&5
  9370. echo "$as_me: failed program was:" >&5
  9371. sed 's/^/| /' conftest.$ac_ext >&5
  9372. ( exit $ac_status )
  9373. ac_cv_func_realloc_0_nonnull=no
  9374. fi
  9375. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9376. fi
  9377. fi
  9378. { echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  9379. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
  9380. if test $ac_cv_func_realloc_0_nonnull = yes; then
  9381. cat >>confdefs.h <<\_ACEOF
  9382. #define HAVE_REALLOC 1
  9383. _ACEOF
  9384. else
  9385. cat >>confdefs.h <<\_ACEOF
  9386. #define HAVE_REALLOC 0
  9387. _ACEOF
  9388. case " $LIBOBJS " in
  9389. *" realloc.$ac_objext "* ) ;;
  9390. *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
  9391. ;;
  9392. esac
  9393. cat >>confdefs.h <<\_ACEOF
  9394. #define realloc rpl_realloc
  9395. _ACEOF
  9396. fi
  9397. { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  9398. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
  9399. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  9400. echo $ECHO_N "(cached) $ECHO_C" >&6
  9401. else
  9402. if test "$cross_compiling" = yes; then
  9403. ac_cv_func_stat_empty_string_bug=yes
  9404. else
  9405. cat >conftest.$ac_ext <<_ACEOF
  9406. /* confdefs.h. */
  9407. _ACEOF
  9408. cat confdefs.h >>conftest.$ac_ext
  9409. cat >>conftest.$ac_ext <<_ACEOF
  9410. /* end confdefs.h. */
  9411. $ac_includes_default
  9412. int
  9413. main ()
  9414. {
  9415. struct stat sbuf;
  9416. return stat ("", &sbuf) == 0;
  9417. ;
  9418. return 0;
  9419. }
  9420. _ACEOF
  9421. rm -f conftest$ac_exeext
  9422. if { (ac_try="$ac_link"
  9423. case "(($ac_try" in
  9424. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9425. *) ac_try_echo=$ac_try;;
  9426. esac
  9427. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9428. (eval "$ac_link") 2>&5
  9429. ac_status=$?
  9430. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9431. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  9432. { (case "(($ac_try" in
  9433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9434. *) ac_try_echo=$ac_try;;
  9435. esac
  9436. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9437. (eval "$ac_try") 2>&5
  9438. ac_status=$?
  9439. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9440. (exit $ac_status); }; }; then
  9441. ac_cv_func_stat_empty_string_bug=no
  9442. else
  9443. echo "$as_me: program exited with status $ac_status" >&5
  9444. echo "$as_me: failed program was:" >&5
  9445. sed 's/^/| /' conftest.$ac_ext >&5
  9446. ( exit $ac_status )
  9447. ac_cv_func_stat_empty_string_bug=yes
  9448. fi
  9449. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  9450. fi
  9451. fi
  9452. { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  9453. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
  9454. if test $ac_cv_func_stat_empty_string_bug = yes; then
  9455. case " $LIBOBJS " in
  9456. *" stat.$ac_objext "* ) ;;
  9457. *) LIBOBJS="$LIBOBJS stat.$ac_objext"
  9458. ;;
  9459. esac
  9460. cat >>confdefs.h <<_ACEOF
  9461. #define HAVE_STAT_EMPTY_STRING_BUG 1
  9462. _ACEOF
  9463. fi
  9464. { echo "$as_me:$LINENO: checking for struct timespec" >&5
  9465. echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
  9466. if test "${ac_cv_type_struct_timespec+set}" = set; then
  9467. echo $ECHO_N "(cached) $ECHO_C" >&6
  9468. else
  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 <sys/types.h>
  9476. #include <sys/time.h>
  9477. #include <time.h>
  9478. typedef struct timespec ac__type_new_;
  9479. int
  9480. main ()
  9481. {
  9482. if ((ac__type_new_ *) 0)
  9483. return 0;
  9484. if (sizeof (ac__type_new_))
  9485. return 0;
  9486. ;
  9487. return 0;
  9488. }
  9489. _ACEOF
  9490. rm -f conftest.$ac_objext
  9491. if { (ac_try="$ac_compile"
  9492. case "(($ac_try" in
  9493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9494. *) ac_try_echo=$ac_try;;
  9495. esac
  9496. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9497. (eval "$ac_compile") 2>conftest.er1
  9498. ac_status=$?
  9499. grep -v '^ *+' conftest.er1 >conftest.err
  9500. rm -f conftest.er1
  9501. cat conftest.err >&5
  9502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9503. (exit $ac_status); } && {
  9504. test -z "$ac_cxx_werror_flag" ||
  9505. test ! -s conftest.err
  9506. } && test -s conftest.$ac_objext; then
  9507. ac_cv_type_struct_timespec=yes
  9508. else
  9509. echo "$as_me: failed program was:" >&5
  9510. sed 's/^/| /' conftest.$ac_ext >&5
  9511. ac_cv_type_struct_timespec=no
  9512. fi
  9513. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9514. fi
  9515. { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
  9516. echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
  9517. if test $ac_cv_type_struct_timespec = yes; then
  9518. cat >>confdefs.h <<\_ACEOF
  9519. #define HAVE_TIMESPEC 1
  9520. _ACEOF
  9521. fi
  9522. if test X"$ac_cv_type_struct_timespec" != X"no"; then
  9523. { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
  9524. echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
  9525. if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
  9526. echo $ECHO_N "(cached) $ECHO_C" >&6
  9527. else
  9528. cat >conftest.$ac_ext <<_ACEOF
  9529. /* confdefs.h. */
  9530. _ACEOF
  9531. cat confdefs.h >>conftest.$ac_ext
  9532. cat >>conftest.$ac_ext <<_ACEOF
  9533. /* end confdefs.h. */
  9534. $ac_includes_default
  9535. int
  9536. main ()
  9537. {
  9538. static struct stat ac_aggr;
  9539. if (ac_aggr.st_mtim)
  9540. return 0;
  9541. ;
  9542. return 0;
  9543. }
  9544. _ACEOF
  9545. rm -f conftest.$ac_objext
  9546. if { (ac_try="$ac_compile"
  9547. case "(($ac_try" in
  9548. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9549. *) ac_try_echo=$ac_try;;
  9550. esac
  9551. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9552. (eval "$ac_compile") 2>conftest.er1
  9553. ac_status=$?
  9554. grep -v '^ *+' conftest.er1 >conftest.err
  9555. rm -f conftest.er1
  9556. cat conftest.err >&5
  9557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9558. (exit $ac_status); } && {
  9559. test -z "$ac_cxx_werror_flag" ||
  9560. test ! -s conftest.err
  9561. } && test -s conftest.$ac_objext; then
  9562. ac_cv_member_struct_stat_st_mtim=yes
  9563. else
  9564. echo "$as_me: failed program was:" >&5
  9565. sed 's/^/| /' conftest.$ac_ext >&5
  9566. cat >conftest.$ac_ext <<_ACEOF
  9567. /* confdefs.h. */
  9568. _ACEOF
  9569. cat confdefs.h >>conftest.$ac_ext
  9570. cat >>conftest.$ac_ext <<_ACEOF
  9571. /* end confdefs.h. */
  9572. $ac_includes_default
  9573. int
  9574. main ()
  9575. {
  9576. static struct stat ac_aggr;
  9577. if (sizeof ac_aggr.st_mtim)
  9578. return 0;
  9579. ;
  9580. return 0;
  9581. }
  9582. _ACEOF
  9583. rm -f conftest.$ac_objext
  9584. if { (ac_try="$ac_compile"
  9585. case "(($ac_try" in
  9586. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9587. *) ac_try_echo=$ac_try;;
  9588. esac
  9589. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9590. (eval "$ac_compile") 2>conftest.er1
  9591. ac_status=$?
  9592. grep -v '^ *+' conftest.er1 >conftest.err
  9593. rm -f conftest.er1
  9594. cat conftest.err >&5
  9595. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9596. (exit $ac_status); } && {
  9597. test -z "$ac_cxx_werror_flag" ||
  9598. test ! -s conftest.err
  9599. } && test -s conftest.$ac_objext; then
  9600. ac_cv_member_struct_stat_st_mtim=yes
  9601. else
  9602. echo "$as_me: failed program was:" >&5
  9603. sed 's/^/| /' conftest.$ac_ext >&5
  9604. ac_cv_member_struct_stat_st_mtim=no
  9605. fi
  9606. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9607. fi
  9608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9609. fi
  9610. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
  9611. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
  9612. if test $ac_cv_member_struct_stat_st_mtim = yes; then
  9613. cat >>confdefs.h <<\_ACEOF
  9614. #define HAVE_ST_MTIM 1
  9615. _ACEOF
  9616. else
  9617. { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
  9618. echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
  9619. if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
  9620. echo $ECHO_N "(cached) $ECHO_C" >&6
  9621. else
  9622. cat >conftest.$ac_ext <<_ACEOF
  9623. /* confdefs.h. */
  9624. _ACEOF
  9625. cat confdefs.h >>conftest.$ac_ext
  9626. cat >>conftest.$ac_ext <<_ACEOF
  9627. /* end confdefs.h. */
  9628. $ac_includes_default
  9629. int
  9630. main ()
  9631. {
  9632. static struct stat ac_aggr;
  9633. if (ac_aggr.st_mtimespec)
  9634. return 0;
  9635. ;
  9636. return 0;
  9637. }
  9638. _ACEOF
  9639. rm -f conftest.$ac_objext
  9640. if { (ac_try="$ac_compile"
  9641. case "(($ac_try" in
  9642. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9643. *) ac_try_echo=$ac_try;;
  9644. esac
  9645. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9646. (eval "$ac_compile") 2>conftest.er1
  9647. ac_status=$?
  9648. grep -v '^ *+' conftest.er1 >conftest.err
  9649. rm -f conftest.er1
  9650. cat conftest.err >&5
  9651. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9652. (exit $ac_status); } && {
  9653. test -z "$ac_cxx_werror_flag" ||
  9654. test ! -s conftest.err
  9655. } && test -s conftest.$ac_objext; then
  9656. ac_cv_member_struct_stat_st_mtimespec=yes
  9657. else
  9658. echo "$as_me: failed program was:" >&5
  9659. sed 's/^/| /' conftest.$ac_ext >&5
  9660. cat >conftest.$ac_ext <<_ACEOF
  9661. /* confdefs.h. */
  9662. _ACEOF
  9663. cat confdefs.h >>conftest.$ac_ext
  9664. cat >>conftest.$ac_ext <<_ACEOF
  9665. /* end confdefs.h. */
  9666. $ac_includes_default
  9667. int
  9668. main ()
  9669. {
  9670. static struct stat ac_aggr;
  9671. if (sizeof ac_aggr.st_mtimespec)
  9672. return 0;
  9673. ;
  9674. return 0;
  9675. }
  9676. _ACEOF
  9677. rm -f conftest.$ac_objext
  9678. if { (ac_try="$ac_compile"
  9679. case "(($ac_try" in
  9680. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9681. *) ac_try_echo=$ac_try;;
  9682. esac
  9683. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9684. (eval "$ac_compile") 2>conftest.er1
  9685. ac_status=$?
  9686. grep -v '^ *+' conftest.er1 >conftest.err
  9687. rm -f conftest.er1
  9688. cat conftest.err >&5
  9689. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9690. (exit $ac_status); } && {
  9691. test -z "$ac_cxx_werror_flag" ||
  9692. test ! -s conftest.err
  9693. } && test -s conftest.$ac_objext; then
  9694. ac_cv_member_struct_stat_st_mtimespec=yes
  9695. else
  9696. echo "$as_me: failed program was:" >&5
  9697. sed 's/^/| /' conftest.$ac_ext >&5
  9698. ac_cv_member_struct_stat_st_mtimespec=no
  9699. fi
  9700. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9701. fi
  9702. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9703. fi
  9704. { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
  9705. echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
  9706. if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
  9707. cat >>confdefs.h <<\_ACEOF
  9708. #define HAVE_ST_MTIMESPEC 1
  9709. _ACEOF
  9710. fi
  9711. fi
  9712. { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
  9713. echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
  9714. cat >conftest.$ac_ext <<_ACEOF
  9715. /* confdefs.h. */
  9716. _ACEOF
  9717. cat confdefs.h >>conftest.$ac_ext
  9718. cat >>conftest.$ac_ext <<_ACEOF
  9719. /* end confdefs.h. */
  9720. #include <sys/types.h>
  9721. #include <sys/time.h>
  9722. int
  9723. main ()
  9724. {
  9725. struct timespec ts1, ts2;
  9726. ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
  9727. #ifndef timespecsub
  9728. #error missing timespecsub
  9729. #endif
  9730. timespecsub(&ts1, &ts2);
  9731. ;
  9732. return 0;
  9733. }
  9734. _ACEOF
  9735. rm -f conftest.$ac_objext
  9736. if { (ac_try="$ac_compile"
  9737. case "(($ac_try" in
  9738. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9739. *) ac_try_echo=$ac_try;;
  9740. esac
  9741. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9742. (eval "$ac_compile") 2>conftest.er1
  9743. ac_status=$?
  9744. grep -v '^ *+' conftest.er1 >conftest.err
  9745. rm -f conftest.er1
  9746. cat conftest.err >&5
  9747. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9748. (exit $ac_status); } && {
  9749. test -z "$ac_cxx_werror_flag" ||
  9750. test ! -s conftest.err
  9751. } && test -s conftest.$ac_objext; then
  9752. cat >>confdefs.h <<\_ACEOF
  9753. #define HAVE_TIMESPECSUB2 1
  9754. _ACEOF
  9755. { echo "$as_me:$LINENO: result: yes" >&5
  9756. echo "${ECHO_T}yes" >&6; }
  9757. else
  9758. echo "$as_me: failed program was:" >&5
  9759. sed 's/^/| /' conftest.$ac_ext >&5
  9760. { echo "$as_me:$LINENO: result: no" >&5
  9761. echo "${ECHO_T}no" >&6; }
  9762. fi
  9763. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  9764. fi
  9765. for ac_func in strftime
  9766. do
  9767. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9768. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9769. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9770. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9771. echo $ECHO_N "(cached) $ECHO_C" >&6
  9772. else
  9773. cat >conftest.$ac_ext <<_ACEOF
  9774. /* confdefs.h. */
  9775. _ACEOF
  9776. cat confdefs.h >>conftest.$ac_ext
  9777. cat >>conftest.$ac_ext <<_ACEOF
  9778. /* end confdefs.h. */
  9779. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9780. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9781. #define $ac_func innocuous_$ac_func
  9782. /* System header to define __stub macros and hopefully few prototypes,
  9783. which can conflict with char $ac_func (); below.
  9784. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9785. <limits.h> exists even on freestanding compilers. */
  9786. #ifdef __STDC__
  9787. # include <limits.h>
  9788. #else
  9789. # include <assert.h>
  9790. #endif
  9791. #undef $ac_func
  9792. /* Override any GCC internal prototype to avoid an error.
  9793. Use char because int might match the return type of a GCC
  9794. builtin and then its argument prototype would still apply. */
  9795. #ifdef __cplusplus
  9796. extern "C"
  9797. #endif
  9798. char $ac_func ();
  9799. /* The GNU C library defines this for functions which it implements
  9800. to always fail with ENOSYS. Some functions are actually named
  9801. something starting with __ and the normal name is an alias. */
  9802. #if defined __stub_$ac_func || defined __stub___$ac_func
  9803. choke me
  9804. #endif
  9805. int
  9806. main ()
  9807. {
  9808. return $ac_func ();
  9809. ;
  9810. return 0;
  9811. }
  9812. _ACEOF
  9813. rm -f conftest.$ac_objext conftest$ac_exeext
  9814. if { (ac_try="$ac_link"
  9815. case "(($ac_try" in
  9816. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9817. *) ac_try_echo=$ac_try;;
  9818. esac
  9819. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9820. (eval "$ac_link") 2>conftest.er1
  9821. ac_status=$?
  9822. grep -v '^ *+' conftest.er1 >conftest.err
  9823. rm -f conftest.er1
  9824. cat conftest.err >&5
  9825. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9826. (exit $ac_status); } && {
  9827. test -z "$ac_cxx_werror_flag" ||
  9828. test ! -s conftest.err
  9829. } && test -s conftest$ac_exeext &&
  9830. $as_test_x conftest$ac_exeext; then
  9831. eval "$as_ac_var=yes"
  9832. else
  9833. echo "$as_me: failed program was:" >&5
  9834. sed 's/^/| /' conftest.$ac_ext >&5
  9835. eval "$as_ac_var=no"
  9836. fi
  9837. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9838. conftest$ac_exeext conftest.$ac_ext
  9839. fi
  9840. ac_res=`eval echo '${'$as_ac_var'}'`
  9841. { echo "$as_me:$LINENO: result: $ac_res" >&5
  9842. echo "${ECHO_T}$ac_res" >&6; }
  9843. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9844. cat >>confdefs.h <<_ACEOF
  9845. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9846. _ACEOF
  9847. else
  9848. # strftime is in -lintl on SCO UNIX.
  9849. { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  9850. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
  9851. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  9852. echo $ECHO_N "(cached) $ECHO_C" >&6
  9853. else
  9854. ac_check_lib_save_LIBS=$LIBS
  9855. LIBS="-lintl $LIBS"
  9856. cat >conftest.$ac_ext <<_ACEOF
  9857. /* confdefs.h. */
  9858. _ACEOF
  9859. cat confdefs.h >>conftest.$ac_ext
  9860. cat >>conftest.$ac_ext <<_ACEOF
  9861. /* end confdefs.h. */
  9862. /* Override any GCC internal prototype to avoid an error.
  9863. Use char because int might match the return type of a GCC
  9864. builtin and then its argument prototype would still apply. */
  9865. #ifdef __cplusplus
  9866. extern "C"
  9867. #endif
  9868. char strftime ();
  9869. int
  9870. main ()
  9871. {
  9872. return strftime ();
  9873. ;
  9874. return 0;
  9875. }
  9876. _ACEOF
  9877. rm -f conftest.$ac_objext conftest$ac_exeext
  9878. if { (ac_try="$ac_link"
  9879. case "(($ac_try" in
  9880. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  9881. *) ac_try_echo=$ac_try;;
  9882. esac
  9883. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  9884. (eval "$ac_link") 2>conftest.er1
  9885. ac_status=$?
  9886. grep -v '^ *+' conftest.er1 >conftest.err
  9887. rm -f conftest.er1
  9888. cat conftest.err >&5
  9889. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9890. (exit $ac_status); } && {
  9891. test -z "$ac_cxx_werror_flag" ||
  9892. test ! -s conftest.err
  9893. } && test -s conftest$ac_exeext &&
  9894. $as_test_x conftest$ac_exeext; then
  9895. ac_cv_lib_intl_strftime=yes
  9896. else
  9897. echo "$as_me: failed program was:" >&5
  9898. sed 's/^/| /' conftest.$ac_ext >&5
  9899. ac_cv_lib_intl_strftime=no
  9900. fi
  9901. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  9902. conftest$ac_exeext conftest.$ac_ext
  9903. LIBS=$ac_check_lib_save_LIBS
  9904. fi
  9905. { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9906. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
  9907. if test $ac_cv_lib_intl_strftime = yes; then
  9908. cat >>confdefs.h <<\_ACEOF
  9909. #define HAVE_STRFTIME 1
  9910. _ACEOF
  9911. LIBS="-lintl $LIBS"
  9912. fi
  9913. fi
  9914. done
  9915. #checkpoint
  9916. cat >confcache <<\_ACEOF
  9917. # This file is a shell script that caches the results of configure
  9918. # tests run on this system so they can be shared between configure
  9919. # scripts and configure runs, see configure's option --config-cache.
  9920. # It is not useful on other systems. If it contains results you don't
  9921. # want to keep, you may remove or edit it.
  9922. #
  9923. # config.status only pays attention to the cache file if you give it
  9924. # the --recheck option to rerun configure.
  9925. #
  9926. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9927. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9928. # following values.
  9929. _ACEOF
  9930. # The following way of writing the cache mishandles newlines in values,
  9931. # but we know of no workaround that is simple, portable, and efficient.
  9932. # So, we kill variables containing newlines.
  9933. # Ultrix sh set writes to stderr and can't be redirected directly,
  9934. # and sets the high bit in the cache file unless we assign to the vars.
  9935. (
  9936. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9937. eval ac_val=\$$ac_var
  9938. case $ac_val in #(
  9939. *${as_nl}*)
  9940. case $ac_var in #(
  9941. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  9942. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  9943. esac
  9944. case $ac_var in #(
  9945. _ | IFS | as_nl) ;; #(
  9946. *) $as_unset $ac_var ;;
  9947. esac ;;
  9948. esac
  9949. done
  9950. (set) 2>&1 |
  9951. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9952. *${as_nl}ac_space=\ *)
  9953. # `set' does not quote correctly, so add quotes (double-quote
  9954. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9955. sed -n \
  9956. "s/'/'\\\\''/g;
  9957. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9958. ;; #(
  9959. *)
  9960. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9961. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9962. ;;
  9963. esac |
  9964. sort
  9965. ) |
  9966. sed '
  9967. /^ac_cv_env_/b end
  9968. t clear
  9969. :clear
  9970. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9971. t end
  9972. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9973. :end' >>confcache
  9974. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9975. if test -w "$cache_file"; then
  9976. test "x$cache_file" != "x/dev/null" &&
  9977. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  9978. echo "$as_me: updating cache $cache_file" >&6;}
  9979. cat confcache >$cache_file
  9980. else
  9981. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  9982. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9983. fi
  9984. fi
  9985. rm -f confcache
  9986. for ac_func in clock fsync getrusage isascii getpassphrase
  9987. do
  9988. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9989. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  9990. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  9991. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  9992. echo $ECHO_N "(cached) $ECHO_C" >&6
  9993. else
  9994. cat >conftest.$ac_ext <<_ACEOF
  9995. /* confdefs.h. */
  9996. _ACEOF
  9997. cat confdefs.h >>conftest.$ac_ext
  9998. cat >>conftest.$ac_ext <<_ACEOF
  9999. /* end confdefs.h. */
  10000. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10001. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10002. #define $ac_func innocuous_$ac_func
  10003. /* System header to define __stub macros and hopefully few prototypes,
  10004. which can conflict with char $ac_func (); below.
  10005. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10006. <limits.h> exists even on freestanding compilers. */
  10007. #ifdef __STDC__
  10008. # include <limits.h>
  10009. #else
  10010. # include <assert.h>
  10011. #endif
  10012. #undef $ac_func
  10013. /* Override any GCC internal prototype to avoid an error.
  10014. Use char because int might match the return type of a GCC
  10015. builtin and then its argument prototype would still apply. */
  10016. #ifdef __cplusplus
  10017. extern "C"
  10018. #endif
  10019. char $ac_func ();
  10020. /* The GNU C library defines this for functions which it implements
  10021. to always fail with ENOSYS. Some functions are actually named
  10022. something starting with __ and the normal name is an alias. */
  10023. #if defined __stub_$ac_func || defined __stub___$ac_func
  10024. choke me
  10025. #endif
  10026. int
  10027. main ()
  10028. {
  10029. return $ac_func ();
  10030. ;
  10031. return 0;
  10032. }
  10033. _ACEOF
  10034. rm -f conftest.$ac_objext conftest$ac_exeext
  10035. if { (ac_try="$ac_link"
  10036. case "(($ac_try" in
  10037. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10038. *) ac_try_echo=$ac_try;;
  10039. esac
  10040. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10041. (eval "$ac_link") 2>conftest.er1
  10042. ac_status=$?
  10043. grep -v '^ *+' conftest.er1 >conftest.err
  10044. rm -f conftest.er1
  10045. cat conftest.err >&5
  10046. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10047. (exit $ac_status); } && {
  10048. test -z "$ac_cxx_werror_flag" ||
  10049. test ! -s conftest.err
  10050. } && test -s conftest$ac_exeext &&
  10051. $as_test_x conftest$ac_exeext; then
  10052. eval "$as_ac_var=yes"
  10053. else
  10054. echo "$as_me: failed program was:" >&5
  10055. sed 's/^/| /' conftest.$ac_ext >&5
  10056. eval "$as_ac_var=no"
  10057. fi
  10058. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10059. conftest$ac_exeext conftest.$ac_ext
  10060. fi
  10061. ac_res=`eval echo '${'$as_ac_var'}'`
  10062. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10063. echo "${ECHO_T}$ac_res" >&6; }
  10064. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10065. cat >>confdefs.h <<_ACEOF
  10066. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10067. _ACEOF
  10068. fi
  10069. done
  10070. for ac_func in memcpy memset random rename snprintf srandom gettime
  10071. do
  10072. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10073. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10074. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10075. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10076. echo $ECHO_N "(cached) $ECHO_C" >&6
  10077. else
  10078. cat >conftest.$ac_ext <<_ACEOF
  10079. /* confdefs.h. */
  10080. _ACEOF
  10081. cat confdefs.h >>conftest.$ac_ext
  10082. cat >>conftest.$ac_ext <<_ACEOF
  10083. /* end confdefs.h. */
  10084. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10085. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10086. #define $ac_func innocuous_$ac_func
  10087. /* System header to define __stub macros and hopefully few prototypes,
  10088. which can conflict with char $ac_func (); below.
  10089. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10090. <limits.h> exists even on freestanding compilers. */
  10091. #ifdef __STDC__
  10092. # include <limits.h>
  10093. #else
  10094. # include <assert.h>
  10095. #endif
  10096. #undef $ac_func
  10097. /* Override any GCC internal prototype to avoid an error.
  10098. Use char because int might match the return type of a GCC
  10099. builtin and then its argument prototype would still apply. */
  10100. #ifdef __cplusplus
  10101. extern "C"
  10102. #endif
  10103. char $ac_func ();
  10104. /* The GNU C library defines this for functions which it implements
  10105. to always fail with ENOSYS. Some functions are actually named
  10106. something starting with __ and the normal name is an alias. */
  10107. #if defined __stub_$ac_func || defined __stub___$ac_func
  10108. choke me
  10109. #endif
  10110. int
  10111. main ()
  10112. {
  10113. return $ac_func ();
  10114. ;
  10115. return 0;
  10116. }
  10117. _ACEOF
  10118. rm -f conftest.$ac_objext conftest$ac_exeext
  10119. if { (ac_try="$ac_link"
  10120. case "(($ac_try" in
  10121. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10122. *) ac_try_echo=$ac_try;;
  10123. esac
  10124. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10125. (eval "$ac_link") 2>conftest.er1
  10126. ac_status=$?
  10127. grep -v '^ *+' conftest.er1 >conftest.err
  10128. rm -f conftest.er1
  10129. cat conftest.err >&5
  10130. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10131. (exit $ac_status); } && {
  10132. test -z "$ac_cxx_werror_flag" ||
  10133. test ! -s conftest.err
  10134. } && test -s conftest$ac_exeext &&
  10135. $as_test_x conftest$ac_exeext; then
  10136. eval "$as_ac_var=yes"
  10137. else
  10138. echo "$as_me: failed program was:" >&5
  10139. sed 's/^/| /' conftest.$ac_ext >&5
  10140. eval "$as_ac_var=no"
  10141. fi
  10142. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10143. conftest$ac_exeext conftest.$ac_ext
  10144. fi
  10145. ac_res=`eval echo '${'$as_ac_var'}'`
  10146. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10147. echo "${ECHO_T}$ac_res" >&6; }
  10148. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10149. cat >>confdefs.h <<_ACEOF
  10150. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10151. _ACEOF
  10152. fi
  10153. done
  10154. #checkpoint
  10155. cat >confcache <<\_ACEOF
  10156. # This file is a shell script that caches the results of configure
  10157. # tests run on this system so they can be shared between configure
  10158. # scripts and configure runs, see configure's option --config-cache.
  10159. # It is not useful on other systems. If it contains results you don't
  10160. # want to keep, you may remove or edit it.
  10161. #
  10162. # config.status only pays attention to the cache file if you give it
  10163. # the --recheck option to rerun configure.
  10164. #
  10165. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10166. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10167. # following values.
  10168. _ACEOF
  10169. # The following way of writing the cache mishandles newlines in values,
  10170. # but we know of no workaround that is simple, portable, and efficient.
  10171. # So, we kill variables containing newlines.
  10172. # Ultrix sh set writes to stderr and can't be redirected directly,
  10173. # and sets the high bit in the cache file unless we assign to the vars.
  10174. (
  10175. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10176. eval ac_val=\$$ac_var
  10177. case $ac_val in #(
  10178. *${as_nl}*)
  10179. case $ac_var in #(
  10180. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  10181. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  10182. esac
  10183. case $ac_var in #(
  10184. _ | IFS | as_nl) ;; #(
  10185. *) $as_unset $ac_var ;;
  10186. esac ;;
  10187. esac
  10188. done
  10189. (set) 2>&1 |
  10190. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10191. *${as_nl}ac_space=\ *)
  10192. # `set' does not quote correctly, so add quotes (double-quote
  10193. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10194. sed -n \
  10195. "s/'/'\\\\''/g;
  10196. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10197. ;; #(
  10198. *)
  10199. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10200. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10201. ;;
  10202. esac |
  10203. sort
  10204. ) |
  10205. sed '
  10206. /^ac_cv_env_/b end
  10207. t clear
  10208. :clear
  10209. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10210. t end
  10211. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10212. :end' >>confcache
  10213. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10214. if test -w "$cache_file"; then
  10215. test "x$cache_file" != "x/dev/null" &&
  10216. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  10217. echo "$as_me: updating cache $cache_file" >&6;}
  10218. cat confcache >$cache_file
  10219. else
  10220. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  10221. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10222. fi
  10223. fi
  10224. rm -f confcache
  10225. for ac_func in strcasecmp strncasecmp vsnprintf
  10226. do
  10227. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10228. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10229. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10230. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10231. echo $ECHO_N "(cached) $ECHO_C" >&6
  10232. else
  10233. cat >conftest.$ac_ext <<_ACEOF
  10234. /* confdefs.h. */
  10235. _ACEOF
  10236. cat confdefs.h >>conftest.$ac_ext
  10237. cat >>conftest.$ac_ext <<_ACEOF
  10238. /* end confdefs.h. */
  10239. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10240. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10241. #define $ac_func innocuous_$ac_func
  10242. /* System header to define __stub macros and hopefully few prototypes,
  10243. which can conflict with char $ac_func (); below.
  10244. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10245. <limits.h> exists even on freestanding compilers. */
  10246. #ifdef __STDC__
  10247. # include <limits.h>
  10248. #else
  10249. # include <assert.h>
  10250. #endif
  10251. #undef $ac_func
  10252. /* Override any GCC internal prototype to avoid an error.
  10253. Use char because int might match the return type of a GCC
  10254. builtin and then its argument prototype would still apply. */
  10255. #ifdef __cplusplus
  10256. extern "C"
  10257. #endif
  10258. char $ac_func ();
  10259. /* The GNU C library defines this for functions which it implements
  10260. to always fail with ENOSYS. Some functions are actually named
  10261. something starting with __ and the normal name is an alias. */
  10262. #if defined __stub_$ac_func || defined __stub___$ac_func
  10263. choke me
  10264. #endif
  10265. int
  10266. main ()
  10267. {
  10268. return $ac_func ();
  10269. ;
  10270. return 0;
  10271. }
  10272. _ACEOF
  10273. rm -f conftest.$ac_objext conftest$ac_exeext
  10274. if { (ac_try="$ac_link"
  10275. case "(($ac_try" in
  10276. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10277. *) ac_try_echo=$ac_try;;
  10278. esac
  10279. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10280. (eval "$ac_link") 2>conftest.er1
  10281. ac_status=$?
  10282. grep -v '^ *+' conftest.er1 >conftest.err
  10283. rm -f conftest.er1
  10284. cat conftest.err >&5
  10285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10286. (exit $ac_status); } && {
  10287. test -z "$ac_cxx_werror_flag" ||
  10288. test ! -s conftest.err
  10289. } && test -s conftest$ac_exeext &&
  10290. $as_test_x conftest$ac_exeext; then
  10291. eval "$as_ac_var=yes"
  10292. else
  10293. echo "$as_me: failed program was:" >&5
  10294. sed 's/^/| /' conftest.$ac_ext >&5
  10295. eval "$as_ac_var=no"
  10296. fi
  10297. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10298. conftest$ac_exeext conftest.$ac_ext
  10299. fi
  10300. ac_res=`eval echo '${'$as_ac_var'}'`
  10301. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10302. echo "${ECHO_T}$ac_res" >&6; }
  10303. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10304. cat >>confdefs.h <<_ACEOF
  10305. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10306. _ACEOF
  10307. fi
  10308. done
  10309. #autoscan suggested this....
  10310. #These are recommended by autoscan, but no code supports it currently
  10311. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  10312. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  10313. for ac_func in vsprintf
  10314. do
  10315. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10316. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10317. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10318. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10319. echo $ECHO_N "(cached) $ECHO_C" >&6
  10320. else
  10321. cat >conftest.$ac_ext <<_ACEOF
  10322. /* confdefs.h. */
  10323. _ACEOF
  10324. cat confdefs.h >>conftest.$ac_ext
  10325. cat >>conftest.$ac_ext <<_ACEOF
  10326. /* end confdefs.h. */
  10327. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10328. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10329. #define $ac_func innocuous_$ac_func
  10330. /* System header to define __stub macros and hopefully few prototypes,
  10331. which can conflict with char $ac_func (); below.
  10332. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10333. <limits.h> exists even on freestanding compilers. */
  10334. #ifdef __STDC__
  10335. # include <limits.h>
  10336. #else
  10337. # include <assert.h>
  10338. #endif
  10339. #undef $ac_func
  10340. /* Override any GCC internal prototype to avoid an error.
  10341. Use char because int might match the return type of a GCC
  10342. builtin and then its argument prototype would still apply. */
  10343. #ifdef __cplusplus
  10344. extern "C"
  10345. #endif
  10346. char $ac_func ();
  10347. /* The GNU C library defines this for functions which it implements
  10348. to always fail with ENOSYS. Some functions are actually named
  10349. something starting with __ and the normal name is an alias. */
  10350. #if defined __stub_$ac_func || defined __stub___$ac_func
  10351. choke me
  10352. #endif
  10353. int
  10354. main ()
  10355. {
  10356. return $ac_func ();
  10357. ;
  10358. return 0;
  10359. }
  10360. _ACEOF
  10361. rm -f conftest.$ac_objext conftest$ac_exeext
  10362. if { (ac_try="$ac_link"
  10363. case "(($ac_try" in
  10364. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10365. *) ac_try_echo=$ac_try;;
  10366. esac
  10367. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10368. (eval "$ac_link") 2>conftest.er1
  10369. ac_status=$?
  10370. grep -v '^ *+' conftest.er1 >conftest.err
  10371. rm -f conftest.er1
  10372. cat conftest.err >&5
  10373. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10374. (exit $ac_status); } && {
  10375. test -z "$ac_cxx_werror_flag" ||
  10376. test ! -s conftest.err
  10377. } && test -s conftest$ac_exeext &&
  10378. $as_test_x conftest$ac_exeext; then
  10379. eval "$as_ac_var=yes"
  10380. else
  10381. echo "$as_me: failed program was:" >&5
  10382. sed 's/^/| /' conftest.$ac_ext >&5
  10383. eval "$as_ac_var=no"
  10384. fi
  10385. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10386. conftest$ac_exeext conftest.$ac_ext
  10387. fi
  10388. ac_res=`eval echo '${'$as_ac_var'}'`
  10389. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10390. echo "${ECHO_T}$ac_res" >&6; }
  10391. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10392. cat >>confdefs.h <<_ACEOF
  10393. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10394. _ACEOF
  10395. fi
  10396. done
  10397. if test "$ac_cv_func_vsprintf" = "no"
  10398. then
  10399. cat << 'EOF' >&2
  10400. configure: error:
  10401. Your system does not have the sprintf/vsprintf libraries.
  10402. These are required to compile almost anything. Sorry.
  10403. EOF
  10404. exit 1
  10405. fi
  10406. for ac_func in uname
  10407. do
  10408. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  10409. { echo "$as_me:$LINENO: checking for $ac_func" >&5
  10410. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
  10411. if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
  10412. echo $ECHO_N "(cached) $ECHO_C" >&6
  10413. else
  10414. cat >conftest.$ac_ext <<_ACEOF
  10415. /* confdefs.h. */
  10416. _ACEOF
  10417. cat confdefs.h >>conftest.$ac_ext
  10418. cat >>conftest.$ac_ext <<_ACEOF
  10419. /* end confdefs.h. */
  10420. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  10421. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10422. #define $ac_func innocuous_$ac_func
  10423. /* System header to define __stub macros and hopefully few prototypes,
  10424. which can conflict with char $ac_func (); below.
  10425. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10426. <limits.h> exists even on freestanding compilers. */
  10427. #ifdef __STDC__
  10428. # include <limits.h>
  10429. #else
  10430. # include <assert.h>
  10431. #endif
  10432. #undef $ac_func
  10433. /* Override any GCC internal prototype to avoid an error.
  10434. Use char because int might match the return type of a GCC
  10435. builtin and then its argument prototype would still apply. */
  10436. #ifdef __cplusplus
  10437. extern "C"
  10438. #endif
  10439. char $ac_func ();
  10440. /* The GNU C library defines this for functions which it implements
  10441. to always fail with ENOSYS. Some functions are actually named
  10442. something starting with __ and the normal name is an alias. */
  10443. #if defined __stub_$ac_func || defined __stub___$ac_func
  10444. choke me
  10445. #endif
  10446. int
  10447. main ()
  10448. {
  10449. return $ac_func ();
  10450. ;
  10451. return 0;
  10452. }
  10453. _ACEOF
  10454. rm -f conftest.$ac_objext conftest$ac_exeext
  10455. if { (ac_try="$ac_link"
  10456. case "(($ac_try" in
  10457. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  10458. *) ac_try_echo=$ac_try;;
  10459. esac
  10460. eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
  10461. (eval "$ac_link") 2>conftest.er1
  10462. ac_status=$?
  10463. grep -v '^ *+' conftest.er1 >conftest.err
  10464. rm -f conftest.er1
  10465. cat conftest.err >&5
  10466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10467. (exit $ac_status); } && {
  10468. test -z "$ac_cxx_werror_flag" ||
  10469. test ! -s conftest.err
  10470. } && test -s conftest$ac_exeext &&
  10471. $as_test_x conftest$ac_exeext; then
  10472. eval "$as_ac_var=yes"
  10473. else
  10474. echo "$as_me: failed program was:" >&5
  10475. sed 's/^/| /' conftest.$ac_ext >&5
  10476. eval "$as_ac_var=no"
  10477. fi
  10478. rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
  10479. conftest$ac_exeext conftest.$ac_ext
  10480. fi
  10481. ac_res=`eval echo '${'$as_ac_var'}'`
  10482. { echo "$as_me:$LINENO: result: $ac_res" >&5
  10483. echo "${ECHO_T}$ac_res" >&6; }
  10484. if test `eval echo '${'$as_ac_var'}'` = yes; then
  10485. cat >>confdefs.h <<_ACEOF
  10486. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  10487. _ACEOF
  10488. fi
  10489. done
  10490. if test "$ac_cv_func_uname" = "no"
  10491. then
  10492. cat << 'EOF' >&2
  10493. configure: error:
  10494. Your system does not have the uname() function.
  10495. This is required for the botpack.
  10496. EOF
  10497. exit 1
  10498. fi
  10499. # Make sure we have stdc headers, since we can't compile without them
  10500. if test "$ac_cv_header_stdc" = "no"
  10501. then
  10502. cat << 'EOF' >&2
  10503. configure: error:
  10504. Your system must support ANSI C Header files.
  10505. These are required for the language support. Sorry.
  10506. EOF
  10507. exit 1
  10508. fi
  10509. #checkpoint
  10510. cat >confcache <<\_ACEOF
  10511. # This file is a shell script that caches the results of configure
  10512. # tests run on this system so they can be shared between configure
  10513. # scripts and configure runs, see configure's option --config-cache.
  10514. # It is not useful on other systems. If it contains results you don't
  10515. # want to keep, you may remove or edit it.
  10516. #
  10517. # config.status only pays attention to the cache file if you give it
  10518. # the --recheck option to rerun configure.
  10519. #
  10520. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10521. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10522. # following values.
  10523. _ACEOF
  10524. # The following way of writing the cache mishandles newlines in values,
  10525. # but we know of no workaround that is simple, portable, and efficient.
  10526. # So, we kill variables containing newlines.
  10527. # Ultrix sh set writes to stderr and can't be redirected directly,
  10528. # and sets the high bit in the cache file unless we assign to the vars.
  10529. (
  10530. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10531. eval ac_val=\$$ac_var
  10532. case $ac_val in #(
  10533. *${as_nl}*)
  10534. case $ac_var in #(
  10535. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  10536. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  10537. esac
  10538. case $ac_var in #(
  10539. _ | IFS | as_nl) ;; #(
  10540. *) $as_unset $ac_var ;;
  10541. esac ;;
  10542. esac
  10543. done
  10544. (set) 2>&1 |
  10545. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10546. *${as_nl}ac_space=\ *)
  10547. # `set' does not quote correctly, so add quotes (double-quote
  10548. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10549. sed -n \
  10550. "s/'/'\\\\''/g;
  10551. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10552. ;; #(
  10553. *)
  10554. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10555. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10556. ;;
  10557. esac |
  10558. sort
  10559. ) |
  10560. sed '
  10561. /^ac_cv_env_/b end
  10562. t clear
  10563. :clear
  10564. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10565. t end
  10566. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10567. :end' >>confcache
  10568. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10569. if test -w "$cache_file"; then
  10570. test "x$cache_file" != "x/dev/null" &&
  10571. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  10572. echo "$as_me: updating cache $cache_file" >&6;}
  10573. cat confcache >$cache_file
  10574. else
  10575. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  10576. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10577. fi
  10578. fi
  10579. rm -f confcache
  10580. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  10581. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  10582. cat >>confdefs.h <<_ACEOF
  10583. #define EGG_VERSION $version_num
  10584. _ACEOF
  10585. #FIND_WRAPS
  10586. case "$srcdir" in
  10587. [\\/]* | ?:[\\/]*)
  10588. MOD_UPDIR=""
  10589. ;;
  10590. *)
  10591. MOD_UPDIR="../"
  10592. ;;
  10593. esac
  10594. 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/irc.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  10595. for mf in $files; do
  10596. # Strip MF so we end up with the name of the file.
  10597. # echo "MF: $mf"
  10598. mf=`echo "$mf" | sed -e 's/:.*$//'`
  10599. dirpart=`$as_dirname -- "$mf" ||
  10600. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10601. X"$mf" : 'X\(//\)[^/]' \| \
  10602. X"$mf" : 'X\(//\)$' \| \
  10603. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  10604. echo X"$mf" |
  10605. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10606. s//\1/
  10607. q
  10608. }
  10609. /^X\(\/\/\)[^/].*/{
  10610. s//\1/
  10611. q
  10612. }
  10613. /^X\(\/\/\)$/{
  10614. s//\1/
  10615. q
  10616. }
  10617. /^X\(\/\).*/{
  10618. s//\1/
  10619. q
  10620. }
  10621. s/.*/./; q'`
  10622. # echo "dirpart: $dirpart mf: $mf"
  10623. # rm -rf "$dirpart/.deps/"
  10624. rm -f "$dirpart/.deps/includes"
  10625. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  10626. for file in `sed -n -e '
  10627. /^OBJS = .*\\\\$/ {
  10628. s/^OBJS = //
  10629. :loop
  10630. s/\\\\$//
  10631. p
  10632. n
  10633. /\\\\$/ b loop
  10634. p
  10635. }
  10636. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  10637. do
  10638. base=`basename $file .o`
  10639. test -f "$dirpart/$base.c" || continue
  10640. if ! test -f "$dirpart/.deps/$base.Po"; then
  10641. echo '# dummy' > "$dirpart/.deps/$base.Po"
  10642. #Remove the .o file, because it needs to be recompiled for its dependancies.
  10643. if test -f "$dirpart/$base.o"; then
  10644. rm -f "$dirpart/$base.o"
  10645. fi
  10646. fi
  10647. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  10648. echo "_$base.c:" >> "$dirpart/.deps/includes"
  10649. done
  10650. done
  10651. ac_config_files="$ac_config_files Makefile lib/Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile src/buildinfo.h"
  10652. cat >confcache <<\_ACEOF
  10653. # This file is a shell script that caches the results of configure
  10654. # tests run on this system so they can be shared between configure
  10655. # scripts and configure runs, see configure's option --config-cache.
  10656. # It is not useful on other systems. If it contains results you don't
  10657. # want to keep, you may remove or edit it.
  10658. #
  10659. # config.status only pays attention to the cache file if you give it
  10660. # the --recheck option to rerun configure.
  10661. #
  10662. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10663. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10664. # following values.
  10665. _ACEOF
  10666. # The following way of writing the cache mishandles newlines in values,
  10667. # but we know of no workaround that is simple, portable, and efficient.
  10668. # So, we kill variables containing newlines.
  10669. # Ultrix sh set writes to stderr and can't be redirected directly,
  10670. # and sets the high bit in the cache file unless we assign to the vars.
  10671. (
  10672. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10673. eval ac_val=\$$ac_var
  10674. case $ac_val in #(
  10675. *${as_nl}*)
  10676. case $ac_var in #(
  10677. *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
  10678. echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
  10679. esac
  10680. case $ac_var in #(
  10681. _ | IFS | as_nl) ;; #(
  10682. *) $as_unset $ac_var ;;
  10683. esac ;;
  10684. esac
  10685. done
  10686. (set) 2>&1 |
  10687. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10688. *${as_nl}ac_space=\ *)
  10689. # `set' does not quote correctly, so add quotes (double-quote
  10690. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10691. sed -n \
  10692. "s/'/'\\\\''/g;
  10693. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10694. ;; #(
  10695. *)
  10696. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10697. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10698. ;;
  10699. esac |
  10700. sort
  10701. ) |
  10702. sed '
  10703. /^ac_cv_env_/b end
  10704. t clear
  10705. :clear
  10706. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10707. t end
  10708. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10709. :end' >>confcache
  10710. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10711. if test -w "$cache_file"; then
  10712. test "x$cache_file" != "x/dev/null" &&
  10713. { echo "$as_me:$LINENO: updating cache $cache_file" >&5
  10714. echo "$as_me: updating cache $cache_file" >&6;}
  10715. cat confcache >$cache_file
  10716. else
  10717. { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
  10718. echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10719. fi
  10720. fi
  10721. rm -f confcache
  10722. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10723. # Let make expand exec_prefix.
  10724. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10725. DEFS=-DHAVE_CONFIG_H
  10726. ac_libobjs=
  10727. ac_ltlibobjs=
  10728. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10729. # 1. Remove the extension, and $U if already installed.
  10730. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10731. ac_i=`echo "$ac_i" | sed "$ac_script"`
  10732. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10733. # will be set to the directory where LIBOBJS objects are built.
  10734. ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10735. ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
  10736. done
  10737. LIBOBJS=$ac_libobjs
  10738. LTLIBOBJS=$ac_ltlibobjs
  10739. : ${CONFIG_STATUS=./config.status}
  10740. ac_clean_files_save=$ac_clean_files
  10741. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10742. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  10743. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10744. cat >$CONFIG_STATUS <<_ACEOF
  10745. #! $SHELL
  10746. # Generated by $as_me.
  10747. # Run this file to recreate the current configuration.
  10748. # Compiler output produced by configure, useful for debugging
  10749. # configure, is in config.log if it exists.
  10750. debug=false
  10751. ac_cs_recheck=false
  10752. ac_cs_silent=false
  10753. SHELL=\${CONFIG_SHELL-$SHELL}
  10754. _ACEOF
  10755. cat >>$CONFIG_STATUS <<\_ACEOF
  10756. ## --------------------- ##
  10757. ## M4sh Initialization. ##
  10758. ## --------------------- ##
  10759. # Be more Bourne compatible
  10760. DUALCASE=1; export DUALCASE # for MKS sh
  10761. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  10762. emulate sh
  10763. NULLCMD=:
  10764. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  10765. # is contrary to our usage. Disable this feature.
  10766. alias -g '${1+"$@"}'='"$@"'
  10767. setopt NO_GLOB_SUBST
  10768. else
  10769. case `(set -o) 2>/dev/null` in
  10770. *posix*) set -o posix ;;
  10771. esac
  10772. fi
  10773. # PATH needs CR
  10774. # Avoid depending upon Character Ranges.
  10775. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10776. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10777. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10778. as_cr_digits='0123456789'
  10779. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10780. # The user is always right.
  10781. if test "${PATH_SEPARATOR+set}" != set; then
  10782. echo "#! /bin/sh" >conf$$.sh
  10783. echo "exit 0" >>conf$$.sh
  10784. chmod +x conf$$.sh
  10785. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  10786. PATH_SEPARATOR=';'
  10787. else
  10788. PATH_SEPARATOR=:
  10789. fi
  10790. rm -f conf$$.sh
  10791. fi
  10792. # Support unset when possible.
  10793. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10794. as_unset=unset
  10795. else
  10796. as_unset=false
  10797. fi
  10798. # IFS
  10799. # We need space, tab and new line, in precisely that order. Quoting is
  10800. # there to prevent editors from complaining about space-tab.
  10801. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10802. # splitting by setting IFS to empty value.)
  10803. as_nl='
  10804. '
  10805. IFS=" "" $as_nl"
  10806. # Find who we are. Look in the path if we contain no directory separator.
  10807. case $0 in
  10808. *[\\/]* ) as_myself=$0 ;;
  10809. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10810. for as_dir in $PATH
  10811. do
  10812. IFS=$as_save_IFS
  10813. test -z "$as_dir" && as_dir=.
  10814. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  10815. done
  10816. IFS=$as_save_IFS
  10817. ;;
  10818. esac
  10819. # We did not find ourselves, most probably we were run as `sh COMMAND'
  10820. # in which case we are not to be found in the path.
  10821. if test "x$as_myself" = x; then
  10822. as_myself=$0
  10823. fi
  10824. if test ! -f "$as_myself"; then
  10825. echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  10826. { (exit 1); exit 1; }
  10827. fi
  10828. # Work around bugs in pre-3.0 UWIN ksh.
  10829. for as_var in ENV MAIL MAILPATH
  10830. do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  10831. done
  10832. PS1='$ '
  10833. PS2='> '
  10834. PS4='+ '
  10835. # NLS nuisances.
  10836. for as_var in \
  10837. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  10838. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10839. LC_TELEPHONE LC_TIME
  10840. do
  10841. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10842. eval $as_var=C; export $as_var
  10843. else
  10844. ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
  10845. fi
  10846. done
  10847. # Required to use basename.
  10848. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10849. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10850. as_expr=expr
  10851. else
  10852. as_expr=false
  10853. fi
  10854. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10855. as_basename=basename
  10856. else
  10857. as_basename=false
  10858. fi
  10859. # Name of the executable.
  10860. as_me=`$as_basename -- "$0" ||
  10861. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10862. X"$0" : 'X\(//\)$' \| \
  10863. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10864. echo X/"$0" |
  10865. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10866. s//\1/
  10867. q
  10868. }
  10869. /^X\/\(\/\/\)$/{
  10870. s//\1/
  10871. q
  10872. }
  10873. /^X\/\(\/\).*/{
  10874. s//\1/
  10875. q
  10876. }
  10877. s/.*/./; q'`
  10878. # CDPATH.
  10879. $as_unset CDPATH
  10880. as_lineno_1=$LINENO
  10881. as_lineno_2=$LINENO
  10882. test "x$as_lineno_1" != "x$as_lineno_2" &&
  10883. test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
  10884. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  10885. # uniformly replaced by the line number. The first 'sed' inserts a
  10886. # line-number line after each line using $LINENO; the second 'sed'
  10887. # does the real work. The second script uses 'N' to pair each
  10888. # line-number line with the line containing $LINENO, and appends
  10889. # trailing '-' during substitution so that $LINENO is not a special
  10890. # case at line end.
  10891. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  10892. # scripts with optimization help from Paolo Bonzini. Blame Lee
  10893. # E. McMahon (1931-1989) for sed's syntax. :-)
  10894. sed -n '
  10895. p
  10896. /[$]LINENO/=
  10897. ' <$as_myself |
  10898. sed '
  10899. s/[$]LINENO.*/&-/
  10900. t lineno
  10901. b
  10902. :lineno
  10903. N
  10904. :loop
  10905. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  10906. t loop
  10907. s/-\n.*//
  10908. ' >$as_me.lineno &&
  10909. chmod +x "$as_me.lineno" ||
  10910. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  10911. { (exit 1); exit 1; }; }
  10912. # Don't try to exec as it changes $[0], causing all sort of problems
  10913. # (the dirname of $[0] is not the place where we might find the
  10914. # original and so on. Autoconf is especially sensitive to this).
  10915. . "./$as_me.lineno"
  10916. # Exit status is that of the last command.
  10917. exit
  10918. }
  10919. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10920. as_dirname=dirname
  10921. else
  10922. as_dirname=false
  10923. fi
  10924. ECHO_C= ECHO_N= ECHO_T=
  10925. case `echo -n x` in
  10926. -n*)
  10927. case `echo 'x\c'` in
  10928. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10929. *) ECHO_C='\c';;
  10930. esac;;
  10931. *)
  10932. ECHO_N='-n';;
  10933. esac
  10934. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10935. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10936. as_expr=expr
  10937. else
  10938. as_expr=false
  10939. fi
  10940. rm -f conf$$ conf$$.exe conf$$.file
  10941. if test -d conf$$.dir; then
  10942. rm -f conf$$.dir/conf$$.file
  10943. else
  10944. rm -f conf$$.dir
  10945. mkdir conf$$.dir
  10946. fi
  10947. echo >conf$$.file
  10948. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10949. as_ln_s='ln -s'
  10950. # ... but there are two gotchas:
  10951. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10952. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10953. # In both cases, we have to default to `cp -p'.
  10954. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10955. as_ln_s='cp -p'
  10956. elif ln conf$$.file conf$$ 2>/dev/null; then
  10957. as_ln_s=ln
  10958. else
  10959. as_ln_s='cp -p'
  10960. fi
  10961. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10962. rmdir conf$$.dir 2>/dev/null
  10963. if mkdir -p . 2>/dev/null; then
  10964. as_mkdir_p=:
  10965. else
  10966. test -d ./-p && rmdir ./-p
  10967. as_mkdir_p=false
  10968. fi
  10969. if test -x / >/dev/null 2>&1; then
  10970. as_test_x='test -x'
  10971. else
  10972. if ls -dL / >/dev/null 2>&1; then
  10973. as_ls_L_option=L
  10974. else
  10975. as_ls_L_option=
  10976. fi
  10977. as_test_x='
  10978. eval sh -c '\''
  10979. if test -d "$1"; then
  10980. test -d "$1/.";
  10981. else
  10982. case $1 in
  10983. -*)set "./$1";;
  10984. esac;
  10985. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
  10986. ???[sx]*):;;*)false;;esac;fi
  10987. '\'' sh
  10988. '
  10989. fi
  10990. as_executable_p=$as_test_x
  10991. # Sed expression to map a string onto a valid CPP name.
  10992. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10993. # Sed expression to map a string onto a valid variable name.
  10994. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10995. exec 6>&1
  10996. # Save the log message, to keep $[0] and so on meaningful, and to
  10997. # report actual input values of CONFIG_FILES etc. instead of their
  10998. # values after options handling.
  10999. ac_log="
  11000. This file was extended by $as_me, which was
  11001. generated by GNU Autoconf 2.61. Invocation command line was
  11002. CONFIG_FILES = $CONFIG_FILES
  11003. CONFIG_HEADERS = $CONFIG_HEADERS
  11004. CONFIG_LINKS = $CONFIG_LINKS
  11005. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11006. $ $0 $@
  11007. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11008. "
  11009. _ACEOF
  11010. cat >>$CONFIG_STATUS <<_ACEOF
  11011. # Files that config.status was made for.
  11012. config_files="$ac_config_files"
  11013. config_headers="$ac_config_headers"
  11014. _ACEOF
  11015. cat >>$CONFIG_STATUS <<\_ACEOF
  11016. ac_cs_usage="\
  11017. \`$as_me' instantiates files from templates according to the
  11018. current configuration.
  11019. Usage: $0 [OPTIONS] [FILE]...
  11020. -h, --help print this help, then exit
  11021. -V, --version print version number and configuration settings, then exit
  11022. -q, --quiet do not print progress messages
  11023. -d, --debug don't remove temporary files
  11024. --recheck update $as_me by reconfiguring in the same conditions
  11025. --file=FILE[:TEMPLATE]
  11026. instantiate the configuration file FILE
  11027. --header=FILE[:TEMPLATE]
  11028. instantiate the configuration header FILE
  11029. Configuration files:
  11030. $config_files
  11031. Configuration headers:
  11032. $config_headers
  11033. Report bugs to <bug-autoconf@gnu.org>."
  11034. _ACEOF
  11035. cat >>$CONFIG_STATUS <<_ACEOF
  11036. ac_cs_version="\\
  11037. config.status
  11038. configured by $0, generated by GNU Autoconf 2.61,
  11039. with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
  11040. Copyright (C) 2006 Free Software Foundation, Inc.
  11041. This config.status script is free software; the Free Software Foundation
  11042. gives unlimited permission to copy, distribute and modify it."
  11043. ac_pwd='$ac_pwd'
  11044. srcdir='$srcdir'
  11045. _ACEOF
  11046. cat >>$CONFIG_STATUS <<\_ACEOF
  11047. # If no file are specified by the user, then we need to provide default
  11048. # value. By we need to know if files were specified by the user.
  11049. ac_need_defaults=:
  11050. while test $# != 0
  11051. do
  11052. case $1 in
  11053. --*=*)
  11054. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11055. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11056. ac_shift=:
  11057. ;;
  11058. *)
  11059. ac_option=$1
  11060. ac_optarg=$2
  11061. ac_shift=shift
  11062. ;;
  11063. esac
  11064. case $ac_option in
  11065. # Handling of the options.
  11066. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11067. ac_cs_recheck=: ;;
  11068. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11069. echo "$ac_cs_version"; exit ;;
  11070. --debug | --debu | --deb | --de | --d | -d )
  11071. debug=: ;;
  11072. --file | --fil | --fi | --f )
  11073. $ac_shift
  11074. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  11075. ac_need_defaults=false;;
  11076. --header | --heade | --head | --hea )
  11077. $ac_shift
  11078. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  11079. ac_need_defaults=false;;
  11080. --he | --h)
  11081. # Conflict between --help and --header
  11082. { echo "$as_me: error: ambiguous option: $1
  11083. Try \`$0 --help' for more information." >&2
  11084. { (exit 1); exit 1; }; };;
  11085. --help | --hel | -h )
  11086. echo "$ac_cs_usage"; exit ;;
  11087. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11088. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11089. ac_cs_silent=: ;;
  11090. # This is an error.
  11091. -*) { echo "$as_me: error: unrecognized option: $1
  11092. Try \`$0 --help' for more information." >&2
  11093. { (exit 1); exit 1; }; } ;;
  11094. *) ac_config_targets="$ac_config_targets $1"
  11095. ac_need_defaults=false ;;
  11096. esac
  11097. shift
  11098. done
  11099. ac_configure_extra_args=
  11100. if $ac_cs_silent; then
  11101. exec 6>/dev/null
  11102. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11103. fi
  11104. _ACEOF
  11105. cat >>$CONFIG_STATUS <<_ACEOF
  11106. if \$ac_cs_recheck; then
  11107. echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  11108. CONFIG_SHELL=$SHELL
  11109. export CONFIG_SHELL
  11110. exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11111. fi
  11112. _ACEOF
  11113. cat >>$CONFIG_STATUS <<\_ACEOF
  11114. exec 5>>config.log
  11115. {
  11116. echo
  11117. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11118. ## Running $as_me. ##
  11119. _ASBOX
  11120. echo "$ac_log"
  11121. } >&5
  11122. _ACEOF
  11123. cat >>$CONFIG_STATUS <<_ACEOF
  11124. _ACEOF
  11125. cat >>$CONFIG_STATUS <<\_ACEOF
  11126. # Handling of arguments.
  11127. for ac_config_target in $ac_config_targets
  11128. do
  11129. case $ac_config_target in
  11130. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11131. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11132. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  11133. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  11134. "src/compat/Makefile") CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  11135. "src/crypto/Makefile") CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  11136. "src/mod/Makefile") CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  11137. "src/buildinfo.h") CONFIG_FILES="$CONFIG_FILES src/buildinfo.h" ;;
  11138. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11139. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  11140. { (exit 1); exit 1; }; };;
  11141. esac
  11142. done
  11143. # If the user did not use the arguments to specify the items to instantiate,
  11144. # then the envvar interface is used. Set only those that are not.
  11145. # We use the long form for the default assignment because of an extremely
  11146. # bizarre bug on SunOS 4.1.3.
  11147. if $ac_need_defaults; then
  11148. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11149. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11150. fi
  11151. # Have a temporary directory for convenience. Make it in the build tree
  11152. # simply because there is no reason against having it here, and in addition,
  11153. # creating and moving files from /tmp can sometimes cause problems.
  11154. # Hook for its removal unless debugging.
  11155. # Note that there is a small window in which the directory will not be cleaned:
  11156. # after its creation but before its name has been assigned to `$tmp'.
  11157. $debug ||
  11158. {
  11159. tmp=
  11160. trap 'exit_status=$?
  11161. { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  11162. ' 0
  11163. trap '{ (exit 1); exit 1; }' 1 2 13 15
  11164. }
  11165. # Create a (secure) tmp directory for tmp files.
  11166. {
  11167. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11168. test -n "$tmp" && test -d "$tmp"
  11169. } ||
  11170. {
  11171. tmp=./conf$$-$RANDOM
  11172. (umask 077 && mkdir "$tmp")
  11173. } ||
  11174. {
  11175. echo "$me: cannot create a temporary directory in ." >&2
  11176. { (exit 1); exit 1; }
  11177. }
  11178. #
  11179. # Set up the sed scripts for CONFIG_FILES section.
  11180. #
  11181. # No need to generate the scripts if there are no CONFIG_FILES.
  11182. # This happens for instance when ./config.status config.h
  11183. if test -n "$CONFIG_FILES"; then
  11184. _ACEOF
  11185. ac_delim='%!_!# '
  11186. for ac_last_try in false false false false false :; do
  11187. cat >conf$$subs.sed <<_ACEOF
  11188. SHELL!$SHELL$ac_delim
  11189. PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
  11190. PACKAGE_NAME!$PACKAGE_NAME$ac_delim
  11191. PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
  11192. PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
  11193. PACKAGE_STRING!$PACKAGE_STRING$ac_delim
  11194. PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
  11195. exec_prefix!$exec_prefix$ac_delim
  11196. prefix!$prefix$ac_delim
  11197. program_transform_name!$program_transform_name$ac_delim
  11198. bindir!$bindir$ac_delim
  11199. sbindir!$sbindir$ac_delim
  11200. libexecdir!$libexecdir$ac_delim
  11201. datarootdir!$datarootdir$ac_delim
  11202. datadir!$datadir$ac_delim
  11203. sysconfdir!$sysconfdir$ac_delim
  11204. sharedstatedir!$sharedstatedir$ac_delim
  11205. localstatedir!$localstatedir$ac_delim
  11206. includedir!$includedir$ac_delim
  11207. oldincludedir!$oldincludedir$ac_delim
  11208. docdir!$docdir$ac_delim
  11209. infodir!$infodir$ac_delim
  11210. htmldir!$htmldir$ac_delim
  11211. dvidir!$dvidir$ac_delim
  11212. pdfdir!$pdfdir$ac_delim
  11213. psdir!$psdir$ac_delim
  11214. libdir!$libdir$ac_delim
  11215. localedir!$localedir$ac_delim
  11216. mandir!$mandir$ac_delim
  11217. DEFS!$DEFS$ac_delim
  11218. ECHO_C!$ECHO_C$ac_delim
  11219. ECHO_N!$ECHO_N$ac_delim
  11220. ECHO_T!$ECHO_T$ac_delim
  11221. LIBS!$LIBS$ac_delim
  11222. build_alias!$build_alias$ac_delim
  11223. host_alias!$host_alias$ac_delim
  11224. target_alias!$target_alias$ac_delim
  11225. egg_ac_parameters!$egg_ac_parameters$ac_delim
  11226. CXX!$CXX$ac_delim
  11227. CXXFLAGS!$CXXFLAGS$ac_delim
  11228. LDFLAGS!$LDFLAGS$ac_delim
  11229. CPPFLAGS!$CPPFLAGS$ac_delim
  11230. ac_ct_CXX!$ac_ct_CXX$ac_delim
  11231. EXEEXT!$EXEEXT$ac_delim
  11232. OBJEXT!$OBJEXT$ac_delim
  11233. CXXCPP!$CXXCPP$ac_delim
  11234. GREP!$GREP$ac_delim
  11235. EGREP!$EGREP$ac_delim
  11236. CCDEPMODE!$CCDEPMODE$ac_delim
  11237. GCC3!$GCC3$ac_delim
  11238. GCC3DEB!$GCC3DEB$ac_delim
  11239. SET_MAKE!$SET_MAKE$ac_delim
  11240. HEAD_1!$HEAD_1$ac_delim
  11241. AWK!$AWK$ac_delim
  11242. BASENAME!$BASENAME$ac_delim
  11243. OBJCOPY!$OBJCOPY$ac_delim
  11244. STRIP!$STRIP$ac_delim
  11245. DIFF!$DIFF$ac_delim
  11246. UNAME!$UNAME$ac_delim
  11247. CCACHE!$CCACHE$ac_delim
  11248. DISTCC!$DISTCC$ac_delim
  11249. BUILDOS!$BUILDOS$ac_delim
  11250. BUILDARCH!$BUILDARCH$ac_delim
  11251. CCDEBUG!$CCDEBUG$ac_delim
  11252. ZLIB!$ZLIB$ac_delim
  11253. LIBOBJS!$LIBOBJS$ac_delim
  11254. VERSION!$VERSION$ac_delim
  11255. NUMVER!$NUMVER$ac_delim
  11256. MOD_UPDIR!$MOD_UPDIR$ac_delim
  11257. LTLIBOBJS!$LTLIBOBJS$ac_delim
  11258. _ACEOF
  11259. if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 70; then
  11260. break
  11261. elif $ac_last_try; then
  11262. { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
  11263. echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
  11264. { (exit 1); exit 1; }; }
  11265. else
  11266. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11267. fi
  11268. done
  11269. ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
  11270. if test -n "$ac_eof"; then
  11271. ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
  11272. ac_eof=`expr $ac_eof + 1`
  11273. fi
  11274. cat >>$CONFIG_STATUS <<_ACEOF
  11275. cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
  11276. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
  11277. _ACEOF
  11278. sed '
  11279. s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
  11280. s/^/s,@/; s/!/@,|#_!!_#|/
  11281. :n
  11282. t n
  11283. s/'"$ac_delim"'$/,g/; t
  11284. s/$/\\/; p
  11285. N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
  11286. ' >>$CONFIG_STATUS <conf$$subs.sed
  11287. rm -f conf$$subs.sed
  11288. cat >>$CONFIG_STATUS <<_ACEOF
  11289. :end
  11290. s/|#_!!_#|//g
  11291. CEOF$ac_eof
  11292. _ACEOF
  11293. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  11294. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  11295. # trailing colons and then remove the whole line if VPATH becomes empty
  11296. # (actually we leave an empty line to preserve line numbers).
  11297. if test "x$srcdir" = x.; then
  11298. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  11299. s/:*\$(srcdir):*/:/
  11300. s/:*\${srcdir}:*/:/
  11301. s/:*@srcdir@:*/:/
  11302. s/^\([^=]*=[ ]*\):*/\1/
  11303. s/:*$//
  11304. s/^[^=]*=[ ]*$//
  11305. }'
  11306. fi
  11307. cat >>$CONFIG_STATUS <<\_ACEOF
  11308. fi # test -n "$CONFIG_FILES"
  11309. for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
  11310. do
  11311. case $ac_tag in
  11312. :[FHLC]) ac_mode=$ac_tag; continue;;
  11313. esac
  11314. case $ac_mode$ac_tag in
  11315. :[FHL]*:*);;
  11316. :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
  11317. echo "$as_me: error: Invalid tag $ac_tag." >&2;}
  11318. { (exit 1); exit 1; }; };;
  11319. :[FH]-) ac_tag=-:-;;
  11320. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11321. esac
  11322. ac_save_IFS=$IFS
  11323. IFS=:
  11324. set x $ac_tag
  11325. IFS=$ac_save_IFS
  11326. shift
  11327. ac_file=$1
  11328. shift
  11329. case $ac_mode in
  11330. :L) ac_source=$1;;
  11331. :[FH])
  11332. ac_file_inputs=
  11333. for ac_f
  11334. do
  11335. case $ac_f in
  11336. -) ac_f="$tmp/stdin";;
  11337. *) # Look for the file first in the build tree, then in the source tree
  11338. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11339. # because $ac_f cannot contain `:'.
  11340. test -f "$ac_f" ||
  11341. case $ac_f in
  11342. [\\/$]*) false;;
  11343. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11344. esac ||
  11345. { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
  11346. echo "$as_me: error: cannot find input file: $ac_f" >&2;}
  11347. { (exit 1); exit 1; }; };;
  11348. esac
  11349. ac_file_inputs="$ac_file_inputs $ac_f"
  11350. done
  11351. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11352. # use $as_me), people would be surprised to read:
  11353. # /* config.h. Generated by config.status. */
  11354. configure_input="Generated from "`IFS=:
  11355. echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
  11356. if test x"$ac_file" != x-; then
  11357. configure_input="$ac_file. $configure_input"
  11358. { echo "$as_me:$LINENO: creating $ac_file" >&5
  11359. echo "$as_me: creating $ac_file" >&6;}
  11360. fi
  11361. case $ac_tag in
  11362. *:-:* | *:-) cat >"$tmp/stdin";;
  11363. esac
  11364. ;;
  11365. esac
  11366. ac_dir=`$as_dirname -- "$ac_file" ||
  11367. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11368. X"$ac_file" : 'X\(//\)[^/]' \| \
  11369. X"$ac_file" : 'X\(//\)$' \| \
  11370. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  11371. echo X"$ac_file" |
  11372. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11373. s//\1/
  11374. q
  11375. }
  11376. /^X\(\/\/\)[^/].*/{
  11377. s//\1/
  11378. q
  11379. }
  11380. /^X\(\/\/\)$/{
  11381. s//\1/
  11382. q
  11383. }
  11384. /^X\(\/\).*/{
  11385. s//\1/
  11386. q
  11387. }
  11388. s/.*/./; q'`
  11389. { as_dir="$ac_dir"
  11390. case $as_dir in #(
  11391. -*) as_dir=./$as_dir;;
  11392. esac
  11393. test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
  11394. as_dirs=
  11395. while :; do
  11396. case $as_dir in #(
  11397. *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
  11398. *) as_qdir=$as_dir;;
  11399. esac
  11400. as_dirs="'$as_qdir' $as_dirs"
  11401. as_dir=`$as_dirname -- "$as_dir" ||
  11402. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11403. X"$as_dir" : 'X\(//\)[^/]' \| \
  11404. X"$as_dir" : 'X\(//\)$' \| \
  11405. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11406. echo X"$as_dir" |
  11407. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11408. s//\1/
  11409. q
  11410. }
  11411. /^X\(\/\/\)[^/].*/{
  11412. s//\1/
  11413. q
  11414. }
  11415. /^X\(\/\/\)$/{
  11416. s//\1/
  11417. q
  11418. }
  11419. /^X\(\/\).*/{
  11420. s//\1/
  11421. q
  11422. }
  11423. s/.*/./; q'`
  11424. test -d "$as_dir" && break
  11425. done
  11426. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11427. } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
  11428. echo "$as_me: error: cannot create directory $as_dir" >&2;}
  11429. { (exit 1); exit 1; }; }; }
  11430. ac_builddir=.
  11431. case "$ac_dir" in
  11432. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11433. *)
  11434. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  11435. # A ".." for each directory in $ac_dir_suffix.
  11436. ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
  11437. case $ac_top_builddir_sub in
  11438. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  11439. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  11440. esac ;;
  11441. esac
  11442. ac_abs_top_builddir=$ac_pwd
  11443. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  11444. # for backward compatibility:
  11445. ac_top_builddir=$ac_top_build_prefix
  11446. case $srcdir in
  11447. .) # We are building in place.
  11448. ac_srcdir=.
  11449. ac_top_srcdir=$ac_top_builddir_sub
  11450. ac_abs_top_srcdir=$ac_pwd ;;
  11451. [\\/]* | ?:[\\/]* ) # Absolute name.
  11452. ac_srcdir=$srcdir$ac_dir_suffix;
  11453. ac_top_srcdir=$srcdir
  11454. ac_abs_top_srcdir=$srcdir ;;
  11455. *) # Relative name.
  11456. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  11457. ac_top_srcdir=$ac_top_build_prefix$srcdir
  11458. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  11459. esac
  11460. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  11461. case $ac_mode in
  11462. :F)
  11463. #
  11464. # CONFIG_FILE
  11465. #
  11466. _ACEOF
  11467. cat >>$CONFIG_STATUS <<\_ACEOF
  11468. # If the template does not know about datarootdir, expand it.
  11469. # FIXME: This hack should be removed a few years after 2.60.
  11470. ac_datarootdir_hack=; ac_datarootdir_seen=
  11471. case `sed -n '/datarootdir/ {
  11472. p
  11473. q
  11474. }
  11475. /@datadir@/p
  11476. /@docdir@/p
  11477. /@infodir@/p
  11478. /@localedir@/p
  11479. /@mandir@/p
  11480. ' $ac_file_inputs` in
  11481. *datarootdir*) ac_datarootdir_seen=yes;;
  11482. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  11483. { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  11484. echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  11485. _ACEOF
  11486. cat >>$CONFIG_STATUS <<_ACEOF
  11487. ac_datarootdir_hack='
  11488. s&@datadir@&$datadir&g
  11489. s&@docdir@&$docdir&g
  11490. s&@infodir@&$infodir&g
  11491. s&@localedir@&$localedir&g
  11492. s&@mandir@&$mandir&g
  11493. s&\\\${datarootdir}&$datarootdir&g' ;;
  11494. esac
  11495. _ACEOF
  11496. # Neutralize VPATH when `$srcdir' = `.'.
  11497. # Shell code in configure.ac might set extrasub.
  11498. # FIXME: do we really want to maintain this feature?
  11499. cat >>$CONFIG_STATUS <<_ACEOF
  11500. sed "$ac_vpsub
  11501. $extrasub
  11502. _ACEOF
  11503. cat >>$CONFIG_STATUS <<\_ACEOF
  11504. :t
  11505. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  11506. s&@configure_input@&$configure_input&;t t
  11507. s&@top_builddir@&$ac_top_builddir_sub&;t t
  11508. s&@srcdir@&$ac_srcdir&;t t
  11509. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  11510. s&@top_srcdir@&$ac_top_srcdir&;t t
  11511. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  11512. s&@builddir@&$ac_builddir&;t t
  11513. s&@abs_builddir@&$ac_abs_builddir&;t t
  11514. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  11515. $ac_datarootdir_hack
  11516. " $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
  11517. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11518. { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  11519. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  11520. { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11521. which seems to be undefined. Please make sure it is defined." >&5
  11522. echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11523. which seems to be undefined. Please make sure it is defined." >&2;}
  11524. rm -f "$tmp/stdin"
  11525. case $ac_file in
  11526. -) cat "$tmp/out"; rm -f "$tmp/out";;
  11527. *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
  11528. esac
  11529. ;;
  11530. :H)
  11531. #
  11532. # CONFIG_HEADER
  11533. #
  11534. _ACEOF
  11535. # Transform confdefs.h into a sed script `conftest.defines', that
  11536. # substitutes the proper values into config.h.in to produce config.h.
  11537. rm -f conftest.defines conftest.tail
  11538. # First, append a space to every undef/define line, to ease matching.
  11539. echo 's/$/ /' >conftest.defines
  11540. # Then, protect against being on the right side of a sed subst, or in
  11541. # an unquoted here document, in config.status. If some macros were
  11542. # called several times there might be several #defines for the same
  11543. # symbol, which is useless. But do not sort them, since the last
  11544. # AC_DEFINE must be honored.
  11545. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11546. # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
  11547. # NAME is the cpp macro being defined, VALUE is the value it is being given.
  11548. # PARAMS is the parameter list in the macro definition--in most cases, it's
  11549. # just an empty string.
  11550. ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
  11551. ac_dB='\\)[ (].*,\\1define\\2'
  11552. ac_dC=' '
  11553. ac_dD=' ,'
  11554. uniq confdefs.h |
  11555. sed -n '
  11556. t rset
  11557. :rset
  11558. s/^[ ]*#[ ]*define[ ][ ]*//
  11559. t ok
  11560. d
  11561. :ok
  11562. s/[\\&,]/\\&/g
  11563. s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
  11564. s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
  11565. ' >>conftest.defines
  11566. # Remove the space that was appended to ease matching.
  11567. # Then replace #undef with comments. This is necessary, for
  11568. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11569. # on some systems where configure will not decide to define it.
  11570. # (The regexp can be short, since the line contains either #define or #undef.)
  11571. echo 's/ $//
  11572. s,^[ #]*u.*,/* & */,' >>conftest.defines
  11573. # Break up conftest.defines:
  11574. ac_max_sed_lines=50
  11575. # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
  11576. # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
  11577. # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
  11578. # et cetera.
  11579. ac_in='$ac_file_inputs'
  11580. ac_out='"$tmp/out1"'
  11581. ac_nxt='"$tmp/out2"'
  11582. while :
  11583. do
  11584. # Write a here document:
  11585. cat >>$CONFIG_STATUS <<_ACEOF
  11586. # First, check the format of the line:
  11587. cat >"\$tmp/defines.sed" <<\\CEOF
  11588. /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
  11589. /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
  11590. b
  11591. :def
  11592. _ACEOF
  11593. sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
  11594. echo 'CEOF
  11595. sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
  11596. ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
  11597. sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
  11598. grep . conftest.tail >/dev/null || break
  11599. rm -f conftest.defines
  11600. mv conftest.tail conftest.defines
  11601. done
  11602. rm -f conftest.defines conftest.tail
  11603. echo "ac_result=$ac_in" >>$CONFIG_STATUS
  11604. cat >>$CONFIG_STATUS <<\_ACEOF
  11605. if test x"$ac_file" != x-; then
  11606. echo "/* $configure_input */" >"$tmp/config.h"
  11607. cat "$ac_result" >>"$tmp/config.h"
  11608. if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
  11609. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  11610. echo "$as_me: $ac_file is unchanged" >&6;}
  11611. else
  11612. rm -f $ac_file
  11613. mv "$tmp/config.h" $ac_file
  11614. fi
  11615. else
  11616. echo "/* $configure_input */"
  11617. cat "$ac_result"
  11618. fi
  11619. rm -f "$tmp/out12"
  11620. ;;
  11621. esac
  11622. done # for ac_tag
  11623. { (exit 0); exit 0; }
  11624. _ACEOF
  11625. chmod +x $CONFIG_STATUS
  11626. ac_clean_files=$ac_clean_files_save
  11627. # configure is writing to config.log, and then calls config.status.
  11628. # config.status does its own redirection, appending to config.log.
  11629. # Unfortunately, on DOS this fails, as config.log is still kept open
  11630. # by configure, so config.status won't be able to write to it; its
  11631. # output is simply discarded. So we exec the FD to /dev/null,
  11632. # effectively closing config.log, so it can be properly (re)opened and
  11633. # appended to by config.status. When coming back to configure, we
  11634. # need to make the FD available again.
  11635. if test "$no_create" != yes; then
  11636. ac_cs_success=:
  11637. ac_config_status_args=
  11638. test "$silent" = yes &&
  11639. ac_config_status_args="$ac_config_status_args --quiet"
  11640. exec 5>/dev/null
  11641. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11642. exec 5>>config.log
  11643. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11644. # would make configure fail if this is the last instruction.
  11645. $ac_cs_success || { (exit 1); exit 1; }
  11646. fi
  11647. #echo ""
  11648. #echo ""
  11649. #echo "------------ Configuring BDLIB ------------"
  11650. #cd lib/bdlib && ./configure