1
0

configure 332 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817
  1. #! /bin/sh
  2. # From configure.ac Revision: 1.42 .
  3. # Guess values for system-dependent variables and create Makefiles.
  4. # Generated by GNU Autoconf 2.59.
  5. #
  6. # Copyright (C) 2003 Free Software Foundation, Inc.
  7. # This configure script is free software; the Free Software Foundation
  8. # gives unlimited permission to copy, distribute and modify it.
  9. #
  10. # Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  11. ## --------------------- ##
  12. ## M4sh Initialization. ##
  13. ## --------------------- ##
  14. # Be Bourne compatible
  15. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  16. emulate sh
  17. NULLCMD=:
  18. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  19. # is contrary to our usage. Disable this feature.
  20. alias -g '${1+"$@"}'='"$@"'
  21. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  22. set -o posix
  23. fi
  24. DUALCASE=1; export DUALCASE # for MKS sh
  25. # Support unset when possible.
  26. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  27. as_unset=unset
  28. else
  29. as_unset=false
  30. fi
  31. # Work around bugs in pre-3.0 UWIN ksh.
  32. $as_unset ENV MAIL MAILPATH
  33. PS1='$ '
  34. PS2='> '
  35. PS4='+ '
  36. # NLS nuisances.
  37. for as_var in \
  38. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  39. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  40. LC_TELEPHONE LC_TIME
  41. do
  42. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  43. eval $as_var=C; export $as_var
  44. else
  45. $as_unset $as_var
  46. fi
  47. done
  48. # Required to use basename.
  49. if expr a : '\(a\)' >/dev/null 2>&1; then
  50. as_expr=expr
  51. else
  52. as_expr=false
  53. fi
  54. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  55. as_basename=basename
  56. else
  57. as_basename=false
  58. fi
  59. # Name of the executable.
  60. as_me=`$as_basename "$0" ||
  61. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  62. X"$0" : 'X\(//\)$' \| \
  63. X"$0" : 'X\(/\)$' \| \
  64. . : '\(.\)' 2>/dev/null ||
  65. echo X/"$0" |
  66. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  67. /^X\/\(\/\/\)$/{ s//\1/; q; }
  68. /^X\/\(\/\).*/{ s//\1/; q; }
  69. s/.*/./; q'`
  70. # PATH needs CR, and LINENO needs CR and PATH.
  71. # Avoid depending upon Character Ranges.
  72. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  73. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  74. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  75. as_cr_digits='0123456789'
  76. as_cr_alnum=$as_cr_Letters$as_cr_digits
  77. # The user is always right.
  78. if test "${PATH_SEPARATOR+set}" != set; then
  79. echo "#! /bin/sh" >conf$$.sh
  80. echo "exit 0" >>conf$$.sh
  81. chmod +x conf$$.sh
  82. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  83. PATH_SEPARATOR=';'
  84. else
  85. PATH_SEPARATOR=:
  86. fi
  87. rm -f conf$$.sh
  88. fi
  89. as_lineno_1=$LINENO
  90. as_lineno_2=$LINENO
  91. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  92. test "x$as_lineno_1" != "x$as_lineno_2" &&
  93. test "x$as_lineno_3" = "x$as_lineno_2" || {
  94. # Find who we are. Look in the path if we contain no path at all
  95. # relative or not.
  96. case $0 in
  97. *[\\/]* ) as_myself=$0 ;;
  98. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  99. for as_dir in $PATH
  100. do
  101. IFS=$as_save_IFS
  102. test -z "$as_dir" && as_dir=.
  103. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  104. done
  105. ;;
  106. esac
  107. # We did not find ourselves, most probably we were run as `sh COMMAND'
  108. # in which case we are not to be found in the path.
  109. if test "x$as_myself" = x; then
  110. as_myself=$0
  111. fi
  112. if test ! -f "$as_myself"; then
  113. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  114. { (exit 1); exit 1; }; }
  115. fi
  116. case $CONFIG_SHELL in
  117. '')
  118. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  119. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  120. do
  121. IFS=$as_save_IFS
  122. test -z "$as_dir" && as_dir=.
  123. for as_base in sh bash ksh sh5; do
  124. case $as_dir in
  125. /*)
  126. if ("$as_dir/$as_base" -c '
  127. as_lineno_1=$LINENO
  128. as_lineno_2=$LINENO
  129. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  130. test "x$as_lineno_1" != "x$as_lineno_2" &&
  131. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  132. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  133. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  134. CONFIG_SHELL=$as_dir/$as_base
  135. export CONFIG_SHELL
  136. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  137. fi;;
  138. esac
  139. done
  140. done
  141. ;;
  142. esac
  143. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  144. # uniformly replaced by the line number. The first 'sed' inserts a
  145. # line-number line before each line; the second 'sed' does the real
  146. # work. The second script uses 'N' to pair each line-number line
  147. # with the numbered line, and appends trailing '-' during
  148. # substitution so that $LINENO is not a special case at line end.
  149. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  150. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  151. sed '=' <$as_myself |
  152. sed '
  153. N
  154. s,$,-,
  155. : loop
  156. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  157. t loop
  158. s,-$,,
  159. s,^['$as_cr_digits']*\n,,
  160. ' >$as_me.lineno &&
  161. chmod +x $as_me.lineno ||
  162. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  163. { (exit 1); exit 1; }; }
  164. # Don't try to exec as it changes $[0], causing all sort of problems
  165. # (the dirname of $[0] is not the place where we might find the
  166. # original and so on. Autoconf is especially sensible to this).
  167. . ./$as_me.lineno
  168. # Exit status is that of the last command.
  169. exit
  170. }
  171. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  172. *c*,-n*) ECHO_N= ECHO_C='
  173. ' ECHO_T=' ' ;;
  174. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  175. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  176. esac
  177. if expr a : '\(a\)' >/dev/null 2>&1; then
  178. as_expr=expr
  179. else
  180. as_expr=false
  181. fi
  182. rm -f conf$$ conf$$.exe conf$$.file
  183. echo >conf$$.file
  184. if ln -s conf$$.file conf$$ 2>/dev/null; then
  185. # We could just check for DJGPP; but this test a) works b) is more generic
  186. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  187. if test -f conf$$.exe; then
  188. # Don't use ln at all; we don't have any links
  189. as_ln_s='cp -p'
  190. else
  191. as_ln_s='ln -s'
  192. fi
  193. elif ln conf$$.file conf$$ 2>/dev/null; then
  194. as_ln_s=ln
  195. else
  196. as_ln_s='cp -p'
  197. fi
  198. rm -f conf$$ conf$$.exe conf$$.file
  199. if mkdir -p . 2>/dev/null; then
  200. as_mkdir_p=:
  201. else
  202. test -d ./-p && rmdir ./-p
  203. as_mkdir_p=false
  204. fi
  205. as_executable_p="test -f"
  206. # Sed expression to map a string onto a valid CPP name.
  207. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  208. # Sed expression to map a string onto a valid variable name.
  209. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  210. # IFS
  211. # We need space, tab and new line, in precisely that order.
  212. as_nl='
  213. '
  214. IFS=" $as_nl"
  215. # CDPATH.
  216. $as_unset CDPATH
  217. # Name of the host.
  218. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  219. # so uname gets run too.
  220. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  221. exec 6>&1
  222. #
  223. # Initializations.
  224. #
  225. ac_default_prefix=/usr/local
  226. ac_config_libobj_dir=.
  227. cross_compiling=no
  228. subdirs=
  229. MFLAGS=
  230. MAKEFLAGS=
  231. SHELL=${CONFIG_SHELL-/bin/sh}
  232. # Maximum number of lines to put in a shell here document.
  233. # This variable seems obsolete. It should probably be removed, and
  234. # only ac_max_sed_lines should be used.
  235. : ${ac_max_here_lines=38}
  236. # Identity of this package.
  237. PACKAGE_NAME=
  238. PACKAGE_TARNAME=
  239. PACKAGE_VERSION=
  240. PACKAGE_STRING=
  241. PACKAGE_BUGREPORT=
  242. ac_unique_file="wraith"
  243. ac_unique_file="src/eggdrop.h"
  244. # Factoring default headers for most tests.
  245. ac_includes_default="\
  246. #include <stdio.h>
  247. #if HAVE_SYS_TYPES_H
  248. # include <sys/types.h>
  249. #endif
  250. #if HAVE_SYS_STAT_H
  251. # include <sys/stat.h>
  252. #endif
  253. #if STDC_HEADERS
  254. # include <stdlib.h>
  255. # include <stddef.h>
  256. #else
  257. # if HAVE_STDLIB_H
  258. # include <stdlib.h>
  259. # endif
  260. #endif
  261. #if HAVE_STRING_H
  262. # if !STDC_HEADERS && HAVE_MEMORY_H
  263. # include <memory.h>
  264. # endif
  265. # include <string.h>
  266. #endif
  267. #if HAVE_STRINGS_H
  268. # include <strings.h>
  269. #endif
  270. #if HAVE_INTTYPES_H
  271. # include <inttypes.h>
  272. #else
  273. # if HAVE_STDINT_H
  274. # include <stdint.h>
  275. # endif
  276. #endif
  277. #if HAVE_UNISTD_H
  278. # include <unistd.h>
  279. #endif"
  280. ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS egg_ac_parameters CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CXXCPP EGREP CCDEPMODE GCC3 SET_MAKE HEAD_1 AWK BASENAME OBJCOPY STRIP DIFF UNAME CCACHE DISTCC CCDEBUG ZLIB LIBOBJS VERSION NUMVER MOD_UPDIR LTLIBOBJS'
  281. ac_subst_files=''
  282. # Initialize some variables set by options.
  283. ac_init_help=
  284. ac_init_version=false
  285. # The variables have the same names as the options, with
  286. # dashes changed to underlines.
  287. cache_file=./config.cache
  288. exec_prefix=NONE
  289. no_create=
  290. no_recursion=
  291. prefix=NONE
  292. program_prefix=NONE
  293. program_suffix=NONE
  294. program_transform_name=s,x,x,
  295. silent=
  296. site=
  297. srcdir=
  298. verbose=
  299. x_includes=NONE
  300. x_libraries=NONE
  301. # Installation directory options.
  302. # These are left unexpanded so users can "make install exec_prefix=/foo"
  303. # and all the variables that are supposed to be based on exec_prefix
  304. # by default will actually change.
  305. # Use braces instead of parens because sh, perl, etc. also accept them.
  306. bindir='${exec_prefix}/bin'
  307. sbindir='${exec_prefix}/sbin'
  308. libexecdir='${exec_prefix}/libexec'
  309. datadir='${prefix}/share'
  310. sysconfdir='${prefix}/etc'
  311. sharedstatedir='${prefix}/com'
  312. localstatedir='${prefix}/var'
  313. libdir='${exec_prefix}/lib'
  314. includedir='${prefix}/include'
  315. oldincludedir='/usr/include'
  316. infodir='${prefix}/info'
  317. mandir='${prefix}/man'
  318. ac_prev=
  319. for ac_option
  320. do
  321. # If the previous option needs an argument, assign it.
  322. if test -n "$ac_prev"; then
  323. eval "$ac_prev=\$ac_option"
  324. ac_prev=
  325. continue
  326. fi
  327. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  328. # Accept the important Cygnus configure options, so we can diagnose typos.
  329. case $ac_option in
  330. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  331. ac_prev=bindir ;;
  332. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  333. bindir=$ac_optarg ;;
  334. -build | --build | --buil | --bui | --bu)
  335. ac_prev=build_alias ;;
  336. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  337. build_alias=$ac_optarg ;;
  338. -cache-file | --cache-file | --cache-fil | --cache-fi \
  339. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  340. ac_prev=cache_file ;;
  341. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  342. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  343. cache_file=$ac_optarg ;;
  344. --config-cache | -C)
  345. cache_file=config.cache ;;
  346. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  347. ac_prev=datadir ;;
  348. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  349. | --da=*)
  350. datadir=$ac_optarg ;;
  351. -disable-* | --disable-*)
  352. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  353. # Reject names that are not valid shell variable names.
  354. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  355. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  356. { (exit 1); exit 1; }; }
  357. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  358. eval "enable_$ac_feature=no" ;;
  359. -enable-* | --enable-*)
  360. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  361. # Reject names that are not valid shell variable names.
  362. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  363. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  364. { (exit 1); exit 1; }; }
  365. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  366. case $ac_option in
  367. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  368. *) ac_optarg=yes ;;
  369. esac
  370. eval "enable_$ac_feature='$ac_optarg'" ;;
  371. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  372. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  373. | --exec | --exe | --ex)
  374. ac_prev=exec_prefix ;;
  375. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  376. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  377. | --exec=* | --exe=* | --ex=*)
  378. exec_prefix=$ac_optarg ;;
  379. -gas | --gas | --ga | --g)
  380. # Obsolete; use --with-gas.
  381. with_gas=yes ;;
  382. -help | --help | --hel | --he | -h)
  383. ac_init_help=long ;;
  384. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  385. ac_init_help=recursive ;;
  386. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  387. ac_init_help=short ;;
  388. -host | --host | --hos | --ho)
  389. ac_prev=host_alias ;;
  390. -host=* | --host=* | --hos=* | --ho=*)
  391. host_alias=$ac_optarg ;;
  392. -includedir | --includedir | --includedi | --included | --include \
  393. | --includ | --inclu | --incl | --inc)
  394. ac_prev=includedir ;;
  395. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  396. | --includ=* | --inclu=* | --incl=* | --inc=*)
  397. includedir=$ac_optarg ;;
  398. -infodir | --infodir | --infodi | --infod | --info | --inf)
  399. ac_prev=infodir ;;
  400. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  401. infodir=$ac_optarg ;;
  402. -libdir | --libdir | --libdi | --libd)
  403. ac_prev=libdir ;;
  404. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  405. libdir=$ac_optarg ;;
  406. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  407. | --libexe | --libex | --libe)
  408. ac_prev=libexecdir ;;
  409. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  410. | --libexe=* | --libex=* | --libe=*)
  411. libexecdir=$ac_optarg ;;
  412. -localstatedir | --localstatedir | --localstatedi | --localstated \
  413. | --localstate | --localstat | --localsta | --localst \
  414. | --locals | --local | --loca | --loc | --lo)
  415. ac_prev=localstatedir ;;
  416. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  417. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  418. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  419. localstatedir=$ac_optarg ;;
  420. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  421. ac_prev=mandir ;;
  422. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  423. mandir=$ac_optarg ;;
  424. -nfp | --nfp | --nf)
  425. # Obsolete; use --without-fp.
  426. with_fp=no ;;
  427. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  428. | --no-cr | --no-c | -n)
  429. no_create=yes ;;
  430. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  431. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  432. no_recursion=yes ;;
  433. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  434. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  435. | --oldin | --oldi | --old | --ol | --o)
  436. ac_prev=oldincludedir ;;
  437. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  438. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  439. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  440. oldincludedir=$ac_optarg ;;
  441. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  442. ac_prev=prefix ;;
  443. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  444. prefix=$ac_optarg ;;
  445. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  446. | --program-pre | --program-pr | --program-p)
  447. ac_prev=program_prefix ;;
  448. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  449. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  450. program_prefix=$ac_optarg ;;
  451. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  452. | --program-suf | --program-su | --program-s)
  453. ac_prev=program_suffix ;;
  454. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  455. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  456. program_suffix=$ac_optarg ;;
  457. -program-transform-name | --program-transform-name \
  458. | --program-transform-nam | --program-transform-na \
  459. | --program-transform-n | --program-transform- \
  460. | --program-transform | --program-transfor \
  461. | --program-transfo | --program-transf \
  462. | --program-trans | --program-tran \
  463. | --progr-tra | --program-tr | --program-t)
  464. ac_prev=program_transform_name ;;
  465. -program-transform-name=* | --program-transform-name=* \
  466. | --program-transform-nam=* | --program-transform-na=* \
  467. | --program-transform-n=* | --program-transform-=* \
  468. | --program-transform=* | --program-transfor=* \
  469. | --program-transfo=* | --program-transf=* \
  470. | --program-trans=* | --program-tran=* \
  471. | --progr-tra=* | --program-tr=* | --program-t=*)
  472. program_transform_name=$ac_optarg ;;
  473. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  474. | -silent | --silent | --silen | --sile | --sil)
  475. silent=yes ;;
  476. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  477. ac_prev=sbindir ;;
  478. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  479. | --sbi=* | --sb=*)
  480. sbindir=$ac_optarg ;;
  481. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  482. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  483. | --sharedst | --shareds | --shared | --share | --shar \
  484. | --sha | --sh)
  485. ac_prev=sharedstatedir ;;
  486. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  487. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  488. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  489. | --sha=* | --sh=*)
  490. sharedstatedir=$ac_optarg ;;
  491. -site | --site | --sit)
  492. ac_prev=site ;;
  493. -site=* | --site=* | --sit=*)
  494. site=$ac_optarg ;;
  495. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  496. ac_prev=srcdir ;;
  497. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  498. srcdir=$ac_optarg ;;
  499. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  500. | --syscon | --sysco | --sysc | --sys | --sy)
  501. ac_prev=sysconfdir ;;
  502. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  503. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  504. sysconfdir=$ac_optarg ;;
  505. -target | --target | --targe | --targ | --tar | --ta | --t)
  506. ac_prev=target_alias ;;
  507. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508. target_alias=$ac_optarg ;;
  509. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  510. verbose=yes ;;
  511. -version | --version | --versio | --versi | --vers | -V)
  512. ac_init_version=: ;;
  513. -with-* | --with-*)
  514. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  515. # Reject names that are not valid shell variable names.
  516. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  517. { echo "$as_me: error: invalid package name: $ac_package" >&2
  518. { (exit 1); exit 1; }; }
  519. ac_package=`echo $ac_package| sed 's/-/_/g'`
  520. case $ac_option in
  521. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  522. *) ac_optarg=yes ;;
  523. esac
  524. eval "with_$ac_package='$ac_optarg'" ;;
  525. -without-* | --without-*)
  526. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  527. # Reject names that are not valid shell variable names.
  528. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  529. { echo "$as_me: error: invalid package name: $ac_package" >&2
  530. { (exit 1); exit 1; }; }
  531. ac_package=`echo $ac_package | sed 's/-/_/g'`
  532. eval "with_$ac_package=no" ;;
  533. --x)
  534. # Obsolete; use --with-x.
  535. with_x=yes ;;
  536. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  537. | --x-incl | --x-inc | --x-in | --x-i)
  538. ac_prev=x_includes ;;
  539. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  540. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  541. x_includes=$ac_optarg ;;
  542. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  543. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  544. ac_prev=x_libraries ;;
  545. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  546. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  547. x_libraries=$ac_optarg ;;
  548. -*) { echo "$as_me: error: unrecognized option: $ac_option
  549. Try \`$0 --help' for more information." >&2
  550. { (exit 1); exit 1; }; }
  551. ;;
  552. *=*)
  553. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  554. # Reject names that are not valid shell variable names.
  555. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  556. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  557. { (exit 1); exit 1; }; }
  558. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  559. eval "$ac_envvar='$ac_optarg'"
  560. export $ac_envvar ;;
  561. *)
  562. # FIXME: should be removed in autoconf 3.0.
  563. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  564. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  565. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  566. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  567. ;;
  568. esac
  569. done
  570. if test -n "$ac_prev"; then
  571. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  572. { echo "$as_me: error: missing argument to $ac_option" >&2
  573. { (exit 1); exit 1; }; }
  574. fi
  575. # Be sure to have absolute paths.
  576. for ac_var in exec_prefix prefix
  577. do
  578. eval ac_val=$`echo $ac_var`
  579. case $ac_val in
  580. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  581. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  582. { (exit 1); exit 1; }; };;
  583. esac
  584. done
  585. # Be sure to have absolute paths.
  586. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  587. localstatedir libdir includedir oldincludedir infodir mandir
  588. do
  589. eval ac_val=$`echo $ac_var`
  590. case $ac_val in
  591. [\\/$]* | ?:[\\/]* ) ;;
  592. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  593. { (exit 1); exit 1; }; };;
  594. esac
  595. done
  596. # There might be people who depend on the old broken behavior: `$host'
  597. # used to hold the argument of --host etc.
  598. # FIXME: To remove some day.
  599. build=$build_alias
  600. host=$host_alias
  601. target=$target_alias
  602. # FIXME: To remove some day.
  603. if test "x$host_alias" != x; then
  604. if test "x$build_alias" = x; then
  605. cross_compiling=maybe
  606. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  607. If a cross compiler is detected then cross compile mode will be used." >&2
  608. elif test "x$build_alias" != "x$host_alias"; then
  609. cross_compiling=yes
  610. fi
  611. fi
  612. ac_tool_prefix=
  613. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  614. test "$silent" = yes && exec 6>/dev/null
  615. # Find the source files, if location was not specified.
  616. if test -z "$srcdir"; then
  617. ac_srcdir_defaulted=yes
  618. # Try the directory containing this script, then its parent.
  619. ac_confdir=`(dirname "$0") 2>/dev/null ||
  620. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  621. X"$0" : 'X\(//\)[^/]' \| \
  622. X"$0" : 'X\(//\)$' \| \
  623. X"$0" : 'X\(/\)' \| \
  624. . : '\(.\)' 2>/dev/null ||
  625. echo X"$0" |
  626. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  627. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  628. /^X\(\/\/\)$/{ s//\1/; q; }
  629. /^X\(\/\).*/{ s//\1/; q; }
  630. s/.*/./; q'`
  631. srcdir=$ac_confdir
  632. if test ! -r $srcdir/$ac_unique_file; then
  633. srcdir=..
  634. fi
  635. else
  636. ac_srcdir_defaulted=no
  637. fi
  638. if test ! -r $srcdir/$ac_unique_file; then
  639. if test "$ac_srcdir_defaulted" = yes; then
  640. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  641. { (exit 1); exit 1; }; }
  642. else
  643. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  644. { (exit 1); exit 1; }; }
  645. fi
  646. fi
  647. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  648. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  649. { (exit 1); exit 1; }; }
  650. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  651. ac_env_build_alias_set=${build_alias+set}
  652. ac_env_build_alias_value=$build_alias
  653. ac_cv_env_build_alias_set=${build_alias+set}
  654. ac_cv_env_build_alias_value=$build_alias
  655. ac_env_host_alias_set=${host_alias+set}
  656. ac_env_host_alias_value=$host_alias
  657. ac_cv_env_host_alias_set=${host_alias+set}
  658. ac_cv_env_host_alias_value=$host_alias
  659. ac_env_target_alias_set=${target_alias+set}
  660. ac_env_target_alias_value=$target_alias
  661. ac_cv_env_target_alias_set=${target_alias+set}
  662. ac_cv_env_target_alias_value=$target_alias
  663. ac_env_CXX_set=${CXX+set}
  664. ac_env_CXX_value=$CXX
  665. ac_cv_env_CXX_set=${CXX+set}
  666. ac_cv_env_CXX_value=$CXX
  667. ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  668. ac_env_CXXFLAGS_value=$CXXFLAGS
  669. ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  670. ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  671. ac_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_env_LDFLAGS_value=$LDFLAGS
  673. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  674. ac_cv_env_LDFLAGS_value=$LDFLAGS
  675. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  678. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  679. ac_env_CXXCPP_set=${CXXCPP+set}
  680. ac_env_CXXCPP_value=$CXXCPP
  681. ac_cv_env_CXXCPP_set=${CXXCPP+set}
  682. ac_cv_env_CXXCPP_value=$CXXCPP
  683. #
  684. # Report the --help message.
  685. #
  686. if test "$ac_init_help" = "long"; then
  687. # Omit some internal or obsolete options to make the list less imposing.
  688. # This message is too long to be a string in the A/UX 3.1 sh.
  689. cat <<_ACEOF
  690. \`configure' configures this package to adapt to many kinds of systems.
  691. Usage: $0 [OPTION]... [VAR=VALUE]...
  692. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  693. VAR=VALUE. See below for descriptions of some of the useful variables.
  694. Defaults for the options are specified in brackets.
  695. Configuration:
  696. -h, --help display this help and exit
  697. --help=short display options specific to this package
  698. --help=recursive display the short help of all the included packages
  699. -V, --version display version information and exit
  700. -q, --quiet, --silent do not print \`checking...' messages
  701. --cache-file=FILE cache test results in FILE [disabled]
  702. -C, --config-cache alias for \`--cache-file=config.cache'
  703. -n, --no-create do not create output files
  704. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  705. _ACEOF
  706. cat <<_ACEOF
  707. Installation directories:
  708. --prefix=PREFIX install architecture-independent files in PREFIX
  709. [$ac_default_prefix]
  710. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  711. [PREFIX]
  712. By default, \`make install' will install all the files in
  713. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  714. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  715. for instance \`--prefix=\$HOME'.
  716. For better control, use the options below.
  717. Fine tuning of the installation directories:
  718. --bindir=DIR user executables [EPREFIX/bin]
  719. --sbindir=DIR system admin executables [EPREFIX/sbin]
  720. --libexecdir=DIR program executables [EPREFIX/libexec]
  721. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  722. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  723. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  724. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  725. --libdir=DIR object code libraries [EPREFIX/lib]
  726. --includedir=DIR C header files [PREFIX/include]
  727. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  728. --infodir=DIR info documentation [PREFIX/info]
  729. --mandir=DIR man documentation [PREFIX/man]
  730. _ACEOF
  731. cat <<\_ACEOF
  732. _ACEOF
  733. fi
  734. if test -n "$ac_init_help"; then
  735. cat <<\_ACEOF
  736. Optional Features:
  737. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  738. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  739. --disable-ipv6 disable IPv6 support
  740. Some influential environment variables:
  741. CXX C++ compiler command
  742. CXXFLAGS C++ compiler flags
  743. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  744. nonstandard directory <lib dir>
  745. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  746. headers in a nonstandard directory <include dir>
  747. CXXCPP C++ preprocessor
  748. Use these variables to override the choices made by `configure' or to help
  749. it to find libraries and programs with nonstandard names/locations.
  750. _ACEOF
  751. fi
  752. if test "$ac_init_help" = "recursive"; then
  753. # If there are subdirs, report their specific --help.
  754. ac_popdir=`pwd`
  755. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  756. test -d $ac_dir || continue
  757. ac_builddir=.
  758. if test "$ac_dir" != .; then
  759. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  760. # A "../" for each directory in $ac_dir_suffix.
  761. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  762. else
  763. ac_dir_suffix= ac_top_builddir=
  764. fi
  765. case $srcdir in
  766. .) # No --srcdir option. We are building in place.
  767. ac_srcdir=.
  768. if test -z "$ac_top_builddir"; then
  769. ac_top_srcdir=.
  770. else
  771. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  772. fi ;;
  773. [\\/]* | ?:[\\/]* ) # Absolute path.
  774. ac_srcdir=$srcdir$ac_dir_suffix;
  775. ac_top_srcdir=$srcdir ;;
  776. *) # Relative path.
  777. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  778. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  779. esac
  780. # Do not use `cd foo && pwd` to compute absolute paths, because
  781. # the directories may not exist.
  782. case `pwd` in
  783. .) ac_abs_builddir="$ac_dir";;
  784. *)
  785. case "$ac_dir" in
  786. .) ac_abs_builddir=`pwd`;;
  787. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  788. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  789. esac;;
  790. esac
  791. case $ac_abs_builddir in
  792. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  793. *)
  794. case ${ac_top_builddir}. in
  795. .) ac_abs_top_builddir=$ac_abs_builddir;;
  796. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  797. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  798. esac;;
  799. esac
  800. case $ac_abs_builddir in
  801. .) ac_abs_srcdir=$ac_srcdir;;
  802. *)
  803. case $ac_srcdir in
  804. .) ac_abs_srcdir=$ac_abs_builddir;;
  805. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  806. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  807. esac;;
  808. esac
  809. case $ac_abs_builddir in
  810. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  811. *)
  812. case $ac_top_srcdir in
  813. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  814. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  815. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  816. esac;;
  817. esac
  818. cd $ac_dir
  819. # Check for guested configure; otherwise get Cygnus style configure.
  820. if test -f $ac_srcdir/configure.gnu; then
  821. echo
  822. $SHELL $ac_srcdir/configure.gnu --help=recursive
  823. elif test -f $ac_srcdir/configure; then
  824. echo
  825. $SHELL $ac_srcdir/configure --help=recursive
  826. elif test -f $ac_srcdir/configure.ac ||
  827. test -f $ac_srcdir/configure.in; then
  828. echo
  829. $ac_configure --help
  830. else
  831. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  832. fi
  833. cd "$ac_popdir"
  834. done
  835. fi
  836. test -n "$ac_init_help" && exit 0
  837. if $ac_init_version; then
  838. cat <<\_ACEOF
  839. Copyright (C) 2003 Free Software Foundation, Inc.
  840. This configure script is free software; the Free Software Foundation
  841. gives unlimited permission to copy, distribute and modify it.
  842. Copyright (c) 2003, 2004 Bryan Drewery (bryan)
  843. _ACEOF
  844. exit 0
  845. fi
  846. exec 5>config.log
  847. cat >&5 <<_ACEOF
  848. This file contains any messages produced by compilers while
  849. running configure, to aid debugging if configure makes a mistake.
  850. It was created by $as_me, which was
  851. generated by GNU Autoconf 2.59. Invocation command line was
  852. $ $0 $@
  853. _ACEOF
  854. {
  855. cat <<_ASUNAME
  856. ## --------- ##
  857. ## Platform. ##
  858. ## --------- ##
  859. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  860. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  861. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  862. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  863. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  864. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  865. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  866. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  867. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  868. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  869. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  870. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  871. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  872. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  873. _ASUNAME
  874. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  875. for as_dir in $PATH
  876. do
  877. IFS=$as_save_IFS
  878. test -z "$as_dir" && as_dir=.
  879. echo "PATH: $as_dir"
  880. done
  881. } >&5
  882. cat >&5 <<_ACEOF
  883. ## ----------- ##
  884. ## Core tests. ##
  885. ## ----------- ##
  886. _ACEOF
  887. # Keep a trace of the command line.
  888. # Strip out --no-create and --no-recursion so they do not pile up.
  889. # Strip out --silent because we don't want to record it for future runs.
  890. # Also quote any args containing shell meta-characters.
  891. # Make two passes to allow for proper duplicate-argument suppression.
  892. ac_configure_args=
  893. ac_configure_args0=
  894. ac_configure_args1=
  895. ac_sep=
  896. ac_must_keep_next=false
  897. for ac_pass in 1 2
  898. do
  899. for ac_arg
  900. do
  901. case $ac_arg in
  902. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  903. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  904. | -silent | --silent | --silen | --sile | --sil)
  905. continue ;;
  906. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  907. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  908. esac
  909. case $ac_pass in
  910. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  911. 2)
  912. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  913. if test $ac_must_keep_next = true; then
  914. ac_must_keep_next=false # Got value, back to normal.
  915. else
  916. case $ac_arg in
  917. *=* | --config-cache | -C | -disable-* | --disable-* \
  918. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  919. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  920. | -with-* | --with-* | -without-* | --without-* | --x)
  921. case "$ac_configure_args0 " in
  922. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  923. esac
  924. ;;
  925. -* ) ac_must_keep_next=true ;;
  926. esac
  927. fi
  928. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  929. # Get rid of the leading space.
  930. ac_sep=" "
  931. ;;
  932. esac
  933. done
  934. done
  935. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  936. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  937. # When interrupted or exit'd, cleanup temporary files, and complete
  938. # config.log. We remove comments because anyway the quotes in there
  939. # would cause problems or look ugly.
  940. # WARNING: Be sure not to use single quotes in there, as some shells,
  941. # such as our DU 5.0 friend, will then `close' the trap.
  942. trap 'exit_status=$?
  943. # Save into config.log some information that might help in debugging.
  944. {
  945. echo
  946. cat <<\_ASBOX
  947. ## ---------------- ##
  948. ## Cache variables. ##
  949. ## ---------------- ##
  950. _ASBOX
  951. echo
  952. # The following way of writing the cache mishandles newlines in values,
  953. {
  954. (set) 2>&1 |
  955. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  956. *ac_space=\ *)
  957. sed -n \
  958. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  959. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  960. ;;
  961. *)
  962. sed -n \
  963. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  964. ;;
  965. esac;
  966. }
  967. echo
  968. cat <<\_ASBOX
  969. ## ----------------- ##
  970. ## Output variables. ##
  971. ## ----------------- ##
  972. _ASBOX
  973. echo
  974. for ac_var in $ac_subst_vars
  975. do
  976. eval ac_val=$`echo $ac_var`
  977. echo "$ac_var='"'"'$ac_val'"'"'"
  978. done | sort
  979. echo
  980. if test -n "$ac_subst_files"; then
  981. cat <<\_ASBOX
  982. ## ------------- ##
  983. ## Output files. ##
  984. ## ------------- ##
  985. _ASBOX
  986. echo
  987. for ac_var in $ac_subst_files
  988. do
  989. eval ac_val=$`echo $ac_var`
  990. echo "$ac_var='"'"'$ac_val'"'"'"
  991. done | sort
  992. echo
  993. fi
  994. if test -s confdefs.h; then
  995. cat <<\_ASBOX
  996. ## ----------- ##
  997. ## confdefs.h. ##
  998. ## ----------- ##
  999. _ASBOX
  1000. echo
  1001. sed "/^$/d" confdefs.h | sort
  1002. echo
  1003. fi
  1004. test "$ac_signal" != 0 &&
  1005. echo "$as_me: caught signal $ac_signal"
  1006. echo "$as_me: exit $exit_status"
  1007. } >&5
  1008. rm -f core *.core &&
  1009. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1010. exit $exit_status
  1011. ' 0
  1012. for ac_signal in 1 2 13 15; do
  1013. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1014. done
  1015. ac_signal=0
  1016. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1017. rm -rf conftest* confdefs.h
  1018. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1019. echo >confdefs.h
  1020. # Predefined preprocessor variables.
  1021. cat >>confdefs.h <<_ACEOF
  1022. #define PACKAGE_NAME "$PACKAGE_NAME"
  1023. _ACEOF
  1024. cat >>confdefs.h <<_ACEOF
  1025. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1026. _ACEOF
  1027. cat >>confdefs.h <<_ACEOF
  1028. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1029. _ACEOF
  1030. cat >>confdefs.h <<_ACEOF
  1031. #define PACKAGE_STRING "$PACKAGE_STRING"
  1032. _ACEOF
  1033. cat >>confdefs.h <<_ACEOF
  1034. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1035. _ACEOF
  1036. # Let the site file select an alternate cache file if it wants to.
  1037. # Prefer explicitly selected file to automatically selected ones.
  1038. if test -z "$CONFIG_SITE"; then
  1039. if test "x$prefix" != xNONE; then
  1040. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1041. else
  1042. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1043. fi
  1044. fi
  1045. for ac_site_file in $CONFIG_SITE; do
  1046. if test -r "$ac_site_file"; then
  1047. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1048. echo "$as_me: loading site script $ac_site_file" >&6;}
  1049. sed 's/^/| /' "$ac_site_file" >&5
  1050. . "$ac_site_file"
  1051. fi
  1052. done
  1053. if test -r "$cache_file"; then
  1054. # Some versions of bash will fail to source /dev/null (special
  1055. # files actually), so we avoid doing that.
  1056. if test -f "$cache_file"; then
  1057. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1058. echo "$as_me: loading cache $cache_file" >&6;}
  1059. case $cache_file in
  1060. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1061. *) . ./$cache_file;;
  1062. esac
  1063. fi
  1064. else
  1065. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1066. echo "$as_me: creating cache $cache_file" >&6;}
  1067. >$cache_file
  1068. fi
  1069. # Check that the precious variables saved in the cache have kept the same
  1070. # value.
  1071. ac_cache_corrupted=false
  1072. for ac_var in `(set) 2>&1 |
  1073. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1074. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1075. eval ac_new_set=\$ac_env_${ac_var}_set
  1076. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1077. eval ac_new_val="\$ac_env_${ac_var}_value"
  1078. case $ac_old_set,$ac_new_set in
  1079. set,)
  1080. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1081. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1082. ac_cache_corrupted=: ;;
  1083. ,set)
  1084. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1085. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1086. ac_cache_corrupted=: ;;
  1087. ,);;
  1088. *)
  1089. if test "x$ac_old_val" != "x$ac_new_val"; then
  1090. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1091. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1092. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1093. echo "$as_me: former value: $ac_old_val" >&2;}
  1094. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1095. echo "$as_me: current value: $ac_new_val" >&2;}
  1096. ac_cache_corrupted=:
  1097. fi;;
  1098. esac
  1099. # Pass precious variables to config.status.
  1100. if test "$ac_new_set" = set; then
  1101. case $ac_new_val in
  1102. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1103. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1104. *) ac_arg=$ac_var=$ac_new_val ;;
  1105. esac
  1106. case " $ac_configure_args " in
  1107. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1108. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1109. esac
  1110. fi
  1111. done
  1112. if $ac_cache_corrupted; then
  1113. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1114. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1115. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1116. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1117. { (exit 1); exit 1; }; }
  1118. fi
  1119. ac_ext=c
  1120. ac_cpp='$CPP $CPPFLAGS'
  1121. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1122. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1123. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1124. ac_config_headers="$ac_config_headers config.h"
  1125. # Remove --cache-file and --srcdir arguments so they do not pile up.
  1126. egg_ac_parameters=
  1127. ac_prev=
  1128. for ac_arg in $ac_configure_args; do
  1129. if test -n "$ac_prev"; then
  1130. ac_prev=
  1131. continue
  1132. fi
  1133. case $ac_arg in
  1134. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1135. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1136. ac_prev=cache_file ;;
  1137. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1138. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  1139. | --c=*)
  1140. ;;
  1141. --config-cache | -C)
  1142. ;;
  1143. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1144. ac_prev=srcdir ;;
  1145. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1146. ;;
  1147. *) egg_ac_parameters="$egg_ac_parameters $ac_arg" ;;
  1148. esac
  1149. done
  1150. # Setup build environment
  1151. #AC_REQUIRE_CPP
  1152. ac_ext=cc
  1153. ac_cpp='$CXXCPP $CPPFLAGS'
  1154. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1155. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1156. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1157. ac_ext=cc
  1158. ac_cpp='$CXXCPP $CPPFLAGS'
  1159. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1160. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1161. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1162. if test -n "$ac_tool_prefix"; then
  1163. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1164. do
  1165. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1166. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1167. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1168. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1169. if test "${ac_cv_prog_CXX+set}" = set; then
  1170. echo $ECHO_N "(cached) $ECHO_C" >&6
  1171. else
  1172. if test -n "$CXX"; then
  1173. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  1174. else
  1175. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1176. for as_dir in $PATH
  1177. do
  1178. IFS=$as_save_IFS
  1179. test -z "$as_dir" && as_dir=.
  1180. for ac_exec_ext in '' $ac_executable_extensions; do
  1181. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1182. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  1183. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1184. break 2
  1185. fi
  1186. done
  1187. done
  1188. fi
  1189. fi
  1190. CXX=$ac_cv_prog_CXX
  1191. if test -n "$CXX"; then
  1192. echo "$as_me:$LINENO: result: $CXX" >&5
  1193. echo "${ECHO_T}$CXX" >&6
  1194. else
  1195. echo "$as_me:$LINENO: result: no" >&5
  1196. echo "${ECHO_T}no" >&6
  1197. fi
  1198. test -n "$CXX" && break
  1199. done
  1200. fi
  1201. if test -z "$CXX"; then
  1202. ac_ct_CXX=$CXX
  1203. for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  1204. do
  1205. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1206. set dummy $ac_prog; ac_word=$2
  1207. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1208. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1209. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  1210. echo $ECHO_N "(cached) $ECHO_C" >&6
  1211. else
  1212. if test -n "$ac_ct_CXX"; then
  1213. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  1214. else
  1215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1216. for as_dir in $PATH
  1217. do
  1218. IFS=$as_save_IFS
  1219. test -z "$as_dir" && as_dir=.
  1220. for ac_exec_ext in '' $ac_executable_extensions; do
  1221. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1222. ac_cv_prog_ac_ct_CXX="$ac_prog"
  1223. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1224. break 2
  1225. fi
  1226. done
  1227. done
  1228. fi
  1229. fi
  1230. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  1231. if test -n "$ac_ct_CXX"; then
  1232. echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  1233. echo "${ECHO_T}$ac_ct_CXX" >&6
  1234. else
  1235. echo "$as_me:$LINENO: result: no" >&5
  1236. echo "${ECHO_T}no" >&6
  1237. fi
  1238. test -n "$ac_ct_CXX" && break
  1239. done
  1240. test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  1241. CXX=$ac_ct_CXX
  1242. fi
  1243. # Provide some information about the compiler.
  1244. echo "$as_me:$LINENO:" \
  1245. "checking for C++ compiler version" >&5
  1246. ac_compiler=`set X $ac_compile; echo $2`
  1247. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1248. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1249. ac_status=$?
  1250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1251. (exit $ac_status); }
  1252. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1253. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1254. ac_status=$?
  1255. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1256. (exit $ac_status); }
  1257. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1258. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1259. ac_status=$?
  1260. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1261. (exit $ac_status); }
  1262. cat >conftest.$ac_ext <<_ACEOF
  1263. /* confdefs.h. */
  1264. _ACEOF
  1265. cat confdefs.h >>conftest.$ac_ext
  1266. cat >>conftest.$ac_ext <<_ACEOF
  1267. /* end confdefs.h. */
  1268. int
  1269. main ()
  1270. {
  1271. ;
  1272. return 0;
  1273. }
  1274. _ACEOF
  1275. ac_clean_files_save=$ac_clean_files
  1276. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1277. # Try to create an executable without -o first, disregard a.out.
  1278. # It will help us diagnose broken compilers, and finding out an intuition
  1279. # of exeext.
  1280. echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
  1281. echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
  1282. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1283. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1284. (eval $ac_link_default) 2>&5
  1285. ac_status=$?
  1286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1287. (exit $ac_status); }; then
  1288. # Find the output, starting from the most likely. This scheme is
  1289. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1290. # resort.
  1291. # Be careful to initialize this variable, since it used to be cached.
  1292. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1293. ac_cv_exeext=
  1294. # b.out is created by i960 compilers.
  1295. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1296. do
  1297. test -f "$ac_file" || continue
  1298. case $ac_file in
  1299. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1300. ;;
  1301. conftest.$ac_ext )
  1302. # This is the source file.
  1303. ;;
  1304. [ab].out )
  1305. # We found the default executable, but exeext='' is most
  1306. # certainly right.
  1307. break;;
  1308. *.* )
  1309. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1310. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1311. # but it would be cool to find out if it's true. Does anybody
  1312. # maintain Libtool? --akim.
  1313. export ac_cv_exeext
  1314. break;;
  1315. * )
  1316. break;;
  1317. esac
  1318. done
  1319. else
  1320. echo "$as_me: failed program was:" >&5
  1321. sed 's/^/| /' conftest.$ac_ext >&5
  1322. { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
  1323. See \`config.log' for more details." >&5
  1324. echo "$as_me: error: C++ compiler cannot create executables
  1325. See \`config.log' for more details." >&2;}
  1326. { (exit 77); exit 77; }; }
  1327. fi
  1328. ac_exeext=$ac_cv_exeext
  1329. echo "$as_me:$LINENO: result: $ac_file" >&5
  1330. echo "${ECHO_T}$ac_file" >&6
  1331. # Check the compiler produces executables we can run. If not, either
  1332. # the compiler is broken, or we cross compile.
  1333. echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
  1334. echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
  1335. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1336. # If not cross compiling, check that we can run a simple program.
  1337. if test "$cross_compiling" != yes; then
  1338. if { ac_try='./$ac_file'
  1339. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1340. (eval $ac_try) 2>&5
  1341. ac_status=$?
  1342. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1343. (exit $ac_status); }; }; then
  1344. cross_compiling=no
  1345. else
  1346. if test "$cross_compiling" = maybe; then
  1347. cross_compiling=yes
  1348. else
  1349. { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
  1350. If you meant to cross compile, use \`--host'.
  1351. See \`config.log' for more details." >&5
  1352. echo "$as_me: error: cannot run C++ compiled programs.
  1353. If you meant to cross compile, use \`--host'.
  1354. See \`config.log' for more details." >&2;}
  1355. { (exit 1); exit 1; }; }
  1356. fi
  1357. fi
  1358. fi
  1359. echo "$as_me:$LINENO: result: yes" >&5
  1360. echo "${ECHO_T}yes" >&6
  1361. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1362. ac_clean_files=$ac_clean_files_save
  1363. # Check the compiler produces executables we can run. If not, either
  1364. # the compiler is broken, or we cross compile.
  1365. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1366. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1367. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1368. echo "${ECHO_T}$cross_compiling" >&6
  1369. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1370. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1371. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1372. (eval $ac_link) 2>&5
  1373. ac_status=$?
  1374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1375. (exit $ac_status); }; then
  1376. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1377. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1378. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1379. # `rm'.
  1380. for ac_file in conftest.exe conftest conftest.*; do
  1381. test -f "$ac_file" || continue
  1382. case $ac_file in
  1383. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1384. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1385. export ac_cv_exeext
  1386. break;;
  1387. * ) break;;
  1388. esac
  1389. done
  1390. else
  1391. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1392. See \`config.log' for more details." >&5
  1393. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1394. See \`config.log' for more details." >&2;}
  1395. { (exit 1); exit 1; }; }
  1396. fi
  1397. rm -f conftest$ac_cv_exeext
  1398. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1399. echo "${ECHO_T}$ac_cv_exeext" >&6
  1400. rm -f conftest.$ac_ext
  1401. EXEEXT=$ac_cv_exeext
  1402. ac_exeext=$EXEEXT
  1403. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1404. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1405. if test "${ac_cv_objext+set}" = set; then
  1406. echo $ECHO_N "(cached) $ECHO_C" >&6
  1407. else
  1408. cat >conftest.$ac_ext <<_ACEOF
  1409. /* confdefs.h. */
  1410. _ACEOF
  1411. cat confdefs.h >>conftest.$ac_ext
  1412. cat >>conftest.$ac_ext <<_ACEOF
  1413. /* end confdefs.h. */
  1414. int
  1415. main ()
  1416. {
  1417. ;
  1418. return 0;
  1419. }
  1420. _ACEOF
  1421. rm -f conftest.o conftest.obj
  1422. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1423. (eval $ac_compile) 2>&5
  1424. ac_status=$?
  1425. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1426. (exit $ac_status); }; then
  1427. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1428. case $ac_file in
  1429. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1430. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1431. break;;
  1432. esac
  1433. done
  1434. else
  1435. echo "$as_me: failed program was:" >&5
  1436. sed 's/^/| /' conftest.$ac_ext >&5
  1437. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1438. See \`config.log' for more details." >&5
  1439. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1440. See \`config.log' for more details." >&2;}
  1441. { (exit 1); exit 1; }; }
  1442. fi
  1443. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1444. fi
  1445. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1446. echo "${ECHO_T}$ac_cv_objext" >&6
  1447. OBJEXT=$ac_cv_objext
  1448. ac_objext=$OBJEXT
  1449. echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  1450. echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  1451. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  1452. echo $ECHO_N "(cached) $ECHO_C" >&6
  1453. else
  1454. cat >conftest.$ac_ext <<_ACEOF
  1455. /* confdefs.h. */
  1456. _ACEOF
  1457. cat confdefs.h >>conftest.$ac_ext
  1458. cat >>conftest.$ac_ext <<_ACEOF
  1459. /* end confdefs.h. */
  1460. int
  1461. main ()
  1462. {
  1463. #ifndef __GNUC__
  1464. choke me
  1465. #endif
  1466. ;
  1467. return 0;
  1468. }
  1469. _ACEOF
  1470. rm -f conftest.$ac_objext
  1471. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1472. (eval $ac_compile) 2>conftest.er1
  1473. ac_status=$?
  1474. grep -v '^ *+' conftest.er1 >conftest.err
  1475. rm -f conftest.er1
  1476. cat conftest.err >&5
  1477. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1478. (exit $ac_status); } &&
  1479. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1480. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1481. (eval $ac_try) 2>&5
  1482. ac_status=$?
  1483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1484. (exit $ac_status); }; } &&
  1485. { ac_try='test -s conftest.$ac_objext'
  1486. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1487. (eval $ac_try) 2>&5
  1488. ac_status=$?
  1489. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1490. (exit $ac_status); }; }; then
  1491. ac_compiler_gnu=yes
  1492. else
  1493. echo "$as_me: failed program was:" >&5
  1494. sed 's/^/| /' conftest.$ac_ext >&5
  1495. ac_compiler_gnu=no
  1496. fi
  1497. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1498. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  1499. fi
  1500. echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  1501. echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  1502. GXX=`test $ac_compiler_gnu = yes && echo yes`
  1503. ac_test_CXXFLAGS=${CXXFLAGS+set}
  1504. ac_save_CXXFLAGS=$CXXFLAGS
  1505. CXXFLAGS="-g"
  1506. echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  1507. echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  1508. if test "${ac_cv_prog_cxx_g+set}" = set; then
  1509. echo $ECHO_N "(cached) $ECHO_C" >&6
  1510. else
  1511. cat >conftest.$ac_ext <<_ACEOF
  1512. /* confdefs.h. */
  1513. _ACEOF
  1514. cat confdefs.h >>conftest.$ac_ext
  1515. cat >>conftest.$ac_ext <<_ACEOF
  1516. /* end confdefs.h. */
  1517. int
  1518. main ()
  1519. {
  1520. ;
  1521. return 0;
  1522. }
  1523. _ACEOF
  1524. rm -f conftest.$ac_objext
  1525. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1526. (eval $ac_compile) 2>conftest.er1
  1527. ac_status=$?
  1528. grep -v '^ *+' conftest.er1 >conftest.err
  1529. rm -f conftest.er1
  1530. cat conftest.err >&5
  1531. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1532. (exit $ac_status); } &&
  1533. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1534. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1535. (eval $ac_try) 2>&5
  1536. ac_status=$?
  1537. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1538. (exit $ac_status); }; } &&
  1539. { ac_try='test -s conftest.$ac_objext'
  1540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1541. (eval $ac_try) 2>&5
  1542. ac_status=$?
  1543. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1544. (exit $ac_status); }; }; then
  1545. ac_cv_prog_cxx_g=yes
  1546. else
  1547. echo "$as_me: failed program was:" >&5
  1548. sed 's/^/| /' conftest.$ac_ext >&5
  1549. ac_cv_prog_cxx_g=no
  1550. fi
  1551. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1552. fi
  1553. echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  1554. echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  1555. if test "$ac_test_CXXFLAGS" = set; then
  1556. CXXFLAGS=$ac_save_CXXFLAGS
  1557. elif test $ac_cv_prog_cxx_g = yes; then
  1558. if test "$GXX" = yes; then
  1559. CXXFLAGS="-g -O2"
  1560. else
  1561. CXXFLAGS="-g"
  1562. fi
  1563. else
  1564. if test "$GXX" = yes; then
  1565. CXXFLAGS="-O2"
  1566. else
  1567. CXXFLAGS=
  1568. fi
  1569. fi
  1570. for ac_declaration in \
  1571. '' \
  1572. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  1573. 'extern "C" void std::exit (int); using std::exit;' \
  1574. 'extern "C" void exit (int) throw ();' \
  1575. 'extern "C" void exit (int);' \
  1576. 'void exit (int);'
  1577. do
  1578. cat >conftest.$ac_ext <<_ACEOF
  1579. /* confdefs.h. */
  1580. _ACEOF
  1581. cat confdefs.h >>conftest.$ac_ext
  1582. cat >>conftest.$ac_ext <<_ACEOF
  1583. /* end confdefs.h. */
  1584. $ac_declaration
  1585. #include <stdlib.h>
  1586. int
  1587. main ()
  1588. {
  1589. exit (42);
  1590. ;
  1591. return 0;
  1592. }
  1593. _ACEOF
  1594. rm -f conftest.$ac_objext
  1595. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1596. (eval $ac_compile) 2>conftest.er1
  1597. ac_status=$?
  1598. grep -v '^ *+' conftest.er1 >conftest.err
  1599. rm -f conftest.er1
  1600. cat conftest.err >&5
  1601. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1602. (exit $ac_status); } &&
  1603. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1604. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1605. (eval $ac_try) 2>&5
  1606. ac_status=$?
  1607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1608. (exit $ac_status); }; } &&
  1609. { ac_try='test -s conftest.$ac_objext'
  1610. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1611. (eval $ac_try) 2>&5
  1612. ac_status=$?
  1613. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1614. (exit $ac_status); }; }; then
  1615. :
  1616. else
  1617. echo "$as_me: failed program was:" >&5
  1618. sed 's/^/| /' conftest.$ac_ext >&5
  1619. continue
  1620. fi
  1621. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1622. cat >conftest.$ac_ext <<_ACEOF
  1623. /* confdefs.h. */
  1624. _ACEOF
  1625. cat confdefs.h >>conftest.$ac_ext
  1626. cat >>conftest.$ac_ext <<_ACEOF
  1627. /* end confdefs.h. */
  1628. $ac_declaration
  1629. int
  1630. main ()
  1631. {
  1632. exit (42);
  1633. ;
  1634. return 0;
  1635. }
  1636. _ACEOF
  1637. rm -f conftest.$ac_objext
  1638. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1639. (eval $ac_compile) 2>conftest.er1
  1640. ac_status=$?
  1641. grep -v '^ *+' conftest.er1 >conftest.err
  1642. rm -f conftest.er1
  1643. cat conftest.err >&5
  1644. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1645. (exit $ac_status); } &&
  1646. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1647. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1648. (eval $ac_try) 2>&5
  1649. ac_status=$?
  1650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1651. (exit $ac_status); }; } &&
  1652. { ac_try='test -s conftest.$ac_objext'
  1653. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1654. (eval $ac_try) 2>&5
  1655. ac_status=$?
  1656. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1657. (exit $ac_status); }; }; then
  1658. break
  1659. else
  1660. echo "$as_me: failed program was:" >&5
  1661. sed 's/^/| /' conftest.$ac_ext >&5
  1662. fi
  1663. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1664. done
  1665. rm -f conftest*
  1666. if test -n "$ac_declaration"; then
  1667. echo '#ifdef __cplusplus' >>confdefs.h
  1668. echo $ac_declaration >>confdefs.h
  1669. echo '#endif' >>confdefs.h
  1670. fi
  1671. ac_ext=cc
  1672. ac_cpp='$CXXCPP $CPPFLAGS'
  1673. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1674. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1675. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1676. if test "${cross_compiling-x}" = "x"
  1677. then
  1678. cat << 'EOF' >&2
  1679. configure: error:
  1680. This system does not appear to have a working C compiler.
  1681. A working C compiler is required to compile Eggdrop.
  1682. EOF
  1683. exit 1
  1684. fi
  1685. if test -n "$GXX"; then
  1686. CXXFLAGS="$CXXFLAGS -O3"
  1687. fi
  1688. # Crazy machines
  1689. ac_ext=cc
  1690. ac_cpp='$CXXCPP $CPPFLAGS'
  1691. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1692. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1693. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1694. echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  1695. echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  1696. if test -z "$CXXCPP"; then
  1697. if test "${ac_cv_prog_CXXCPP+set}" = set; then
  1698. echo $ECHO_N "(cached) $ECHO_C" >&6
  1699. else
  1700. # Double quotes because CXXCPP needs to be expanded
  1701. for CXXCPP in "$CXX -E" "/lib/cpp"
  1702. do
  1703. ac_preproc_ok=false
  1704. for ac_cxx_preproc_warn_flag in '' yes
  1705. do
  1706. # Use a header file that comes with gcc, so configuring glibc
  1707. # with a fresh cross-compiler works.
  1708. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1709. # <limits.h> exists even on freestanding compilers.
  1710. # On the NeXT, cc -E runs the code through the compiler's parser,
  1711. # not just through cpp. "Syntax error" is here to catch this case.
  1712. cat >conftest.$ac_ext <<_ACEOF
  1713. /* confdefs.h. */
  1714. _ACEOF
  1715. cat confdefs.h >>conftest.$ac_ext
  1716. cat >>conftest.$ac_ext <<_ACEOF
  1717. /* end confdefs.h. */
  1718. #ifdef __STDC__
  1719. # include <limits.h>
  1720. #else
  1721. # include <assert.h>
  1722. #endif
  1723. Syntax error
  1724. _ACEOF
  1725. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1726. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1727. ac_status=$?
  1728. grep -v '^ *+' conftest.er1 >conftest.err
  1729. rm -f conftest.er1
  1730. cat conftest.err >&5
  1731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1732. (exit $ac_status); } >/dev/null; then
  1733. if test -s conftest.err; then
  1734. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1735. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1736. else
  1737. ac_cpp_err=
  1738. fi
  1739. else
  1740. ac_cpp_err=yes
  1741. fi
  1742. if test -z "$ac_cpp_err"; then
  1743. :
  1744. else
  1745. echo "$as_me: failed program was:" >&5
  1746. sed 's/^/| /' conftest.$ac_ext >&5
  1747. # Broken: fails on valid input.
  1748. continue
  1749. fi
  1750. rm -f conftest.err conftest.$ac_ext
  1751. # OK, works on sane cases. Now check whether non-existent headers
  1752. # can be detected and how.
  1753. cat >conftest.$ac_ext <<_ACEOF
  1754. /* confdefs.h. */
  1755. _ACEOF
  1756. cat confdefs.h >>conftest.$ac_ext
  1757. cat >>conftest.$ac_ext <<_ACEOF
  1758. /* end confdefs.h. */
  1759. #include <ac_nonexistent.h>
  1760. _ACEOF
  1761. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1762. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1763. ac_status=$?
  1764. grep -v '^ *+' conftest.er1 >conftest.err
  1765. rm -f conftest.er1
  1766. cat conftest.err >&5
  1767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1768. (exit $ac_status); } >/dev/null; then
  1769. if test -s conftest.err; then
  1770. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1771. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1772. else
  1773. ac_cpp_err=
  1774. fi
  1775. else
  1776. ac_cpp_err=yes
  1777. fi
  1778. if test -z "$ac_cpp_err"; then
  1779. # Broken: success on invalid input.
  1780. continue
  1781. else
  1782. echo "$as_me: failed program was:" >&5
  1783. sed 's/^/| /' conftest.$ac_ext >&5
  1784. # Passes both tests.
  1785. ac_preproc_ok=:
  1786. break
  1787. fi
  1788. rm -f conftest.err conftest.$ac_ext
  1789. done
  1790. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1791. rm -f conftest.err conftest.$ac_ext
  1792. if $ac_preproc_ok; then
  1793. break
  1794. fi
  1795. done
  1796. ac_cv_prog_CXXCPP=$CXXCPP
  1797. fi
  1798. CXXCPP=$ac_cv_prog_CXXCPP
  1799. else
  1800. ac_cv_prog_CXXCPP=$CXXCPP
  1801. fi
  1802. echo "$as_me:$LINENO: result: $CXXCPP" >&5
  1803. echo "${ECHO_T}$CXXCPP" >&6
  1804. ac_preproc_ok=false
  1805. for ac_cxx_preproc_warn_flag in '' yes
  1806. do
  1807. # Use a header file that comes with gcc, so configuring glibc
  1808. # with a fresh cross-compiler works.
  1809. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1810. # <limits.h> exists even on freestanding compilers.
  1811. # On the NeXT, cc -E runs the code through the compiler's parser,
  1812. # not just through cpp. "Syntax error" is here to catch this case.
  1813. cat >conftest.$ac_ext <<_ACEOF
  1814. /* confdefs.h. */
  1815. _ACEOF
  1816. cat confdefs.h >>conftest.$ac_ext
  1817. cat >>conftest.$ac_ext <<_ACEOF
  1818. /* end confdefs.h. */
  1819. #ifdef __STDC__
  1820. # include <limits.h>
  1821. #else
  1822. # include <assert.h>
  1823. #endif
  1824. Syntax error
  1825. _ACEOF
  1826. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1827. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1828. ac_status=$?
  1829. grep -v '^ *+' conftest.er1 >conftest.err
  1830. rm -f conftest.er1
  1831. cat conftest.err >&5
  1832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1833. (exit $ac_status); } >/dev/null; then
  1834. if test -s conftest.err; then
  1835. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1836. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1837. else
  1838. ac_cpp_err=
  1839. fi
  1840. else
  1841. ac_cpp_err=yes
  1842. fi
  1843. if test -z "$ac_cpp_err"; then
  1844. :
  1845. else
  1846. echo "$as_me: failed program was:" >&5
  1847. sed 's/^/| /' conftest.$ac_ext >&5
  1848. # Broken: fails on valid input.
  1849. continue
  1850. fi
  1851. rm -f conftest.err conftest.$ac_ext
  1852. # OK, works on sane cases. Now check whether non-existent headers
  1853. # can be detected and how.
  1854. cat >conftest.$ac_ext <<_ACEOF
  1855. /* confdefs.h. */
  1856. _ACEOF
  1857. cat confdefs.h >>conftest.$ac_ext
  1858. cat >>conftest.$ac_ext <<_ACEOF
  1859. /* end confdefs.h. */
  1860. #include <ac_nonexistent.h>
  1861. _ACEOF
  1862. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  1863. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  1864. ac_status=$?
  1865. grep -v '^ *+' conftest.er1 >conftest.err
  1866. rm -f conftest.er1
  1867. cat conftest.err >&5
  1868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1869. (exit $ac_status); } >/dev/null; then
  1870. if test -s conftest.err; then
  1871. ac_cpp_err=$ac_cxx_preproc_warn_flag
  1872. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  1873. else
  1874. ac_cpp_err=
  1875. fi
  1876. else
  1877. ac_cpp_err=yes
  1878. fi
  1879. if test -z "$ac_cpp_err"; then
  1880. # Broken: success on invalid input.
  1881. continue
  1882. else
  1883. echo "$as_me: failed program was:" >&5
  1884. sed 's/^/| /' conftest.$ac_ext >&5
  1885. # Passes both tests.
  1886. ac_preproc_ok=:
  1887. break
  1888. fi
  1889. rm -f conftest.err conftest.$ac_ext
  1890. done
  1891. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  1892. rm -f conftest.err conftest.$ac_ext
  1893. if $ac_preproc_ok; then
  1894. :
  1895. else
  1896. { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  1897. See \`config.log' for more details." >&5
  1898. echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  1899. See \`config.log' for more details." >&2;}
  1900. { (exit 1); exit 1; }; }
  1901. fi
  1902. ac_ext=cc
  1903. ac_cpp='$CXXCPP $CPPFLAGS'
  1904. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1905. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1906. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  1907. echo "$as_me:$LINENO: checking for egrep" >&5
  1908. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  1909. if test "${ac_cv_prog_egrep+set}" = set; then
  1910. echo $ECHO_N "(cached) $ECHO_C" >&6
  1911. else
  1912. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  1913. then ac_cv_prog_egrep='grep -E'
  1914. else ac_cv_prog_egrep='egrep'
  1915. fi
  1916. fi
  1917. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  1918. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  1919. EGREP=$ac_cv_prog_egrep
  1920. echo "$as_me:$LINENO: checking for AIX" >&5
  1921. echo $ECHO_N "checking for AIX... $ECHO_C" >&6
  1922. cat >conftest.$ac_ext <<_ACEOF
  1923. /* confdefs.h. */
  1924. _ACEOF
  1925. cat confdefs.h >>conftest.$ac_ext
  1926. cat >>conftest.$ac_ext <<_ACEOF
  1927. /* end confdefs.h. */
  1928. #ifdef _AIX
  1929. yes
  1930. #endif
  1931. _ACEOF
  1932. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  1933. $EGREP "yes" >/dev/null 2>&1; then
  1934. echo "$as_me:$LINENO: result: yes" >&5
  1935. echo "${ECHO_T}yes" >&6
  1936. cat >>confdefs.h <<\_ACEOF
  1937. #define _ALL_SOURCE 1
  1938. _ACEOF
  1939. else
  1940. echo "$as_me:$LINENO: result: no" >&5
  1941. echo "${ECHO_T}no" >&6
  1942. fi
  1943. rm -f conftest*
  1944. echo "$as_me:$LINENO: checking for library containing strerror" >&5
  1945. echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
  1946. if test "${ac_cv_search_strerror+set}" = set; then
  1947. echo $ECHO_N "(cached) $ECHO_C" >&6
  1948. else
  1949. ac_func_search_save_LIBS=$LIBS
  1950. ac_cv_search_strerror=no
  1951. cat >conftest.$ac_ext <<_ACEOF
  1952. /* confdefs.h. */
  1953. _ACEOF
  1954. cat confdefs.h >>conftest.$ac_ext
  1955. cat >>conftest.$ac_ext <<_ACEOF
  1956. /* end confdefs.h. */
  1957. /* Override any gcc2 internal prototype to avoid an error. */
  1958. #ifdef __cplusplus
  1959. extern "C"
  1960. #endif
  1961. /* We use char because int might match the return type of a gcc2
  1962. builtin and then its argument prototype would still apply. */
  1963. char strerror ();
  1964. int
  1965. main ()
  1966. {
  1967. strerror ();
  1968. ;
  1969. return 0;
  1970. }
  1971. _ACEOF
  1972. rm -f conftest.$ac_objext conftest$ac_exeext
  1973. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1974. (eval $ac_link) 2>conftest.er1
  1975. ac_status=$?
  1976. grep -v '^ *+' conftest.er1 >conftest.err
  1977. rm -f conftest.er1
  1978. cat conftest.err >&5
  1979. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1980. (exit $ac_status); } &&
  1981. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  1982. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1983. (eval $ac_try) 2>&5
  1984. ac_status=$?
  1985. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1986. (exit $ac_status); }; } &&
  1987. { ac_try='test -s conftest$ac_exeext'
  1988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1989. (eval $ac_try) 2>&5
  1990. ac_status=$?
  1991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1992. (exit $ac_status); }; }; then
  1993. ac_cv_search_strerror="none required"
  1994. else
  1995. echo "$as_me: failed program was:" >&5
  1996. sed 's/^/| /' conftest.$ac_ext >&5
  1997. fi
  1998. rm -f conftest.err conftest.$ac_objext \
  1999. conftest$ac_exeext conftest.$ac_ext
  2000. if test "$ac_cv_search_strerror" = no; then
  2001. for ac_lib in cposix; do
  2002. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  2003. cat >conftest.$ac_ext <<_ACEOF
  2004. /* confdefs.h. */
  2005. _ACEOF
  2006. cat confdefs.h >>conftest.$ac_ext
  2007. cat >>conftest.$ac_ext <<_ACEOF
  2008. /* end confdefs.h. */
  2009. /* Override any gcc2 internal prototype to avoid an error. */
  2010. #ifdef __cplusplus
  2011. extern "C"
  2012. #endif
  2013. /* We use char because int might match the return type of a gcc2
  2014. builtin and then its argument prototype would still apply. */
  2015. char strerror ();
  2016. int
  2017. main ()
  2018. {
  2019. strerror ();
  2020. ;
  2021. return 0;
  2022. }
  2023. _ACEOF
  2024. rm -f conftest.$ac_objext conftest$ac_exeext
  2025. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2026. (eval $ac_link) 2>conftest.er1
  2027. ac_status=$?
  2028. grep -v '^ *+' conftest.er1 >conftest.err
  2029. rm -f conftest.er1
  2030. cat conftest.err >&5
  2031. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2032. (exit $ac_status); } &&
  2033. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2034. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2035. (eval $ac_try) 2>&5
  2036. ac_status=$?
  2037. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2038. (exit $ac_status); }; } &&
  2039. { ac_try='test -s conftest$ac_exeext'
  2040. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2041. (eval $ac_try) 2>&5
  2042. ac_status=$?
  2043. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2044. (exit $ac_status); }; }; then
  2045. ac_cv_search_strerror="-l$ac_lib"
  2046. break
  2047. else
  2048. echo "$as_me: failed program was:" >&5
  2049. sed 's/^/| /' conftest.$ac_ext >&5
  2050. fi
  2051. rm -f conftest.err conftest.$ac_objext \
  2052. conftest$ac_exeext conftest.$ac_ext
  2053. done
  2054. fi
  2055. LIBS=$ac_func_search_save_LIBS
  2056. fi
  2057. echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
  2058. echo "${ECHO_T}$ac_cv_search_strerror" >&6
  2059. if test "$ac_cv_search_strerror" != no; then
  2060. test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
  2061. fi
  2062. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  2063. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  2064. if test "${ac_cv_header_stdc+set}" = set; then
  2065. echo $ECHO_N "(cached) $ECHO_C" >&6
  2066. else
  2067. cat >conftest.$ac_ext <<_ACEOF
  2068. /* confdefs.h. */
  2069. _ACEOF
  2070. cat confdefs.h >>conftest.$ac_ext
  2071. cat >>conftest.$ac_ext <<_ACEOF
  2072. /* end confdefs.h. */
  2073. #include <stdlib.h>
  2074. #include <stdarg.h>
  2075. #include <string.h>
  2076. #include <float.h>
  2077. int
  2078. main ()
  2079. {
  2080. ;
  2081. return 0;
  2082. }
  2083. _ACEOF
  2084. rm -f conftest.$ac_objext
  2085. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2086. (eval $ac_compile) 2>conftest.er1
  2087. ac_status=$?
  2088. grep -v '^ *+' conftest.er1 >conftest.err
  2089. rm -f conftest.er1
  2090. cat conftest.err >&5
  2091. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2092. (exit $ac_status); } &&
  2093. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2094. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2095. (eval $ac_try) 2>&5
  2096. ac_status=$?
  2097. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2098. (exit $ac_status); }; } &&
  2099. { ac_try='test -s conftest.$ac_objext'
  2100. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2101. (eval $ac_try) 2>&5
  2102. ac_status=$?
  2103. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2104. (exit $ac_status); }; }; then
  2105. ac_cv_header_stdc=yes
  2106. else
  2107. echo "$as_me: failed program was:" >&5
  2108. sed 's/^/| /' conftest.$ac_ext >&5
  2109. ac_cv_header_stdc=no
  2110. fi
  2111. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2112. if test $ac_cv_header_stdc = yes; then
  2113. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  2114. cat >conftest.$ac_ext <<_ACEOF
  2115. /* confdefs.h. */
  2116. _ACEOF
  2117. cat confdefs.h >>conftest.$ac_ext
  2118. cat >>conftest.$ac_ext <<_ACEOF
  2119. /* end confdefs.h. */
  2120. #include <string.h>
  2121. _ACEOF
  2122. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2123. $EGREP "memchr" >/dev/null 2>&1; then
  2124. :
  2125. else
  2126. ac_cv_header_stdc=no
  2127. fi
  2128. rm -f conftest*
  2129. fi
  2130. if test $ac_cv_header_stdc = yes; then
  2131. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  2132. cat >conftest.$ac_ext <<_ACEOF
  2133. /* confdefs.h. */
  2134. _ACEOF
  2135. cat confdefs.h >>conftest.$ac_ext
  2136. cat >>conftest.$ac_ext <<_ACEOF
  2137. /* end confdefs.h. */
  2138. #include <stdlib.h>
  2139. _ACEOF
  2140. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  2141. $EGREP "free" >/dev/null 2>&1; then
  2142. :
  2143. else
  2144. ac_cv_header_stdc=no
  2145. fi
  2146. rm -f conftest*
  2147. fi
  2148. if test $ac_cv_header_stdc = yes; then
  2149. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  2150. if test "$cross_compiling" = yes; then
  2151. :
  2152. else
  2153. cat >conftest.$ac_ext <<_ACEOF
  2154. /* confdefs.h. */
  2155. _ACEOF
  2156. cat confdefs.h >>conftest.$ac_ext
  2157. cat >>conftest.$ac_ext <<_ACEOF
  2158. /* end confdefs.h. */
  2159. #include <ctype.h>
  2160. #if ((' ' & 0x0FF) == 0x020)
  2161. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  2162. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  2163. #else
  2164. # define ISLOWER(c) \
  2165. (('a' <= (c) && (c) <= 'i') \
  2166. || ('j' <= (c) && (c) <= 'r') \
  2167. || ('s' <= (c) && (c) <= 'z'))
  2168. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  2169. #endif
  2170. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  2171. int
  2172. main ()
  2173. {
  2174. int i;
  2175. for (i = 0; i < 256; i++)
  2176. if (XOR (islower (i), ISLOWER (i))
  2177. || toupper (i) != TOUPPER (i))
  2178. exit(2);
  2179. exit (0);
  2180. }
  2181. _ACEOF
  2182. rm -f conftest$ac_exeext
  2183. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2184. (eval $ac_link) 2>&5
  2185. ac_status=$?
  2186. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2187. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2188. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2189. (eval $ac_try) 2>&5
  2190. ac_status=$?
  2191. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2192. (exit $ac_status); }; }; then
  2193. :
  2194. else
  2195. echo "$as_me: program exited with status $ac_status" >&5
  2196. echo "$as_me: failed program was:" >&5
  2197. sed 's/^/| /' conftest.$ac_ext >&5
  2198. ( exit $ac_status )
  2199. ac_cv_header_stdc=no
  2200. fi
  2201. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2202. fi
  2203. fi
  2204. fi
  2205. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  2206. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  2207. if test $ac_cv_header_stdc = yes; then
  2208. cat >>confdefs.h <<\_ACEOF
  2209. #define STDC_HEADERS 1
  2210. _ACEOF
  2211. fi
  2212. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  2213. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  2214. inttypes.h stdint.h unistd.h
  2215. do
  2216. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  2217. echo "$as_me:$LINENO: checking for $ac_header" >&5
  2218. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  2219. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  2220. echo $ECHO_N "(cached) $ECHO_C" >&6
  2221. else
  2222. cat >conftest.$ac_ext <<_ACEOF
  2223. /* confdefs.h. */
  2224. _ACEOF
  2225. cat confdefs.h >>conftest.$ac_ext
  2226. cat >>conftest.$ac_ext <<_ACEOF
  2227. /* end confdefs.h. */
  2228. $ac_includes_default
  2229. #include <$ac_header>
  2230. _ACEOF
  2231. rm -f conftest.$ac_objext
  2232. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2233. (eval $ac_compile) 2>conftest.er1
  2234. ac_status=$?
  2235. grep -v '^ *+' conftest.er1 >conftest.err
  2236. rm -f conftest.er1
  2237. cat conftest.err >&5
  2238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2239. (exit $ac_status); } &&
  2240. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2242. (eval $ac_try) 2>&5
  2243. ac_status=$?
  2244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2245. (exit $ac_status); }; } &&
  2246. { ac_try='test -s conftest.$ac_objext'
  2247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2248. (eval $ac_try) 2>&5
  2249. ac_status=$?
  2250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2251. (exit $ac_status); }; }; then
  2252. eval "$as_ac_Header=yes"
  2253. else
  2254. echo "$as_me: failed program was:" >&5
  2255. sed 's/^/| /' conftest.$ac_ext >&5
  2256. eval "$as_ac_Header=no"
  2257. fi
  2258. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2259. fi
  2260. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  2261. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  2262. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  2263. cat >>confdefs.h <<_ACEOF
  2264. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  2265. _ACEOF
  2266. fi
  2267. done
  2268. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2269. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2270. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2271. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2272. echo $ECHO_N "(cached) $ECHO_C" >&6
  2273. fi
  2274. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2275. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2276. else
  2277. # Is the header compilable?
  2278. echo "$as_me:$LINENO: checking minix/config.h usability" >&5
  2279. echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
  2280. cat >conftest.$ac_ext <<_ACEOF
  2281. /* confdefs.h. */
  2282. _ACEOF
  2283. cat confdefs.h >>conftest.$ac_ext
  2284. cat >>conftest.$ac_ext <<_ACEOF
  2285. /* end confdefs.h. */
  2286. $ac_includes_default
  2287. #include <minix/config.h>
  2288. _ACEOF
  2289. rm -f conftest.$ac_objext
  2290. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2291. (eval $ac_compile) 2>conftest.er1
  2292. ac_status=$?
  2293. grep -v '^ *+' conftest.er1 >conftest.err
  2294. rm -f conftest.er1
  2295. cat conftest.err >&5
  2296. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2297. (exit $ac_status); } &&
  2298. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2299. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2300. (eval $ac_try) 2>&5
  2301. ac_status=$?
  2302. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2303. (exit $ac_status); }; } &&
  2304. { ac_try='test -s conftest.$ac_objext'
  2305. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2306. (eval $ac_try) 2>&5
  2307. ac_status=$?
  2308. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2309. (exit $ac_status); }; }; then
  2310. ac_header_compiler=yes
  2311. else
  2312. echo "$as_me: failed program was:" >&5
  2313. sed 's/^/| /' conftest.$ac_ext >&5
  2314. ac_header_compiler=no
  2315. fi
  2316. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2317. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  2318. echo "${ECHO_T}$ac_header_compiler" >&6
  2319. # Is the header present?
  2320. echo "$as_me:$LINENO: checking minix/config.h presence" >&5
  2321. echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
  2322. cat >conftest.$ac_ext <<_ACEOF
  2323. /* confdefs.h. */
  2324. _ACEOF
  2325. cat confdefs.h >>conftest.$ac_ext
  2326. cat >>conftest.$ac_ext <<_ACEOF
  2327. /* end confdefs.h. */
  2328. #include <minix/config.h>
  2329. _ACEOF
  2330. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2331. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2332. ac_status=$?
  2333. grep -v '^ *+' conftest.er1 >conftest.err
  2334. rm -f conftest.er1
  2335. cat conftest.err >&5
  2336. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2337. (exit $ac_status); } >/dev/null; then
  2338. if test -s conftest.err; then
  2339. ac_cpp_err=$ac_cxx_preproc_warn_flag
  2340. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  2341. else
  2342. ac_cpp_err=
  2343. fi
  2344. else
  2345. ac_cpp_err=yes
  2346. fi
  2347. if test -z "$ac_cpp_err"; then
  2348. ac_header_preproc=yes
  2349. else
  2350. echo "$as_me: failed program was:" >&5
  2351. sed 's/^/| /' conftest.$ac_ext >&5
  2352. ac_header_preproc=no
  2353. fi
  2354. rm -f conftest.err conftest.$ac_ext
  2355. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  2356. echo "${ECHO_T}$ac_header_preproc" >&6
  2357. # So? What about this header?
  2358. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  2359. yes:no: )
  2360. { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
  2361. echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2362. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
  2363. echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
  2364. ac_header_preproc=yes
  2365. ;;
  2366. no:yes:* )
  2367. { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
  2368. echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
  2369. { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
  2370. echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
  2371. { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
  2372. echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
  2373. { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
  2374. echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
  2375. { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
  2376. echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
  2377. { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
  2378. echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
  2379. (
  2380. cat <<\_ASBOX
  2381. ## ------------------------------------------ ##
  2382. ## Report this to the AC_PACKAGE_NAME lists. ##
  2383. ## ------------------------------------------ ##
  2384. _ASBOX
  2385. ) |
  2386. sed "s/^/$as_me: WARNING: /" >&2
  2387. ;;
  2388. esac
  2389. echo "$as_me:$LINENO: checking for minix/config.h" >&5
  2390. echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
  2391. if test "${ac_cv_header_minix_config_h+set}" = set; then
  2392. echo $ECHO_N "(cached) $ECHO_C" >&6
  2393. else
  2394. ac_cv_header_minix_config_h=$ac_header_preproc
  2395. fi
  2396. echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
  2397. echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
  2398. fi
  2399. if test $ac_cv_header_minix_config_h = yes; then
  2400. MINIX=yes
  2401. else
  2402. MINIX=
  2403. fi
  2404. if test "$MINIX" = yes; then
  2405. cat >>confdefs.h <<\_ACEOF
  2406. #define _POSIX_SOURCE 1
  2407. _ACEOF
  2408. cat >>confdefs.h <<\_ACEOF
  2409. #define _POSIX_1_SOURCE 2
  2410. _ACEOF
  2411. cat >>confdefs.h <<\_ACEOF
  2412. #define _MINIX 1
  2413. _ACEOF
  2414. fi
  2415. #checkpoint
  2416. cat >confcache <<\_ACEOF
  2417. # This file is a shell script that caches the results of configure
  2418. # tests run on this system so they can be shared between configure
  2419. # scripts and configure runs, see configure's option --config-cache.
  2420. # It is not useful on other systems. If it contains results you don't
  2421. # want to keep, you may remove or edit it.
  2422. #
  2423. # config.status only pays attention to the cache file if you give it
  2424. # the --recheck option to rerun configure.
  2425. #
  2426. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2427. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2428. # following values.
  2429. _ACEOF
  2430. # The following way of writing the cache mishandles newlines in values,
  2431. # but we know of no workaround that is simple, portable, and efficient.
  2432. # So, don't put newlines in cache variables' values.
  2433. # Ultrix sh set writes to stderr and can't be redirected directly,
  2434. # and sets the high bit in the cache file unless we assign to the vars.
  2435. {
  2436. (set) 2>&1 |
  2437. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2438. *ac_space=\ *)
  2439. # `set' does not quote correctly, so add quotes (double-quote
  2440. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2441. sed -n \
  2442. "s/'/'\\\\''/g;
  2443. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2444. ;;
  2445. *)
  2446. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2447. sed -n \
  2448. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2449. ;;
  2450. esac;
  2451. } |
  2452. sed '
  2453. t clear
  2454. : clear
  2455. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2456. t end
  2457. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2458. : end' >>confcache
  2459. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2460. if test -w $cache_file; then
  2461. test "x$cache_file" != "x/dev/null"
  2462. cat confcache >$cache_file
  2463. else
  2464. echo "not updating unwritable cache $cache_file"
  2465. fi
  2466. fi
  2467. rm -f confcache
  2468. # Speedup compile
  2469. if test -n "$GXX" && test -z "$no_wall"; then
  2470. echo "$as_me:$LINENO: checking whether the compiler understands -Wall" >&5
  2471. echo $ECHO_N "checking whether the compiler understands -Wall... $ECHO_C" >&6
  2472. if test "${egg_cv_var_ccwall+set}" = set; then
  2473. echo $ECHO_N "(cached) $ECHO_C" >&6
  2474. else
  2475. ac_old_CXXFLAGS="$CXXFLAGS"
  2476. CXXFLAGS="$CXXFLAGS -Wall"
  2477. cat >conftest.$ac_ext <<_ACEOF
  2478. int main ()
  2479. {
  2480. return(0);
  2481. }
  2482. _ACEOF
  2483. rm -f conftest.$ac_objext
  2484. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2485. (eval $ac_compile) 2>conftest.er1
  2486. ac_status=$?
  2487. grep -v '^ *+' conftest.er1 >conftest.err
  2488. rm -f conftest.er1
  2489. cat conftest.err >&5
  2490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2491. (exit $ac_status); } &&
  2492. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2494. (eval $ac_try) 2>&5
  2495. ac_status=$?
  2496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2497. (exit $ac_status); }; } &&
  2498. { ac_try='test -s conftest.$ac_objext'
  2499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2500. (eval $ac_try) 2>&5
  2501. ac_status=$?
  2502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2503. (exit $ac_status); }; }; then
  2504. egg_cv_var_ccwall="yes"
  2505. else
  2506. echo "$as_me: failed program was:" >&5
  2507. sed 's/^/| /' conftest.$ac_ext >&5
  2508. egg_cv_var_ccwall="no"
  2509. fi
  2510. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2511. CXXFLAGS="$ac_old_CXXFLAGS"
  2512. fi
  2513. echo "$as_me:$LINENO: result: $egg_cv_var_ccwall" >&5
  2514. echo "${ECHO_T}$egg_cv_var_ccwall" >&6
  2515. if test "$egg_cv_var_ccwall" = "yes"; then
  2516. CXXFLAGS="$CXXFLAGS -Wall"
  2517. fi
  2518. fi
  2519. if test -n "$GXX" && test -z "$no_pipe"; then
  2520. echo "$as_me:$LINENO: checking whether the compiler understands -pipe" >&5
  2521. echo $ECHO_N "checking whether the compiler understands -pipe... $ECHO_C" >&6
  2522. if test "${egg_cv_var_ccpipe+set}" = set; then
  2523. echo $ECHO_N "(cached) $ECHO_C" >&6
  2524. else
  2525. ac_old_CXX="$CXX"
  2526. CXX="$CXX -pipe"
  2527. cat >conftest.$ac_ext <<_ACEOF
  2528. int main ()
  2529. {
  2530. return(0);
  2531. }
  2532. _ACEOF
  2533. rm -f conftest.$ac_objext
  2534. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2535. (eval $ac_compile) 2>conftest.er1
  2536. ac_status=$?
  2537. grep -v '^ *+' conftest.er1 >conftest.err
  2538. rm -f conftest.er1
  2539. cat conftest.err >&5
  2540. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2541. (exit $ac_status); } &&
  2542. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  2543. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2544. (eval $ac_try) 2>&5
  2545. ac_status=$?
  2546. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2547. (exit $ac_status); }; } &&
  2548. { ac_try='test -s conftest.$ac_objext'
  2549. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2550. (eval $ac_try) 2>&5
  2551. ac_status=$?
  2552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2553. (exit $ac_status); }; }; then
  2554. egg_cv_var_ccpipe="yes"
  2555. else
  2556. echo "$as_me: failed program was:" >&5
  2557. sed 's/^/| /' conftest.$ac_ext >&5
  2558. egg_cv_var_ccpipe="no"
  2559. fi
  2560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2561. CXX="$ac_old_CXX"
  2562. fi
  2563. echo "$as_me:$LINENO: result: $egg_cv_var_ccpipe" >&5
  2564. echo "${ECHO_T}$egg_cv_var_ccpipe" >&6
  2565. if test "$egg_cv_var_ccpipe" = "yes"; then
  2566. CXX="$CXX -pipe"
  2567. fi
  2568. fi
  2569. CCDEPMODE=gcc
  2570. num=`$CXX -dumpversion | sed "s/^\\\(.\\\).*/\\\1/"`
  2571. if test $num = "3"; then
  2572. CCDEPMODE=gcc3
  2573. # GCC3="-Wpadded -Wpacked -Wno-unused-parameter -Wmissing-format-attribute -Wdisabled-optimization"
  2574. GCC3="-W -Wno-unused-parameter -Wdisabled-optimization -Wmissing-format-attribute"
  2575. fi
  2576. #checkpoint
  2577. cat >confcache <<\_ACEOF
  2578. # This file is a shell script that caches the results of configure
  2579. # tests run on this system so they can be shared between configure
  2580. # scripts and configure runs, see configure's option --config-cache.
  2581. # It is not useful on other systems. If it contains results you don't
  2582. # want to keep, you may remove or edit it.
  2583. #
  2584. # config.status only pays attention to the cache file if you give it
  2585. # the --recheck option to rerun configure.
  2586. #
  2587. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  2588. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  2589. # following values.
  2590. _ACEOF
  2591. # The following way of writing the cache mishandles newlines in values,
  2592. # but we know of no workaround that is simple, portable, and efficient.
  2593. # So, don't put newlines in cache variables' values.
  2594. # Ultrix sh set writes to stderr and can't be redirected directly,
  2595. # and sets the high bit in the cache file unless we assign to the vars.
  2596. {
  2597. (set) 2>&1 |
  2598. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  2599. *ac_space=\ *)
  2600. # `set' does not quote correctly, so add quotes (double-quote
  2601. # substitution turns \\\\ into \\, and sed turns \\ into \).
  2602. sed -n \
  2603. "s/'/'\\\\''/g;
  2604. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  2605. ;;
  2606. *)
  2607. # `set' quotes correctly as required by POSIX, so do not add quotes.
  2608. sed -n \
  2609. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  2610. ;;
  2611. esac;
  2612. } |
  2613. sed '
  2614. t clear
  2615. : clear
  2616. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  2617. t end
  2618. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  2619. : end' >>confcache
  2620. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  2621. if test -w $cache_file; then
  2622. test "x$cache_file" != "x/dev/null"
  2623. cat confcache >$cache_file
  2624. else
  2625. echo "not updating unwritable cache $cache_file"
  2626. fi
  2627. fi
  2628. rm -f confcache
  2629. # Checks for programs
  2630. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2631. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  2632. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  2633. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  2634. echo $ECHO_N "(cached) $ECHO_C" >&6
  2635. else
  2636. cat >conftest.make <<\_ACEOF
  2637. all:
  2638. @echo 'ac_maketemp="$(MAKE)"'
  2639. _ACEOF
  2640. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  2641. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  2642. if test -n "$ac_maketemp"; then
  2643. eval ac_cv_prog_make_${ac_make}_set=yes
  2644. else
  2645. eval ac_cv_prog_make_${ac_make}_set=no
  2646. fi
  2647. rm -f conftest.make
  2648. fi
  2649. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  2650. echo "$as_me:$LINENO: result: yes" >&5
  2651. echo "${ECHO_T}yes" >&6
  2652. SET_MAKE=
  2653. else
  2654. echo "$as_me:$LINENO: result: no" >&5
  2655. echo "${ECHO_T}no" >&6
  2656. SET_MAKE="MAKE=${MAKE-make}"
  2657. fi
  2658. cat << 'EOF' > conftest.head
  2659. a
  2660. b
  2661. c
  2662. EOF
  2663. for ac_prog in 'head -1' 'head -n 1' 'sed 1q';
  2664. do
  2665. echo "$as_me:$LINENO: checking whether $ac_prog works" >&5
  2666. echo $ECHO_N "checking whether $ac_prog works... $ECHO_C" >&6
  2667. if test "${ac_cv_prog_HEAD_1+set}" = set; then
  2668. echo $ECHO_N "(cached) $ECHO_C" >&6
  2669. else
  2670. if test -n "$HEAD_1"
  2671. then
  2672. ac_cv_prog_HEAD_1="$HEAD_1" # Let the user override the test.
  2673. else
  2674. if test "`cat conftest.head | $ac_prog`" = "a";
  2675. then
  2676. echo "$as_me:$LINENO: result: yes" >&5
  2677. echo "${ECHO_T}yes" >&6
  2678. ac_cv_prog_HEAD_1=$ac_prog
  2679. else
  2680. echo "$as_me:$LINENO: result: no" >&5
  2681. echo "${ECHO_T}no" >&6
  2682. fi
  2683. fi
  2684. fi
  2685. test -n "$ac_cv_prog_HEAD_1" && break
  2686. done
  2687. if test "${ac_cv_prog_HEAD_1-x}" = "x"
  2688. then
  2689. cat << 'EOF' >&2
  2690. configure: error:
  2691. This system seems to lack a working 'head -1' or 'head -n 1' command.
  2692. A working 'head -1' (or equivalent) command is required to compile Eggdrop.
  2693. EOF
  2694. exit 1
  2695. fi
  2696. rm -f conftest.head
  2697. HEAD_1=$ac_cv_prog_HEAD_1
  2698. # awk is needed for Tcl library and header checks, and eggdrop version subst
  2699. for ac_prog in gawk mawk nawk awk
  2700. do
  2701. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2702. set dummy $ac_prog; ac_word=$2
  2703. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2704. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2705. if test "${ac_cv_prog_AWK+set}" = set; then
  2706. echo $ECHO_N "(cached) $ECHO_C" >&6
  2707. else
  2708. if test -n "$AWK"; then
  2709. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2710. else
  2711. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2712. for as_dir in $PATH
  2713. do
  2714. IFS=$as_save_IFS
  2715. test -z "$as_dir" && as_dir=.
  2716. for ac_exec_ext in '' $ac_executable_extensions; do
  2717. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2718. ac_cv_prog_AWK="$ac_prog"
  2719. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2720. break 2
  2721. fi
  2722. done
  2723. done
  2724. fi
  2725. fi
  2726. AWK=$ac_cv_prog_AWK
  2727. if test -n "$AWK"; then
  2728. echo "$as_me:$LINENO: result: $AWK" >&5
  2729. echo "${ECHO_T}$AWK" >&6
  2730. else
  2731. echo "$as_me:$LINENO: result: no" >&5
  2732. echo "${ECHO_T}no" >&6
  2733. fi
  2734. test -n "$AWK" && break
  2735. done
  2736. if test "${AWK-x}" = "x"
  2737. then
  2738. cat << 'EOF' >&2
  2739. configure: error:
  2740. This system seems to lack a working 'awk' command.
  2741. A working 'awk' command is required to compile Eggdrop.
  2742. EOF
  2743. exit 1
  2744. fi
  2745. # basename is needed for Tcl library and header checks
  2746. # Extract the first word of "basename", so it can be a program name with args.
  2747. set dummy basename; ac_word=$2
  2748. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2749. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2750. if test "${ac_cv_prog_BASENAME+set}" = set; then
  2751. echo $ECHO_N "(cached) $ECHO_C" >&6
  2752. else
  2753. if test -n "$BASENAME"; then
  2754. ac_cv_prog_BASENAME="$BASENAME" # Let the user override the test.
  2755. else
  2756. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2757. for as_dir in $PATH
  2758. do
  2759. IFS=$as_save_IFS
  2760. test -z "$as_dir" && as_dir=.
  2761. for ac_exec_ext in '' $ac_executable_extensions; do
  2762. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2763. ac_cv_prog_BASENAME="basename"
  2764. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2765. break 2
  2766. fi
  2767. done
  2768. done
  2769. fi
  2770. fi
  2771. BASENAME=$ac_cv_prog_BASENAME
  2772. if test -n "$BASENAME"; then
  2773. echo "$as_me:$LINENO: result: $BASENAME" >&5
  2774. echo "${ECHO_T}$BASENAME" >&6
  2775. else
  2776. echo "$as_me:$LINENO: result: no" >&5
  2777. echo "${ECHO_T}no" >&6
  2778. fi
  2779. if test "${BASENAME-x}" = "x"
  2780. then
  2781. cat << 'EOF' >&2
  2782. configure: error:
  2783. This system seems to lack a working 'basename' command.
  2784. A working 'basename' command is required to compile Eggdrop.
  2785. EOF
  2786. exit 1
  2787. fi
  2788. # Extract the first word of "objcopy", so it can be a program name with args.
  2789. set dummy objcopy; ac_word=$2
  2790. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2791. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2792. if test "${ac_cv_prog_OBJCOPY+set}" = set; then
  2793. echo $ECHO_N "(cached) $ECHO_C" >&6
  2794. else
  2795. if test -n "$OBJCOPY"; then
  2796. ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2805. ac_cv_prog_OBJCOPY="objcopy --remove-section=.note --remove-section=.comment"
  2806. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. test -z "$ac_cv_prog_OBJCOPY" && ac_cv_prog_OBJCOPY="touch"
  2812. fi
  2813. fi
  2814. OBJCOPY=$ac_cv_prog_OBJCOPY
  2815. if test -n "$OBJCOPY"; then
  2816. echo "$as_me:$LINENO: result: $OBJCOPY" >&5
  2817. echo "${ECHO_T}$OBJCOPY" >&6
  2818. else
  2819. echo "$as_me:$LINENO: result: no" >&5
  2820. echo "${ECHO_T}no" >&6
  2821. fi
  2822. # Extract the first word of "strip", so it can be a program name with args.
  2823. set dummy strip; ac_word=$2
  2824. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2825. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2826. if test "${ac_cv_prog_STRIP+set}" = set; then
  2827. echo $ECHO_N "(cached) $ECHO_C" >&6
  2828. else
  2829. if test -n "$STRIP"; then
  2830. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2831. else
  2832. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2833. for as_dir in $PATH
  2834. do
  2835. IFS=$as_save_IFS
  2836. test -z "$as_dir" && as_dir=.
  2837. for ac_exec_ext in '' $ac_executable_extensions; do
  2838. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2839. ac_cv_prog_STRIP="strip"
  2840. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2841. break 2
  2842. fi
  2843. done
  2844. done
  2845. test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="touch"
  2846. fi
  2847. fi
  2848. STRIP=$ac_cv_prog_STRIP
  2849. if test -n "$STRIP"; then
  2850. echo "$as_me:$LINENO: result: $STRIP" >&5
  2851. echo "${ECHO_T}$STRIP" >&6
  2852. else
  2853. echo "$as_me:$LINENO: result: no" >&5
  2854. echo "${ECHO_T}no" >&6
  2855. fi
  2856. # Extract the first word of "gdiff", so it can be a program name with args.
  2857. set dummy gdiff; ac_word=$2
  2858. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2859. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2860. if test "${ac_cv_prog_DIFF+set}" = set; then
  2861. echo $ECHO_N "(cached) $ECHO_C" >&6
  2862. else
  2863. if test -n "$DIFF"; then
  2864. ac_cv_prog_DIFF="$DIFF" # Let the user override the test.
  2865. else
  2866. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2867. for as_dir in $PATH
  2868. do
  2869. IFS=$as_save_IFS
  2870. test -z "$as_dir" && as_dir=.
  2871. for ac_exec_ext in '' $ac_executable_extensions; do
  2872. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2873. ac_cv_prog_DIFF="gdiff"
  2874. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2875. break 2
  2876. fi
  2877. done
  2878. done
  2879. test -z "$ac_cv_prog_DIFF" && ac_cv_prog_DIFF="diff"
  2880. fi
  2881. fi
  2882. DIFF=$ac_cv_prog_DIFF
  2883. if test -n "$DIFF"; then
  2884. echo "$as_me:$LINENO: result: $DIFF" >&5
  2885. echo "${ECHO_T}$DIFF" >&6
  2886. else
  2887. echo "$as_me:$LINENO: result: no" >&5
  2888. echo "${ECHO_T}no" >&6
  2889. fi
  2890. # Extract the first word of "uname", so it can be a program name with args.
  2891. set dummy uname; ac_word=$2
  2892. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2893. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2894. if test "${ac_cv_prog_UNAME+set}" = set; then
  2895. echo $ECHO_N "(cached) $ECHO_C" >&6
  2896. else
  2897. if test -n "$UNAME"; then
  2898. ac_cv_prog_UNAME="$UNAME" # Let the user override the test.
  2899. else
  2900. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2901. for as_dir in $PATH
  2902. do
  2903. IFS=$as_save_IFS
  2904. test -z "$as_dir" && as_dir=.
  2905. for ac_exec_ext in '' $ac_executable_extensions; do
  2906. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2907. ac_cv_prog_UNAME="uname"
  2908. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2909. break 2
  2910. fi
  2911. done
  2912. done
  2913. fi
  2914. fi
  2915. UNAME=$ac_cv_prog_UNAME
  2916. if test -n "$UNAME"; then
  2917. echo "$as_me:$LINENO: result: $UNAME" >&5
  2918. echo "${ECHO_T}$UNAME" >&6
  2919. else
  2920. echo "$as_me:$LINENO: result: no" >&5
  2921. echo "${ECHO_T}no" >&6
  2922. fi
  2923. # Extract the first word of "ccache", so it can be a program name with args.
  2924. set dummy ccache; ac_word=$2
  2925. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2926. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2927. if test "${ac_cv_prog_CCACHE+set}" = set; then
  2928. echo $ECHO_N "(cached) $ECHO_C" >&6
  2929. else
  2930. if test -n "$CCACHE"; then
  2931. ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
  2932. else
  2933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2934. for as_dir in $PATH
  2935. do
  2936. IFS=$as_save_IFS
  2937. test -z "$as_dir" && as_dir=.
  2938. for ac_exec_ext in '' $ac_executable_extensions; do
  2939. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2940. ac_cv_prog_CCACHE="ccache"
  2941. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2942. break 2
  2943. fi
  2944. done
  2945. done
  2946. fi
  2947. fi
  2948. CCACHE=$ac_cv_prog_CCACHE
  2949. if test -n "$CCACHE"; then
  2950. echo "$as_me:$LINENO: result: $CCACHE" >&5
  2951. echo "${ECHO_T}$CCACHE" >&6
  2952. else
  2953. echo "$as_me:$LINENO: result: no" >&5
  2954. echo "${ECHO_T}no" >&6
  2955. fi
  2956. # Extract the first word of "distcc", so it can be a program name with args.
  2957. set dummy distcc; ac_word=$2
  2958. echo "$as_me:$LINENO: checking for $ac_word" >&5
  2959. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  2960. if test "${ac_cv_prog_DISTCC+set}" = set; then
  2961. echo $ECHO_N "(cached) $ECHO_C" >&6
  2962. else
  2963. if test -n "$DISTCC"; then
  2964. ac_cv_prog_DISTCC="$DISTCC" # Let the user override the test.
  2965. else
  2966. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2967. for as_dir in $PATH
  2968. do
  2969. IFS=$as_save_IFS
  2970. test -z "$as_dir" && as_dir=.
  2971. for ac_exec_ext in '' $ac_executable_extensions; do
  2972. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2973. ac_cv_prog_DISTCC="distcc"
  2974. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  2975. break 2
  2976. fi
  2977. done
  2978. done
  2979. fi
  2980. fi
  2981. DISTCC=$ac_cv_prog_DISTCC
  2982. if test -n "$DISTCC"; then
  2983. echo "$as_me:$LINENO: result: $DISTCC" >&5
  2984. echo "${ECHO_T}$DISTCC" >&6
  2985. else
  2986. echo "$as_me:$LINENO: result: no" >&5
  2987. echo "${ECHO_T}no" >&6
  2988. fi
  2989. # Test the os and set the module linking settings
  2990. EGG_CYGWIN=no
  2991. echo "$as_me:$LINENO: checking system type" >&5
  2992. echo $ECHO_N "checking system type... $ECHO_C" >&6
  2993. if test "${egg_cv_var_system_type+set}" = set; then
  2994. echo $ECHO_N "(cached) $ECHO_C" >&6
  2995. else
  2996. egg_cv_var_system_type=`$UNAME -s`
  2997. fi
  2998. echo "$as_me:$LINENO: result: $egg_cv_var_system_type" >&5
  2999. echo "${ECHO_T}$egg_cv_var_system_type" >&6
  3000. echo "$as_me:$LINENO: checking system release" >&5
  3001. echo $ECHO_N "checking system release... $ECHO_C" >&6
  3002. if test "${egg_cv_var_system_release+set}" = set; then
  3003. echo $ECHO_N "(cached) $ECHO_C" >&6
  3004. else
  3005. egg_cv_var_system_release=`$UNAME -r`
  3006. fi
  3007. echo "$as_me:$LINENO: result: $egg_cv_var_system_release" >&5
  3008. echo "${ECHO_T}$egg_cv_var_system_release" >&6
  3009. echo "$as_me:$LINENO: checking system machine" >&5
  3010. echo $ECHO_N "checking system machine... $ECHO_C" >&6
  3011. if test "${egg_cv_var_system_machine+set}" = set; then
  3012. echo $ECHO_N "(cached) $ECHO_C" >&6
  3013. else
  3014. egg_cv_var_system_machine=`$UNAME -m`
  3015. fi
  3016. echo "$as_me:$LINENO: result: $egg_cv_var_system_machine" >&5
  3017. echo "${ECHO_T}$egg_cv_var_system_machine" >&6
  3018. case "$egg_cv_var_system_machine" in
  3019. i*)
  3020. CXX="$CXX -march=i486"
  3021. ;;
  3022. *)
  3023. ;;
  3024. esac
  3025. case "$egg_cv_var_system_type" in
  3026. BSD/OS)
  3027. ;;
  3028. CYGWI*)
  3029. echo "$as_me:$LINENO: checking how to access the Win32 API" >&5
  3030. echo $ECHO_N "checking how to access the Win32 API... $ECHO_C" >&6
  3031. WIN32FLAGS=
  3032. cat >conftest.$ac_ext <<_ACEOF
  3033. /* confdefs.h. */
  3034. _ACEOF
  3035. cat confdefs.h >>conftest.$ac_ext
  3036. cat >>conftest.$ac_ext <<_ACEOF
  3037. /* end confdefs.h. */
  3038. int
  3039. main ()
  3040. {
  3041. #ifndef WIN32
  3042. # ifndef _WIN32
  3043. # error WIN32 or _WIN32 not defined
  3044. # endif
  3045. #endif
  3046. ;
  3047. return 0;
  3048. }
  3049. _ACEOF
  3050. rm -f conftest.$ac_objext
  3051. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3052. (eval $ac_compile) 2>conftest.er1
  3053. ac_status=$?
  3054. grep -v '^ *+' conftest.er1 >conftest.err
  3055. rm -f conftest.er1
  3056. cat conftest.err >&5
  3057. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3058. (exit $ac_status); } &&
  3059. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3060. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3061. (eval $ac_try) 2>&5
  3062. ac_status=$?
  3063. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3064. (exit $ac_status); }; } &&
  3065. { ac_try='test -s conftest.$ac_objext'
  3066. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3067. (eval $ac_try) 2>&5
  3068. ac_status=$?
  3069. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3070. (exit $ac_status); }; }; then
  3071. echo "$as_me:$LINENO: result: present by default" >&5
  3072. echo "${ECHO_T}present by default" >&6
  3073. else
  3074. echo "$as_me: failed program was:" >&5
  3075. sed 's/^/| /' conftest.$ac_ext >&5
  3076. ac_compile_save="$ac_compile"
  3077. save_CXX="$CXX"
  3078. ac_compile="$ac_compile -mwin32"
  3079. CXX="$CXX -mwin32"
  3080. cat >conftest.$ac_ext <<_ACEOF
  3081. /* confdefs.h. */
  3082. _ACEOF
  3083. cat confdefs.h >>conftest.$ac_ext
  3084. cat >>conftest.$ac_ext <<_ACEOF
  3085. /* end confdefs.h. */
  3086. int
  3087. main ()
  3088. {
  3089. #ifndef WIN32
  3090. # ifndef _WIN32
  3091. # error WIN32 or _WIN32 not defined
  3092. # endif
  3093. #endif
  3094. ;
  3095. return 0;
  3096. }
  3097. _ACEOF
  3098. rm -f conftest.$ac_objext
  3099. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3100. (eval $ac_compile) 2>conftest.er1
  3101. ac_status=$?
  3102. grep -v '^ *+' conftest.er1 >conftest.err
  3103. rm -f conftest.er1
  3104. cat conftest.err >&5
  3105. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3106. (exit $ac_status); } &&
  3107. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3108. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3109. (eval $ac_try) 2>&5
  3110. ac_status=$?
  3111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3112. (exit $ac_status); }; } &&
  3113. { ac_try='test -s conftest.$ac_objext'
  3114. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3115. (eval $ac_try) 2>&5
  3116. ac_status=$?
  3117. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3118. (exit $ac_status); }; }; then
  3119. echo "$as_me:$LINENO: result: found via -mwin32" >&5
  3120. echo "${ECHO_T}found via -mwin32" >&6
  3121. ac_compile="$ac_compile_save"
  3122. CXX="$save_CC"
  3123. WIN32FLAGS="-mwin32"
  3124. else
  3125. echo "$as_me: failed program was:" >&5
  3126. sed 's/^/| /' conftest.$ac_ext >&5
  3127. ac_compile="$ac_compile_save"
  3128. CXX="$save_CC"
  3129. echo "$as_me:$LINENO: result: not found" >&5
  3130. echo "${ECHO_T}not found" >&6
  3131. fi
  3132. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3133. fi
  3134. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3135. CXX="$CXX $WIN32FLAGS"
  3136. EGG_CYGWIN="yes"
  3137. if test $EGG_CYGWIN = "yes"; then
  3138. echo "$as_me:$LINENO: checking for /usr/lib/binmode.o" >&5
  3139. echo $ECHO_N "checking for /usr/lib/binmode.o... $ECHO_C" >&6
  3140. if test -r /usr/lib/binmode.o; then
  3141. echo "$as_me:$LINENO: result: yes" >&5
  3142. echo "${ECHO_T}yes" >&6
  3143. LIBS="$LIBS /usr/lib/binmode.o"
  3144. else
  3145. echo "$as_me:$LINENO: result: no" >&5
  3146. echo "${ECHO_T}no" >&6
  3147. { echo "$as_me:$LINENO: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&5
  3148. echo "$as_me: WARNING: Make sure the directory Eggdrop is installed into is mounted in binary mode." >&2;}
  3149. fi
  3150. fi
  3151. cat >>confdefs.h <<\_ACEOF
  3152. #define CYGWIN_HACKS 1
  3153. _ACEOF
  3154. cat >>confdefs.h <<\_ACEOF
  3155. #define WIN32_LEAN_AND_MEAN 1
  3156. _ACEOF
  3157. ;;
  3158. IRIX)
  3159. ;;
  3160. Ultrix)
  3161. SHELL=/bin/sh5
  3162. ;;
  3163. SINIX*)
  3164. ;;
  3165. BeOS)
  3166. ;;
  3167. Linux)
  3168. ;;
  3169. Lynx)
  3170. ;;
  3171. QNX)
  3172. ;;
  3173. OSF1)
  3174. case "`echo $egg_cv_var_system_release | cut -d . -f 1`" in
  3175. V*)
  3176. if test "$AWK" = "gawk"
  3177. then
  3178. AWK=awk
  3179. fi
  3180. ;;
  3181. 1.0|1.1|1.2)
  3182. cat >>confdefs.h <<\_ACEOF
  3183. #define OSF1_HACKS 1
  3184. _ACEOF
  3185. ;;
  3186. 1.*)
  3187. cat >>confdefs.h <<\_ACEOF
  3188. #define OSF1_HACKS 1
  3189. _ACEOF
  3190. ;;
  3191. *)
  3192. ;;
  3193. esac
  3194. cat >>confdefs.h <<\_ACEOF
  3195. #define STOP_UAC 1
  3196. _ACEOF
  3197. cat >>confdefs.h <<\_ACEOF
  3198. #define BROKEN_SNPRINTF 1
  3199. _ACEOF
  3200. ;;
  3201. SunOS)
  3202. ;;
  3203. *BSD)
  3204. # FreeBSD/OpenBSD/NetBSD
  3205. ;;
  3206. *)
  3207. echo "$as_me:$LINENO: checking if system is Mach based" >&5
  3208. echo $ECHO_N "checking if system is Mach based... $ECHO_C" >&6
  3209. if test -r /mach
  3210. then
  3211. echo "$as_me:$LINENO: result: yes" >&5
  3212. echo "${ECHO_T}yes" >&6
  3213. cat >>confdefs.h <<\_ACEOF
  3214. #define BORGCUBES 1
  3215. _ACEOF
  3216. else
  3217. echo "$as_me:$LINENO: result: no" >&5
  3218. echo "${ECHO_T}no" >&6
  3219. echo "$as_me:$LINENO: checking if system is QNX" >&5
  3220. echo $ECHO_N "checking if system is QNX... $ECHO_C" >&6
  3221. if test -r /cmds
  3222. then
  3223. echo "$as_me:$LINENO: result: yes" >&5
  3224. echo "${ECHO_T}yes" >&6
  3225. else
  3226. echo "$as_me:$LINENO: result: no" >&5
  3227. echo "${ECHO_T}no" >&6
  3228. echo "$as_me:$LINENO: result: Something unknown!" >&5
  3229. echo "${ECHO_T}Something unknown!" >&6
  3230. echo "$as_me:$LINENO: result: If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&5
  3231. echo "${ECHO_T}If you get dynamic modules to work, be sure to let the devel team know HOW :)" >&6
  3232. fi
  3233. fi
  3234. ;;
  3235. esac
  3236. # Check for IPv6 support
  3237. #EGG_IPV6_SUPPORTED
  3238. echo "$as_me:$LINENO: checking whether or not you disabled IPv6 support" >&5
  3239. echo $ECHO_N "checking whether or not you disabled IPv6 support... $ECHO_C" >&6
  3240. # Check whether --enable-ipv6 or --disable-ipv6 was given.
  3241. if test "${enable_ipv6+set}" = set; then
  3242. enableval="$enable_ipv6"
  3243. ac_cv_dipv6="yes"
  3244. echo "$as_me:$LINENO: result: yes" >&5
  3245. echo "${ECHO_T}yes" >&6
  3246. else
  3247. ac_cv_dipv6="no"
  3248. if test "$egg_cv_ipv6_supported" = "no"; then
  3249. ac_cv_dipv6="no"
  3250. fi
  3251. echo "$as_me:$LINENO: result: $ac_cv_dipv6" >&5
  3252. echo "${ECHO_T}$ac_cv_dipv6" >&6
  3253. fi;
  3254. if ! test "$EGG_CYGWIN" = "yes"; then
  3255. if test "$ac_cv_dipv6" = "no"; then
  3256. cat >>confdefs.h <<\_ACEOF
  3257. #define USE_IPV6 1
  3258. _ACEOF
  3259. fi
  3260. fi
  3261. echo "$as_me:$LINENO: checking for socklen_t" >&5
  3262. echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
  3263. if test "${egg_cv_socklen_t+set}" = set; then
  3264. echo $ECHO_N "(cached) $ECHO_C" >&6
  3265. else
  3266. if test "$cross_compiling" = yes; then
  3267. egg_cv_socklen_t=no
  3268. else
  3269. cat >conftest.$ac_ext <<_ACEOF
  3270. /* confdefs.h. */
  3271. _ACEOF
  3272. cat confdefs.h >>conftest.$ac_ext
  3273. cat >>conftest.$ac_ext <<_ACEOF
  3274. /* end confdefs.h. */
  3275. #include <unistd.h>
  3276. #include <sys/types.h>
  3277. #include <sys/socket.h>
  3278. #include <netinet/in.h>
  3279. #include <arpa/inet.h>
  3280. int main()
  3281. {
  3282. socklen_t test = sizeof(int);
  3283. return 0;
  3284. }
  3285. _ACEOF
  3286. rm -f conftest$ac_exeext
  3287. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3288. (eval $ac_link) 2>&5
  3289. ac_status=$?
  3290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3291. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3292. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3293. (eval $ac_try) 2>&5
  3294. ac_status=$?
  3295. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3296. (exit $ac_status); }; }; then
  3297. egg_cv_socklen_t=yes
  3298. else
  3299. echo "$as_me: program exited with status $ac_status" >&5
  3300. echo "$as_me: failed program was:" >&5
  3301. sed 's/^/| /' conftest.$ac_ext >&5
  3302. ( exit $ac_status )
  3303. egg_cv_socklen_t=no
  3304. fi
  3305. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3306. fi
  3307. fi
  3308. if test "$egg_cv_socklen_t" = "yes"; then
  3309. cat >>confdefs.h <<\_ACEOF
  3310. #define HAVE_SOCKLEN_T 1
  3311. _ACEOF
  3312. echo "$as_me:$LINENO: result: yes" >&5
  3313. echo "${ECHO_T}yes" >&6
  3314. else
  3315. echo "$as_me:$LINENO: result: no" >&5
  3316. echo "${ECHO_T}no" >&6
  3317. fi
  3318. # Check for inconsistent random() functions
  3319. echo "$as_me:$LINENO: checking for random limit" >&5
  3320. echo $ECHO_N "checking for random limit... $ECHO_C" >&6
  3321. case "$egg_cv_var_system_type" in
  3322. SunOS) RMAX=0x7FFFFFFF
  3323. ;;
  3324. *) RMAX=RAND_MAX
  3325. ;;
  3326. esac
  3327. echo "$as_me:$LINENO: result: $RMAX" >&5
  3328. echo "${ECHO_T}$RMAX" >&6
  3329. cat >>confdefs.h <<_ACEOF
  3330. #define RANDOM_MAX $RMAX
  3331. _ACEOF
  3332. # Create static binaries
  3333. if test -z "$no_static"
  3334. then
  3335. if test -n "$GXX"
  3336. then
  3337. echo "$as_me:$LINENO: checking whether the compiler understands -static" >&5
  3338. echo $ECHO_N "checking whether the compiler understands -static... $ECHO_C" >&6
  3339. if test "${egg_cv_var_ccstatic+set}" = set; then
  3340. echo $ECHO_N "(cached) $ECHO_C" >&6
  3341. else
  3342. ac_old_CXX="$CXX"
  3343. CXX="$CXX -static"
  3344. cat >conftest.$ac_ext <<_ACEOF
  3345. /* confdefs.h. */
  3346. _ACEOF
  3347. cat confdefs.h >>conftest.$ac_ext
  3348. cat >>conftest.$ac_ext <<_ACEOF
  3349. /* end confdefs.h. */
  3350. int
  3351. main ()
  3352. {
  3353. ;
  3354. return 0;
  3355. }
  3356. _ACEOF
  3357. rm -f conftest.$ac_objext
  3358. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3359. (eval $ac_compile) 2>conftest.er1
  3360. ac_status=$?
  3361. grep -v '^ *+' conftest.er1 >conftest.err
  3362. rm -f conftest.er1
  3363. cat conftest.err >&5
  3364. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3365. (exit $ac_status); } &&
  3366. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3367. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3368. (eval $ac_try) 2>&5
  3369. ac_status=$?
  3370. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3371. (exit $ac_status); }; } &&
  3372. { ac_try='test -s conftest.$ac_objext'
  3373. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3374. (eval $ac_try) 2>&5
  3375. ac_status=$?
  3376. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3377. (exit $ac_status); }; }; then
  3378. egg_cv_var_ccstatic="yes"
  3379. else
  3380. echo "$as_me: failed program was:" >&5
  3381. sed 's/^/| /' conftest.$ac_ext >&5
  3382. egg_cv_var_ccstatic="no"
  3383. fi
  3384. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3385. CXX="$ac_old_CXX"
  3386. fi
  3387. echo "$as_me:$LINENO: result: $egg_cv_var_ccstatic" >&5
  3388. echo "${ECHO_T}$egg_cv_var_ccstatic" >&6
  3389. if test "$egg_cv_var_ccstatic" = "yes"
  3390. then
  3391. CCDEBUG="$CXX"
  3392. CXX="$CXX -static"
  3393. else
  3394. cat << 'EOF' >&2
  3395. configure: error:
  3396. Your C compiler does not support -static.
  3397. This compile flag is required for the botpack.
  3398. EOF
  3399. exit 1
  3400. fi
  3401. fi
  3402. fi
  3403. #checkpoint
  3404. cat >confcache <<\_ACEOF
  3405. # This file is a shell script that caches the results of configure
  3406. # tests run on this system so they can be shared between configure
  3407. # scripts and configure runs, see configure's option --config-cache.
  3408. # It is not useful on other systems. If it contains results you don't
  3409. # want to keep, you may remove or edit it.
  3410. #
  3411. # config.status only pays attention to the cache file if you give it
  3412. # the --recheck option to rerun configure.
  3413. #
  3414. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  3415. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  3416. # following values.
  3417. _ACEOF
  3418. # The following way of writing the cache mishandles newlines in values,
  3419. # but we know of no workaround that is simple, portable, and efficient.
  3420. # So, don't put newlines in cache variables' values.
  3421. # Ultrix sh set writes to stderr and can't be redirected directly,
  3422. # and sets the high bit in the cache file unless we assign to the vars.
  3423. {
  3424. (set) 2>&1 |
  3425. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  3426. *ac_space=\ *)
  3427. # `set' does not quote correctly, so add quotes (double-quote
  3428. # substitution turns \\\\ into \\, and sed turns \\ into \).
  3429. sed -n \
  3430. "s/'/'\\\\''/g;
  3431. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  3432. ;;
  3433. *)
  3434. # `set' quotes correctly as required by POSIX, so do not add quotes.
  3435. sed -n \
  3436. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  3437. ;;
  3438. esac;
  3439. } |
  3440. sed '
  3441. t clear
  3442. : clear
  3443. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  3444. t end
  3445. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  3446. : end' >>confcache
  3447. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  3448. if test -w $cache_file; then
  3449. test "x$cache_file" != "x/dev/null"
  3450. cat confcache >$cache_file
  3451. else
  3452. echo "not updating unwritable cache $cache_file"
  3453. fi
  3454. fi
  3455. rm -f confcache
  3456. # Checks for system libraries
  3457. echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
  3458. echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
  3459. if test "${ac_cv_lib_socket_socket+set}" = set; then
  3460. echo $ECHO_N "(cached) $ECHO_C" >&6
  3461. else
  3462. ac_check_lib_save_LIBS=$LIBS
  3463. LIBS="-lsocket $LIBS"
  3464. cat >conftest.$ac_ext <<_ACEOF
  3465. /* confdefs.h. */
  3466. _ACEOF
  3467. cat confdefs.h >>conftest.$ac_ext
  3468. cat >>conftest.$ac_ext <<_ACEOF
  3469. /* end confdefs.h. */
  3470. /* Override any gcc2 internal prototype to avoid an error. */
  3471. #ifdef __cplusplus
  3472. extern "C"
  3473. #endif
  3474. /* We use char because int might match the return type of a gcc2
  3475. builtin and then its argument prototype would still apply. */
  3476. char socket ();
  3477. int
  3478. main ()
  3479. {
  3480. socket ();
  3481. ;
  3482. return 0;
  3483. }
  3484. _ACEOF
  3485. rm -f conftest.$ac_objext conftest$ac_exeext
  3486. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3487. (eval $ac_link) 2>conftest.er1
  3488. ac_status=$?
  3489. grep -v '^ *+' conftest.er1 >conftest.err
  3490. rm -f conftest.er1
  3491. cat conftest.err >&5
  3492. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3493. (exit $ac_status); } &&
  3494. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3495. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3496. (eval $ac_try) 2>&5
  3497. ac_status=$?
  3498. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3499. (exit $ac_status); }; } &&
  3500. { ac_try='test -s conftest$ac_exeext'
  3501. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3502. (eval $ac_try) 2>&5
  3503. ac_status=$?
  3504. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3505. (exit $ac_status); }; }; then
  3506. ac_cv_lib_socket_socket=yes
  3507. else
  3508. echo "$as_me: failed program was:" >&5
  3509. sed 's/^/| /' conftest.$ac_ext >&5
  3510. ac_cv_lib_socket_socket=no
  3511. fi
  3512. rm -f conftest.err conftest.$ac_objext \
  3513. conftest$ac_exeext conftest.$ac_ext
  3514. LIBS=$ac_check_lib_save_LIBS
  3515. fi
  3516. echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
  3517. echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
  3518. if test $ac_cv_lib_socket_socket = yes; then
  3519. cat >>confdefs.h <<_ACEOF
  3520. #define HAVE_LIBSOCKET 1
  3521. _ACEOF
  3522. LIBS="-lsocket $LIBS"
  3523. fi
  3524. # AC_CHECK_LIB(nsl, connect)
  3525. echo "$as_me:$LINENO: checking for gethostbyname in -ldns" >&5
  3526. echo $ECHO_N "checking for gethostbyname in -ldns... $ECHO_C" >&6
  3527. if test "${ac_cv_lib_dns_gethostbyname+set}" = set; then
  3528. echo $ECHO_N "(cached) $ECHO_C" >&6
  3529. else
  3530. ac_check_lib_save_LIBS=$LIBS
  3531. LIBS="-ldns $LIBS"
  3532. cat >conftest.$ac_ext <<_ACEOF
  3533. /* confdefs.h. */
  3534. _ACEOF
  3535. cat confdefs.h >>conftest.$ac_ext
  3536. cat >>conftest.$ac_ext <<_ACEOF
  3537. /* end confdefs.h. */
  3538. /* Override any gcc2 internal prototype to avoid an error. */
  3539. #ifdef __cplusplus
  3540. extern "C"
  3541. #endif
  3542. /* We use char because int might match the return type of a gcc2
  3543. builtin and then its argument prototype would still apply. */
  3544. char gethostbyname ();
  3545. int
  3546. main ()
  3547. {
  3548. gethostbyname ();
  3549. ;
  3550. return 0;
  3551. }
  3552. _ACEOF
  3553. rm -f conftest.$ac_objext conftest$ac_exeext
  3554. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3555. (eval $ac_link) 2>conftest.er1
  3556. ac_status=$?
  3557. grep -v '^ *+' conftest.er1 >conftest.err
  3558. rm -f conftest.er1
  3559. cat conftest.err >&5
  3560. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3561. (exit $ac_status); } &&
  3562. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3563. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3564. (eval $ac_try) 2>&5
  3565. ac_status=$?
  3566. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3567. (exit $ac_status); }; } &&
  3568. { ac_try='test -s conftest$ac_exeext'
  3569. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3570. (eval $ac_try) 2>&5
  3571. ac_status=$?
  3572. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3573. (exit $ac_status); }; }; then
  3574. ac_cv_lib_dns_gethostbyname=yes
  3575. else
  3576. echo "$as_me: failed program was:" >&5
  3577. sed 's/^/| /' conftest.$ac_ext >&5
  3578. ac_cv_lib_dns_gethostbyname=no
  3579. fi
  3580. rm -f conftest.err conftest.$ac_objext \
  3581. conftest$ac_exeext conftest.$ac_ext
  3582. LIBS=$ac_check_lib_save_LIBS
  3583. fi
  3584. echo "$as_me:$LINENO: result: $ac_cv_lib_dns_gethostbyname" >&5
  3585. echo "${ECHO_T}$ac_cv_lib_dns_gethostbyname" >&6
  3586. if test $ac_cv_lib_dns_gethostbyname = yes; then
  3587. cat >>confdefs.h <<_ACEOF
  3588. #define HAVE_LIBDNS 1
  3589. _ACEOF
  3590. LIBS="-ldns $LIBS"
  3591. fi
  3592. # AC_CHECK_LIB(z, gzopen, ZLIB="-lz")
  3593. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lssl -lcrypto", SSL="", -lcrypto)
  3594. # AC_CHECK_LIB(ssl, SSL_accept, SSL="-lcrypto", SSL="", -lcrypto)
  3595. # This is needed for Tcl libraries compiled with thread support
  3596. # AC_CHECK_LIB(pthread, pthread_mutex_init, [dnl
  3597. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3598. # ac_cv_lib_pthread="-lpthread"], [dnl
  3599. # AC_CHECK_LIB(pthread, __pthread_mutex_init, [dnl
  3600. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3601. # ac_cv_lib_pthread="-lpthread"], [dnl
  3602. # AC_CHECK_LIB(pthreads, pthread_mutex_init, [dnl
  3603. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3604. # ac_cv_lib_pthread="-lpthreads"], [dnl
  3605. # AC_CHECK_FUNC(pthread_mutex_init, [dnl
  3606. # ac_cv_lib_pthread_pthread_mutex_init=yes
  3607. # ac_cv_lib_pthread=""],
  3608. # ac_cv_lib_pthread_pthread_mutex_init=no)])])])
  3609. # Checks for header files
  3610. ac_header_dirent=no
  3611. for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
  3612. as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
  3613. echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
  3614. echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
  3615. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3616. echo $ECHO_N "(cached) $ECHO_C" >&6
  3617. else
  3618. cat >conftest.$ac_ext <<_ACEOF
  3619. /* confdefs.h. */
  3620. _ACEOF
  3621. cat confdefs.h >>conftest.$ac_ext
  3622. cat >>conftest.$ac_ext <<_ACEOF
  3623. /* end confdefs.h. */
  3624. #include <sys/types.h>
  3625. #include <$ac_hdr>
  3626. int
  3627. main ()
  3628. {
  3629. if ((DIR *) 0)
  3630. return 0;
  3631. ;
  3632. return 0;
  3633. }
  3634. _ACEOF
  3635. rm -f conftest.$ac_objext
  3636. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3637. (eval $ac_compile) 2>conftest.er1
  3638. ac_status=$?
  3639. grep -v '^ *+' conftest.er1 >conftest.err
  3640. rm -f conftest.er1
  3641. cat conftest.err >&5
  3642. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3643. (exit $ac_status); } &&
  3644. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3645. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3646. (eval $ac_try) 2>&5
  3647. ac_status=$?
  3648. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3649. (exit $ac_status); }; } &&
  3650. { ac_try='test -s conftest.$ac_objext'
  3651. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3652. (eval $ac_try) 2>&5
  3653. ac_status=$?
  3654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3655. (exit $ac_status); }; }; then
  3656. eval "$as_ac_Header=yes"
  3657. else
  3658. echo "$as_me: failed program was:" >&5
  3659. sed 's/^/| /' conftest.$ac_ext >&5
  3660. eval "$as_ac_Header=no"
  3661. fi
  3662. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3663. fi
  3664. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3665. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3666. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3667. cat >>confdefs.h <<_ACEOF
  3668. #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
  3669. _ACEOF
  3670. ac_header_dirent=$ac_hdr; break
  3671. fi
  3672. done
  3673. # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
  3674. if test $ac_header_dirent = dirent.h; then
  3675. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  3676. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  3677. if test "${ac_cv_search_opendir+set}" = set; then
  3678. echo $ECHO_N "(cached) $ECHO_C" >&6
  3679. else
  3680. ac_func_search_save_LIBS=$LIBS
  3681. ac_cv_search_opendir=no
  3682. cat >conftest.$ac_ext <<_ACEOF
  3683. /* confdefs.h. */
  3684. _ACEOF
  3685. cat confdefs.h >>conftest.$ac_ext
  3686. cat >>conftest.$ac_ext <<_ACEOF
  3687. /* end confdefs.h. */
  3688. /* Override any gcc2 internal prototype to avoid an error. */
  3689. #ifdef __cplusplus
  3690. extern "C"
  3691. #endif
  3692. /* We use char because int might match the return type of a gcc2
  3693. builtin and then its argument prototype would still apply. */
  3694. char opendir ();
  3695. int
  3696. main ()
  3697. {
  3698. opendir ();
  3699. ;
  3700. return 0;
  3701. }
  3702. _ACEOF
  3703. rm -f conftest.$ac_objext conftest$ac_exeext
  3704. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3705. (eval $ac_link) 2>conftest.er1
  3706. ac_status=$?
  3707. grep -v '^ *+' conftest.er1 >conftest.err
  3708. rm -f conftest.er1
  3709. cat conftest.err >&5
  3710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3711. (exit $ac_status); } &&
  3712. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3714. (eval $ac_try) 2>&5
  3715. ac_status=$?
  3716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3717. (exit $ac_status); }; } &&
  3718. { ac_try='test -s conftest$ac_exeext'
  3719. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3720. (eval $ac_try) 2>&5
  3721. ac_status=$?
  3722. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3723. (exit $ac_status); }; }; then
  3724. ac_cv_search_opendir="none required"
  3725. else
  3726. echo "$as_me: failed program was:" >&5
  3727. sed 's/^/| /' conftest.$ac_ext >&5
  3728. fi
  3729. rm -f conftest.err conftest.$ac_objext \
  3730. conftest$ac_exeext conftest.$ac_ext
  3731. if test "$ac_cv_search_opendir" = no; then
  3732. for ac_lib in dir; do
  3733. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3734. cat >conftest.$ac_ext <<_ACEOF
  3735. /* confdefs.h. */
  3736. _ACEOF
  3737. cat confdefs.h >>conftest.$ac_ext
  3738. cat >>conftest.$ac_ext <<_ACEOF
  3739. /* end confdefs.h. */
  3740. /* Override any gcc2 internal prototype to avoid an error. */
  3741. #ifdef __cplusplus
  3742. extern "C"
  3743. #endif
  3744. /* We use char because int might match the return type of a gcc2
  3745. builtin and then its argument prototype would still apply. */
  3746. char opendir ();
  3747. int
  3748. main ()
  3749. {
  3750. opendir ();
  3751. ;
  3752. return 0;
  3753. }
  3754. _ACEOF
  3755. rm -f conftest.$ac_objext conftest$ac_exeext
  3756. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3757. (eval $ac_link) 2>conftest.er1
  3758. ac_status=$?
  3759. grep -v '^ *+' conftest.er1 >conftest.err
  3760. rm -f conftest.er1
  3761. cat conftest.err >&5
  3762. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3763. (exit $ac_status); } &&
  3764. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3765. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3766. (eval $ac_try) 2>&5
  3767. ac_status=$?
  3768. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3769. (exit $ac_status); }; } &&
  3770. { ac_try='test -s conftest$ac_exeext'
  3771. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3772. (eval $ac_try) 2>&5
  3773. ac_status=$?
  3774. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3775. (exit $ac_status); }; }; then
  3776. ac_cv_search_opendir="-l$ac_lib"
  3777. break
  3778. else
  3779. echo "$as_me: failed program was:" >&5
  3780. sed 's/^/| /' conftest.$ac_ext >&5
  3781. fi
  3782. rm -f conftest.err conftest.$ac_objext \
  3783. conftest$ac_exeext conftest.$ac_ext
  3784. done
  3785. fi
  3786. LIBS=$ac_func_search_save_LIBS
  3787. fi
  3788. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  3789. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  3790. if test "$ac_cv_search_opendir" != no; then
  3791. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  3792. fi
  3793. else
  3794. echo "$as_me:$LINENO: checking for library containing opendir" >&5
  3795. echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
  3796. if test "${ac_cv_search_opendir+set}" = set; then
  3797. echo $ECHO_N "(cached) $ECHO_C" >&6
  3798. else
  3799. ac_func_search_save_LIBS=$LIBS
  3800. ac_cv_search_opendir=no
  3801. cat >conftest.$ac_ext <<_ACEOF
  3802. /* confdefs.h. */
  3803. _ACEOF
  3804. cat confdefs.h >>conftest.$ac_ext
  3805. cat >>conftest.$ac_ext <<_ACEOF
  3806. /* end confdefs.h. */
  3807. /* Override any gcc2 internal prototype to avoid an error. */
  3808. #ifdef __cplusplus
  3809. extern "C"
  3810. #endif
  3811. /* We use char because int might match the return type of a gcc2
  3812. builtin and then its argument prototype would still apply. */
  3813. char opendir ();
  3814. int
  3815. main ()
  3816. {
  3817. opendir ();
  3818. ;
  3819. return 0;
  3820. }
  3821. _ACEOF
  3822. rm -f conftest.$ac_objext conftest$ac_exeext
  3823. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3824. (eval $ac_link) 2>conftest.er1
  3825. ac_status=$?
  3826. grep -v '^ *+' conftest.er1 >conftest.err
  3827. rm -f conftest.er1
  3828. cat conftest.err >&5
  3829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3830. (exit $ac_status); } &&
  3831. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3832. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3833. (eval $ac_try) 2>&5
  3834. ac_status=$?
  3835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3836. (exit $ac_status); }; } &&
  3837. { ac_try='test -s conftest$ac_exeext'
  3838. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3839. (eval $ac_try) 2>&5
  3840. ac_status=$?
  3841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3842. (exit $ac_status); }; }; then
  3843. ac_cv_search_opendir="none required"
  3844. else
  3845. echo "$as_me: failed program was:" >&5
  3846. sed 's/^/| /' conftest.$ac_ext >&5
  3847. fi
  3848. rm -f conftest.err conftest.$ac_objext \
  3849. conftest$ac_exeext conftest.$ac_ext
  3850. if test "$ac_cv_search_opendir" = no; then
  3851. for ac_lib in x; do
  3852. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  3853. cat >conftest.$ac_ext <<_ACEOF
  3854. /* confdefs.h. */
  3855. _ACEOF
  3856. cat confdefs.h >>conftest.$ac_ext
  3857. cat >>conftest.$ac_ext <<_ACEOF
  3858. /* end confdefs.h. */
  3859. /* Override any gcc2 internal prototype to avoid an error. */
  3860. #ifdef __cplusplus
  3861. extern "C"
  3862. #endif
  3863. /* We use char because int might match the return type of a gcc2
  3864. builtin and then its argument prototype would still apply. */
  3865. char opendir ();
  3866. int
  3867. main ()
  3868. {
  3869. opendir ();
  3870. ;
  3871. return 0;
  3872. }
  3873. _ACEOF
  3874. rm -f conftest.$ac_objext conftest$ac_exeext
  3875. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3876. (eval $ac_link) 2>conftest.er1
  3877. ac_status=$?
  3878. grep -v '^ *+' conftest.er1 >conftest.err
  3879. rm -f conftest.er1
  3880. cat conftest.err >&5
  3881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3882. (exit $ac_status); } &&
  3883. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3884. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3885. (eval $ac_try) 2>&5
  3886. ac_status=$?
  3887. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3888. (exit $ac_status); }; } &&
  3889. { ac_try='test -s conftest$ac_exeext'
  3890. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3891. (eval $ac_try) 2>&5
  3892. ac_status=$?
  3893. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3894. (exit $ac_status); }; }; then
  3895. ac_cv_search_opendir="-l$ac_lib"
  3896. break
  3897. else
  3898. echo "$as_me: failed program was:" >&5
  3899. sed 's/^/| /' conftest.$ac_ext >&5
  3900. fi
  3901. rm -f conftest.err conftest.$ac_objext \
  3902. conftest$ac_exeext conftest.$ac_ext
  3903. done
  3904. fi
  3905. LIBS=$ac_func_search_save_LIBS
  3906. fi
  3907. echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
  3908. echo "${ECHO_T}$ac_cv_search_opendir" >&6
  3909. if test "$ac_cv_search_opendir" != no; then
  3910. test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
  3911. fi
  3912. fi
  3913. echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
  3914. echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
  3915. if test "${ac_cv_header_sys_wait_h+set}" = set; then
  3916. echo $ECHO_N "(cached) $ECHO_C" >&6
  3917. else
  3918. cat >conftest.$ac_ext <<_ACEOF
  3919. /* confdefs.h. */
  3920. _ACEOF
  3921. cat confdefs.h >>conftest.$ac_ext
  3922. cat >>conftest.$ac_ext <<_ACEOF
  3923. /* end confdefs.h. */
  3924. #include <sys/types.h>
  3925. #include <sys/wait.h>
  3926. #ifndef WEXITSTATUS
  3927. # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
  3928. #endif
  3929. #ifndef WIFEXITED
  3930. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  3931. #endif
  3932. int
  3933. main ()
  3934. {
  3935. int s;
  3936. wait (&s);
  3937. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  3938. ;
  3939. return 0;
  3940. }
  3941. _ACEOF
  3942. rm -f conftest.$ac_objext
  3943. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3944. (eval $ac_compile) 2>conftest.er1
  3945. ac_status=$?
  3946. grep -v '^ *+' conftest.er1 >conftest.err
  3947. rm -f conftest.er1
  3948. cat conftest.err >&5
  3949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3950. (exit $ac_status); } &&
  3951. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  3952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3953. (eval $ac_try) 2>&5
  3954. ac_status=$?
  3955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3956. (exit $ac_status); }; } &&
  3957. { ac_try='test -s conftest.$ac_objext'
  3958. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3959. (eval $ac_try) 2>&5
  3960. ac_status=$?
  3961. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3962. (exit $ac_status); }; }; then
  3963. ac_cv_header_sys_wait_h=yes
  3964. else
  3965. echo "$as_me: failed program was:" >&5
  3966. sed 's/^/| /' conftest.$ac_ext >&5
  3967. ac_cv_header_sys_wait_h=no
  3968. fi
  3969. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3970. fi
  3971. echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
  3972. echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
  3973. if test $ac_cv_header_sys_wait_h = yes; then
  3974. cat >>confdefs.h <<\_ACEOF
  3975. #define HAVE_SYS_WAIT_H 1
  3976. _ACEOF
  3977. fi
  3978. echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  3979. echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  3980. if test "${ac_cv_header_time+set}" = set; then
  3981. echo $ECHO_N "(cached) $ECHO_C" >&6
  3982. else
  3983. cat >conftest.$ac_ext <<_ACEOF
  3984. /* confdefs.h. */
  3985. _ACEOF
  3986. cat confdefs.h >>conftest.$ac_ext
  3987. cat >>conftest.$ac_ext <<_ACEOF
  3988. /* end confdefs.h. */
  3989. #include <sys/types.h>
  3990. #include <sys/time.h>
  3991. #include <time.h>
  3992. int
  3993. main ()
  3994. {
  3995. if ((struct tm *) 0)
  3996. return 0;
  3997. ;
  3998. return 0;
  3999. }
  4000. _ACEOF
  4001. rm -f conftest.$ac_objext
  4002. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4003. (eval $ac_compile) 2>conftest.er1
  4004. ac_status=$?
  4005. grep -v '^ *+' conftest.er1 >conftest.err
  4006. rm -f conftest.er1
  4007. cat conftest.err >&5
  4008. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4009. (exit $ac_status); } &&
  4010. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4011. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4012. (eval $ac_try) 2>&5
  4013. ac_status=$?
  4014. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4015. (exit $ac_status); }; } &&
  4016. { ac_try='test -s conftest.$ac_objext'
  4017. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4018. (eval $ac_try) 2>&5
  4019. ac_status=$?
  4020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4021. (exit $ac_status); }; }; then
  4022. ac_cv_header_time=yes
  4023. else
  4024. echo "$as_me: failed program was:" >&5
  4025. sed 's/^/| /' conftest.$ac_ext >&5
  4026. ac_cv_header_time=no
  4027. fi
  4028. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4029. fi
  4030. echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  4031. echo "${ECHO_T}$ac_cv_header_time" >&6
  4032. if test $ac_cv_header_time = yes; then
  4033. cat >>confdefs.h <<\_ACEOF
  4034. #define TIME_WITH_SYS_TIME 1
  4035. _ACEOF
  4036. fi
  4037. echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
  4038. echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
  4039. if test "${ac_cv_header_stat_broken+set}" = set; then
  4040. echo $ECHO_N "(cached) $ECHO_C" >&6
  4041. else
  4042. cat >conftest.$ac_ext <<_ACEOF
  4043. /* confdefs.h. */
  4044. _ACEOF
  4045. cat confdefs.h >>conftest.$ac_ext
  4046. cat >>conftest.$ac_ext <<_ACEOF
  4047. /* end confdefs.h. */
  4048. #include <sys/types.h>
  4049. #include <sys/stat.h>
  4050. #if defined(S_ISBLK) && defined(S_IFDIR)
  4051. # if S_ISBLK (S_IFDIR)
  4052. You lose.
  4053. # endif
  4054. #endif
  4055. #if defined(S_ISBLK) && defined(S_IFCHR)
  4056. # if S_ISBLK (S_IFCHR)
  4057. You lose.
  4058. # endif
  4059. #endif
  4060. #if defined(S_ISLNK) && defined(S_IFREG)
  4061. # if S_ISLNK (S_IFREG)
  4062. You lose.
  4063. # endif
  4064. #endif
  4065. #if defined(S_ISSOCK) && defined(S_IFREG)
  4066. # if S_ISSOCK (S_IFREG)
  4067. You lose.
  4068. # endif
  4069. #endif
  4070. _ACEOF
  4071. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4072. $EGREP "You lose" >/dev/null 2>&1; then
  4073. ac_cv_header_stat_broken=yes
  4074. else
  4075. ac_cv_header_stat_broken=no
  4076. fi
  4077. rm -f conftest*
  4078. fi
  4079. echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
  4080. echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
  4081. if test $ac_cv_header_stat_broken = yes; then
  4082. cat >>confdefs.h <<\_ACEOF
  4083. #define STAT_MACROS_BROKEN 1
  4084. _ACEOF
  4085. fi
  4086. #checkpoint
  4087. cat >confcache <<\_ACEOF
  4088. # This file is a shell script that caches the results of configure
  4089. # tests run on this system so they can be shared between configure
  4090. # scripts and configure runs, see configure's option --config-cache.
  4091. # It is not useful on other systems. If it contains results you don't
  4092. # want to keep, you may remove or edit it.
  4093. #
  4094. # config.status only pays attention to the cache file if you give it
  4095. # the --recheck option to rerun configure.
  4096. #
  4097. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4098. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4099. # following values.
  4100. _ACEOF
  4101. # The following way of writing the cache mishandles newlines in values,
  4102. # but we know of no workaround that is simple, portable, and efficient.
  4103. # So, don't put newlines in cache variables' values.
  4104. # Ultrix sh set writes to stderr and can't be redirected directly,
  4105. # and sets the high bit in the cache file unless we assign to the vars.
  4106. {
  4107. (set) 2>&1 |
  4108. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4109. *ac_space=\ *)
  4110. # `set' does not quote correctly, so add quotes (double-quote
  4111. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4112. sed -n \
  4113. "s/'/'\\\\''/g;
  4114. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4115. ;;
  4116. *)
  4117. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4118. sed -n \
  4119. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4120. ;;
  4121. esac;
  4122. } |
  4123. sed '
  4124. t clear
  4125. : clear
  4126. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4127. t end
  4128. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4129. : end' >>confcache
  4130. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4131. if test -w $cache_file; then
  4132. test "x$cache_file" != "x/dev/null"
  4133. cat confcache >$cache_file
  4134. else
  4135. echo "not updating unwritable cache $cache_file"
  4136. fi
  4137. fi
  4138. rm -f confcache
  4139. for ac_header in stdarg.h std_arg.h arpa/inet.h fcntl.h limits.h locale.h netdb.h netinet/in.h
  4140. do
  4141. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4142. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4143. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4144. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4145. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4146. echo $ECHO_N "(cached) $ECHO_C" >&6
  4147. fi
  4148. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4149. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4150. else
  4151. # Is the header compilable?
  4152. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4153. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4154. cat >conftest.$ac_ext <<_ACEOF
  4155. /* confdefs.h. */
  4156. _ACEOF
  4157. cat confdefs.h >>conftest.$ac_ext
  4158. cat >>conftest.$ac_ext <<_ACEOF
  4159. /* end confdefs.h. */
  4160. $ac_includes_default
  4161. #include <$ac_header>
  4162. _ACEOF
  4163. rm -f conftest.$ac_objext
  4164. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4165. (eval $ac_compile) 2>conftest.er1
  4166. ac_status=$?
  4167. grep -v '^ *+' conftest.er1 >conftest.err
  4168. rm -f conftest.er1
  4169. cat conftest.err >&5
  4170. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4171. (exit $ac_status); } &&
  4172. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4174. (eval $ac_try) 2>&5
  4175. ac_status=$?
  4176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4177. (exit $ac_status); }; } &&
  4178. { ac_try='test -s conftest.$ac_objext'
  4179. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4180. (eval $ac_try) 2>&5
  4181. ac_status=$?
  4182. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4183. (exit $ac_status); }; }; then
  4184. ac_header_compiler=yes
  4185. else
  4186. echo "$as_me: failed program was:" >&5
  4187. sed 's/^/| /' conftest.$ac_ext >&5
  4188. ac_header_compiler=no
  4189. fi
  4190. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4191. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4192. echo "${ECHO_T}$ac_header_compiler" >&6
  4193. # Is the header present?
  4194. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4195. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4196. cat >conftest.$ac_ext <<_ACEOF
  4197. /* confdefs.h. */
  4198. _ACEOF
  4199. cat confdefs.h >>conftest.$ac_ext
  4200. cat >>conftest.$ac_ext <<_ACEOF
  4201. /* end confdefs.h. */
  4202. #include <$ac_header>
  4203. _ACEOF
  4204. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4205. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4206. ac_status=$?
  4207. grep -v '^ *+' conftest.er1 >conftest.err
  4208. rm -f conftest.er1
  4209. cat conftest.err >&5
  4210. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4211. (exit $ac_status); } >/dev/null; then
  4212. if test -s conftest.err; then
  4213. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4214. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4215. else
  4216. ac_cpp_err=
  4217. fi
  4218. else
  4219. ac_cpp_err=yes
  4220. fi
  4221. if test -z "$ac_cpp_err"; then
  4222. ac_header_preproc=yes
  4223. else
  4224. echo "$as_me: failed program was:" >&5
  4225. sed 's/^/| /' conftest.$ac_ext >&5
  4226. ac_header_preproc=no
  4227. fi
  4228. rm -f conftest.err conftest.$ac_ext
  4229. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4230. echo "${ECHO_T}$ac_header_preproc" >&6
  4231. # So? What about this header?
  4232. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4233. yes:no: )
  4234. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4235. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4236. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4237. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4238. ac_header_preproc=yes
  4239. ;;
  4240. no:yes:* )
  4241. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4242. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4243. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4244. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4245. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4246. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4247. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4248. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4249. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4250. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4251. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4252. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4253. (
  4254. cat <<\_ASBOX
  4255. ## ------------------------------------------ ##
  4256. ## Report this to the AC_PACKAGE_NAME lists. ##
  4257. ## ------------------------------------------ ##
  4258. _ASBOX
  4259. ) |
  4260. sed "s/^/$as_me: WARNING: /" >&2
  4261. ;;
  4262. esac
  4263. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4264. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4265. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4266. echo $ECHO_N "(cached) $ECHO_C" >&6
  4267. else
  4268. eval "$as_ac_Header=\$ac_header_preproc"
  4269. fi
  4270. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4271. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4272. fi
  4273. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4274. cat >>confdefs.h <<_ACEOF
  4275. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4276. _ACEOF
  4277. fi
  4278. done
  4279. for ac_header in sys/file.h sys/ioctl.h sys/param.h sys/socket.h wchar.h sys/ptrace.h paths.h
  4280. do
  4281. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4282. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4283. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4284. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4285. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4286. echo $ECHO_N "(cached) $ECHO_C" >&6
  4287. fi
  4288. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4289. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4290. else
  4291. # Is the header compilable?
  4292. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  4293. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  4294. cat >conftest.$ac_ext <<_ACEOF
  4295. /* confdefs.h. */
  4296. _ACEOF
  4297. cat confdefs.h >>conftest.$ac_ext
  4298. cat >>conftest.$ac_ext <<_ACEOF
  4299. /* end confdefs.h. */
  4300. $ac_includes_default
  4301. #include <$ac_header>
  4302. _ACEOF
  4303. rm -f conftest.$ac_objext
  4304. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4305. (eval $ac_compile) 2>conftest.er1
  4306. ac_status=$?
  4307. grep -v '^ *+' conftest.er1 >conftest.err
  4308. rm -f conftest.er1
  4309. cat conftest.err >&5
  4310. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4311. (exit $ac_status); } &&
  4312. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4313. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4314. (eval $ac_try) 2>&5
  4315. ac_status=$?
  4316. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4317. (exit $ac_status); }; } &&
  4318. { ac_try='test -s conftest.$ac_objext'
  4319. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4320. (eval $ac_try) 2>&5
  4321. ac_status=$?
  4322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4323. (exit $ac_status); }; }; then
  4324. ac_header_compiler=yes
  4325. else
  4326. echo "$as_me: failed program was:" >&5
  4327. sed 's/^/| /' conftest.$ac_ext >&5
  4328. ac_header_compiler=no
  4329. fi
  4330. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4331. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4332. echo "${ECHO_T}$ac_header_compiler" >&6
  4333. # Is the header present?
  4334. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  4335. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  4336. cat >conftest.$ac_ext <<_ACEOF
  4337. /* confdefs.h. */
  4338. _ACEOF
  4339. cat confdefs.h >>conftest.$ac_ext
  4340. cat >>conftest.$ac_ext <<_ACEOF
  4341. /* end confdefs.h. */
  4342. #include <$ac_header>
  4343. _ACEOF
  4344. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4345. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4346. ac_status=$?
  4347. grep -v '^ *+' conftest.er1 >conftest.err
  4348. rm -f conftest.er1
  4349. cat conftest.err >&5
  4350. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4351. (exit $ac_status); } >/dev/null; then
  4352. if test -s conftest.err; then
  4353. ac_cpp_err=$ac_cxx_preproc_warn_flag
  4354. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  4355. else
  4356. ac_cpp_err=
  4357. fi
  4358. else
  4359. ac_cpp_err=yes
  4360. fi
  4361. if test -z "$ac_cpp_err"; then
  4362. ac_header_preproc=yes
  4363. else
  4364. echo "$as_me: failed program was:" >&5
  4365. sed 's/^/| /' conftest.$ac_ext >&5
  4366. ac_header_preproc=no
  4367. fi
  4368. rm -f conftest.err conftest.$ac_ext
  4369. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4370. echo "${ECHO_T}$ac_header_preproc" >&6
  4371. # So? What about this header?
  4372. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  4373. yes:no: )
  4374. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  4375. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4376. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  4377. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  4378. ac_header_preproc=yes
  4379. ;;
  4380. no:yes:* )
  4381. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  4382. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  4383. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  4384. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  4385. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  4386. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  4387. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  4388. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  4389. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  4390. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  4391. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  4392. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  4393. (
  4394. cat <<\_ASBOX
  4395. ## ------------------------------------------ ##
  4396. ## Report this to the AC_PACKAGE_NAME lists. ##
  4397. ## ------------------------------------------ ##
  4398. _ASBOX
  4399. ) |
  4400. sed "s/^/$as_me: WARNING: /" >&2
  4401. ;;
  4402. esac
  4403. echo "$as_me:$LINENO: checking for $ac_header" >&5
  4404. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  4405. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  4406. echo $ECHO_N "(cached) $ECHO_C" >&6
  4407. else
  4408. eval "$as_ac_Header=\$ac_header_preproc"
  4409. fi
  4410. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  4411. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  4412. fi
  4413. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  4414. cat >>confdefs.h <<_ACEOF
  4415. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4416. _ACEOF
  4417. fi
  4418. done
  4419. #checkpoint
  4420. cat >confcache <<\_ACEOF
  4421. # This file is a shell script that caches the results of configure
  4422. # tests run on this system so they can be shared between configure
  4423. # scripts and configure runs, see configure's option --config-cache.
  4424. # It is not useful on other systems. If it contains results you don't
  4425. # want to keep, you may remove or edit it.
  4426. #
  4427. # config.status only pays attention to the cache file if you give it
  4428. # the --recheck option to rerun configure.
  4429. #
  4430. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4431. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4432. # following values.
  4433. _ACEOF
  4434. # The following way of writing the cache mishandles newlines in values,
  4435. # but we know of no workaround that is simple, portable, and efficient.
  4436. # So, don't put newlines in cache variables' values.
  4437. # Ultrix sh set writes to stderr and can't be redirected directly,
  4438. # and sets the high bit in the cache file unless we assign to the vars.
  4439. {
  4440. (set) 2>&1 |
  4441. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4442. *ac_space=\ *)
  4443. # `set' does not quote correctly, so add quotes (double-quote
  4444. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4445. sed -n \
  4446. "s/'/'\\\\''/g;
  4447. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4448. ;;
  4449. *)
  4450. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4451. sed -n \
  4452. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4453. ;;
  4454. esac;
  4455. } |
  4456. sed '
  4457. t clear
  4458. : clear
  4459. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  4460. t end
  4461. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  4462. : end' >>confcache
  4463. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  4464. if test -w $cache_file; then
  4465. test "x$cache_file" != "x/dev/null"
  4466. cat confcache >$cache_file
  4467. else
  4468. echo "not updating unwritable cache $cache_file"
  4469. fi
  4470. fi
  4471. rm -f confcache
  4472. #AC_CHECK_HEADERS(openssl/ssl.h openssl/crypto.h)
  4473. #AC_CHECK_HEADERS(zlib.h)
  4474. #EGG_CHECK_ZLIB
  4475. #EGG_CHECK_SSL
  4476. #AC_SUBST(SSL)dnl
  4477. # Checks for typedefs, structures, and compiler characteristics
  4478. echo "$as_me:$LINENO: checking for pid_t" >&5
  4479. echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  4480. if test "${ac_cv_type_pid_t+set}" = set; then
  4481. echo $ECHO_N "(cached) $ECHO_C" >&6
  4482. else
  4483. cat >conftest.$ac_ext <<_ACEOF
  4484. /* confdefs.h. */
  4485. _ACEOF
  4486. cat confdefs.h >>conftest.$ac_ext
  4487. cat >>conftest.$ac_ext <<_ACEOF
  4488. /* end confdefs.h. */
  4489. $ac_includes_default
  4490. int
  4491. main ()
  4492. {
  4493. if ((pid_t *) 0)
  4494. return 0;
  4495. if (sizeof (pid_t))
  4496. return 0;
  4497. ;
  4498. return 0;
  4499. }
  4500. _ACEOF
  4501. rm -f conftest.$ac_objext
  4502. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4503. (eval $ac_compile) 2>conftest.er1
  4504. ac_status=$?
  4505. grep -v '^ *+' conftest.er1 >conftest.err
  4506. rm -f conftest.er1
  4507. cat conftest.err >&5
  4508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4509. (exit $ac_status); } &&
  4510. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4511. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4512. (eval $ac_try) 2>&5
  4513. ac_status=$?
  4514. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4515. (exit $ac_status); }; } &&
  4516. { ac_try='test -s conftest.$ac_objext'
  4517. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4518. (eval $ac_try) 2>&5
  4519. ac_status=$?
  4520. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4521. (exit $ac_status); }; }; then
  4522. ac_cv_type_pid_t=yes
  4523. else
  4524. echo "$as_me: failed program was:" >&5
  4525. sed 's/^/| /' conftest.$ac_ext >&5
  4526. ac_cv_type_pid_t=no
  4527. fi
  4528. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4529. fi
  4530. echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  4531. echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  4532. if test $ac_cv_type_pid_t = yes; then
  4533. :
  4534. else
  4535. cat >>confdefs.h <<_ACEOF
  4536. #define pid_t int
  4537. _ACEOF
  4538. fi
  4539. echo "$as_me:$LINENO: checking for size_t" >&5
  4540. echo $ECHO_N "checking for size_t... $ECHO_C" >&6
  4541. if test "${ac_cv_type_size_t+set}" = set; then
  4542. echo $ECHO_N "(cached) $ECHO_C" >&6
  4543. else
  4544. cat >conftest.$ac_ext <<_ACEOF
  4545. /* confdefs.h. */
  4546. _ACEOF
  4547. cat confdefs.h >>conftest.$ac_ext
  4548. cat >>conftest.$ac_ext <<_ACEOF
  4549. /* end confdefs.h. */
  4550. $ac_includes_default
  4551. int
  4552. main ()
  4553. {
  4554. if ((size_t *) 0)
  4555. return 0;
  4556. if (sizeof (size_t))
  4557. return 0;
  4558. ;
  4559. return 0;
  4560. }
  4561. _ACEOF
  4562. rm -f conftest.$ac_objext
  4563. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4564. (eval $ac_compile) 2>conftest.er1
  4565. ac_status=$?
  4566. grep -v '^ *+' conftest.er1 >conftest.err
  4567. rm -f conftest.er1
  4568. cat conftest.err >&5
  4569. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4570. (exit $ac_status); } &&
  4571. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4572. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4573. (eval $ac_try) 2>&5
  4574. ac_status=$?
  4575. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4576. (exit $ac_status); }; } &&
  4577. { ac_try='test -s conftest.$ac_objext'
  4578. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4579. (eval $ac_try) 2>&5
  4580. ac_status=$?
  4581. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4582. (exit $ac_status); }; }; then
  4583. ac_cv_type_size_t=yes
  4584. else
  4585. echo "$as_me: failed program was:" >&5
  4586. sed 's/^/| /' conftest.$ac_ext >&5
  4587. ac_cv_type_size_t=no
  4588. fi
  4589. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4590. fi
  4591. echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
  4592. echo "${ECHO_T}$ac_cv_type_size_t" >&6
  4593. if test $ac_cv_type_size_t = yes; then
  4594. :
  4595. else
  4596. cat >>confdefs.h <<_ACEOF
  4597. #define size_t unsigned
  4598. _ACEOF
  4599. fi
  4600. echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
  4601. echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
  4602. if test "${ac_cv_type_uid_t+set}" = set; then
  4603. echo $ECHO_N "(cached) $ECHO_C" >&6
  4604. else
  4605. cat >conftest.$ac_ext <<_ACEOF
  4606. /* confdefs.h. */
  4607. _ACEOF
  4608. cat confdefs.h >>conftest.$ac_ext
  4609. cat >>conftest.$ac_ext <<_ACEOF
  4610. /* end confdefs.h. */
  4611. #include <sys/types.h>
  4612. _ACEOF
  4613. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4614. $EGREP "uid_t" >/dev/null 2>&1; then
  4615. ac_cv_type_uid_t=yes
  4616. else
  4617. ac_cv_type_uid_t=no
  4618. fi
  4619. rm -f conftest*
  4620. fi
  4621. echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
  4622. echo "${ECHO_T}$ac_cv_type_uid_t" >&6
  4623. if test $ac_cv_type_uid_t = no; then
  4624. cat >>confdefs.h <<\_ACEOF
  4625. #define uid_t int
  4626. _ACEOF
  4627. cat >>confdefs.h <<\_ACEOF
  4628. #define gid_t int
  4629. _ACEOF
  4630. fi
  4631. #AC_C_CONST
  4632. echo "$as_me:$LINENO: checking for working volatile" >&5
  4633. echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
  4634. if test "${ac_cv_c_volatile+set}" = set; then
  4635. echo $ECHO_N "(cached) $ECHO_C" >&6
  4636. else
  4637. cat >conftest.$ac_ext <<_ACEOF
  4638. /* confdefs.h. */
  4639. _ACEOF
  4640. cat confdefs.h >>conftest.$ac_ext
  4641. cat >>conftest.$ac_ext <<_ACEOF
  4642. /* end confdefs.h. */
  4643. int
  4644. main ()
  4645. {
  4646. volatile int x;
  4647. int * volatile y;
  4648. ;
  4649. return 0;
  4650. }
  4651. _ACEOF
  4652. rm -f conftest.$ac_objext
  4653. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4654. (eval $ac_compile) 2>conftest.er1
  4655. ac_status=$?
  4656. grep -v '^ *+' conftest.er1 >conftest.err
  4657. rm -f conftest.er1
  4658. cat conftest.err >&5
  4659. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4660. (exit $ac_status); } &&
  4661. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4662. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4663. (eval $ac_try) 2>&5
  4664. ac_status=$?
  4665. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4666. (exit $ac_status); }; } &&
  4667. { ac_try='test -s conftest.$ac_objext'
  4668. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4669. (eval $ac_try) 2>&5
  4670. ac_status=$?
  4671. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4672. (exit $ac_status); }; }; then
  4673. ac_cv_c_volatile=yes
  4674. else
  4675. echo "$as_me: failed program was:" >&5
  4676. sed 's/^/| /' conftest.$ac_ext >&5
  4677. ac_cv_c_volatile=no
  4678. fi
  4679. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4680. fi
  4681. echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
  4682. echo "${ECHO_T}$ac_cv_c_volatile" >&6
  4683. if test $ac_cv_c_volatile = no; then
  4684. cat >>confdefs.h <<\_ACEOF
  4685. #define volatile
  4686. _ACEOF
  4687. fi
  4688. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  4689. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  4690. if test "${ac_cv_c_bigendian+set}" = set; then
  4691. echo $ECHO_N "(cached) $ECHO_C" >&6
  4692. else
  4693. # See if sys/param.h defines the BYTE_ORDER macro.
  4694. cat >conftest.$ac_ext <<_ACEOF
  4695. /* confdefs.h. */
  4696. _ACEOF
  4697. cat confdefs.h >>conftest.$ac_ext
  4698. cat >>conftest.$ac_ext <<_ACEOF
  4699. /* end confdefs.h. */
  4700. #include <sys/types.h>
  4701. #include <sys/param.h>
  4702. int
  4703. main ()
  4704. {
  4705. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  4706. bogus endian macros
  4707. #endif
  4708. ;
  4709. return 0;
  4710. }
  4711. _ACEOF
  4712. rm -f conftest.$ac_objext
  4713. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4714. (eval $ac_compile) 2>conftest.er1
  4715. ac_status=$?
  4716. grep -v '^ *+' conftest.er1 >conftest.err
  4717. rm -f conftest.er1
  4718. cat conftest.err >&5
  4719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4720. (exit $ac_status); } &&
  4721. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4722. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4723. (eval $ac_try) 2>&5
  4724. ac_status=$?
  4725. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4726. (exit $ac_status); }; } &&
  4727. { ac_try='test -s conftest.$ac_objext'
  4728. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4729. (eval $ac_try) 2>&5
  4730. ac_status=$?
  4731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4732. (exit $ac_status); }; }; then
  4733. # It does; now see whether it defined to BIG_ENDIAN or not.
  4734. cat >conftest.$ac_ext <<_ACEOF
  4735. /* confdefs.h. */
  4736. _ACEOF
  4737. cat confdefs.h >>conftest.$ac_ext
  4738. cat >>conftest.$ac_ext <<_ACEOF
  4739. /* end confdefs.h. */
  4740. #include <sys/types.h>
  4741. #include <sys/param.h>
  4742. int
  4743. main ()
  4744. {
  4745. #if BYTE_ORDER != BIG_ENDIAN
  4746. not big endian
  4747. #endif
  4748. ;
  4749. return 0;
  4750. }
  4751. _ACEOF
  4752. rm -f conftest.$ac_objext
  4753. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4754. (eval $ac_compile) 2>conftest.er1
  4755. ac_status=$?
  4756. grep -v '^ *+' conftest.er1 >conftest.err
  4757. rm -f conftest.er1
  4758. cat conftest.err >&5
  4759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4760. (exit $ac_status); } &&
  4761. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4762. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4763. (eval $ac_try) 2>&5
  4764. ac_status=$?
  4765. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4766. (exit $ac_status); }; } &&
  4767. { ac_try='test -s conftest.$ac_objext'
  4768. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4769. (eval $ac_try) 2>&5
  4770. ac_status=$?
  4771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4772. (exit $ac_status); }; }; then
  4773. ac_cv_c_bigendian=yes
  4774. else
  4775. echo "$as_me: failed program was:" >&5
  4776. sed 's/^/| /' conftest.$ac_ext >&5
  4777. ac_cv_c_bigendian=no
  4778. fi
  4779. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4780. else
  4781. echo "$as_me: failed program was:" >&5
  4782. sed 's/^/| /' conftest.$ac_ext >&5
  4783. # It does not; compile a test program.
  4784. if test "$cross_compiling" = yes; then
  4785. # try to guess the endianness by grepping values into an object file
  4786. ac_cv_c_bigendian=unknown
  4787. cat >conftest.$ac_ext <<_ACEOF
  4788. /* confdefs.h. */
  4789. _ACEOF
  4790. cat confdefs.h >>conftest.$ac_ext
  4791. cat >>conftest.$ac_ext <<_ACEOF
  4792. /* end confdefs.h. */
  4793. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  4794. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  4795. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  4796. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  4797. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  4798. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  4799. int
  4800. main ()
  4801. {
  4802. _ascii (); _ebcdic ();
  4803. ;
  4804. return 0;
  4805. }
  4806. _ACEOF
  4807. rm -f conftest.$ac_objext
  4808. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4809. (eval $ac_compile) 2>conftest.er1
  4810. ac_status=$?
  4811. grep -v '^ *+' conftest.er1 >conftest.err
  4812. rm -f conftest.er1
  4813. cat conftest.err >&5
  4814. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4815. (exit $ac_status); } &&
  4816. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4817. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4818. (eval $ac_try) 2>&5
  4819. ac_status=$?
  4820. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4821. (exit $ac_status); }; } &&
  4822. { ac_try='test -s conftest.$ac_objext'
  4823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4824. (eval $ac_try) 2>&5
  4825. ac_status=$?
  4826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4827. (exit $ac_status); }; }; then
  4828. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  4829. ac_cv_c_bigendian=yes
  4830. fi
  4831. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  4832. if test "$ac_cv_c_bigendian" = unknown; then
  4833. ac_cv_c_bigendian=no
  4834. else
  4835. # finding both strings is unlikely to happen, but who knows?
  4836. ac_cv_c_bigendian=unknown
  4837. fi
  4838. fi
  4839. else
  4840. echo "$as_me: failed program was:" >&5
  4841. sed 's/^/| /' conftest.$ac_ext >&5
  4842. fi
  4843. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4844. else
  4845. cat >conftest.$ac_ext <<_ACEOF
  4846. /* confdefs.h. */
  4847. _ACEOF
  4848. cat confdefs.h >>conftest.$ac_ext
  4849. cat >>conftest.$ac_ext <<_ACEOF
  4850. /* end confdefs.h. */
  4851. int
  4852. main ()
  4853. {
  4854. /* Are we little or big endian? From Harbison&Steele. */
  4855. union
  4856. {
  4857. long l;
  4858. char c[sizeof (long)];
  4859. } u;
  4860. u.l = 1;
  4861. exit (u.c[sizeof (long) - 1] == 1);
  4862. }
  4863. _ACEOF
  4864. rm -f conftest$ac_exeext
  4865. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4866. (eval $ac_link) 2>&5
  4867. ac_status=$?
  4868. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4869. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4870. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4871. (eval $ac_try) 2>&5
  4872. ac_status=$?
  4873. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4874. (exit $ac_status); }; }; then
  4875. ac_cv_c_bigendian=no
  4876. else
  4877. echo "$as_me: program exited with status $ac_status" >&5
  4878. echo "$as_me: failed program was:" >&5
  4879. sed 's/^/| /' conftest.$ac_ext >&5
  4880. ( exit $ac_status )
  4881. ac_cv_c_bigendian=yes
  4882. fi
  4883. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4884. fi
  4885. fi
  4886. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4887. fi
  4888. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  4889. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  4890. case $ac_cv_c_bigendian in
  4891. yes)
  4892. cat >>confdefs.h <<\_ACEOF
  4893. #define WORDS_BIGENDIAN 1
  4894. _ACEOF
  4895. ;;
  4896. no)
  4897. ;;
  4898. *)
  4899. { { echo "$as_me:$LINENO: error: unknown endianness
  4900. presetting ac_cv_c_bigendian=no (or yes) will help" >&5
  4901. echo "$as_me: error: unknown endianness
  4902. presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
  4903. { (exit 1); exit 1; }; } ;;
  4904. esac
  4905. #AC_C_INLINE
  4906. echo "$as_me:$LINENO: checking whether char is unsigned" >&5
  4907. echo $ECHO_N "checking whether char is unsigned... $ECHO_C" >&6
  4908. if test "${ac_cv_c_char_unsigned+set}" = set; then
  4909. echo $ECHO_N "(cached) $ECHO_C" >&6
  4910. else
  4911. cat >conftest.$ac_ext <<_ACEOF
  4912. /* confdefs.h. */
  4913. _ACEOF
  4914. cat confdefs.h >>conftest.$ac_ext
  4915. cat >>conftest.$ac_ext <<_ACEOF
  4916. /* end confdefs.h. */
  4917. $ac_includes_default
  4918. int
  4919. main ()
  4920. {
  4921. static int test_array [1 - 2 * !(((char) -1) < 0)];
  4922. test_array [0] = 0
  4923. ;
  4924. return 0;
  4925. }
  4926. _ACEOF
  4927. rm -f conftest.$ac_objext
  4928. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4929. (eval $ac_compile) 2>conftest.er1
  4930. ac_status=$?
  4931. grep -v '^ *+' conftest.er1 >conftest.err
  4932. rm -f conftest.er1
  4933. cat conftest.err >&5
  4934. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4935. (exit $ac_status); } &&
  4936. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  4937. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4938. (eval $ac_try) 2>&5
  4939. ac_status=$?
  4940. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4941. (exit $ac_status); }; } &&
  4942. { ac_try='test -s conftest.$ac_objext'
  4943. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4944. (eval $ac_try) 2>&5
  4945. ac_status=$?
  4946. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4947. (exit $ac_status); }; }; then
  4948. ac_cv_c_char_unsigned=no
  4949. else
  4950. echo "$as_me: failed program was:" >&5
  4951. sed 's/^/| /' conftest.$ac_ext >&5
  4952. ac_cv_c_char_unsigned=yes
  4953. fi
  4954. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4955. fi
  4956. echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
  4957. echo "${ECHO_T}$ac_cv_c_char_unsigned" >&6
  4958. if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
  4959. cat >>confdefs.h <<\_ACEOF
  4960. #define __CHAR_UNSIGNED__ 1
  4961. _ACEOF
  4962. fi
  4963. #AC_C_STRINGIZE
  4964. #AC_C_PROTOTYPES
  4965. #checkpoint
  4966. cat >confcache <<\_ACEOF
  4967. # This file is a shell script that caches the results of configure
  4968. # tests run on this system so they can be shared between configure
  4969. # scripts and configure runs, see configure's option --config-cache.
  4970. # It is not useful on other systems. If it contains results you don't
  4971. # want to keep, you may remove or edit it.
  4972. #
  4973. # config.status only pays attention to the cache file if you give it
  4974. # the --recheck option to rerun configure.
  4975. #
  4976. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  4977. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  4978. # following values.
  4979. _ACEOF
  4980. # The following way of writing the cache mishandles newlines in values,
  4981. # but we know of no workaround that is simple, portable, and efficient.
  4982. # So, don't put newlines in cache variables' values.
  4983. # Ultrix sh set writes to stderr and can't be redirected directly,
  4984. # and sets the high bit in the cache file unless we assign to the vars.
  4985. {
  4986. (set) 2>&1 |
  4987. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  4988. *ac_space=\ *)
  4989. # `set' does not quote correctly, so add quotes (double-quote
  4990. # substitution turns \\\\ into \\, and sed turns \\ into \).
  4991. sed -n \
  4992. "s/'/'\\\\''/g;
  4993. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  4994. ;;
  4995. *)
  4996. # `set' quotes correctly as required by POSIX, so do not add quotes.
  4997. sed -n \
  4998. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  4999. ;;
  5000. esac;
  5001. } |
  5002. sed '
  5003. t clear
  5004. : clear
  5005. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5006. t end
  5007. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5008. : end' >>confcache
  5009. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5010. if test -w $cache_file; then
  5011. test "x$cache_file" != "x/dev/null"
  5012. cat confcache >$cache_file
  5013. else
  5014. echo "not updating unwritable cache $cache_file"
  5015. fi
  5016. fi
  5017. rm -f confcache
  5018. echo "$as_me:$LINENO: checking for int" >&5
  5019. echo $ECHO_N "checking for int... $ECHO_C" >&6
  5020. if test "${ac_cv_type_int+set}" = set; then
  5021. echo $ECHO_N "(cached) $ECHO_C" >&6
  5022. else
  5023. cat >conftest.$ac_ext <<_ACEOF
  5024. /* confdefs.h. */
  5025. _ACEOF
  5026. cat confdefs.h >>conftest.$ac_ext
  5027. cat >>conftest.$ac_ext <<_ACEOF
  5028. /* end confdefs.h. */
  5029. $ac_includes_default
  5030. int
  5031. main ()
  5032. {
  5033. if ((int *) 0)
  5034. return 0;
  5035. if (sizeof (int))
  5036. return 0;
  5037. ;
  5038. return 0;
  5039. }
  5040. _ACEOF
  5041. rm -f conftest.$ac_objext
  5042. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5043. (eval $ac_compile) 2>conftest.er1
  5044. ac_status=$?
  5045. grep -v '^ *+' conftest.er1 >conftest.err
  5046. rm -f conftest.er1
  5047. cat conftest.err >&5
  5048. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5049. (exit $ac_status); } &&
  5050. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5051. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5052. (eval $ac_try) 2>&5
  5053. ac_status=$?
  5054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5055. (exit $ac_status); }; } &&
  5056. { ac_try='test -s conftest.$ac_objext'
  5057. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5058. (eval $ac_try) 2>&5
  5059. ac_status=$?
  5060. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5061. (exit $ac_status); }; }; then
  5062. ac_cv_type_int=yes
  5063. else
  5064. echo "$as_me: failed program was:" >&5
  5065. sed 's/^/| /' conftest.$ac_ext >&5
  5066. ac_cv_type_int=no
  5067. fi
  5068. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5069. fi
  5070. echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
  5071. echo "${ECHO_T}$ac_cv_type_int" >&6
  5072. echo "$as_me:$LINENO: checking size of int" >&5
  5073. echo $ECHO_N "checking size of int... $ECHO_C" >&6
  5074. if test "${ac_cv_sizeof_int+set}" = set; then
  5075. echo $ECHO_N "(cached) $ECHO_C" >&6
  5076. else
  5077. if test "$ac_cv_type_int" = yes; then
  5078. # The cast to unsigned long works around a bug in the HP C Compiler
  5079. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5080. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5081. # This bug is HP SR number 8606223364.
  5082. if test "$cross_compiling" = yes; then
  5083. # Depending upon the size, compute the lo and hi bounds.
  5084. cat >conftest.$ac_ext <<_ACEOF
  5085. /* confdefs.h. */
  5086. _ACEOF
  5087. cat confdefs.h >>conftest.$ac_ext
  5088. cat >>conftest.$ac_ext <<_ACEOF
  5089. /* end confdefs.h. */
  5090. $ac_includes_default
  5091. int
  5092. main ()
  5093. {
  5094. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
  5095. test_array [0] = 0
  5096. ;
  5097. return 0;
  5098. }
  5099. _ACEOF
  5100. rm -f conftest.$ac_objext
  5101. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5102. (eval $ac_compile) 2>conftest.er1
  5103. ac_status=$?
  5104. grep -v '^ *+' conftest.er1 >conftest.err
  5105. rm -f conftest.er1
  5106. cat conftest.err >&5
  5107. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5108. (exit $ac_status); } &&
  5109. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5110. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5111. (eval $ac_try) 2>&5
  5112. ac_status=$?
  5113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5114. (exit $ac_status); }; } &&
  5115. { ac_try='test -s conftest.$ac_objext'
  5116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5117. (eval $ac_try) 2>&5
  5118. ac_status=$?
  5119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5120. (exit $ac_status); }; }; then
  5121. ac_lo=0 ac_mid=0
  5122. while :; do
  5123. cat >conftest.$ac_ext <<_ACEOF
  5124. /* confdefs.h. */
  5125. _ACEOF
  5126. cat confdefs.h >>conftest.$ac_ext
  5127. cat >>conftest.$ac_ext <<_ACEOF
  5128. /* end confdefs.h. */
  5129. $ac_includes_default
  5130. int
  5131. main ()
  5132. {
  5133. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  5134. test_array [0] = 0
  5135. ;
  5136. return 0;
  5137. }
  5138. _ACEOF
  5139. rm -f conftest.$ac_objext
  5140. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5141. (eval $ac_compile) 2>conftest.er1
  5142. ac_status=$?
  5143. grep -v '^ *+' conftest.er1 >conftest.err
  5144. rm -f conftest.er1
  5145. cat conftest.err >&5
  5146. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5147. (exit $ac_status); } &&
  5148. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5149. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5150. (eval $ac_try) 2>&5
  5151. ac_status=$?
  5152. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5153. (exit $ac_status); }; } &&
  5154. { ac_try='test -s conftest.$ac_objext'
  5155. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5156. (eval $ac_try) 2>&5
  5157. ac_status=$?
  5158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5159. (exit $ac_status); }; }; then
  5160. ac_hi=$ac_mid; break
  5161. else
  5162. echo "$as_me: failed program was:" >&5
  5163. sed 's/^/| /' conftest.$ac_ext >&5
  5164. ac_lo=`expr $ac_mid + 1`
  5165. if test $ac_lo -le $ac_mid; then
  5166. ac_lo= ac_hi=
  5167. break
  5168. fi
  5169. ac_mid=`expr 2 '*' $ac_mid + 1`
  5170. fi
  5171. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5172. done
  5173. else
  5174. echo "$as_me: failed program was:" >&5
  5175. sed 's/^/| /' conftest.$ac_ext >&5
  5176. cat >conftest.$ac_ext <<_ACEOF
  5177. /* confdefs.h. */
  5178. _ACEOF
  5179. cat confdefs.h >>conftest.$ac_ext
  5180. cat >>conftest.$ac_ext <<_ACEOF
  5181. /* end confdefs.h. */
  5182. $ac_includes_default
  5183. int
  5184. main ()
  5185. {
  5186. static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
  5187. test_array [0] = 0
  5188. ;
  5189. return 0;
  5190. }
  5191. _ACEOF
  5192. rm -f conftest.$ac_objext
  5193. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5194. (eval $ac_compile) 2>conftest.er1
  5195. ac_status=$?
  5196. grep -v '^ *+' conftest.er1 >conftest.err
  5197. rm -f conftest.er1
  5198. cat conftest.err >&5
  5199. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5200. (exit $ac_status); } &&
  5201. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5202. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5203. (eval $ac_try) 2>&5
  5204. ac_status=$?
  5205. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5206. (exit $ac_status); }; } &&
  5207. { ac_try='test -s conftest.$ac_objext'
  5208. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5209. (eval $ac_try) 2>&5
  5210. ac_status=$?
  5211. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5212. (exit $ac_status); }; }; then
  5213. ac_hi=-1 ac_mid=-1
  5214. while :; do
  5215. cat >conftest.$ac_ext <<_ACEOF
  5216. /* confdefs.h. */
  5217. _ACEOF
  5218. cat confdefs.h >>conftest.$ac_ext
  5219. cat >>conftest.$ac_ext <<_ACEOF
  5220. /* end confdefs.h. */
  5221. $ac_includes_default
  5222. int
  5223. main ()
  5224. {
  5225. static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
  5226. test_array [0] = 0
  5227. ;
  5228. return 0;
  5229. }
  5230. _ACEOF
  5231. rm -f conftest.$ac_objext
  5232. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5233. (eval $ac_compile) 2>conftest.er1
  5234. ac_status=$?
  5235. grep -v '^ *+' conftest.er1 >conftest.err
  5236. rm -f conftest.er1
  5237. cat conftest.err >&5
  5238. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5239. (exit $ac_status); } &&
  5240. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5241. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5242. (eval $ac_try) 2>&5
  5243. ac_status=$?
  5244. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5245. (exit $ac_status); }; } &&
  5246. { ac_try='test -s conftest.$ac_objext'
  5247. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5248. (eval $ac_try) 2>&5
  5249. ac_status=$?
  5250. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5251. (exit $ac_status); }; }; then
  5252. ac_lo=$ac_mid; break
  5253. else
  5254. echo "$as_me: failed program was:" >&5
  5255. sed 's/^/| /' conftest.$ac_ext >&5
  5256. ac_hi=`expr '(' $ac_mid ')' - 1`
  5257. if test $ac_mid -le $ac_hi; then
  5258. ac_lo= ac_hi=
  5259. break
  5260. fi
  5261. ac_mid=`expr 2 '*' $ac_mid`
  5262. fi
  5263. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5264. done
  5265. else
  5266. echo "$as_me: failed program was:" >&5
  5267. sed 's/^/| /' conftest.$ac_ext >&5
  5268. ac_lo= ac_hi=
  5269. fi
  5270. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5271. fi
  5272. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5273. # Binary search between lo and hi bounds.
  5274. while test "x$ac_lo" != "x$ac_hi"; do
  5275. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5276. cat >conftest.$ac_ext <<_ACEOF
  5277. /* confdefs.h. */
  5278. _ACEOF
  5279. cat confdefs.h >>conftest.$ac_ext
  5280. cat >>conftest.$ac_ext <<_ACEOF
  5281. /* end confdefs.h. */
  5282. $ac_includes_default
  5283. int
  5284. main ()
  5285. {
  5286. static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
  5287. test_array [0] = 0
  5288. ;
  5289. return 0;
  5290. }
  5291. _ACEOF
  5292. rm -f conftest.$ac_objext
  5293. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5294. (eval $ac_compile) 2>conftest.er1
  5295. ac_status=$?
  5296. grep -v '^ *+' conftest.er1 >conftest.err
  5297. rm -f conftest.er1
  5298. cat conftest.err >&5
  5299. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5300. (exit $ac_status); } &&
  5301. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5302. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5303. (eval $ac_try) 2>&5
  5304. ac_status=$?
  5305. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5306. (exit $ac_status); }; } &&
  5307. { ac_try='test -s conftest.$ac_objext'
  5308. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5309. (eval $ac_try) 2>&5
  5310. ac_status=$?
  5311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5312. (exit $ac_status); }; }; then
  5313. ac_hi=$ac_mid
  5314. else
  5315. echo "$as_me: failed program was:" >&5
  5316. sed 's/^/| /' conftest.$ac_ext >&5
  5317. ac_lo=`expr '(' $ac_mid ')' + 1`
  5318. fi
  5319. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5320. done
  5321. case $ac_lo in
  5322. ?*) ac_cv_sizeof_int=$ac_lo;;
  5323. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  5324. See \`config.log' for more details." >&5
  5325. echo "$as_me: error: cannot compute sizeof (int), 77
  5326. See \`config.log' for more details." >&2;}
  5327. { (exit 1); exit 1; }; } ;;
  5328. esac
  5329. else
  5330. if test "$cross_compiling" = yes; then
  5331. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  5332. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  5333. { (exit 1); exit 1; }; }
  5334. else
  5335. cat >conftest.$ac_ext <<_ACEOF
  5336. /* confdefs.h. */
  5337. _ACEOF
  5338. cat confdefs.h >>conftest.$ac_ext
  5339. cat >>conftest.$ac_ext <<_ACEOF
  5340. /* end confdefs.h. */
  5341. $ac_includes_default
  5342. long longval () { return (long) (sizeof (int)); }
  5343. unsigned long ulongval () { return (long) (sizeof (int)); }
  5344. #include <stdio.h>
  5345. #include <stdlib.h>
  5346. int
  5347. main ()
  5348. {
  5349. FILE *f = fopen ("conftest.val", "w");
  5350. if (! f)
  5351. exit (1);
  5352. if (((long) (sizeof (int))) < 0)
  5353. {
  5354. long i = longval ();
  5355. if (i != ((long) (sizeof (int))))
  5356. exit (1);
  5357. fprintf (f, "%ld\n", i);
  5358. }
  5359. else
  5360. {
  5361. unsigned long i = ulongval ();
  5362. if (i != ((long) (sizeof (int))))
  5363. exit (1);
  5364. fprintf (f, "%lu\n", i);
  5365. }
  5366. exit (ferror (f) || fclose (f) != 0);
  5367. ;
  5368. return 0;
  5369. }
  5370. _ACEOF
  5371. rm -f conftest$ac_exeext
  5372. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5373. (eval $ac_link) 2>&5
  5374. ac_status=$?
  5375. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5376. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5377. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5378. (eval $ac_try) 2>&5
  5379. ac_status=$?
  5380. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5381. (exit $ac_status); }; }; then
  5382. ac_cv_sizeof_int=`cat conftest.val`
  5383. else
  5384. echo "$as_me: program exited with status $ac_status" >&5
  5385. echo "$as_me: failed program was:" >&5
  5386. sed 's/^/| /' conftest.$ac_ext >&5
  5387. ( exit $ac_status )
  5388. { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
  5389. See \`config.log' for more details." >&5
  5390. echo "$as_me: error: cannot compute sizeof (int), 77
  5391. See \`config.log' for more details." >&2;}
  5392. { (exit 1); exit 1; }; }
  5393. fi
  5394. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5395. fi
  5396. fi
  5397. rm -f conftest.val
  5398. else
  5399. ac_cv_sizeof_int=0
  5400. fi
  5401. fi
  5402. echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
  5403. echo "${ECHO_T}$ac_cv_sizeof_int" >&6
  5404. cat >>confdefs.h <<_ACEOF
  5405. #define SIZEOF_INT $ac_cv_sizeof_int
  5406. _ACEOF
  5407. echo "$as_me:$LINENO: checking for short" >&5
  5408. echo $ECHO_N "checking for short... $ECHO_C" >&6
  5409. if test "${ac_cv_type_short+set}" = set; then
  5410. echo $ECHO_N "(cached) $ECHO_C" >&6
  5411. else
  5412. cat >conftest.$ac_ext <<_ACEOF
  5413. /* confdefs.h. */
  5414. _ACEOF
  5415. cat confdefs.h >>conftest.$ac_ext
  5416. cat >>conftest.$ac_ext <<_ACEOF
  5417. /* end confdefs.h. */
  5418. $ac_includes_default
  5419. int
  5420. main ()
  5421. {
  5422. if ((short *) 0)
  5423. return 0;
  5424. if (sizeof (short))
  5425. return 0;
  5426. ;
  5427. return 0;
  5428. }
  5429. _ACEOF
  5430. rm -f conftest.$ac_objext
  5431. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5432. (eval $ac_compile) 2>conftest.er1
  5433. ac_status=$?
  5434. grep -v '^ *+' conftest.er1 >conftest.err
  5435. rm -f conftest.er1
  5436. cat conftest.err >&5
  5437. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5438. (exit $ac_status); } &&
  5439. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5440. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5441. (eval $ac_try) 2>&5
  5442. ac_status=$?
  5443. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5444. (exit $ac_status); }; } &&
  5445. { ac_try='test -s conftest.$ac_objext'
  5446. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5447. (eval $ac_try) 2>&5
  5448. ac_status=$?
  5449. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5450. (exit $ac_status); }; }; then
  5451. ac_cv_type_short=yes
  5452. else
  5453. echo "$as_me: failed program was:" >&5
  5454. sed 's/^/| /' conftest.$ac_ext >&5
  5455. ac_cv_type_short=no
  5456. fi
  5457. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5458. fi
  5459. echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
  5460. echo "${ECHO_T}$ac_cv_type_short" >&6
  5461. echo "$as_me:$LINENO: checking size of short" >&5
  5462. echo $ECHO_N "checking size of short... $ECHO_C" >&6
  5463. if test "${ac_cv_sizeof_short+set}" = set; then
  5464. echo $ECHO_N "(cached) $ECHO_C" >&6
  5465. else
  5466. if test "$ac_cv_type_short" = yes; then
  5467. # The cast to unsigned long works around a bug in the HP C Compiler
  5468. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5469. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5470. # This bug is HP SR number 8606223364.
  5471. if test "$cross_compiling" = yes; then
  5472. # Depending upon the size, compute the lo and hi bounds.
  5473. cat >conftest.$ac_ext <<_ACEOF
  5474. /* confdefs.h. */
  5475. _ACEOF
  5476. cat confdefs.h >>conftest.$ac_ext
  5477. cat >>conftest.$ac_ext <<_ACEOF
  5478. /* end confdefs.h. */
  5479. $ac_includes_default
  5480. int
  5481. main ()
  5482. {
  5483. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
  5484. test_array [0] = 0
  5485. ;
  5486. return 0;
  5487. }
  5488. _ACEOF
  5489. rm -f conftest.$ac_objext
  5490. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5491. (eval $ac_compile) 2>conftest.er1
  5492. ac_status=$?
  5493. grep -v '^ *+' conftest.er1 >conftest.err
  5494. rm -f conftest.er1
  5495. cat conftest.err >&5
  5496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5497. (exit $ac_status); } &&
  5498. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5499. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5500. (eval $ac_try) 2>&5
  5501. ac_status=$?
  5502. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5503. (exit $ac_status); }; } &&
  5504. { ac_try='test -s conftest.$ac_objext'
  5505. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5506. (eval $ac_try) 2>&5
  5507. ac_status=$?
  5508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5509. (exit $ac_status); }; }; then
  5510. ac_lo=0 ac_mid=0
  5511. while :; do
  5512. cat >conftest.$ac_ext <<_ACEOF
  5513. /* confdefs.h. */
  5514. _ACEOF
  5515. cat confdefs.h >>conftest.$ac_ext
  5516. cat >>conftest.$ac_ext <<_ACEOF
  5517. /* end confdefs.h. */
  5518. $ac_includes_default
  5519. int
  5520. main ()
  5521. {
  5522. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  5523. test_array [0] = 0
  5524. ;
  5525. return 0;
  5526. }
  5527. _ACEOF
  5528. rm -f conftest.$ac_objext
  5529. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5530. (eval $ac_compile) 2>conftest.er1
  5531. ac_status=$?
  5532. grep -v '^ *+' conftest.er1 >conftest.err
  5533. rm -f conftest.er1
  5534. cat conftest.err >&5
  5535. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5536. (exit $ac_status); } &&
  5537. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5538. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5539. (eval $ac_try) 2>&5
  5540. ac_status=$?
  5541. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5542. (exit $ac_status); }; } &&
  5543. { ac_try='test -s conftest.$ac_objext'
  5544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5545. (eval $ac_try) 2>&5
  5546. ac_status=$?
  5547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5548. (exit $ac_status); }; }; then
  5549. ac_hi=$ac_mid; break
  5550. else
  5551. echo "$as_me: failed program was:" >&5
  5552. sed 's/^/| /' conftest.$ac_ext >&5
  5553. ac_lo=`expr $ac_mid + 1`
  5554. if test $ac_lo -le $ac_mid; then
  5555. ac_lo= ac_hi=
  5556. break
  5557. fi
  5558. ac_mid=`expr 2 '*' $ac_mid + 1`
  5559. fi
  5560. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5561. done
  5562. else
  5563. echo "$as_me: failed program was:" >&5
  5564. sed 's/^/| /' conftest.$ac_ext >&5
  5565. cat >conftest.$ac_ext <<_ACEOF
  5566. /* confdefs.h. */
  5567. _ACEOF
  5568. cat confdefs.h >>conftest.$ac_ext
  5569. cat >>conftest.$ac_ext <<_ACEOF
  5570. /* end confdefs.h. */
  5571. $ac_includes_default
  5572. int
  5573. main ()
  5574. {
  5575. static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
  5576. test_array [0] = 0
  5577. ;
  5578. return 0;
  5579. }
  5580. _ACEOF
  5581. rm -f conftest.$ac_objext
  5582. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5583. (eval $ac_compile) 2>conftest.er1
  5584. ac_status=$?
  5585. grep -v '^ *+' conftest.er1 >conftest.err
  5586. rm -f conftest.er1
  5587. cat conftest.err >&5
  5588. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5589. (exit $ac_status); } &&
  5590. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5591. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5592. (eval $ac_try) 2>&5
  5593. ac_status=$?
  5594. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5595. (exit $ac_status); }; } &&
  5596. { ac_try='test -s conftest.$ac_objext'
  5597. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5598. (eval $ac_try) 2>&5
  5599. ac_status=$?
  5600. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5601. (exit $ac_status); }; }; then
  5602. ac_hi=-1 ac_mid=-1
  5603. while :; do
  5604. cat >conftest.$ac_ext <<_ACEOF
  5605. /* confdefs.h. */
  5606. _ACEOF
  5607. cat confdefs.h >>conftest.$ac_ext
  5608. cat >>conftest.$ac_ext <<_ACEOF
  5609. /* end confdefs.h. */
  5610. $ac_includes_default
  5611. int
  5612. main ()
  5613. {
  5614. static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
  5615. test_array [0] = 0
  5616. ;
  5617. return 0;
  5618. }
  5619. _ACEOF
  5620. rm -f conftest.$ac_objext
  5621. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5622. (eval $ac_compile) 2>conftest.er1
  5623. ac_status=$?
  5624. grep -v '^ *+' conftest.er1 >conftest.err
  5625. rm -f conftest.er1
  5626. cat conftest.err >&5
  5627. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5628. (exit $ac_status); } &&
  5629. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5630. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5631. (eval $ac_try) 2>&5
  5632. ac_status=$?
  5633. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5634. (exit $ac_status); }; } &&
  5635. { ac_try='test -s conftest.$ac_objext'
  5636. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5637. (eval $ac_try) 2>&5
  5638. ac_status=$?
  5639. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5640. (exit $ac_status); }; }; then
  5641. ac_lo=$ac_mid; break
  5642. else
  5643. echo "$as_me: failed program was:" >&5
  5644. sed 's/^/| /' conftest.$ac_ext >&5
  5645. ac_hi=`expr '(' $ac_mid ')' - 1`
  5646. if test $ac_mid -le $ac_hi; then
  5647. ac_lo= ac_hi=
  5648. break
  5649. fi
  5650. ac_mid=`expr 2 '*' $ac_mid`
  5651. fi
  5652. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5653. done
  5654. else
  5655. echo "$as_me: failed program was:" >&5
  5656. sed 's/^/| /' conftest.$ac_ext >&5
  5657. ac_lo= ac_hi=
  5658. fi
  5659. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5660. fi
  5661. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5662. # Binary search between lo and hi bounds.
  5663. while test "x$ac_lo" != "x$ac_hi"; do
  5664. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  5665. cat >conftest.$ac_ext <<_ACEOF
  5666. /* confdefs.h. */
  5667. _ACEOF
  5668. cat confdefs.h >>conftest.$ac_ext
  5669. cat >>conftest.$ac_ext <<_ACEOF
  5670. /* end confdefs.h. */
  5671. $ac_includes_default
  5672. int
  5673. main ()
  5674. {
  5675. static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
  5676. test_array [0] = 0
  5677. ;
  5678. return 0;
  5679. }
  5680. _ACEOF
  5681. rm -f conftest.$ac_objext
  5682. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5683. (eval $ac_compile) 2>conftest.er1
  5684. ac_status=$?
  5685. grep -v '^ *+' conftest.er1 >conftest.err
  5686. rm -f conftest.er1
  5687. cat conftest.err >&5
  5688. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5689. (exit $ac_status); } &&
  5690. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5691. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5692. (eval $ac_try) 2>&5
  5693. ac_status=$?
  5694. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5695. (exit $ac_status); }; } &&
  5696. { ac_try='test -s conftest.$ac_objext'
  5697. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5698. (eval $ac_try) 2>&5
  5699. ac_status=$?
  5700. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5701. (exit $ac_status); }; }; then
  5702. ac_hi=$ac_mid
  5703. else
  5704. echo "$as_me: failed program was:" >&5
  5705. sed 's/^/| /' conftest.$ac_ext >&5
  5706. ac_lo=`expr '(' $ac_mid ')' + 1`
  5707. fi
  5708. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5709. done
  5710. case $ac_lo in
  5711. ?*) ac_cv_sizeof_short=$ac_lo;;
  5712. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  5713. See \`config.log' for more details." >&5
  5714. echo "$as_me: error: cannot compute sizeof (short), 77
  5715. See \`config.log' for more details." >&2;}
  5716. { (exit 1); exit 1; }; } ;;
  5717. esac
  5718. else
  5719. if test "$cross_compiling" = yes; then
  5720. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  5721. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  5722. { (exit 1); exit 1; }; }
  5723. else
  5724. cat >conftest.$ac_ext <<_ACEOF
  5725. /* confdefs.h. */
  5726. _ACEOF
  5727. cat confdefs.h >>conftest.$ac_ext
  5728. cat >>conftest.$ac_ext <<_ACEOF
  5729. /* end confdefs.h. */
  5730. $ac_includes_default
  5731. long longval () { return (long) (sizeof (short)); }
  5732. unsigned long ulongval () { return (long) (sizeof (short)); }
  5733. #include <stdio.h>
  5734. #include <stdlib.h>
  5735. int
  5736. main ()
  5737. {
  5738. FILE *f = fopen ("conftest.val", "w");
  5739. if (! f)
  5740. exit (1);
  5741. if (((long) (sizeof (short))) < 0)
  5742. {
  5743. long i = longval ();
  5744. if (i != ((long) (sizeof (short))))
  5745. exit (1);
  5746. fprintf (f, "%ld\n", i);
  5747. }
  5748. else
  5749. {
  5750. unsigned long i = ulongval ();
  5751. if (i != ((long) (sizeof (short))))
  5752. exit (1);
  5753. fprintf (f, "%lu\n", i);
  5754. }
  5755. exit (ferror (f) || fclose (f) != 0);
  5756. ;
  5757. return 0;
  5758. }
  5759. _ACEOF
  5760. rm -f conftest$ac_exeext
  5761. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5762. (eval $ac_link) 2>&5
  5763. ac_status=$?
  5764. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5765. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  5766. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5767. (eval $ac_try) 2>&5
  5768. ac_status=$?
  5769. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5770. (exit $ac_status); }; }; then
  5771. ac_cv_sizeof_short=`cat conftest.val`
  5772. else
  5773. echo "$as_me: program exited with status $ac_status" >&5
  5774. echo "$as_me: failed program was:" >&5
  5775. sed 's/^/| /' conftest.$ac_ext >&5
  5776. ( exit $ac_status )
  5777. { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
  5778. See \`config.log' for more details." >&5
  5779. echo "$as_me: error: cannot compute sizeof (short), 77
  5780. See \`config.log' for more details." >&2;}
  5781. { (exit 1); exit 1; }; }
  5782. fi
  5783. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  5784. fi
  5785. fi
  5786. rm -f conftest.val
  5787. else
  5788. ac_cv_sizeof_short=0
  5789. fi
  5790. fi
  5791. echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
  5792. echo "${ECHO_T}$ac_cv_sizeof_short" >&6
  5793. cat >>confdefs.h <<_ACEOF
  5794. #define SIZEOF_SHORT $ac_cv_sizeof_short
  5795. _ACEOF
  5796. echo "$as_me:$LINENO: checking for long" >&5
  5797. echo $ECHO_N "checking for long... $ECHO_C" >&6
  5798. if test "${ac_cv_type_long+set}" = set; then
  5799. echo $ECHO_N "(cached) $ECHO_C" >&6
  5800. else
  5801. cat >conftest.$ac_ext <<_ACEOF
  5802. /* confdefs.h. */
  5803. _ACEOF
  5804. cat confdefs.h >>conftest.$ac_ext
  5805. cat >>conftest.$ac_ext <<_ACEOF
  5806. /* end confdefs.h. */
  5807. $ac_includes_default
  5808. int
  5809. main ()
  5810. {
  5811. if ((long *) 0)
  5812. return 0;
  5813. if (sizeof (long))
  5814. return 0;
  5815. ;
  5816. return 0;
  5817. }
  5818. _ACEOF
  5819. rm -f conftest.$ac_objext
  5820. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5821. (eval $ac_compile) 2>conftest.er1
  5822. ac_status=$?
  5823. grep -v '^ *+' conftest.er1 >conftest.err
  5824. rm -f conftest.er1
  5825. cat conftest.err >&5
  5826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5827. (exit $ac_status); } &&
  5828. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5829. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5830. (eval $ac_try) 2>&5
  5831. ac_status=$?
  5832. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5833. (exit $ac_status); }; } &&
  5834. { ac_try='test -s conftest.$ac_objext'
  5835. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5836. (eval $ac_try) 2>&5
  5837. ac_status=$?
  5838. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5839. (exit $ac_status); }; }; then
  5840. ac_cv_type_long=yes
  5841. else
  5842. echo "$as_me: failed program was:" >&5
  5843. sed 's/^/| /' conftest.$ac_ext >&5
  5844. ac_cv_type_long=no
  5845. fi
  5846. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5847. fi
  5848. echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
  5849. echo "${ECHO_T}$ac_cv_type_long" >&6
  5850. echo "$as_me:$LINENO: checking size of long" >&5
  5851. echo $ECHO_N "checking size of long... $ECHO_C" >&6
  5852. if test "${ac_cv_sizeof_long+set}" = set; then
  5853. echo $ECHO_N "(cached) $ECHO_C" >&6
  5854. else
  5855. if test "$ac_cv_type_long" = yes; then
  5856. # The cast to unsigned long works around a bug in the HP C Compiler
  5857. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  5858. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  5859. # This bug is HP SR number 8606223364.
  5860. if test "$cross_compiling" = yes; then
  5861. # Depending upon the size, compute the lo and hi bounds.
  5862. cat >conftest.$ac_ext <<_ACEOF
  5863. /* confdefs.h. */
  5864. _ACEOF
  5865. cat confdefs.h >>conftest.$ac_ext
  5866. cat >>conftest.$ac_ext <<_ACEOF
  5867. /* end confdefs.h. */
  5868. $ac_includes_default
  5869. int
  5870. main ()
  5871. {
  5872. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
  5873. test_array [0] = 0
  5874. ;
  5875. return 0;
  5876. }
  5877. _ACEOF
  5878. rm -f conftest.$ac_objext
  5879. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5880. (eval $ac_compile) 2>conftest.er1
  5881. ac_status=$?
  5882. grep -v '^ *+' conftest.er1 >conftest.err
  5883. rm -f conftest.er1
  5884. cat conftest.err >&5
  5885. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5886. (exit $ac_status); } &&
  5887. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5888. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5889. (eval $ac_try) 2>&5
  5890. ac_status=$?
  5891. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5892. (exit $ac_status); }; } &&
  5893. { ac_try='test -s conftest.$ac_objext'
  5894. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5895. (eval $ac_try) 2>&5
  5896. ac_status=$?
  5897. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5898. (exit $ac_status); }; }; then
  5899. ac_lo=0 ac_mid=0
  5900. while :; do
  5901. cat >conftest.$ac_ext <<_ACEOF
  5902. /* confdefs.h. */
  5903. _ACEOF
  5904. cat confdefs.h >>conftest.$ac_ext
  5905. cat >>conftest.$ac_ext <<_ACEOF
  5906. /* end confdefs.h. */
  5907. $ac_includes_default
  5908. int
  5909. main ()
  5910. {
  5911. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  5912. test_array [0] = 0
  5913. ;
  5914. return 0;
  5915. }
  5916. _ACEOF
  5917. rm -f conftest.$ac_objext
  5918. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5919. (eval $ac_compile) 2>conftest.er1
  5920. ac_status=$?
  5921. grep -v '^ *+' conftest.er1 >conftest.err
  5922. rm -f conftest.er1
  5923. cat conftest.err >&5
  5924. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5925. (exit $ac_status); } &&
  5926. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5927. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5928. (eval $ac_try) 2>&5
  5929. ac_status=$?
  5930. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5931. (exit $ac_status); }; } &&
  5932. { ac_try='test -s conftest.$ac_objext'
  5933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5934. (eval $ac_try) 2>&5
  5935. ac_status=$?
  5936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5937. (exit $ac_status); }; }; then
  5938. ac_hi=$ac_mid; break
  5939. else
  5940. echo "$as_me: failed program was:" >&5
  5941. sed 's/^/| /' conftest.$ac_ext >&5
  5942. ac_lo=`expr $ac_mid + 1`
  5943. if test $ac_lo -le $ac_mid; then
  5944. ac_lo= ac_hi=
  5945. break
  5946. fi
  5947. ac_mid=`expr 2 '*' $ac_mid + 1`
  5948. fi
  5949. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5950. done
  5951. else
  5952. echo "$as_me: failed program was:" >&5
  5953. sed 's/^/| /' conftest.$ac_ext >&5
  5954. cat >conftest.$ac_ext <<_ACEOF
  5955. /* confdefs.h. */
  5956. _ACEOF
  5957. cat confdefs.h >>conftest.$ac_ext
  5958. cat >>conftest.$ac_ext <<_ACEOF
  5959. /* end confdefs.h. */
  5960. $ac_includes_default
  5961. int
  5962. main ()
  5963. {
  5964. static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
  5965. test_array [0] = 0
  5966. ;
  5967. return 0;
  5968. }
  5969. _ACEOF
  5970. rm -f conftest.$ac_objext
  5971. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5972. (eval $ac_compile) 2>conftest.er1
  5973. ac_status=$?
  5974. grep -v '^ *+' conftest.er1 >conftest.err
  5975. rm -f conftest.er1
  5976. cat conftest.err >&5
  5977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5978. (exit $ac_status); } &&
  5979. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  5980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5981. (eval $ac_try) 2>&5
  5982. ac_status=$?
  5983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5984. (exit $ac_status); }; } &&
  5985. { ac_try='test -s conftest.$ac_objext'
  5986. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5987. (eval $ac_try) 2>&5
  5988. ac_status=$?
  5989. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5990. (exit $ac_status); }; }; then
  5991. ac_hi=-1 ac_mid=-1
  5992. while :; do
  5993. cat >conftest.$ac_ext <<_ACEOF
  5994. /* confdefs.h. */
  5995. _ACEOF
  5996. cat confdefs.h >>conftest.$ac_ext
  5997. cat >>conftest.$ac_ext <<_ACEOF
  5998. /* end confdefs.h. */
  5999. $ac_includes_default
  6000. int
  6001. main ()
  6002. {
  6003. static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
  6004. test_array [0] = 0
  6005. ;
  6006. return 0;
  6007. }
  6008. _ACEOF
  6009. rm -f conftest.$ac_objext
  6010. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6011. (eval $ac_compile) 2>conftest.er1
  6012. ac_status=$?
  6013. grep -v '^ *+' conftest.er1 >conftest.err
  6014. rm -f conftest.er1
  6015. cat conftest.err >&5
  6016. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6017. (exit $ac_status); } &&
  6018. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6019. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6020. (eval $ac_try) 2>&5
  6021. ac_status=$?
  6022. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6023. (exit $ac_status); }; } &&
  6024. { ac_try='test -s conftest.$ac_objext'
  6025. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6026. (eval $ac_try) 2>&5
  6027. ac_status=$?
  6028. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6029. (exit $ac_status); }; }; then
  6030. ac_lo=$ac_mid; break
  6031. else
  6032. echo "$as_me: failed program was:" >&5
  6033. sed 's/^/| /' conftest.$ac_ext >&5
  6034. ac_hi=`expr '(' $ac_mid ')' - 1`
  6035. if test $ac_mid -le $ac_hi; then
  6036. ac_lo= ac_hi=
  6037. break
  6038. fi
  6039. ac_mid=`expr 2 '*' $ac_mid`
  6040. fi
  6041. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6042. done
  6043. else
  6044. echo "$as_me: failed program was:" >&5
  6045. sed 's/^/| /' conftest.$ac_ext >&5
  6046. ac_lo= ac_hi=
  6047. fi
  6048. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6049. fi
  6050. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6051. # Binary search between lo and hi bounds.
  6052. while test "x$ac_lo" != "x$ac_hi"; do
  6053. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6054. cat >conftest.$ac_ext <<_ACEOF
  6055. /* confdefs.h. */
  6056. _ACEOF
  6057. cat confdefs.h >>conftest.$ac_ext
  6058. cat >>conftest.$ac_ext <<_ACEOF
  6059. /* end confdefs.h. */
  6060. $ac_includes_default
  6061. int
  6062. main ()
  6063. {
  6064. static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
  6065. test_array [0] = 0
  6066. ;
  6067. return 0;
  6068. }
  6069. _ACEOF
  6070. rm -f conftest.$ac_objext
  6071. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6072. (eval $ac_compile) 2>conftest.er1
  6073. ac_status=$?
  6074. grep -v '^ *+' conftest.er1 >conftest.err
  6075. rm -f conftest.er1
  6076. cat conftest.err >&5
  6077. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6078. (exit $ac_status); } &&
  6079. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6080. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6081. (eval $ac_try) 2>&5
  6082. ac_status=$?
  6083. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6084. (exit $ac_status); }; } &&
  6085. { ac_try='test -s conftest.$ac_objext'
  6086. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6087. (eval $ac_try) 2>&5
  6088. ac_status=$?
  6089. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6090. (exit $ac_status); }; }; then
  6091. ac_hi=$ac_mid
  6092. else
  6093. echo "$as_me: failed program was:" >&5
  6094. sed 's/^/| /' conftest.$ac_ext >&5
  6095. ac_lo=`expr '(' $ac_mid ')' + 1`
  6096. fi
  6097. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6098. done
  6099. case $ac_lo in
  6100. ?*) ac_cv_sizeof_long=$ac_lo;;
  6101. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6102. See \`config.log' for more details." >&5
  6103. echo "$as_me: error: cannot compute sizeof (long), 77
  6104. See \`config.log' for more details." >&2;}
  6105. { (exit 1); exit 1; }; } ;;
  6106. esac
  6107. else
  6108. if test "$cross_compiling" = yes; then
  6109. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6110. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6111. { (exit 1); exit 1; }; }
  6112. else
  6113. cat >conftest.$ac_ext <<_ACEOF
  6114. /* confdefs.h. */
  6115. _ACEOF
  6116. cat confdefs.h >>conftest.$ac_ext
  6117. cat >>conftest.$ac_ext <<_ACEOF
  6118. /* end confdefs.h. */
  6119. $ac_includes_default
  6120. long longval () { return (long) (sizeof (long)); }
  6121. unsigned long ulongval () { return (long) (sizeof (long)); }
  6122. #include <stdio.h>
  6123. #include <stdlib.h>
  6124. int
  6125. main ()
  6126. {
  6127. FILE *f = fopen ("conftest.val", "w");
  6128. if (! f)
  6129. exit (1);
  6130. if (((long) (sizeof (long))) < 0)
  6131. {
  6132. long i = longval ();
  6133. if (i != ((long) (sizeof (long))))
  6134. exit (1);
  6135. fprintf (f, "%ld\n", i);
  6136. }
  6137. else
  6138. {
  6139. unsigned long i = ulongval ();
  6140. if (i != ((long) (sizeof (long))))
  6141. exit (1);
  6142. fprintf (f, "%lu\n", i);
  6143. }
  6144. exit (ferror (f) || fclose (f) != 0);
  6145. ;
  6146. return 0;
  6147. }
  6148. _ACEOF
  6149. rm -f conftest$ac_exeext
  6150. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6151. (eval $ac_link) 2>&5
  6152. ac_status=$?
  6153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6154. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6155. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6156. (eval $ac_try) 2>&5
  6157. ac_status=$?
  6158. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6159. (exit $ac_status); }; }; then
  6160. ac_cv_sizeof_long=`cat conftest.val`
  6161. else
  6162. echo "$as_me: program exited with status $ac_status" >&5
  6163. echo "$as_me: failed program was:" >&5
  6164. sed 's/^/| /' conftest.$ac_ext >&5
  6165. ( exit $ac_status )
  6166. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
  6167. See \`config.log' for more details." >&5
  6168. echo "$as_me: error: cannot compute sizeof (long), 77
  6169. See \`config.log' for more details." >&2;}
  6170. { (exit 1); exit 1; }; }
  6171. fi
  6172. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6173. fi
  6174. fi
  6175. rm -f conftest.val
  6176. else
  6177. ac_cv_sizeof_long=0
  6178. fi
  6179. fi
  6180. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
  6181. echo "${ECHO_T}$ac_cv_sizeof_long" >&6
  6182. cat >>confdefs.h <<_ACEOF
  6183. #define SIZEOF_LONG $ac_cv_sizeof_long
  6184. _ACEOF
  6185. echo "$as_me:$LINENO: checking for long long" >&5
  6186. echo $ECHO_N "checking for long long... $ECHO_C" >&6
  6187. if test "${ac_cv_type_long_long+set}" = set; then
  6188. echo $ECHO_N "(cached) $ECHO_C" >&6
  6189. else
  6190. cat >conftest.$ac_ext <<_ACEOF
  6191. /* confdefs.h. */
  6192. _ACEOF
  6193. cat confdefs.h >>conftest.$ac_ext
  6194. cat >>conftest.$ac_ext <<_ACEOF
  6195. /* end confdefs.h. */
  6196. $ac_includes_default
  6197. int
  6198. main ()
  6199. {
  6200. if ((long long *) 0)
  6201. return 0;
  6202. if (sizeof (long long))
  6203. return 0;
  6204. ;
  6205. return 0;
  6206. }
  6207. _ACEOF
  6208. rm -f conftest.$ac_objext
  6209. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6210. (eval $ac_compile) 2>conftest.er1
  6211. ac_status=$?
  6212. grep -v '^ *+' conftest.er1 >conftest.err
  6213. rm -f conftest.er1
  6214. cat conftest.err >&5
  6215. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6216. (exit $ac_status); } &&
  6217. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6218. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6219. (eval $ac_try) 2>&5
  6220. ac_status=$?
  6221. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6222. (exit $ac_status); }; } &&
  6223. { ac_try='test -s conftest.$ac_objext'
  6224. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6225. (eval $ac_try) 2>&5
  6226. ac_status=$?
  6227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6228. (exit $ac_status); }; }; then
  6229. ac_cv_type_long_long=yes
  6230. else
  6231. echo "$as_me: failed program was:" >&5
  6232. sed 's/^/| /' conftest.$ac_ext >&5
  6233. ac_cv_type_long_long=no
  6234. fi
  6235. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6236. fi
  6237. echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
  6238. echo "${ECHO_T}$ac_cv_type_long_long" >&6
  6239. echo "$as_me:$LINENO: checking size of long long" >&5
  6240. echo $ECHO_N "checking size of long long... $ECHO_C" >&6
  6241. if test "${ac_cv_sizeof_long_long+set}" = set; then
  6242. echo $ECHO_N "(cached) $ECHO_C" >&6
  6243. else
  6244. if test "$ac_cv_type_long_long" = yes; then
  6245. # The cast to unsigned long works around a bug in the HP C Compiler
  6246. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  6247. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  6248. # This bug is HP SR number 8606223364.
  6249. if test "$cross_compiling" = yes; then
  6250. # Depending upon the size, compute the lo and hi bounds.
  6251. cat >conftest.$ac_ext <<_ACEOF
  6252. /* confdefs.h. */
  6253. _ACEOF
  6254. cat confdefs.h >>conftest.$ac_ext
  6255. cat >>conftest.$ac_ext <<_ACEOF
  6256. /* end confdefs.h. */
  6257. $ac_includes_default
  6258. int
  6259. main ()
  6260. {
  6261. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
  6262. test_array [0] = 0
  6263. ;
  6264. return 0;
  6265. }
  6266. _ACEOF
  6267. rm -f conftest.$ac_objext
  6268. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6269. (eval $ac_compile) 2>conftest.er1
  6270. ac_status=$?
  6271. grep -v '^ *+' conftest.er1 >conftest.err
  6272. rm -f conftest.er1
  6273. cat conftest.err >&5
  6274. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6275. (exit $ac_status); } &&
  6276. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6277. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6278. (eval $ac_try) 2>&5
  6279. ac_status=$?
  6280. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6281. (exit $ac_status); }; } &&
  6282. { ac_try='test -s conftest.$ac_objext'
  6283. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6284. (eval $ac_try) 2>&5
  6285. ac_status=$?
  6286. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6287. (exit $ac_status); }; }; then
  6288. ac_lo=0 ac_mid=0
  6289. while :; do
  6290. cat >conftest.$ac_ext <<_ACEOF
  6291. /* confdefs.h. */
  6292. _ACEOF
  6293. cat confdefs.h >>conftest.$ac_ext
  6294. cat >>conftest.$ac_ext <<_ACEOF
  6295. /* end confdefs.h. */
  6296. $ac_includes_default
  6297. int
  6298. main ()
  6299. {
  6300. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  6301. test_array [0] = 0
  6302. ;
  6303. return 0;
  6304. }
  6305. _ACEOF
  6306. rm -f conftest.$ac_objext
  6307. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6308. (eval $ac_compile) 2>conftest.er1
  6309. ac_status=$?
  6310. grep -v '^ *+' conftest.er1 >conftest.err
  6311. rm -f conftest.er1
  6312. cat conftest.err >&5
  6313. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6314. (exit $ac_status); } &&
  6315. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6317. (eval $ac_try) 2>&5
  6318. ac_status=$?
  6319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6320. (exit $ac_status); }; } &&
  6321. { ac_try='test -s conftest.$ac_objext'
  6322. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6323. (eval $ac_try) 2>&5
  6324. ac_status=$?
  6325. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6326. (exit $ac_status); }; }; then
  6327. ac_hi=$ac_mid; break
  6328. else
  6329. echo "$as_me: failed program was:" >&5
  6330. sed 's/^/| /' conftest.$ac_ext >&5
  6331. ac_lo=`expr $ac_mid + 1`
  6332. if test $ac_lo -le $ac_mid; then
  6333. ac_lo= ac_hi=
  6334. break
  6335. fi
  6336. ac_mid=`expr 2 '*' $ac_mid + 1`
  6337. fi
  6338. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6339. done
  6340. else
  6341. echo "$as_me: failed program was:" >&5
  6342. sed 's/^/| /' conftest.$ac_ext >&5
  6343. cat >conftest.$ac_ext <<_ACEOF
  6344. /* confdefs.h. */
  6345. _ACEOF
  6346. cat confdefs.h >>conftest.$ac_ext
  6347. cat >>conftest.$ac_ext <<_ACEOF
  6348. /* end confdefs.h. */
  6349. $ac_includes_default
  6350. int
  6351. main ()
  6352. {
  6353. static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
  6354. test_array [0] = 0
  6355. ;
  6356. return 0;
  6357. }
  6358. _ACEOF
  6359. rm -f conftest.$ac_objext
  6360. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6361. (eval $ac_compile) 2>conftest.er1
  6362. ac_status=$?
  6363. grep -v '^ *+' conftest.er1 >conftest.err
  6364. rm -f conftest.er1
  6365. cat conftest.err >&5
  6366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6367. (exit $ac_status); } &&
  6368. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6369. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6370. (eval $ac_try) 2>&5
  6371. ac_status=$?
  6372. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6373. (exit $ac_status); }; } &&
  6374. { ac_try='test -s conftest.$ac_objext'
  6375. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6376. (eval $ac_try) 2>&5
  6377. ac_status=$?
  6378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6379. (exit $ac_status); }; }; then
  6380. ac_hi=-1 ac_mid=-1
  6381. while :; do
  6382. cat >conftest.$ac_ext <<_ACEOF
  6383. /* confdefs.h. */
  6384. _ACEOF
  6385. cat confdefs.h >>conftest.$ac_ext
  6386. cat >>conftest.$ac_ext <<_ACEOF
  6387. /* end confdefs.h. */
  6388. $ac_includes_default
  6389. int
  6390. main ()
  6391. {
  6392. static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
  6393. test_array [0] = 0
  6394. ;
  6395. return 0;
  6396. }
  6397. _ACEOF
  6398. rm -f conftest.$ac_objext
  6399. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6400. (eval $ac_compile) 2>conftest.er1
  6401. ac_status=$?
  6402. grep -v '^ *+' conftest.er1 >conftest.err
  6403. rm -f conftest.er1
  6404. cat conftest.err >&5
  6405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6406. (exit $ac_status); } &&
  6407. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6408. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6409. (eval $ac_try) 2>&5
  6410. ac_status=$?
  6411. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6412. (exit $ac_status); }; } &&
  6413. { ac_try='test -s conftest.$ac_objext'
  6414. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6415. (eval $ac_try) 2>&5
  6416. ac_status=$?
  6417. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6418. (exit $ac_status); }; }; then
  6419. ac_lo=$ac_mid; break
  6420. else
  6421. echo "$as_me: failed program was:" >&5
  6422. sed 's/^/| /' conftest.$ac_ext >&5
  6423. ac_hi=`expr '(' $ac_mid ')' - 1`
  6424. if test $ac_mid -le $ac_hi; then
  6425. ac_lo= ac_hi=
  6426. break
  6427. fi
  6428. ac_mid=`expr 2 '*' $ac_mid`
  6429. fi
  6430. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6431. done
  6432. else
  6433. echo "$as_me: failed program was:" >&5
  6434. sed 's/^/| /' conftest.$ac_ext >&5
  6435. ac_lo= ac_hi=
  6436. fi
  6437. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6438. fi
  6439. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6440. # Binary search between lo and hi bounds.
  6441. while test "x$ac_lo" != "x$ac_hi"; do
  6442. ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
  6443. cat >conftest.$ac_ext <<_ACEOF
  6444. /* confdefs.h. */
  6445. _ACEOF
  6446. cat confdefs.h >>conftest.$ac_ext
  6447. cat >>conftest.$ac_ext <<_ACEOF
  6448. /* end confdefs.h. */
  6449. $ac_includes_default
  6450. int
  6451. main ()
  6452. {
  6453. static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
  6454. test_array [0] = 0
  6455. ;
  6456. return 0;
  6457. }
  6458. _ACEOF
  6459. rm -f conftest.$ac_objext
  6460. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6461. (eval $ac_compile) 2>conftest.er1
  6462. ac_status=$?
  6463. grep -v '^ *+' conftest.er1 >conftest.err
  6464. rm -f conftest.er1
  6465. cat conftest.err >&5
  6466. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6467. (exit $ac_status); } &&
  6468. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6470. (eval $ac_try) 2>&5
  6471. ac_status=$?
  6472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6473. (exit $ac_status); }; } &&
  6474. { ac_try='test -s conftest.$ac_objext'
  6475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6476. (eval $ac_try) 2>&5
  6477. ac_status=$?
  6478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6479. (exit $ac_status); }; }; then
  6480. ac_hi=$ac_mid
  6481. else
  6482. echo "$as_me: failed program was:" >&5
  6483. sed 's/^/| /' conftest.$ac_ext >&5
  6484. ac_lo=`expr '(' $ac_mid ')' + 1`
  6485. fi
  6486. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6487. done
  6488. case $ac_lo in
  6489. ?*) ac_cv_sizeof_long_long=$ac_lo;;
  6490. '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  6491. See \`config.log' for more details." >&5
  6492. echo "$as_me: error: cannot compute sizeof (long long), 77
  6493. See \`config.log' for more details." >&2;}
  6494. { (exit 1); exit 1; }; } ;;
  6495. esac
  6496. else
  6497. if test "$cross_compiling" = yes; then
  6498. { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
  6499. echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
  6500. { (exit 1); exit 1; }; }
  6501. else
  6502. cat >conftest.$ac_ext <<_ACEOF
  6503. /* confdefs.h. */
  6504. _ACEOF
  6505. cat confdefs.h >>conftest.$ac_ext
  6506. cat >>conftest.$ac_ext <<_ACEOF
  6507. /* end confdefs.h. */
  6508. $ac_includes_default
  6509. long longval () { return (long) (sizeof (long long)); }
  6510. unsigned long ulongval () { return (long) (sizeof (long long)); }
  6511. #include <stdio.h>
  6512. #include <stdlib.h>
  6513. int
  6514. main ()
  6515. {
  6516. FILE *f = fopen ("conftest.val", "w");
  6517. if (! f)
  6518. exit (1);
  6519. if (((long) (sizeof (long long))) < 0)
  6520. {
  6521. long i = longval ();
  6522. if (i != ((long) (sizeof (long long))))
  6523. exit (1);
  6524. fprintf (f, "%ld\n", i);
  6525. }
  6526. else
  6527. {
  6528. unsigned long i = ulongval ();
  6529. if (i != ((long) (sizeof (long long))))
  6530. exit (1);
  6531. fprintf (f, "%lu\n", i);
  6532. }
  6533. exit (ferror (f) || fclose (f) != 0);
  6534. ;
  6535. return 0;
  6536. }
  6537. _ACEOF
  6538. rm -f conftest$ac_exeext
  6539. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6540. (eval $ac_link) 2>&5
  6541. ac_status=$?
  6542. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6543. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  6544. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6545. (eval $ac_try) 2>&5
  6546. ac_status=$?
  6547. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6548. (exit $ac_status); }; }; then
  6549. ac_cv_sizeof_long_long=`cat conftest.val`
  6550. else
  6551. echo "$as_me: program exited with status $ac_status" >&5
  6552. echo "$as_me: failed program was:" >&5
  6553. sed 's/^/| /' conftest.$ac_ext >&5
  6554. ( exit $ac_status )
  6555. { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
  6556. See \`config.log' for more details." >&5
  6557. echo "$as_me: error: cannot compute sizeof (long long), 77
  6558. See \`config.log' for more details." >&2;}
  6559. { (exit 1); exit 1; }; }
  6560. fi
  6561. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  6562. fi
  6563. fi
  6564. rm -f conftest.val
  6565. else
  6566. ac_cv_sizeof_long_long=0
  6567. fi
  6568. fi
  6569. echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
  6570. echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
  6571. cat >>confdefs.h <<_ACEOF
  6572. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  6573. _ACEOF
  6574. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6575. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6576. if test "${ac_cv_struct_tm+set}" = set; then
  6577. echo $ECHO_N "(cached) $ECHO_C" >&6
  6578. else
  6579. cat >conftest.$ac_ext <<_ACEOF
  6580. /* confdefs.h. */
  6581. _ACEOF
  6582. cat confdefs.h >>conftest.$ac_ext
  6583. cat >>conftest.$ac_ext <<_ACEOF
  6584. /* end confdefs.h. */
  6585. #include <sys/types.h>
  6586. #include <time.h>
  6587. int
  6588. main ()
  6589. {
  6590. struct tm *tp; tp->tm_sec;
  6591. ;
  6592. return 0;
  6593. }
  6594. _ACEOF
  6595. rm -f conftest.$ac_objext
  6596. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6597. (eval $ac_compile) 2>conftest.er1
  6598. ac_status=$?
  6599. grep -v '^ *+' conftest.er1 >conftest.err
  6600. rm -f conftest.er1
  6601. cat conftest.err >&5
  6602. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6603. (exit $ac_status); } &&
  6604. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6605. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6606. (eval $ac_try) 2>&5
  6607. ac_status=$?
  6608. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6609. (exit $ac_status); }; } &&
  6610. { ac_try='test -s conftest.$ac_objext'
  6611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6612. (eval $ac_try) 2>&5
  6613. ac_status=$?
  6614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6615. (exit $ac_status); }; }; then
  6616. ac_cv_struct_tm=time.h
  6617. else
  6618. echo "$as_me: failed program was:" >&5
  6619. sed 's/^/| /' conftest.$ac_ext >&5
  6620. ac_cv_struct_tm=sys/time.h
  6621. fi
  6622. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6623. fi
  6624. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6625. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  6626. if test $ac_cv_struct_tm = sys/time.h; then
  6627. cat >>confdefs.h <<\_ACEOF
  6628. #define TM_IN_SYS_TIME 1
  6629. _ACEOF
  6630. fi
  6631. echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
  6632. echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6
  6633. if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
  6634. echo $ECHO_N "(cached) $ECHO_C" >&6
  6635. else
  6636. cat >conftest.$ac_ext <<_ACEOF
  6637. /* confdefs.h. */
  6638. _ACEOF
  6639. cat confdefs.h >>conftest.$ac_ext
  6640. cat >>conftest.$ac_ext <<_ACEOF
  6641. /* end confdefs.h. */
  6642. #include <sys/types.h>
  6643. #include <$ac_cv_struct_tm>
  6644. int
  6645. main ()
  6646. {
  6647. static struct tm ac_aggr;
  6648. if (ac_aggr.tm_zone)
  6649. return 0;
  6650. ;
  6651. return 0;
  6652. }
  6653. _ACEOF
  6654. rm -f conftest.$ac_objext
  6655. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6656. (eval $ac_compile) 2>conftest.er1
  6657. ac_status=$?
  6658. grep -v '^ *+' conftest.er1 >conftest.err
  6659. rm -f conftest.er1
  6660. cat conftest.err >&5
  6661. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6662. (exit $ac_status); } &&
  6663. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6665. (eval $ac_try) 2>&5
  6666. ac_status=$?
  6667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6668. (exit $ac_status); }; } &&
  6669. { ac_try='test -s conftest.$ac_objext'
  6670. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6671. (eval $ac_try) 2>&5
  6672. ac_status=$?
  6673. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6674. (exit $ac_status); }; }; then
  6675. ac_cv_member_struct_tm_tm_zone=yes
  6676. else
  6677. echo "$as_me: failed program was:" >&5
  6678. sed 's/^/| /' conftest.$ac_ext >&5
  6679. cat >conftest.$ac_ext <<_ACEOF
  6680. /* confdefs.h. */
  6681. _ACEOF
  6682. cat confdefs.h >>conftest.$ac_ext
  6683. cat >>conftest.$ac_ext <<_ACEOF
  6684. /* end confdefs.h. */
  6685. #include <sys/types.h>
  6686. #include <$ac_cv_struct_tm>
  6687. int
  6688. main ()
  6689. {
  6690. static struct tm ac_aggr;
  6691. if (sizeof ac_aggr.tm_zone)
  6692. return 0;
  6693. ;
  6694. return 0;
  6695. }
  6696. _ACEOF
  6697. rm -f conftest.$ac_objext
  6698. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6699. (eval $ac_compile) 2>conftest.er1
  6700. ac_status=$?
  6701. grep -v '^ *+' conftest.er1 >conftest.err
  6702. rm -f conftest.er1
  6703. cat conftest.err >&5
  6704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6705. (exit $ac_status); } &&
  6706. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6708. (eval $ac_try) 2>&5
  6709. ac_status=$?
  6710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6711. (exit $ac_status); }; } &&
  6712. { ac_try='test -s conftest.$ac_objext'
  6713. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6714. (eval $ac_try) 2>&5
  6715. ac_status=$?
  6716. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6717. (exit $ac_status); }; }; then
  6718. ac_cv_member_struct_tm_tm_zone=yes
  6719. else
  6720. echo "$as_me: failed program was:" >&5
  6721. sed 's/^/| /' conftest.$ac_ext >&5
  6722. ac_cv_member_struct_tm_tm_zone=no
  6723. fi
  6724. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6725. fi
  6726. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6727. fi
  6728. echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
  6729. echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6
  6730. if test $ac_cv_member_struct_tm_tm_zone = yes; then
  6731. cat >>confdefs.h <<_ACEOF
  6732. #define HAVE_STRUCT_TM_TM_ZONE 1
  6733. _ACEOF
  6734. fi
  6735. if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
  6736. cat >>confdefs.h <<\_ACEOF
  6737. #define HAVE_TM_ZONE 1
  6738. _ACEOF
  6739. else
  6740. echo "$as_me:$LINENO: checking for tzname" >&5
  6741. echo $ECHO_N "checking for tzname... $ECHO_C" >&6
  6742. if test "${ac_cv_var_tzname+set}" = set; then
  6743. echo $ECHO_N "(cached) $ECHO_C" >&6
  6744. else
  6745. cat >conftest.$ac_ext <<_ACEOF
  6746. /* confdefs.h. */
  6747. _ACEOF
  6748. cat confdefs.h >>conftest.$ac_ext
  6749. cat >>conftest.$ac_ext <<_ACEOF
  6750. /* end confdefs.h. */
  6751. #include <time.h>
  6752. #ifndef tzname /* For SGI. */
  6753. extern char *tzname[]; /* RS6000 and others reject char **tzname. */
  6754. #endif
  6755. int
  6756. main ()
  6757. {
  6758. atoi(*tzname);
  6759. ;
  6760. return 0;
  6761. }
  6762. _ACEOF
  6763. rm -f conftest.$ac_objext conftest$ac_exeext
  6764. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  6765. (eval $ac_link) 2>conftest.er1
  6766. ac_status=$?
  6767. grep -v '^ *+' conftest.er1 >conftest.err
  6768. rm -f conftest.er1
  6769. cat conftest.err >&5
  6770. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6771. (exit $ac_status); } &&
  6772. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6773. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6774. (eval $ac_try) 2>&5
  6775. ac_status=$?
  6776. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6777. (exit $ac_status); }; } &&
  6778. { ac_try='test -s conftest$ac_exeext'
  6779. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6780. (eval $ac_try) 2>&5
  6781. ac_status=$?
  6782. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6783. (exit $ac_status); }; }; then
  6784. ac_cv_var_tzname=yes
  6785. else
  6786. echo "$as_me: failed program was:" >&5
  6787. sed 's/^/| /' conftest.$ac_ext >&5
  6788. ac_cv_var_tzname=no
  6789. fi
  6790. rm -f conftest.err conftest.$ac_objext \
  6791. conftest$ac_exeext conftest.$ac_ext
  6792. fi
  6793. echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
  6794. echo "${ECHO_T}$ac_cv_var_tzname" >&6
  6795. if test $ac_cv_var_tzname = yes; then
  6796. cat >>confdefs.h <<\_ACEOF
  6797. #define HAVE_TZNAME 1
  6798. _ACEOF
  6799. fi
  6800. fi
  6801. echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
  6802. echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
  6803. if test "${ac_cv_struct_tm+set}" = set; then
  6804. echo $ECHO_N "(cached) $ECHO_C" >&6
  6805. else
  6806. cat >conftest.$ac_ext <<_ACEOF
  6807. /* confdefs.h. */
  6808. _ACEOF
  6809. cat confdefs.h >>conftest.$ac_ext
  6810. cat >>conftest.$ac_ext <<_ACEOF
  6811. /* end confdefs.h. */
  6812. #include <sys/types.h>
  6813. #include <time.h>
  6814. int
  6815. main ()
  6816. {
  6817. struct tm *tp; tp->tm_sec;
  6818. ;
  6819. return 0;
  6820. }
  6821. _ACEOF
  6822. rm -f conftest.$ac_objext
  6823. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6824. (eval $ac_compile) 2>conftest.er1
  6825. ac_status=$?
  6826. grep -v '^ *+' conftest.er1 >conftest.err
  6827. rm -f conftest.er1
  6828. cat conftest.err >&5
  6829. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6830. (exit $ac_status); } &&
  6831. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6832. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6833. (eval $ac_try) 2>&5
  6834. ac_status=$?
  6835. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6836. (exit $ac_status); }; } &&
  6837. { ac_try='test -s conftest.$ac_objext'
  6838. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6839. (eval $ac_try) 2>&5
  6840. ac_status=$?
  6841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6842. (exit $ac_status); }; }; then
  6843. ac_cv_struct_tm=time.h
  6844. else
  6845. echo "$as_me: failed program was:" >&5
  6846. sed 's/^/| /' conftest.$ac_ext >&5
  6847. ac_cv_struct_tm=sys/time.h
  6848. fi
  6849. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6850. fi
  6851. echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
  6852. echo "${ECHO_T}$ac_cv_struct_tm" >&6
  6853. if test $ac_cv_struct_tm = sys/time.h; then
  6854. cat >>confdefs.h <<\_ACEOF
  6855. #define TM_IN_SYS_TIME 1
  6856. _ACEOF
  6857. fi
  6858. #checkpoint
  6859. cat >confcache <<\_ACEOF
  6860. # This file is a shell script that caches the results of configure
  6861. # tests run on this system so they can be shared between configure
  6862. # scripts and configure runs, see configure's option --config-cache.
  6863. # It is not useful on other systems. If it contains results you don't
  6864. # want to keep, you may remove or edit it.
  6865. #
  6866. # config.status only pays attention to the cache file if you give it
  6867. # the --recheck option to rerun configure.
  6868. #
  6869. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  6870. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  6871. # following values.
  6872. _ACEOF
  6873. # The following way of writing the cache mishandles newlines in values,
  6874. # but we know of no workaround that is simple, portable, and efficient.
  6875. # So, don't put newlines in cache variables' values.
  6876. # Ultrix sh set writes to stderr and can't be redirected directly,
  6877. # and sets the high bit in the cache file unless we assign to the vars.
  6878. {
  6879. (set) 2>&1 |
  6880. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  6881. *ac_space=\ *)
  6882. # `set' does not quote correctly, so add quotes (double-quote
  6883. # substitution turns \\\\ into \\, and sed turns \\ into \).
  6884. sed -n \
  6885. "s/'/'\\\\''/g;
  6886. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  6887. ;;
  6888. *)
  6889. # `set' quotes correctly as required by POSIX, so do not add quotes.
  6890. sed -n \
  6891. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  6892. ;;
  6893. esac;
  6894. } |
  6895. sed '
  6896. t clear
  6897. : clear
  6898. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  6899. t end
  6900. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  6901. : end' >>confcache
  6902. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  6903. if test -w $cache_file; then
  6904. test "x$cache_file" != "x/dev/null"
  6905. cat confcache >$cache_file
  6906. else
  6907. echo "not updating unwritable cache $cache_file"
  6908. fi
  6909. fi
  6910. rm -f confcache
  6911. # Checks for library functions
  6912. for ac_header in unistd.h vfork.h
  6913. do
  6914. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6915. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6916. echo "$as_me:$LINENO: checking for $ac_header" >&5
  6917. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  6918. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  6919. echo $ECHO_N "(cached) $ECHO_C" >&6
  6920. fi
  6921. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  6922. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  6923. else
  6924. # Is the header compilable?
  6925. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  6926. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  6927. cat >conftest.$ac_ext <<_ACEOF
  6928. /* confdefs.h. */
  6929. _ACEOF
  6930. cat confdefs.h >>conftest.$ac_ext
  6931. cat >>conftest.$ac_ext <<_ACEOF
  6932. /* end confdefs.h. */
  6933. $ac_includes_default
  6934. #include <$ac_header>
  6935. _ACEOF
  6936. rm -f conftest.$ac_objext
  6937. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  6938. (eval $ac_compile) 2>conftest.er1
  6939. ac_status=$?
  6940. grep -v '^ *+' conftest.er1 >conftest.err
  6941. rm -f conftest.er1
  6942. cat conftest.err >&5
  6943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6944. (exit $ac_status); } &&
  6945. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  6946. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6947. (eval $ac_try) 2>&5
  6948. ac_status=$?
  6949. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6950. (exit $ac_status); }; } &&
  6951. { ac_try='test -s conftest.$ac_objext'
  6952. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  6953. (eval $ac_try) 2>&5
  6954. ac_status=$?
  6955. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6956. (exit $ac_status); }; }; then
  6957. ac_header_compiler=yes
  6958. else
  6959. echo "$as_me: failed program was:" >&5
  6960. sed 's/^/| /' conftest.$ac_ext >&5
  6961. ac_header_compiler=no
  6962. fi
  6963. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  6964. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  6965. echo "${ECHO_T}$ac_header_compiler" >&6
  6966. # Is the header present?
  6967. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  6968. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  6969. cat >conftest.$ac_ext <<_ACEOF
  6970. /* confdefs.h. */
  6971. _ACEOF
  6972. cat confdefs.h >>conftest.$ac_ext
  6973. cat >>conftest.$ac_ext <<_ACEOF
  6974. /* end confdefs.h. */
  6975. #include <$ac_header>
  6976. _ACEOF
  6977. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  6978. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  6979. ac_status=$?
  6980. grep -v '^ *+' conftest.er1 >conftest.err
  6981. rm -f conftest.er1
  6982. cat conftest.err >&5
  6983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6984. (exit $ac_status); } >/dev/null; then
  6985. if test -s conftest.err; then
  6986. ac_cpp_err=$ac_cxx_preproc_warn_flag
  6987. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  6988. else
  6989. ac_cpp_err=
  6990. fi
  6991. else
  6992. ac_cpp_err=yes
  6993. fi
  6994. if test -z "$ac_cpp_err"; then
  6995. ac_header_preproc=yes
  6996. else
  6997. echo "$as_me: failed program was:" >&5
  6998. sed 's/^/| /' conftest.$ac_ext >&5
  6999. ac_header_preproc=no
  7000. fi
  7001. rm -f conftest.err conftest.$ac_ext
  7002. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7003. echo "${ECHO_T}$ac_header_preproc" >&6
  7004. # So? What about this header?
  7005. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7006. yes:no: )
  7007. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7008. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7009. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7010. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7011. ac_header_preproc=yes
  7012. ;;
  7013. no:yes:* )
  7014. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7015. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7016. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7017. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7018. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7019. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7020. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7021. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7022. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7023. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7024. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7025. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7026. (
  7027. cat <<\_ASBOX
  7028. ## ------------------------------------------ ##
  7029. ## Report this to the AC_PACKAGE_NAME lists. ##
  7030. ## ------------------------------------------ ##
  7031. _ASBOX
  7032. ) |
  7033. sed "s/^/$as_me: WARNING: /" >&2
  7034. ;;
  7035. esac
  7036. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7037. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7038. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7039. echo $ECHO_N "(cached) $ECHO_C" >&6
  7040. else
  7041. eval "$as_ac_Header=\$ac_header_preproc"
  7042. fi
  7043. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7044. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7045. fi
  7046. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7047. cat >>confdefs.h <<_ACEOF
  7048. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7049. _ACEOF
  7050. fi
  7051. done
  7052. for ac_func in fork vfork
  7053. do
  7054. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7055. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7056. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7057. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7058. echo $ECHO_N "(cached) $ECHO_C" >&6
  7059. else
  7060. cat >conftest.$ac_ext <<_ACEOF
  7061. /* confdefs.h. */
  7062. _ACEOF
  7063. cat confdefs.h >>conftest.$ac_ext
  7064. cat >>conftest.$ac_ext <<_ACEOF
  7065. /* end confdefs.h. */
  7066. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7067. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7068. #define $ac_func innocuous_$ac_func
  7069. /* System header to define __stub macros and hopefully few prototypes,
  7070. which can conflict with char $ac_func (); below.
  7071. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7072. <limits.h> exists even on freestanding compilers. */
  7073. #ifdef __STDC__
  7074. # include <limits.h>
  7075. #else
  7076. # include <assert.h>
  7077. #endif
  7078. #undef $ac_func
  7079. /* Override any gcc2 internal prototype to avoid an error. */
  7080. #ifdef __cplusplus
  7081. extern "C"
  7082. {
  7083. #endif
  7084. /* We use char because int might match the return type of a gcc2
  7085. builtin and then its argument prototype would still apply. */
  7086. char $ac_func ();
  7087. /* The GNU C library defines this for functions which it implements
  7088. to always fail with ENOSYS. Some functions are actually named
  7089. something starting with __ and the normal name is an alias. */
  7090. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7091. choke me
  7092. #else
  7093. char (*f) () = $ac_func;
  7094. #endif
  7095. #ifdef __cplusplus
  7096. }
  7097. #endif
  7098. int
  7099. main ()
  7100. {
  7101. return f != $ac_func;
  7102. ;
  7103. return 0;
  7104. }
  7105. _ACEOF
  7106. rm -f conftest.$ac_objext conftest$ac_exeext
  7107. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7108. (eval $ac_link) 2>conftest.er1
  7109. ac_status=$?
  7110. grep -v '^ *+' conftest.er1 >conftest.err
  7111. rm -f conftest.er1
  7112. cat conftest.err >&5
  7113. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7114. (exit $ac_status); } &&
  7115. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7116. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7117. (eval $ac_try) 2>&5
  7118. ac_status=$?
  7119. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7120. (exit $ac_status); }; } &&
  7121. { ac_try='test -s conftest$ac_exeext'
  7122. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7123. (eval $ac_try) 2>&5
  7124. ac_status=$?
  7125. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7126. (exit $ac_status); }; }; then
  7127. eval "$as_ac_var=yes"
  7128. else
  7129. echo "$as_me: failed program was:" >&5
  7130. sed 's/^/| /' conftest.$ac_ext >&5
  7131. eval "$as_ac_var=no"
  7132. fi
  7133. rm -f conftest.err conftest.$ac_objext \
  7134. conftest$ac_exeext conftest.$ac_ext
  7135. fi
  7136. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7137. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7138. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7139. cat >>confdefs.h <<_ACEOF
  7140. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7141. _ACEOF
  7142. fi
  7143. done
  7144. if test "x$ac_cv_func_fork" = xyes; then
  7145. echo "$as_me:$LINENO: checking for working fork" >&5
  7146. echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  7147. if test "${ac_cv_func_fork_works+set}" = set; then
  7148. echo $ECHO_N "(cached) $ECHO_C" >&6
  7149. else
  7150. if test "$cross_compiling" = yes; then
  7151. ac_cv_func_fork_works=cross
  7152. else
  7153. cat >conftest.$ac_ext <<_ACEOF
  7154. /* By Ruediger Kuhlmann. */
  7155. #include <sys/types.h>
  7156. #if HAVE_UNISTD_H
  7157. # include <unistd.h>
  7158. #endif
  7159. /* Some systems only have a dummy stub for fork() */
  7160. int main ()
  7161. {
  7162. if (fork() < 0)
  7163. exit (1);
  7164. exit (0);
  7165. }
  7166. _ACEOF
  7167. rm -f conftest$ac_exeext
  7168. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7169. (eval $ac_link) 2>&5
  7170. ac_status=$?
  7171. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7172. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7173. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7174. (eval $ac_try) 2>&5
  7175. ac_status=$?
  7176. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7177. (exit $ac_status); }; }; then
  7178. ac_cv_func_fork_works=yes
  7179. else
  7180. echo "$as_me: program exited with status $ac_status" >&5
  7181. echo "$as_me: failed program was:" >&5
  7182. sed 's/^/| /' conftest.$ac_ext >&5
  7183. ( exit $ac_status )
  7184. ac_cv_func_fork_works=no
  7185. fi
  7186. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7187. fi
  7188. fi
  7189. echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  7190. echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  7191. else
  7192. ac_cv_func_fork_works=$ac_cv_func_fork
  7193. fi
  7194. if test "x$ac_cv_func_fork_works" = xcross; then
  7195. case $host in
  7196. *-*-amigaos* | *-*-msdosdjgpp*)
  7197. # Override, as these systems have only a dummy fork() stub
  7198. ac_cv_func_fork_works=no
  7199. ;;
  7200. *)
  7201. ac_cv_func_fork_works=yes
  7202. ;;
  7203. esac
  7204. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  7205. echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  7206. fi
  7207. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7208. if test "x$ac_cv_func_vfork" = xyes; then
  7209. echo "$as_me:$LINENO: checking for working vfork" >&5
  7210. echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  7211. if test "${ac_cv_func_vfork_works+set}" = set; then
  7212. echo $ECHO_N "(cached) $ECHO_C" >&6
  7213. else
  7214. if test "$cross_compiling" = yes; then
  7215. ac_cv_func_vfork_works=cross
  7216. else
  7217. cat >conftest.$ac_ext <<_ACEOF
  7218. /* confdefs.h. */
  7219. _ACEOF
  7220. cat confdefs.h >>conftest.$ac_ext
  7221. cat >>conftest.$ac_ext <<_ACEOF
  7222. /* end confdefs.h. */
  7223. /* Thanks to Paul Eggert for this test. */
  7224. #include <stdio.h>
  7225. #include <stdlib.h>
  7226. #include <sys/types.h>
  7227. #include <sys/stat.h>
  7228. #include <sys/wait.h>
  7229. #if HAVE_UNISTD_H
  7230. # include <unistd.h>
  7231. #endif
  7232. #if HAVE_VFORK_H
  7233. # include <vfork.h>
  7234. #endif
  7235. /* On some sparc systems, changes by the child to local and incoming
  7236. argument registers are propagated back to the parent. The compiler
  7237. is told about this with #include <vfork.h>, but some compilers
  7238. (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  7239. static variable whose address is put into a register that is
  7240. clobbered by the vfork. */
  7241. static void
  7242. #ifdef __cplusplus
  7243. sparc_address_test (int arg)
  7244. # else
  7245. sparc_address_test (arg) int arg;
  7246. #endif
  7247. {
  7248. static pid_t child;
  7249. if (!child) {
  7250. child = vfork ();
  7251. if (child < 0) {
  7252. perror ("vfork");
  7253. _exit(2);
  7254. }
  7255. if (!child) {
  7256. arg = getpid();
  7257. write(-1, "", 0);
  7258. _exit (arg);
  7259. }
  7260. }
  7261. }
  7262. int
  7263. main ()
  7264. {
  7265. pid_t parent = getpid ();
  7266. pid_t child;
  7267. sparc_address_test (0);
  7268. child = vfork ();
  7269. if (child == 0) {
  7270. /* Here is another test for sparc vfork register problems. This
  7271. test uses lots of local variables, at least as many local
  7272. variables as main has allocated so far including compiler
  7273. temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  7274. 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  7275. reuse the register of parent for one of the local variables,
  7276. since it will think that parent can't possibly be used any more
  7277. in this routine. Assigning to the local variable will thus
  7278. munge parent in the parent process. */
  7279. pid_t
  7280. p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  7281. p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  7282. /* Convince the compiler that p..p7 are live; otherwise, it might
  7283. use the same hardware register for all 8 local variables. */
  7284. if (p != p1 || p != p2 || p != p3 || p != p4
  7285. || p != p5 || p != p6 || p != p7)
  7286. _exit(1);
  7287. /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  7288. from child file descriptors. If the child closes a descriptor
  7289. before it execs or exits, this munges the parent's descriptor
  7290. as well. Test for this by closing stdout in the child. */
  7291. _exit(close(fileno(stdout)) != 0);
  7292. } else {
  7293. int status;
  7294. struct stat st;
  7295. while (wait(&status) != child)
  7296. ;
  7297. exit(
  7298. /* Was there some problem with vforking? */
  7299. child < 0
  7300. /* Did the child fail? (This shouldn't happen.) */
  7301. || status
  7302. /* Did the vfork/compiler bug occur? */
  7303. || parent != getpid()
  7304. /* Did the file descriptor bug occur? */
  7305. || fstat(fileno(stdout), &st) != 0
  7306. );
  7307. }
  7308. }
  7309. _ACEOF
  7310. rm -f conftest$ac_exeext
  7311. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7312. (eval $ac_link) 2>&5
  7313. ac_status=$?
  7314. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7315. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7316. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7317. (eval $ac_try) 2>&5
  7318. ac_status=$?
  7319. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7320. (exit $ac_status); }; }; then
  7321. ac_cv_func_vfork_works=yes
  7322. else
  7323. echo "$as_me: program exited with status $ac_status" >&5
  7324. echo "$as_me: failed program was:" >&5
  7325. sed 's/^/| /' conftest.$ac_ext >&5
  7326. ( exit $ac_status )
  7327. ac_cv_func_vfork_works=no
  7328. fi
  7329. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7330. fi
  7331. fi
  7332. echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  7333. echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  7334. fi;
  7335. if test "x$ac_cv_func_fork_works" = xcross; then
  7336. ac_cv_func_vfork_works=$ac_cv_func_vfork
  7337. { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  7338. echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  7339. fi
  7340. if test "x$ac_cv_func_vfork_works" = xyes; then
  7341. cat >>confdefs.h <<\_ACEOF
  7342. #define HAVE_WORKING_VFORK 1
  7343. _ACEOF
  7344. else
  7345. cat >>confdefs.h <<\_ACEOF
  7346. #define vfork fork
  7347. _ACEOF
  7348. fi
  7349. if test "x$ac_cv_func_fork_works" = xyes; then
  7350. cat >>confdefs.h <<\_ACEOF
  7351. #define HAVE_WORKING_FORK 1
  7352. _ACEOF
  7353. fi
  7354. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7355. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7356. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7357. echo $ECHO_N "(cached) $ECHO_C" >&6
  7358. else
  7359. rm -f conftest.sym conftest.file
  7360. echo >conftest.file
  7361. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7362. if test "$cross_compiling" = yes; then
  7363. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7364. else
  7365. cat >conftest.$ac_ext <<_ACEOF
  7366. /* confdefs.h. */
  7367. _ACEOF
  7368. cat confdefs.h >>conftest.$ac_ext
  7369. cat >>conftest.$ac_ext <<_ACEOF
  7370. /* end confdefs.h. */
  7371. $ac_includes_default
  7372. int
  7373. main ()
  7374. {
  7375. struct stat sbuf;
  7376. /* Linux will dereference the symlink and fail.
  7377. That is better in the sense that it means we will not
  7378. have to compile and use the lstat wrapper. */
  7379. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7380. ;
  7381. return 0;
  7382. }
  7383. _ACEOF
  7384. rm -f conftest$ac_exeext
  7385. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7386. (eval $ac_link) 2>&5
  7387. ac_status=$?
  7388. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7389. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7390. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7391. (eval $ac_try) 2>&5
  7392. ac_status=$?
  7393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7394. (exit $ac_status); }; }; then
  7395. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7396. else
  7397. echo "$as_me: program exited with status $ac_status" >&5
  7398. echo "$as_me: failed program was:" >&5
  7399. sed 's/^/| /' conftest.$ac_ext >&5
  7400. ( exit $ac_status )
  7401. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7402. fi
  7403. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7404. fi
  7405. else
  7406. # If the `ln -s' command failed, then we probably don't even
  7407. # have an lstat function.
  7408. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7409. fi
  7410. rm -f conftest.sym conftest.file
  7411. fi
  7412. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7413. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7414. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7415. cat >>confdefs.h <<_ACEOF
  7416. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7417. _ACEOF
  7418. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7419. case $LIBOBJS in
  7420. "lstat.$ac_objext" | \
  7421. *" lstat.$ac_objext" | \
  7422. "lstat.$ac_objext "* | \
  7423. *" lstat.$ac_objext "* ) ;;
  7424. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7425. esac
  7426. fi
  7427. echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
  7428. echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6
  7429. if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
  7430. echo $ECHO_N "(cached) $ECHO_C" >&6
  7431. else
  7432. if test "$cross_compiling" = yes; then
  7433. ac_cv_func_lstat_empty_string_bug=yes
  7434. else
  7435. cat >conftest.$ac_ext <<_ACEOF
  7436. /* confdefs.h. */
  7437. _ACEOF
  7438. cat confdefs.h >>conftest.$ac_ext
  7439. cat >>conftest.$ac_ext <<_ACEOF
  7440. /* end confdefs.h. */
  7441. $ac_includes_default
  7442. int
  7443. main ()
  7444. {
  7445. struct stat sbuf;
  7446. exit (lstat ("", &sbuf) ? 1 : 0);
  7447. ;
  7448. return 0;
  7449. }
  7450. _ACEOF
  7451. rm -f conftest$ac_exeext
  7452. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7453. (eval $ac_link) 2>&5
  7454. ac_status=$?
  7455. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7456. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7457. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7458. (eval $ac_try) 2>&5
  7459. ac_status=$?
  7460. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7461. (exit $ac_status); }; }; then
  7462. ac_cv_func_lstat_empty_string_bug=yes
  7463. else
  7464. echo "$as_me: program exited with status $ac_status" >&5
  7465. echo "$as_me: failed program was:" >&5
  7466. sed 's/^/| /' conftest.$ac_ext >&5
  7467. ( exit $ac_status )
  7468. ac_cv_func_lstat_empty_string_bug=no
  7469. fi
  7470. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7471. fi
  7472. fi
  7473. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
  7474. echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6
  7475. if test $ac_cv_func_lstat_empty_string_bug = yes; then
  7476. case $LIBOBJS in
  7477. "lstat.$ac_objext" | \
  7478. *" lstat.$ac_objext" | \
  7479. "lstat.$ac_objext "* | \
  7480. *" lstat.$ac_objext "* ) ;;
  7481. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7482. esac
  7483. cat >>confdefs.h <<_ACEOF
  7484. #define HAVE_LSTAT_EMPTY_STRING_BUG 1
  7485. _ACEOF
  7486. fi
  7487. echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
  7488. echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6
  7489. if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
  7490. echo $ECHO_N "(cached) $ECHO_C" >&6
  7491. else
  7492. rm -f conftest.sym conftest.file
  7493. echo >conftest.file
  7494. if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
  7495. if test "$cross_compiling" = yes; then
  7496. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7497. else
  7498. cat >conftest.$ac_ext <<_ACEOF
  7499. /* confdefs.h. */
  7500. _ACEOF
  7501. cat confdefs.h >>conftest.$ac_ext
  7502. cat >>conftest.$ac_ext <<_ACEOF
  7503. /* end confdefs.h. */
  7504. $ac_includes_default
  7505. int
  7506. main ()
  7507. {
  7508. struct stat sbuf;
  7509. /* Linux will dereference the symlink and fail.
  7510. That is better in the sense that it means we will not
  7511. have to compile and use the lstat wrapper. */
  7512. exit (lstat ("conftest.sym/", &sbuf) ? 0 : 1);
  7513. ;
  7514. return 0;
  7515. }
  7516. _ACEOF
  7517. rm -f conftest$ac_exeext
  7518. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7519. (eval $ac_link) 2>&5
  7520. ac_status=$?
  7521. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7522. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7523. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7524. (eval $ac_try) 2>&5
  7525. ac_status=$?
  7526. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7527. (exit $ac_status); }; }; then
  7528. ac_cv_func_lstat_dereferences_slashed_symlink=yes
  7529. else
  7530. echo "$as_me: program exited with status $ac_status" >&5
  7531. echo "$as_me: failed program was:" >&5
  7532. sed 's/^/| /' conftest.$ac_ext >&5
  7533. ( exit $ac_status )
  7534. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7535. fi
  7536. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7537. fi
  7538. else
  7539. # If the `ln -s' command failed, then we probably don't even
  7540. # have an lstat function.
  7541. ac_cv_func_lstat_dereferences_slashed_symlink=no
  7542. fi
  7543. rm -f conftest.sym conftest.file
  7544. fi
  7545. echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
  7546. echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6
  7547. test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
  7548. cat >>confdefs.h <<_ACEOF
  7549. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  7550. _ACEOF
  7551. if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
  7552. case $LIBOBJS in
  7553. "lstat.$ac_objext" | \
  7554. *" lstat.$ac_objext" | \
  7555. "lstat.$ac_objext "* | \
  7556. *" lstat.$ac_objext "* ) ;;
  7557. *) LIBOBJS="$LIBOBJS lstat.$ac_objext" ;;
  7558. esac
  7559. fi
  7560. for ac_header in stdlib.h
  7561. do
  7562. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7563. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7564. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7565. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7566. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7567. echo $ECHO_N "(cached) $ECHO_C" >&6
  7568. fi
  7569. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7570. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7571. else
  7572. # Is the header compilable?
  7573. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7574. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7575. cat >conftest.$ac_ext <<_ACEOF
  7576. /* confdefs.h. */
  7577. _ACEOF
  7578. cat confdefs.h >>conftest.$ac_ext
  7579. cat >>conftest.$ac_ext <<_ACEOF
  7580. /* end confdefs.h. */
  7581. $ac_includes_default
  7582. #include <$ac_header>
  7583. _ACEOF
  7584. rm -f conftest.$ac_objext
  7585. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7586. (eval $ac_compile) 2>conftest.er1
  7587. ac_status=$?
  7588. grep -v '^ *+' conftest.er1 >conftest.err
  7589. rm -f conftest.er1
  7590. cat conftest.err >&5
  7591. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7592. (exit $ac_status); } &&
  7593. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7594. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7595. (eval $ac_try) 2>&5
  7596. ac_status=$?
  7597. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7598. (exit $ac_status); }; } &&
  7599. { ac_try='test -s conftest.$ac_objext'
  7600. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7601. (eval $ac_try) 2>&5
  7602. ac_status=$?
  7603. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7604. (exit $ac_status); }; }; then
  7605. ac_header_compiler=yes
  7606. else
  7607. echo "$as_me: failed program was:" >&5
  7608. sed 's/^/| /' conftest.$ac_ext >&5
  7609. ac_header_compiler=no
  7610. fi
  7611. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7612. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7613. echo "${ECHO_T}$ac_header_compiler" >&6
  7614. # Is the header present?
  7615. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7616. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7617. cat >conftest.$ac_ext <<_ACEOF
  7618. /* confdefs.h. */
  7619. _ACEOF
  7620. cat confdefs.h >>conftest.$ac_ext
  7621. cat >>conftest.$ac_ext <<_ACEOF
  7622. /* end confdefs.h. */
  7623. #include <$ac_header>
  7624. _ACEOF
  7625. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7626. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7627. ac_status=$?
  7628. grep -v '^ *+' conftest.er1 >conftest.err
  7629. rm -f conftest.er1
  7630. cat conftest.err >&5
  7631. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7632. (exit $ac_status); } >/dev/null; then
  7633. if test -s conftest.err; then
  7634. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7635. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7636. else
  7637. ac_cpp_err=
  7638. fi
  7639. else
  7640. ac_cpp_err=yes
  7641. fi
  7642. if test -z "$ac_cpp_err"; then
  7643. ac_header_preproc=yes
  7644. else
  7645. echo "$as_me: failed program was:" >&5
  7646. sed 's/^/| /' conftest.$ac_ext >&5
  7647. ac_header_preproc=no
  7648. fi
  7649. rm -f conftest.err conftest.$ac_ext
  7650. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7651. echo "${ECHO_T}$ac_header_preproc" >&6
  7652. # So? What about this header?
  7653. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7654. yes:no: )
  7655. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7656. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7657. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7658. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7659. ac_header_preproc=yes
  7660. ;;
  7661. no:yes:* )
  7662. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7663. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7664. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7665. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7666. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7667. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7668. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7669. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7670. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7671. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7672. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7673. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7674. (
  7675. cat <<\_ASBOX
  7676. ## ------------------------------------------ ##
  7677. ## Report this to the AC_PACKAGE_NAME lists. ##
  7678. ## ------------------------------------------ ##
  7679. _ASBOX
  7680. ) |
  7681. sed "s/^/$as_me: WARNING: /" >&2
  7682. ;;
  7683. esac
  7684. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7685. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7686. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7687. echo $ECHO_N "(cached) $ECHO_C" >&6
  7688. else
  7689. eval "$as_ac_Header=\$ac_header_preproc"
  7690. fi
  7691. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7692. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7693. fi
  7694. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7695. cat >>confdefs.h <<_ACEOF
  7696. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7697. _ACEOF
  7698. fi
  7699. done
  7700. echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  7701. echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  7702. if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  7703. echo $ECHO_N "(cached) $ECHO_C" >&6
  7704. else
  7705. if test "$cross_compiling" = yes; then
  7706. ac_cv_func_malloc_0_nonnull=no
  7707. else
  7708. cat >conftest.$ac_ext <<_ACEOF
  7709. /* confdefs.h. */
  7710. _ACEOF
  7711. cat confdefs.h >>conftest.$ac_ext
  7712. cat >>conftest.$ac_ext <<_ACEOF
  7713. /* end confdefs.h. */
  7714. #if STDC_HEADERS || HAVE_STDLIB_H
  7715. # include <stdlib.h>
  7716. #else
  7717. char *malloc ();
  7718. #endif
  7719. int
  7720. main ()
  7721. {
  7722. exit (malloc (0) ? 0 : 1);
  7723. ;
  7724. return 0;
  7725. }
  7726. _ACEOF
  7727. rm -f conftest$ac_exeext
  7728. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7729. (eval $ac_link) 2>&5
  7730. ac_status=$?
  7731. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7732. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  7733. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7734. (eval $ac_try) 2>&5
  7735. ac_status=$?
  7736. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7737. (exit $ac_status); }; }; then
  7738. ac_cv_func_malloc_0_nonnull=yes
  7739. else
  7740. echo "$as_me: program exited with status $ac_status" >&5
  7741. echo "$as_me: failed program was:" >&5
  7742. sed 's/^/| /' conftest.$ac_ext >&5
  7743. ( exit $ac_status )
  7744. ac_cv_func_malloc_0_nonnull=no
  7745. fi
  7746. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  7747. fi
  7748. fi
  7749. echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  7750. echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  7751. if test $ac_cv_func_malloc_0_nonnull = yes; then
  7752. cat >>confdefs.h <<\_ACEOF
  7753. #define HAVE_MALLOC 1
  7754. _ACEOF
  7755. else
  7756. cat >>confdefs.h <<\_ACEOF
  7757. #define HAVE_MALLOC 0
  7758. _ACEOF
  7759. case $LIBOBJS in
  7760. "malloc.$ac_objext" | \
  7761. *" malloc.$ac_objext" | \
  7762. "malloc.$ac_objext "* | \
  7763. *" malloc.$ac_objext "* ) ;;
  7764. *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  7765. esac
  7766. cat >>confdefs.h <<\_ACEOF
  7767. #define malloc rpl_malloc
  7768. _ACEOF
  7769. fi
  7770. for ac_header in stdlib.h sys/time.h unistd.h
  7771. do
  7772. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7773. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7774. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7775. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7776. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7777. echo $ECHO_N "(cached) $ECHO_C" >&6
  7778. fi
  7779. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7780. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7781. else
  7782. # Is the header compilable?
  7783. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  7784. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  7785. cat >conftest.$ac_ext <<_ACEOF
  7786. /* confdefs.h. */
  7787. _ACEOF
  7788. cat confdefs.h >>conftest.$ac_ext
  7789. cat >>conftest.$ac_ext <<_ACEOF
  7790. /* end confdefs.h. */
  7791. $ac_includes_default
  7792. #include <$ac_header>
  7793. _ACEOF
  7794. rm -f conftest.$ac_objext
  7795. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  7796. (eval $ac_compile) 2>conftest.er1
  7797. ac_status=$?
  7798. grep -v '^ *+' conftest.er1 >conftest.err
  7799. rm -f conftest.er1
  7800. cat conftest.err >&5
  7801. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7802. (exit $ac_status); } &&
  7803. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7804. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7805. (eval $ac_try) 2>&5
  7806. ac_status=$?
  7807. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7808. (exit $ac_status); }; } &&
  7809. { ac_try='test -s conftest.$ac_objext'
  7810. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7811. (eval $ac_try) 2>&5
  7812. ac_status=$?
  7813. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7814. (exit $ac_status); }; }; then
  7815. ac_header_compiler=yes
  7816. else
  7817. echo "$as_me: failed program was:" >&5
  7818. sed 's/^/| /' conftest.$ac_ext >&5
  7819. ac_header_compiler=no
  7820. fi
  7821. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  7822. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  7823. echo "${ECHO_T}$ac_header_compiler" >&6
  7824. # Is the header present?
  7825. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  7826. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  7827. cat >conftest.$ac_ext <<_ACEOF
  7828. /* confdefs.h. */
  7829. _ACEOF
  7830. cat confdefs.h >>conftest.$ac_ext
  7831. cat >>conftest.$ac_ext <<_ACEOF
  7832. /* end confdefs.h. */
  7833. #include <$ac_header>
  7834. _ACEOF
  7835. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  7836. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  7837. ac_status=$?
  7838. grep -v '^ *+' conftest.er1 >conftest.err
  7839. rm -f conftest.er1
  7840. cat conftest.err >&5
  7841. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7842. (exit $ac_status); } >/dev/null; then
  7843. if test -s conftest.err; then
  7844. ac_cpp_err=$ac_cxx_preproc_warn_flag
  7845. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  7846. else
  7847. ac_cpp_err=
  7848. fi
  7849. else
  7850. ac_cpp_err=yes
  7851. fi
  7852. if test -z "$ac_cpp_err"; then
  7853. ac_header_preproc=yes
  7854. else
  7855. echo "$as_me: failed program was:" >&5
  7856. sed 's/^/| /' conftest.$ac_ext >&5
  7857. ac_header_preproc=no
  7858. fi
  7859. rm -f conftest.err conftest.$ac_ext
  7860. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  7861. echo "${ECHO_T}$ac_header_preproc" >&6
  7862. # So? What about this header?
  7863. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  7864. yes:no: )
  7865. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  7866. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  7867. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  7868. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  7869. ac_header_preproc=yes
  7870. ;;
  7871. no:yes:* )
  7872. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  7873. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  7874. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  7875. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  7876. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  7877. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  7878. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  7879. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  7880. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  7881. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  7882. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  7883. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  7884. (
  7885. cat <<\_ASBOX
  7886. ## ------------------------------------------ ##
  7887. ## Report this to the AC_PACKAGE_NAME lists. ##
  7888. ## ------------------------------------------ ##
  7889. _ASBOX
  7890. ) |
  7891. sed "s/^/$as_me: WARNING: /" >&2
  7892. ;;
  7893. esac
  7894. echo "$as_me:$LINENO: checking for $ac_header" >&5
  7895. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  7896. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  7897. echo $ECHO_N "(cached) $ECHO_C" >&6
  7898. else
  7899. eval "$as_ac_Header=\$ac_header_preproc"
  7900. fi
  7901. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  7902. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  7903. fi
  7904. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  7905. cat >>confdefs.h <<_ACEOF
  7906. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7907. _ACEOF
  7908. fi
  7909. done
  7910. for ac_func in alarm
  7911. do
  7912. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  7913. echo "$as_me:$LINENO: checking for $ac_func" >&5
  7914. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  7915. if eval "test \"\${$as_ac_var+set}\" = set"; then
  7916. echo $ECHO_N "(cached) $ECHO_C" >&6
  7917. else
  7918. cat >conftest.$ac_ext <<_ACEOF
  7919. /* confdefs.h. */
  7920. _ACEOF
  7921. cat confdefs.h >>conftest.$ac_ext
  7922. cat >>conftest.$ac_ext <<_ACEOF
  7923. /* end confdefs.h. */
  7924. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  7925. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  7926. #define $ac_func innocuous_$ac_func
  7927. /* System header to define __stub macros and hopefully few prototypes,
  7928. which can conflict with char $ac_func (); below.
  7929. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7930. <limits.h> exists even on freestanding compilers. */
  7931. #ifdef __STDC__
  7932. # include <limits.h>
  7933. #else
  7934. # include <assert.h>
  7935. #endif
  7936. #undef $ac_func
  7937. /* Override any gcc2 internal prototype to avoid an error. */
  7938. #ifdef __cplusplus
  7939. extern "C"
  7940. {
  7941. #endif
  7942. /* We use char because int might match the return type of a gcc2
  7943. builtin and then its argument prototype would still apply. */
  7944. char $ac_func ();
  7945. /* The GNU C library defines this for functions which it implements
  7946. to always fail with ENOSYS. Some functions are actually named
  7947. something starting with __ and the normal name is an alias. */
  7948. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  7949. choke me
  7950. #else
  7951. char (*f) () = $ac_func;
  7952. #endif
  7953. #ifdef __cplusplus
  7954. }
  7955. #endif
  7956. int
  7957. main ()
  7958. {
  7959. return f != $ac_func;
  7960. ;
  7961. return 0;
  7962. }
  7963. _ACEOF
  7964. rm -f conftest.$ac_objext conftest$ac_exeext
  7965. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  7966. (eval $ac_link) 2>conftest.er1
  7967. ac_status=$?
  7968. grep -v '^ *+' conftest.er1 >conftest.err
  7969. rm -f conftest.er1
  7970. cat conftest.err >&5
  7971. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7972. (exit $ac_status); } &&
  7973. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  7974. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7975. (eval $ac_try) 2>&5
  7976. ac_status=$?
  7977. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7978. (exit $ac_status); }; } &&
  7979. { ac_try='test -s conftest$ac_exeext'
  7980. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  7981. (eval $ac_try) 2>&5
  7982. ac_status=$?
  7983. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7984. (exit $ac_status); }; }; then
  7985. eval "$as_ac_var=yes"
  7986. else
  7987. echo "$as_me: failed program was:" >&5
  7988. sed 's/^/| /' conftest.$ac_ext >&5
  7989. eval "$as_ac_var=no"
  7990. fi
  7991. rm -f conftest.err conftest.$ac_objext \
  7992. conftest$ac_exeext conftest.$ac_ext
  7993. fi
  7994. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  7995. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  7996. if test `eval echo '${'$as_ac_var'}'` = yes; then
  7997. cat >>confdefs.h <<_ACEOF
  7998. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  7999. _ACEOF
  8000. fi
  8001. done
  8002. echo "$as_me:$LINENO: checking for working mktime" >&5
  8003. echo $ECHO_N "checking for working mktime... $ECHO_C" >&6
  8004. if test "${ac_cv_func_working_mktime+set}" = set; then
  8005. echo $ECHO_N "(cached) $ECHO_C" >&6
  8006. else
  8007. if test "$cross_compiling" = yes; then
  8008. ac_cv_func_working_mktime=no
  8009. else
  8010. cat >conftest.$ac_ext <<_ACEOF
  8011. /* confdefs.h. */
  8012. _ACEOF
  8013. cat confdefs.h >>conftest.$ac_ext
  8014. cat >>conftest.$ac_ext <<_ACEOF
  8015. /* end confdefs.h. */
  8016. /* Test program from Paul Eggert and Tony Leneis. */
  8017. #if TIME_WITH_SYS_TIME
  8018. # include <sys/time.h>
  8019. # include <time.h>
  8020. #else
  8021. # if HAVE_SYS_TIME_H
  8022. # include <sys/time.h>
  8023. # else
  8024. # include <time.h>
  8025. # endif
  8026. #endif
  8027. #if HAVE_STDLIB_H
  8028. # include <stdlib.h>
  8029. #endif
  8030. #if HAVE_UNISTD_H
  8031. # include <unistd.h>
  8032. #endif
  8033. #if !HAVE_ALARM
  8034. # define alarm(X) /* empty */
  8035. #endif
  8036. /* Work around redefinition to rpl_putenv by other config tests. */
  8037. #undef putenv
  8038. static time_t time_t_max;
  8039. static time_t time_t_min;
  8040. /* Values we'll use to set the TZ environment variable. */
  8041. static char *tz_strings[] = {
  8042. (char *) 0, "TZ=GMT0", "TZ=JST-9",
  8043. "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
  8044. };
  8045. #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
  8046. /* Fail if mktime fails to convert a date in the spring-forward gap.
  8047. Based on a problem report from Andreas Jaeger. */
  8048. static void
  8049. spring_forward_gap ()
  8050. {
  8051. /* glibc (up to about 1998-10-07) failed this test. */
  8052. struct tm tm;
  8053. /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
  8054. instead of "TZ=America/Vancouver" in order to detect the bug even
  8055. on systems that don't support the Olson extension, or don't have the
  8056. full zoneinfo tables installed. */
  8057. putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
  8058. tm.tm_year = 98;
  8059. tm.tm_mon = 3;
  8060. tm.tm_mday = 5;
  8061. tm.tm_hour = 2;
  8062. tm.tm_min = 0;
  8063. tm.tm_sec = 0;
  8064. tm.tm_isdst = -1;
  8065. if (mktime (&tm) == (time_t)-1)
  8066. exit (1);
  8067. }
  8068. static void
  8069. mktime_test1 (now)
  8070. time_t now;
  8071. {
  8072. struct tm *lt;
  8073. if ((lt = localtime (&now)) && mktime (lt) != now)
  8074. exit (1);
  8075. }
  8076. static void
  8077. mktime_test (now)
  8078. time_t now;
  8079. {
  8080. mktime_test1 (now);
  8081. mktime_test1 ((time_t) (time_t_max - now));
  8082. mktime_test1 ((time_t) (time_t_min + now));
  8083. }
  8084. static void
  8085. irix_6_4_bug ()
  8086. {
  8087. /* Based on code from Ariel Faigon. */
  8088. struct tm tm;
  8089. tm.tm_year = 96;
  8090. tm.tm_mon = 3;
  8091. tm.tm_mday = 0;
  8092. tm.tm_hour = 0;
  8093. tm.tm_min = 0;
  8094. tm.tm_sec = 0;
  8095. tm.tm_isdst = -1;
  8096. mktime (&tm);
  8097. if (tm.tm_mon != 2 || tm.tm_mday != 31)
  8098. exit (1);
  8099. }
  8100. static void
  8101. bigtime_test (j)
  8102. int j;
  8103. {
  8104. struct tm tm;
  8105. time_t now;
  8106. tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
  8107. now = mktime (&tm);
  8108. if (now != (time_t) -1)
  8109. {
  8110. struct tm *lt = localtime (&now);
  8111. if (! (lt
  8112. && lt->tm_year == tm.tm_year
  8113. && lt->tm_mon == tm.tm_mon
  8114. && lt->tm_mday == tm.tm_mday
  8115. && lt->tm_hour == tm.tm_hour
  8116. && lt->tm_min == tm.tm_min
  8117. && lt->tm_sec == tm.tm_sec
  8118. && lt->tm_yday == tm.tm_yday
  8119. && lt->tm_wday == tm.tm_wday
  8120. && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
  8121. == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
  8122. exit (1);
  8123. }
  8124. }
  8125. int
  8126. main ()
  8127. {
  8128. time_t t, delta;
  8129. int i, j;
  8130. /* This test makes some buggy mktime implementations loop.
  8131. Give up after 60 seconds; a mktime slower than that
  8132. isn't worth using anyway. */
  8133. alarm (60);
  8134. for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
  8135. continue;
  8136. time_t_max--;
  8137. if ((time_t) -1 < 0)
  8138. for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
  8139. continue;
  8140. delta = time_t_max / 997; /* a suitable prime number */
  8141. for (i = 0; i < N_STRINGS; i++)
  8142. {
  8143. if (tz_strings[i])
  8144. putenv (tz_strings[i]);
  8145. for (t = 0; t <= time_t_max - delta; t += delta)
  8146. mktime_test (t);
  8147. mktime_test ((time_t) 1);
  8148. mktime_test ((time_t) (60 * 60));
  8149. mktime_test ((time_t) (60 * 60 * 24));
  8150. for (j = 1; 0 < j; j *= 2)
  8151. bigtime_test (j);
  8152. bigtime_test (j - 1);
  8153. }
  8154. irix_6_4_bug ();
  8155. spring_forward_gap ();
  8156. exit (0);
  8157. }
  8158. _ACEOF
  8159. rm -f conftest$ac_exeext
  8160. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8161. (eval $ac_link) 2>&5
  8162. ac_status=$?
  8163. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8164. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8165. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8166. (eval $ac_try) 2>&5
  8167. ac_status=$?
  8168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8169. (exit $ac_status); }; }; then
  8170. ac_cv_func_working_mktime=yes
  8171. else
  8172. echo "$as_me: program exited with status $ac_status" >&5
  8173. echo "$as_me: failed program was:" >&5
  8174. sed 's/^/| /' conftest.$ac_ext >&5
  8175. ( exit $ac_status )
  8176. ac_cv_func_working_mktime=no
  8177. fi
  8178. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8179. fi
  8180. fi
  8181. echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
  8182. echo "${ECHO_T}$ac_cv_func_working_mktime" >&6
  8183. if test $ac_cv_func_working_mktime = no; then
  8184. case $LIBOBJS in
  8185. "mktime.$ac_objext" | \
  8186. *" mktime.$ac_objext" | \
  8187. "mktime.$ac_objext "* | \
  8188. *" mktime.$ac_objext "* ) ;;
  8189. *) LIBOBJS="$LIBOBJS mktime.$ac_objext" ;;
  8190. esac
  8191. fi
  8192. for ac_header in stdlib.h unistd.h
  8193. do
  8194. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8195. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8196. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8197. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8198. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8199. echo $ECHO_N "(cached) $ECHO_C" >&6
  8200. fi
  8201. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8202. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8203. else
  8204. # Is the header compilable?
  8205. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8206. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8207. cat >conftest.$ac_ext <<_ACEOF
  8208. /* confdefs.h. */
  8209. _ACEOF
  8210. cat confdefs.h >>conftest.$ac_ext
  8211. cat >>conftest.$ac_ext <<_ACEOF
  8212. /* end confdefs.h. */
  8213. $ac_includes_default
  8214. #include <$ac_header>
  8215. _ACEOF
  8216. rm -f conftest.$ac_objext
  8217. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8218. (eval $ac_compile) 2>conftest.er1
  8219. ac_status=$?
  8220. grep -v '^ *+' conftest.er1 >conftest.err
  8221. rm -f conftest.er1
  8222. cat conftest.err >&5
  8223. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8224. (exit $ac_status); } &&
  8225. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8226. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8227. (eval $ac_try) 2>&5
  8228. ac_status=$?
  8229. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8230. (exit $ac_status); }; } &&
  8231. { ac_try='test -s conftest.$ac_objext'
  8232. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8233. (eval $ac_try) 2>&5
  8234. ac_status=$?
  8235. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8236. (exit $ac_status); }; }; then
  8237. ac_header_compiler=yes
  8238. else
  8239. echo "$as_me: failed program was:" >&5
  8240. sed 's/^/| /' conftest.$ac_ext >&5
  8241. ac_header_compiler=no
  8242. fi
  8243. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8244. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8245. echo "${ECHO_T}$ac_header_compiler" >&6
  8246. # Is the header present?
  8247. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8248. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8249. cat >conftest.$ac_ext <<_ACEOF
  8250. /* confdefs.h. */
  8251. _ACEOF
  8252. cat confdefs.h >>conftest.$ac_ext
  8253. cat >>conftest.$ac_ext <<_ACEOF
  8254. /* end confdefs.h. */
  8255. #include <$ac_header>
  8256. _ACEOF
  8257. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8258. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8259. ac_status=$?
  8260. grep -v '^ *+' conftest.er1 >conftest.err
  8261. rm -f conftest.er1
  8262. cat conftest.err >&5
  8263. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8264. (exit $ac_status); } >/dev/null; then
  8265. if test -s conftest.err; then
  8266. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8267. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8268. else
  8269. ac_cpp_err=
  8270. fi
  8271. else
  8272. ac_cpp_err=yes
  8273. fi
  8274. if test -z "$ac_cpp_err"; then
  8275. ac_header_preproc=yes
  8276. else
  8277. echo "$as_me: failed program was:" >&5
  8278. sed 's/^/| /' conftest.$ac_ext >&5
  8279. ac_header_preproc=no
  8280. fi
  8281. rm -f conftest.err conftest.$ac_ext
  8282. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8283. echo "${ECHO_T}$ac_header_preproc" >&6
  8284. # So? What about this header?
  8285. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8286. yes:no: )
  8287. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8288. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8289. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8290. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8291. ac_header_preproc=yes
  8292. ;;
  8293. no:yes:* )
  8294. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8295. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8296. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8297. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8298. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8299. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8300. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8301. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8302. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8303. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8304. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8305. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8306. (
  8307. cat <<\_ASBOX
  8308. ## ------------------------------------------ ##
  8309. ## Report this to the AC_PACKAGE_NAME lists. ##
  8310. ## ------------------------------------------ ##
  8311. _ASBOX
  8312. ) |
  8313. sed "s/^/$as_me: WARNING: /" >&2
  8314. ;;
  8315. esac
  8316. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8317. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8318. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8319. echo $ECHO_N "(cached) $ECHO_C" >&6
  8320. else
  8321. eval "$as_ac_Header=\$ac_header_preproc"
  8322. fi
  8323. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8324. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8325. fi
  8326. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8327. cat >>confdefs.h <<_ACEOF
  8328. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8329. _ACEOF
  8330. fi
  8331. done
  8332. for ac_func in getpagesize
  8333. do
  8334. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8335. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8336. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8337. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8338. echo $ECHO_N "(cached) $ECHO_C" >&6
  8339. else
  8340. cat >conftest.$ac_ext <<_ACEOF
  8341. /* confdefs.h. */
  8342. _ACEOF
  8343. cat confdefs.h >>conftest.$ac_ext
  8344. cat >>conftest.$ac_ext <<_ACEOF
  8345. /* end confdefs.h. */
  8346. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8347. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8348. #define $ac_func innocuous_$ac_func
  8349. /* System header to define __stub macros and hopefully few prototypes,
  8350. which can conflict with char $ac_func (); below.
  8351. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8352. <limits.h> exists even on freestanding compilers. */
  8353. #ifdef __STDC__
  8354. # include <limits.h>
  8355. #else
  8356. # include <assert.h>
  8357. #endif
  8358. #undef $ac_func
  8359. /* Override any gcc2 internal prototype to avoid an error. */
  8360. #ifdef __cplusplus
  8361. extern "C"
  8362. {
  8363. #endif
  8364. /* We use char because int might match the return type of a gcc2
  8365. builtin and then its argument prototype would still apply. */
  8366. char $ac_func ();
  8367. /* The GNU C library defines this for functions which it implements
  8368. to always fail with ENOSYS. Some functions are actually named
  8369. something starting with __ and the normal name is an alias. */
  8370. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8371. choke me
  8372. #else
  8373. char (*f) () = $ac_func;
  8374. #endif
  8375. #ifdef __cplusplus
  8376. }
  8377. #endif
  8378. int
  8379. main ()
  8380. {
  8381. return f != $ac_func;
  8382. ;
  8383. return 0;
  8384. }
  8385. _ACEOF
  8386. rm -f conftest.$ac_objext conftest$ac_exeext
  8387. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8388. (eval $ac_link) 2>conftest.er1
  8389. ac_status=$?
  8390. grep -v '^ *+' conftest.er1 >conftest.err
  8391. rm -f conftest.er1
  8392. cat conftest.err >&5
  8393. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8394. (exit $ac_status); } &&
  8395. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8396. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8397. (eval $ac_try) 2>&5
  8398. ac_status=$?
  8399. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8400. (exit $ac_status); }; } &&
  8401. { ac_try='test -s conftest$ac_exeext'
  8402. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8403. (eval $ac_try) 2>&5
  8404. ac_status=$?
  8405. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8406. (exit $ac_status); }; }; then
  8407. eval "$as_ac_var=yes"
  8408. else
  8409. echo "$as_me: failed program was:" >&5
  8410. sed 's/^/| /' conftest.$ac_ext >&5
  8411. eval "$as_ac_var=no"
  8412. fi
  8413. rm -f conftest.err conftest.$ac_objext \
  8414. conftest$ac_exeext conftest.$ac_ext
  8415. fi
  8416. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8417. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8418. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8419. cat >>confdefs.h <<_ACEOF
  8420. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8421. _ACEOF
  8422. fi
  8423. done
  8424. echo "$as_me:$LINENO: checking for working mmap" >&5
  8425. echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
  8426. if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
  8427. echo $ECHO_N "(cached) $ECHO_C" >&6
  8428. else
  8429. if test "$cross_compiling" = yes; then
  8430. ac_cv_func_mmap_fixed_mapped=no
  8431. else
  8432. cat >conftest.$ac_ext <<_ACEOF
  8433. /* confdefs.h. */
  8434. _ACEOF
  8435. cat confdefs.h >>conftest.$ac_ext
  8436. cat >>conftest.$ac_ext <<_ACEOF
  8437. /* end confdefs.h. */
  8438. $ac_includes_default
  8439. /* malloc might have been renamed as rpl_malloc. */
  8440. #undef malloc
  8441. /* Thanks to Mike Haertel and Jim Avera for this test.
  8442. Here is a matrix of mmap possibilities:
  8443. mmap private not fixed
  8444. mmap private fixed at somewhere currently unmapped
  8445. mmap private fixed at somewhere already mapped
  8446. mmap shared not fixed
  8447. mmap shared fixed at somewhere currently unmapped
  8448. mmap shared fixed at somewhere already mapped
  8449. For private mappings, we should verify that changes cannot be read()
  8450. back from the file, nor mmap's back from the file at a different
  8451. address. (There have been systems where private was not correctly
  8452. implemented like the infamous i386 svr4.0, and systems where the
  8453. VM page cache was not coherent with the file system buffer cache
  8454. like early versions of FreeBSD and possibly contemporary NetBSD.)
  8455. For shared mappings, we should conversely verify that changes get
  8456. propagated back to all the places they're supposed to be.
  8457. Grep wants private fixed already mapped.
  8458. The main things grep needs to know about mmap are:
  8459. * does it exist and is it safe to write into the mmap'd area
  8460. * how to use it (BSD variants) */
  8461. #include <fcntl.h>
  8462. #include <sys/mman.h>
  8463. #if !STDC_HEADERS && !HAVE_STDLIB_H
  8464. char *malloc ();
  8465. #endif
  8466. /* This mess was copied from the GNU getpagesize.h. */
  8467. #if !HAVE_GETPAGESIZE
  8468. /* Assume that all systems that can run configure have sys/param.h. */
  8469. # if !HAVE_SYS_PARAM_H
  8470. # define HAVE_SYS_PARAM_H 1
  8471. # endif
  8472. # ifdef _SC_PAGESIZE
  8473. # define getpagesize() sysconf(_SC_PAGESIZE)
  8474. # else /* no _SC_PAGESIZE */
  8475. # if HAVE_SYS_PARAM_H
  8476. # include <sys/param.h>
  8477. # ifdef EXEC_PAGESIZE
  8478. # define getpagesize() EXEC_PAGESIZE
  8479. # else /* no EXEC_PAGESIZE */
  8480. # ifdef NBPG
  8481. # define getpagesize() NBPG * CLSIZE
  8482. # ifndef CLSIZE
  8483. # define CLSIZE 1
  8484. # endif /* no CLSIZE */
  8485. # else /* no NBPG */
  8486. # ifdef NBPC
  8487. # define getpagesize() NBPC
  8488. # else /* no NBPC */
  8489. # ifdef PAGESIZE
  8490. # define getpagesize() PAGESIZE
  8491. # endif /* PAGESIZE */
  8492. # endif /* no NBPC */
  8493. # endif /* no NBPG */
  8494. # endif /* no EXEC_PAGESIZE */
  8495. # else /* no HAVE_SYS_PARAM_H */
  8496. # define getpagesize() 8192 /* punt totally */
  8497. # endif /* no HAVE_SYS_PARAM_H */
  8498. # endif /* no _SC_PAGESIZE */
  8499. #endif /* no HAVE_GETPAGESIZE */
  8500. int
  8501. main ()
  8502. {
  8503. char *data, *data2, *data3;
  8504. int i, pagesize;
  8505. int fd;
  8506. pagesize = getpagesize ();
  8507. /* First, make a file with some known garbage in it. */
  8508. data = (char *) malloc (pagesize);
  8509. if (!data)
  8510. exit (1);
  8511. for (i = 0; i < pagesize; ++i)
  8512. *(data + i) = rand ();
  8513. umask (0);
  8514. fd = creat ("conftest.mmap", 0600);
  8515. if (fd < 0)
  8516. exit (1);
  8517. if (write (fd, data, pagesize) != pagesize)
  8518. exit (1);
  8519. close (fd);
  8520. /* Next, try to mmap the file at a fixed address which already has
  8521. something else allocated at it. If we can, also make sure that
  8522. we see the same garbage. */
  8523. fd = open ("conftest.mmap", O_RDWR);
  8524. if (fd < 0)
  8525. exit (1);
  8526. data2 = (char *) malloc (2 * pagesize);
  8527. if (!data2)
  8528. exit (1);
  8529. data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
  8530. if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
  8531. MAP_PRIVATE | MAP_FIXED, fd, 0L))
  8532. exit (1);
  8533. for (i = 0; i < pagesize; ++i)
  8534. if (*(data + i) != *(data2 + i))
  8535. exit (1);
  8536. /* Finally, make sure that changes to the mapped area do not
  8537. percolate back to the file as seen by read(). (This is a bug on
  8538. some variants of i386 svr4.0.) */
  8539. for (i = 0; i < pagesize; ++i)
  8540. *(data2 + i) = *(data2 + i) + 1;
  8541. data3 = (char *) malloc (pagesize);
  8542. if (!data3)
  8543. exit (1);
  8544. if (read (fd, data3, pagesize) != pagesize)
  8545. exit (1);
  8546. for (i = 0; i < pagesize; ++i)
  8547. if (*(data + i) != *(data3 + i))
  8548. exit (1);
  8549. close (fd);
  8550. exit (0);
  8551. }
  8552. _ACEOF
  8553. rm -f conftest$ac_exeext
  8554. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8555. (eval $ac_link) 2>&5
  8556. ac_status=$?
  8557. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8558. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8559. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8560. (eval $ac_try) 2>&5
  8561. ac_status=$?
  8562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8563. (exit $ac_status); }; }; then
  8564. ac_cv_func_mmap_fixed_mapped=yes
  8565. else
  8566. echo "$as_me: program exited with status $ac_status" >&5
  8567. echo "$as_me: failed program was:" >&5
  8568. sed 's/^/| /' conftest.$ac_ext >&5
  8569. ( exit $ac_status )
  8570. ac_cv_func_mmap_fixed_mapped=no
  8571. fi
  8572. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8573. fi
  8574. fi
  8575. echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
  8576. echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
  8577. if test $ac_cv_func_mmap_fixed_mapped = yes; then
  8578. cat >>confdefs.h <<\_ACEOF
  8579. #define HAVE_MMAP 1
  8580. _ACEOF
  8581. fi
  8582. rm -f conftest.mmap
  8583. for ac_header in stdlib.h
  8584. do
  8585. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  8586. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8587. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8588. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8589. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8590. echo $ECHO_N "(cached) $ECHO_C" >&6
  8591. fi
  8592. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8593. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8594. else
  8595. # Is the header compilable?
  8596. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  8597. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  8598. cat >conftest.$ac_ext <<_ACEOF
  8599. /* confdefs.h. */
  8600. _ACEOF
  8601. cat confdefs.h >>conftest.$ac_ext
  8602. cat >>conftest.$ac_ext <<_ACEOF
  8603. /* end confdefs.h. */
  8604. $ac_includes_default
  8605. #include <$ac_header>
  8606. _ACEOF
  8607. rm -f conftest.$ac_objext
  8608. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  8609. (eval $ac_compile) 2>conftest.er1
  8610. ac_status=$?
  8611. grep -v '^ *+' conftest.er1 >conftest.err
  8612. rm -f conftest.er1
  8613. cat conftest.err >&5
  8614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8615. (exit $ac_status); } &&
  8616. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8618. (eval $ac_try) 2>&5
  8619. ac_status=$?
  8620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8621. (exit $ac_status); }; } &&
  8622. { ac_try='test -s conftest.$ac_objext'
  8623. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8624. (eval $ac_try) 2>&5
  8625. ac_status=$?
  8626. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8627. (exit $ac_status); }; }; then
  8628. ac_header_compiler=yes
  8629. else
  8630. echo "$as_me: failed program was:" >&5
  8631. sed 's/^/| /' conftest.$ac_ext >&5
  8632. ac_header_compiler=no
  8633. fi
  8634. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  8635. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  8636. echo "${ECHO_T}$ac_header_compiler" >&6
  8637. # Is the header present?
  8638. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  8639. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  8640. cat >conftest.$ac_ext <<_ACEOF
  8641. /* confdefs.h. */
  8642. _ACEOF
  8643. cat confdefs.h >>conftest.$ac_ext
  8644. cat >>conftest.$ac_ext <<_ACEOF
  8645. /* end confdefs.h. */
  8646. #include <$ac_header>
  8647. _ACEOF
  8648. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  8649. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  8650. ac_status=$?
  8651. grep -v '^ *+' conftest.er1 >conftest.err
  8652. rm -f conftest.er1
  8653. cat conftest.err >&5
  8654. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8655. (exit $ac_status); } >/dev/null; then
  8656. if test -s conftest.err; then
  8657. ac_cpp_err=$ac_cxx_preproc_warn_flag
  8658. ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  8659. else
  8660. ac_cpp_err=
  8661. fi
  8662. else
  8663. ac_cpp_err=yes
  8664. fi
  8665. if test -z "$ac_cpp_err"; then
  8666. ac_header_preproc=yes
  8667. else
  8668. echo "$as_me: failed program was:" >&5
  8669. sed 's/^/| /' conftest.$ac_ext >&5
  8670. ac_header_preproc=no
  8671. fi
  8672. rm -f conftest.err conftest.$ac_ext
  8673. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  8674. echo "${ECHO_T}$ac_header_preproc" >&6
  8675. # So? What about this header?
  8676. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
  8677. yes:no: )
  8678. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  8679. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  8680. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  8681. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  8682. ac_header_preproc=yes
  8683. ;;
  8684. no:yes:* )
  8685. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  8686. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  8687. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  8688. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  8689. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  8690. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  8691. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  8692. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  8693. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  8694. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  8695. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  8696. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  8697. (
  8698. cat <<\_ASBOX
  8699. ## ------------------------------------------ ##
  8700. ## Report this to the AC_PACKAGE_NAME lists. ##
  8701. ## ------------------------------------------ ##
  8702. _ASBOX
  8703. ) |
  8704. sed "s/^/$as_me: WARNING: /" >&2
  8705. ;;
  8706. esac
  8707. echo "$as_me:$LINENO: checking for $ac_header" >&5
  8708. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  8709. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  8710. echo $ECHO_N "(cached) $ECHO_C" >&6
  8711. else
  8712. eval "$as_ac_Header=\$ac_header_preproc"
  8713. fi
  8714. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  8715. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  8716. fi
  8717. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  8718. cat >>confdefs.h <<_ACEOF
  8719. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  8720. _ACEOF
  8721. fi
  8722. done
  8723. echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
  8724. echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
  8725. if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
  8726. echo $ECHO_N "(cached) $ECHO_C" >&6
  8727. else
  8728. if test "$cross_compiling" = yes; then
  8729. ac_cv_func_realloc_0_nonnull=no
  8730. else
  8731. cat >conftest.$ac_ext <<_ACEOF
  8732. /* confdefs.h. */
  8733. _ACEOF
  8734. cat confdefs.h >>conftest.$ac_ext
  8735. cat >>conftest.$ac_ext <<_ACEOF
  8736. /* end confdefs.h. */
  8737. #if STDC_HEADERS || HAVE_STDLIB_H
  8738. # include <stdlib.h>
  8739. #else
  8740. char *realloc ();
  8741. #endif
  8742. int
  8743. main ()
  8744. {
  8745. exit (realloc (0, 0) ? 0 : 1);
  8746. ;
  8747. return 0;
  8748. }
  8749. _ACEOF
  8750. rm -f conftest$ac_exeext
  8751. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8752. (eval $ac_link) 2>&5
  8753. ac_status=$?
  8754. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8755. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8756. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8757. (eval $ac_try) 2>&5
  8758. ac_status=$?
  8759. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8760. (exit $ac_status); }; }; then
  8761. ac_cv_func_realloc_0_nonnull=yes
  8762. else
  8763. echo "$as_me: program exited with status $ac_status" >&5
  8764. echo "$as_me: failed program was:" >&5
  8765. sed 's/^/| /' conftest.$ac_ext >&5
  8766. ( exit $ac_status )
  8767. ac_cv_func_realloc_0_nonnull=no
  8768. fi
  8769. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8770. fi
  8771. fi
  8772. echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
  8773. echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
  8774. if test $ac_cv_func_realloc_0_nonnull = yes; then
  8775. cat >>confdefs.h <<\_ACEOF
  8776. #define HAVE_REALLOC 1
  8777. _ACEOF
  8778. else
  8779. cat >>confdefs.h <<\_ACEOF
  8780. #define HAVE_REALLOC 0
  8781. _ACEOF
  8782. case $LIBOBJS in
  8783. "realloc.$ac_objext" | \
  8784. *" realloc.$ac_objext" | \
  8785. "realloc.$ac_objext "* | \
  8786. *" realloc.$ac_objext "* ) ;;
  8787. *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
  8788. esac
  8789. cat >>confdefs.h <<\_ACEOF
  8790. #define realloc rpl_realloc
  8791. _ACEOF
  8792. fi
  8793. echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
  8794. echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6
  8795. if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
  8796. echo $ECHO_N "(cached) $ECHO_C" >&6
  8797. else
  8798. if test "$cross_compiling" = yes; then
  8799. ac_cv_func_stat_empty_string_bug=yes
  8800. else
  8801. cat >conftest.$ac_ext <<_ACEOF
  8802. /* confdefs.h. */
  8803. _ACEOF
  8804. cat confdefs.h >>conftest.$ac_ext
  8805. cat >>conftest.$ac_ext <<_ACEOF
  8806. /* end confdefs.h. */
  8807. $ac_includes_default
  8808. int
  8809. main ()
  8810. {
  8811. struct stat sbuf;
  8812. exit (stat ("", &sbuf) ? 1 : 0);
  8813. ;
  8814. return 0;
  8815. }
  8816. _ACEOF
  8817. rm -f conftest$ac_exeext
  8818. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8819. (eval $ac_link) 2>&5
  8820. ac_status=$?
  8821. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8822. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  8823. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8824. (eval $ac_try) 2>&5
  8825. ac_status=$?
  8826. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8827. (exit $ac_status); }; }; then
  8828. ac_cv_func_stat_empty_string_bug=yes
  8829. else
  8830. echo "$as_me: program exited with status $ac_status" >&5
  8831. echo "$as_me: failed program was:" >&5
  8832. sed 's/^/| /' conftest.$ac_ext >&5
  8833. ( exit $ac_status )
  8834. ac_cv_func_stat_empty_string_bug=no
  8835. fi
  8836. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  8837. fi
  8838. fi
  8839. echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
  8840. echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6
  8841. if test $ac_cv_func_stat_empty_string_bug = yes; then
  8842. case $LIBOBJS in
  8843. "stat.$ac_objext" | \
  8844. *" stat.$ac_objext" | \
  8845. "stat.$ac_objext "* | \
  8846. *" stat.$ac_objext "* ) ;;
  8847. *) LIBOBJS="$LIBOBJS stat.$ac_objext" ;;
  8848. esac
  8849. cat >>confdefs.h <<_ACEOF
  8850. #define HAVE_STAT_EMPTY_STRING_BUG 1
  8851. _ACEOF
  8852. fi
  8853. for ac_func in strftime
  8854. do
  8855. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8856. echo "$as_me:$LINENO: checking for $ac_func" >&5
  8857. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  8858. if eval "test \"\${$as_ac_var+set}\" = set"; then
  8859. echo $ECHO_N "(cached) $ECHO_C" >&6
  8860. else
  8861. cat >conftest.$ac_ext <<_ACEOF
  8862. /* confdefs.h. */
  8863. _ACEOF
  8864. cat confdefs.h >>conftest.$ac_ext
  8865. cat >>conftest.$ac_ext <<_ACEOF
  8866. /* end confdefs.h. */
  8867. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  8868. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  8869. #define $ac_func innocuous_$ac_func
  8870. /* System header to define __stub macros and hopefully few prototypes,
  8871. which can conflict with char $ac_func (); below.
  8872. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  8873. <limits.h> exists even on freestanding compilers. */
  8874. #ifdef __STDC__
  8875. # include <limits.h>
  8876. #else
  8877. # include <assert.h>
  8878. #endif
  8879. #undef $ac_func
  8880. /* Override any gcc2 internal prototype to avoid an error. */
  8881. #ifdef __cplusplus
  8882. extern "C"
  8883. {
  8884. #endif
  8885. /* We use char because int might match the return type of a gcc2
  8886. builtin and then its argument prototype would still apply. */
  8887. char $ac_func ();
  8888. /* The GNU C library defines this for functions which it implements
  8889. to always fail with ENOSYS. Some functions are actually named
  8890. something starting with __ and the normal name is an alias. */
  8891. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  8892. choke me
  8893. #else
  8894. char (*f) () = $ac_func;
  8895. #endif
  8896. #ifdef __cplusplus
  8897. }
  8898. #endif
  8899. int
  8900. main ()
  8901. {
  8902. return f != $ac_func;
  8903. ;
  8904. return 0;
  8905. }
  8906. _ACEOF
  8907. rm -f conftest.$ac_objext conftest$ac_exeext
  8908. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8909. (eval $ac_link) 2>conftest.er1
  8910. ac_status=$?
  8911. grep -v '^ *+' conftest.er1 >conftest.err
  8912. rm -f conftest.er1
  8913. cat conftest.err >&5
  8914. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8915. (exit $ac_status); } &&
  8916. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8917. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8918. (eval $ac_try) 2>&5
  8919. ac_status=$?
  8920. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8921. (exit $ac_status); }; } &&
  8922. { ac_try='test -s conftest$ac_exeext'
  8923. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8924. (eval $ac_try) 2>&5
  8925. ac_status=$?
  8926. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8927. (exit $ac_status); }; }; then
  8928. eval "$as_ac_var=yes"
  8929. else
  8930. echo "$as_me: failed program was:" >&5
  8931. sed 's/^/| /' conftest.$ac_ext >&5
  8932. eval "$as_ac_var=no"
  8933. fi
  8934. rm -f conftest.err conftest.$ac_objext \
  8935. conftest$ac_exeext conftest.$ac_ext
  8936. fi
  8937. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  8938. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  8939. if test `eval echo '${'$as_ac_var'}'` = yes; then
  8940. cat >>confdefs.h <<_ACEOF
  8941. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8942. _ACEOF
  8943. else
  8944. # strftime is in -lintl on SCO UNIX.
  8945. echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
  8946. echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
  8947. if test "${ac_cv_lib_intl_strftime+set}" = set; then
  8948. echo $ECHO_N "(cached) $ECHO_C" >&6
  8949. else
  8950. ac_check_lib_save_LIBS=$LIBS
  8951. LIBS="-lintl $LIBS"
  8952. cat >conftest.$ac_ext <<_ACEOF
  8953. /* confdefs.h. */
  8954. _ACEOF
  8955. cat confdefs.h >>conftest.$ac_ext
  8956. cat >>conftest.$ac_ext <<_ACEOF
  8957. /* end confdefs.h. */
  8958. /* Override any gcc2 internal prototype to avoid an error. */
  8959. #ifdef __cplusplus
  8960. extern "C"
  8961. #endif
  8962. /* We use char because int might match the return type of a gcc2
  8963. builtin and then its argument prototype would still apply. */
  8964. char strftime ();
  8965. int
  8966. main ()
  8967. {
  8968. strftime ();
  8969. ;
  8970. return 0;
  8971. }
  8972. _ACEOF
  8973. rm -f conftest.$ac_objext conftest$ac_exeext
  8974. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  8975. (eval $ac_link) 2>conftest.er1
  8976. ac_status=$?
  8977. grep -v '^ *+' conftest.er1 >conftest.err
  8978. rm -f conftest.er1
  8979. cat conftest.err >&5
  8980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8981. (exit $ac_status); } &&
  8982. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  8983. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8984. (eval $ac_try) 2>&5
  8985. ac_status=$?
  8986. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8987. (exit $ac_status); }; } &&
  8988. { ac_try='test -s conftest$ac_exeext'
  8989. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  8990. (eval $ac_try) 2>&5
  8991. ac_status=$?
  8992. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8993. (exit $ac_status); }; }; then
  8994. ac_cv_lib_intl_strftime=yes
  8995. else
  8996. echo "$as_me: failed program was:" >&5
  8997. sed 's/^/| /' conftest.$ac_ext >&5
  8998. ac_cv_lib_intl_strftime=no
  8999. fi
  9000. rm -f conftest.err conftest.$ac_objext \
  9001. conftest$ac_exeext conftest.$ac_ext
  9002. LIBS=$ac_check_lib_save_LIBS
  9003. fi
  9004. echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
  9005. echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
  9006. if test $ac_cv_lib_intl_strftime = yes; then
  9007. cat >>confdefs.h <<\_ACEOF
  9008. #define HAVE_STRFTIME 1
  9009. _ACEOF
  9010. LIBS="-lintl $LIBS"
  9011. fi
  9012. fi
  9013. done
  9014. #checkpoint
  9015. cat >confcache <<\_ACEOF
  9016. # This file is a shell script that caches the results of configure
  9017. # tests run on this system so they can be shared between configure
  9018. # scripts and configure runs, see configure's option --config-cache.
  9019. # It is not useful on other systems. If it contains results you don't
  9020. # want to keep, you may remove or edit it.
  9021. #
  9022. # config.status only pays attention to the cache file if you give it
  9023. # the --recheck option to rerun configure.
  9024. #
  9025. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9026. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9027. # following values.
  9028. _ACEOF
  9029. # The following way of writing the cache mishandles newlines in values,
  9030. # but we know of no workaround that is simple, portable, and efficient.
  9031. # So, don't put newlines in cache variables' values.
  9032. # Ultrix sh set writes to stderr and can't be redirected directly,
  9033. # and sets the high bit in the cache file unless we assign to the vars.
  9034. {
  9035. (set) 2>&1 |
  9036. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9037. *ac_space=\ *)
  9038. # `set' does not quote correctly, so add quotes (double-quote
  9039. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9040. sed -n \
  9041. "s/'/'\\\\''/g;
  9042. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9043. ;;
  9044. *)
  9045. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9046. sed -n \
  9047. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9048. ;;
  9049. esac;
  9050. } |
  9051. sed '
  9052. t clear
  9053. : clear
  9054. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9055. t end
  9056. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9057. : end' >>confcache
  9058. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9059. if test -w $cache_file; then
  9060. test "x$cache_file" != "x/dev/null"
  9061. cat confcache >$cache_file
  9062. else
  9063. echo "not updating unwritable cache $cache_file"
  9064. fi
  9065. fi
  9066. rm -f confcache
  9067. for ac_func in clock fsync getrusage isascii inet_aton gethostbyname2
  9068. do
  9069. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9070. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9071. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9072. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9073. echo $ECHO_N "(cached) $ECHO_C" >&6
  9074. else
  9075. cat >conftest.$ac_ext <<_ACEOF
  9076. /* confdefs.h. */
  9077. _ACEOF
  9078. cat confdefs.h >>conftest.$ac_ext
  9079. cat >>conftest.$ac_ext <<_ACEOF
  9080. /* end confdefs.h. */
  9081. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9082. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9083. #define $ac_func innocuous_$ac_func
  9084. /* System header to define __stub macros and hopefully few prototypes,
  9085. which can conflict with char $ac_func (); below.
  9086. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9087. <limits.h> exists even on freestanding compilers. */
  9088. #ifdef __STDC__
  9089. # include <limits.h>
  9090. #else
  9091. # include <assert.h>
  9092. #endif
  9093. #undef $ac_func
  9094. /* Override any gcc2 internal prototype to avoid an error. */
  9095. #ifdef __cplusplus
  9096. extern "C"
  9097. {
  9098. #endif
  9099. /* We use char because int might match the return type of a gcc2
  9100. builtin and then its argument prototype would still apply. */
  9101. char $ac_func ();
  9102. /* The GNU C library defines this for functions which it implements
  9103. to always fail with ENOSYS. Some functions are actually named
  9104. something starting with __ and the normal name is an alias. */
  9105. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9106. choke me
  9107. #else
  9108. char (*f) () = $ac_func;
  9109. #endif
  9110. #ifdef __cplusplus
  9111. }
  9112. #endif
  9113. int
  9114. main ()
  9115. {
  9116. return f != $ac_func;
  9117. ;
  9118. return 0;
  9119. }
  9120. _ACEOF
  9121. rm -f conftest.$ac_objext conftest$ac_exeext
  9122. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9123. (eval $ac_link) 2>conftest.er1
  9124. ac_status=$?
  9125. grep -v '^ *+' conftest.er1 >conftest.err
  9126. rm -f conftest.er1
  9127. cat conftest.err >&5
  9128. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9129. (exit $ac_status); } &&
  9130. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9132. (eval $ac_try) 2>&5
  9133. ac_status=$?
  9134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9135. (exit $ac_status); }; } &&
  9136. { ac_try='test -s conftest$ac_exeext'
  9137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9138. (eval $ac_try) 2>&5
  9139. ac_status=$?
  9140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9141. (exit $ac_status); }; }; then
  9142. eval "$as_ac_var=yes"
  9143. else
  9144. echo "$as_me: failed program was:" >&5
  9145. sed 's/^/| /' conftest.$ac_ext >&5
  9146. eval "$as_ac_var=no"
  9147. fi
  9148. rm -f conftest.err conftest.$ac_objext \
  9149. conftest$ac_exeext conftest.$ac_ext
  9150. fi
  9151. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9152. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9153. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9154. cat >>confdefs.h <<_ACEOF
  9155. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9156. _ACEOF
  9157. fi
  9158. done
  9159. for ac_func in getipnodebyname memcpy memset random rename snprintf srandom
  9160. do
  9161. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9162. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9163. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9164. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9165. echo $ECHO_N "(cached) $ECHO_C" >&6
  9166. else
  9167. cat >conftest.$ac_ext <<_ACEOF
  9168. /* confdefs.h. */
  9169. _ACEOF
  9170. cat confdefs.h >>conftest.$ac_ext
  9171. cat >>conftest.$ac_ext <<_ACEOF
  9172. /* end confdefs.h. */
  9173. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9174. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9175. #define $ac_func innocuous_$ac_func
  9176. /* System header to define __stub macros and hopefully few prototypes,
  9177. which can conflict with char $ac_func (); below.
  9178. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9179. <limits.h> exists even on freestanding compilers. */
  9180. #ifdef __STDC__
  9181. # include <limits.h>
  9182. #else
  9183. # include <assert.h>
  9184. #endif
  9185. #undef $ac_func
  9186. /* Override any gcc2 internal prototype to avoid an error. */
  9187. #ifdef __cplusplus
  9188. extern "C"
  9189. {
  9190. #endif
  9191. /* We use char because int might match the return type of a gcc2
  9192. builtin and then its argument prototype would still apply. */
  9193. char $ac_func ();
  9194. /* The GNU C library defines this for functions which it implements
  9195. to always fail with ENOSYS. Some functions are actually named
  9196. something starting with __ and the normal name is an alias. */
  9197. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9198. choke me
  9199. #else
  9200. char (*f) () = $ac_func;
  9201. #endif
  9202. #ifdef __cplusplus
  9203. }
  9204. #endif
  9205. int
  9206. main ()
  9207. {
  9208. return f != $ac_func;
  9209. ;
  9210. return 0;
  9211. }
  9212. _ACEOF
  9213. rm -f conftest.$ac_objext conftest$ac_exeext
  9214. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9215. (eval $ac_link) 2>conftest.er1
  9216. ac_status=$?
  9217. grep -v '^ *+' conftest.er1 >conftest.err
  9218. rm -f conftest.er1
  9219. cat conftest.err >&5
  9220. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9221. (exit $ac_status); } &&
  9222. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9223. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9224. (eval $ac_try) 2>&5
  9225. ac_status=$?
  9226. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9227. (exit $ac_status); }; } &&
  9228. { ac_try='test -s conftest$ac_exeext'
  9229. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9230. (eval $ac_try) 2>&5
  9231. ac_status=$?
  9232. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9233. (exit $ac_status); }; }; then
  9234. eval "$as_ac_var=yes"
  9235. else
  9236. echo "$as_me: failed program was:" >&5
  9237. sed 's/^/| /' conftest.$ac_ext >&5
  9238. eval "$as_ac_var=no"
  9239. fi
  9240. rm -f conftest.err conftest.$ac_objext \
  9241. conftest$ac_exeext conftest.$ac_ext
  9242. fi
  9243. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9244. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9245. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9246. cat >>confdefs.h <<_ACEOF
  9247. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9248. _ACEOF
  9249. fi
  9250. done
  9251. #checkpoint
  9252. cat >confcache <<\_ACEOF
  9253. # This file is a shell script that caches the results of configure
  9254. # tests run on this system so they can be shared between configure
  9255. # scripts and configure runs, see configure's option --config-cache.
  9256. # It is not useful on other systems. If it contains results you don't
  9257. # want to keep, you may remove or edit it.
  9258. #
  9259. # config.status only pays attention to the cache file if you give it
  9260. # the --recheck option to rerun configure.
  9261. #
  9262. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9263. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9264. # following values.
  9265. _ACEOF
  9266. # The following way of writing the cache mishandles newlines in values,
  9267. # but we know of no workaround that is simple, portable, and efficient.
  9268. # So, don't put newlines in cache variables' values.
  9269. # Ultrix sh set writes to stderr and can't be redirected directly,
  9270. # and sets the high bit in the cache file unless we assign to the vars.
  9271. {
  9272. (set) 2>&1 |
  9273. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9274. *ac_space=\ *)
  9275. # `set' does not quote correctly, so add quotes (double-quote
  9276. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9277. sed -n \
  9278. "s/'/'\\\\''/g;
  9279. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9280. ;;
  9281. *)
  9282. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9283. sed -n \
  9284. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9285. ;;
  9286. esac;
  9287. } |
  9288. sed '
  9289. t clear
  9290. : clear
  9291. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9292. t end
  9293. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9294. : end' >>confcache
  9295. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9296. if test -w $cache_file; then
  9297. test "x$cache_file" != "x/dev/null"
  9298. cat confcache >$cache_file
  9299. else
  9300. echo "not updating unwritable cache $cache_file"
  9301. fi
  9302. fi
  9303. rm -f confcache
  9304. for ac_func in strcasecmp strncasecmp vsnprintf
  9305. do
  9306. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9307. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9308. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9309. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9310. echo $ECHO_N "(cached) $ECHO_C" >&6
  9311. else
  9312. cat >conftest.$ac_ext <<_ACEOF
  9313. /* confdefs.h. */
  9314. _ACEOF
  9315. cat confdefs.h >>conftest.$ac_ext
  9316. cat >>conftest.$ac_ext <<_ACEOF
  9317. /* end confdefs.h. */
  9318. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9319. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9320. #define $ac_func innocuous_$ac_func
  9321. /* System header to define __stub macros and hopefully few prototypes,
  9322. which can conflict with char $ac_func (); below.
  9323. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9324. <limits.h> exists even on freestanding compilers. */
  9325. #ifdef __STDC__
  9326. # include <limits.h>
  9327. #else
  9328. # include <assert.h>
  9329. #endif
  9330. #undef $ac_func
  9331. /* Override any gcc2 internal prototype to avoid an error. */
  9332. #ifdef __cplusplus
  9333. extern "C"
  9334. {
  9335. #endif
  9336. /* We use char because int might match the return type of a gcc2
  9337. builtin and then its argument prototype would still apply. */
  9338. char $ac_func ();
  9339. /* The GNU C library defines this for functions which it implements
  9340. to always fail with ENOSYS. Some functions are actually named
  9341. something starting with __ and the normal name is an alias. */
  9342. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9343. choke me
  9344. #else
  9345. char (*f) () = $ac_func;
  9346. #endif
  9347. #ifdef __cplusplus
  9348. }
  9349. #endif
  9350. int
  9351. main ()
  9352. {
  9353. return f != $ac_func;
  9354. ;
  9355. return 0;
  9356. }
  9357. _ACEOF
  9358. rm -f conftest.$ac_objext conftest$ac_exeext
  9359. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9360. (eval $ac_link) 2>conftest.er1
  9361. ac_status=$?
  9362. grep -v '^ *+' conftest.er1 >conftest.err
  9363. rm -f conftest.er1
  9364. cat conftest.err >&5
  9365. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9366. (exit $ac_status); } &&
  9367. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9368. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9369. (eval $ac_try) 2>&5
  9370. ac_status=$?
  9371. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9372. (exit $ac_status); }; } &&
  9373. { ac_try='test -s conftest$ac_exeext'
  9374. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9375. (eval $ac_try) 2>&5
  9376. ac_status=$?
  9377. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9378. (exit $ac_status); }; }; then
  9379. eval "$as_ac_var=yes"
  9380. else
  9381. echo "$as_me: failed program was:" >&5
  9382. sed 's/^/| /' conftest.$ac_ext >&5
  9383. eval "$as_ac_var=no"
  9384. fi
  9385. rm -f conftest.err conftest.$ac_objext \
  9386. conftest$ac_exeext conftest.$ac_ext
  9387. fi
  9388. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9389. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9390. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9391. cat >>confdefs.h <<_ACEOF
  9392. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9393. _ACEOF
  9394. fi
  9395. done
  9396. #autoscan suggested this....
  9397. #These are recommended by autoscan, but no code supports it currently
  9398. #AC_CHECK_FUNCS([alarm bzero dup2 getcwd gethostbyaddr gethostbyname gethostname getpass gettimeofday mbrlen
  9399. #mkdir munmap realpath select setlocale socket strchr strerror strpbrk strrchr strstr strtol tzset])
  9400. for ac_func in vsprintf
  9401. do
  9402. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9403. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9404. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9405. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9406. echo $ECHO_N "(cached) $ECHO_C" >&6
  9407. else
  9408. cat >conftest.$ac_ext <<_ACEOF
  9409. /* confdefs.h. */
  9410. _ACEOF
  9411. cat confdefs.h >>conftest.$ac_ext
  9412. cat >>conftest.$ac_ext <<_ACEOF
  9413. /* end confdefs.h. */
  9414. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9415. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9416. #define $ac_func innocuous_$ac_func
  9417. /* System header to define __stub macros and hopefully few prototypes,
  9418. which can conflict with char $ac_func (); below.
  9419. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9420. <limits.h> exists even on freestanding compilers. */
  9421. #ifdef __STDC__
  9422. # include <limits.h>
  9423. #else
  9424. # include <assert.h>
  9425. #endif
  9426. #undef $ac_func
  9427. /* Override any gcc2 internal prototype to avoid an error. */
  9428. #ifdef __cplusplus
  9429. extern "C"
  9430. {
  9431. #endif
  9432. /* We use char because int might match the return type of a gcc2
  9433. builtin and then its argument prototype would still apply. */
  9434. char $ac_func ();
  9435. /* The GNU C library defines this for functions which it implements
  9436. to always fail with ENOSYS. Some functions are actually named
  9437. something starting with __ and the normal name is an alias. */
  9438. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9439. choke me
  9440. #else
  9441. char (*f) () = $ac_func;
  9442. #endif
  9443. #ifdef __cplusplus
  9444. }
  9445. #endif
  9446. int
  9447. main ()
  9448. {
  9449. return f != $ac_func;
  9450. ;
  9451. return 0;
  9452. }
  9453. _ACEOF
  9454. rm -f conftest.$ac_objext conftest$ac_exeext
  9455. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9456. (eval $ac_link) 2>conftest.er1
  9457. ac_status=$?
  9458. grep -v '^ *+' conftest.er1 >conftest.err
  9459. rm -f conftest.er1
  9460. cat conftest.err >&5
  9461. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9462. (exit $ac_status); } &&
  9463. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9464. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9465. (eval $ac_try) 2>&5
  9466. ac_status=$?
  9467. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9468. (exit $ac_status); }; } &&
  9469. { ac_try='test -s conftest$ac_exeext'
  9470. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9471. (eval $ac_try) 2>&5
  9472. ac_status=$?
  9473. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9474. (exit $ac_status); }; }; then
  9475. eval "$as_ac_var=yes"
  9476. else
  9477. echo "$as_me: failed program was:" >&5
  9478. sed 's/^/| /' conftest.$ac_ext >&5
  9479. eval "$as_ac_var=no"
  9480. fi
  9481. rm -f conftest.err conftest.$ac_objext \
  9482. conftest$ac_exeext conftest.$ac_ext
  9483. fi
  9484. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9485. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9486. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9487. cat >>confdefs.h <<_ACEOF
  9488. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9489. _ACEOF
  9490. fi
  9491. done
  9492. if test "$ac_cv_func_vsprintf" = "no"
  9493. then
  9494. cat << 'EOF' >&2
  9495. configure: error:
  9496. Your system does not have the sprintf/vsprintf libraries.
  9497. These are required to compile almost anything. Sorry.
  9498. EOF
  9499. exit 1
  9500. fi
  9501. for ac_func in uname
  9502. do
  9503. as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  9504. echo "$as_me:$LINENO: checking for $ac_func" >&5
  9505. echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  9506. if eval "test \"\${$as_ac_var+set}\" = set"; then
  9507. echo $ECHO_N "(cached) $ECHO_C" >&6
  9508. else
  9509. cat >conftest.$ac_ext <<_ACEOF
  9510. /* confdefs.h. */
  9511. _ACEOF
  9512. cat confdefs.h >>conftest.$ac_ext
  9513. cat >>conftest.$ac_ext <<_ACEOF
  9514. /* end confdefs.h. */
  9515. /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  9516. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  9517. #define $ac_func innocuous_$ac_func
  9518. /* System header to define __stub macros and hopefully few prototypes,
  9519. which can conflict with char $ac_func (); below.
  9520. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  9521. <limits.h> exists even on freestanding compilers. */
  9522. #ifdef __STDC__
  9523. # include <limits.h>
  9524. #else
  9525. # include <assert.h>
  9526. #endif
  9527. #undef $ac_func
  9528. /* Override any gcc2 internal prototype to avoid an error. */
  9529. #ifdef __cplusplus
  9530. extern "C"
  9531. {
  9532. #endif
  9533. /* We use char because int might match the return type of a gcc2
  9534. builtin and then its argument prototype would still apply. */
  9535. char $ac_func ();
  9536. /* The GNU C library defines this for functions which it implements
  9537. to always fail with ENOSYS. Some functions are actually named
  9538. something starting with __ and the normal name is an alias. */
  9539. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  9540. choke me
  9541. #else
  9542. char (*f) () = $ac_func;
  9543. #endif
  9544. #ifdef __cplusplus
  9545. }
  9546. #endif
  9547. int
  9548. main ()
  9549. {
  9550. return f != $ac_func;
  9551. ;
  9552. return 0;
  9553. }
  9554. _ACEOF
  9555. rm -f conftest.$ac_objext conftest$ac_exeext
  9556. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9557. (eval $ac_link) 2>conftest.er1
  9558. ac_status=$?
  9559. grep -v '^ *+' conftest.er1 >conftest.err
  9560. rm -f conftest.er1
  9561. cat conftest.err >&5
  9562. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9563. (exit $ac_status); } &&
  9564. { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
  9565. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9566. (eval $ac_try) 2>&5
  9567. ac_status=$?
  9568. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9569. (exit $ac_status); }; } &&
  9570. { ac_try='test -s conftest$ac_exeext'
  9571. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9572. (eval $ac_try) 2>&5
  9573. ac_status=$?
  9574. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9575. (exit $ac_status); }; }; then
  9576. eval "$as_ac_var=yes"
  9577. else
  9578. echo "$as_me: failed program was:" >&5
  9579. sed 's/^/| /' conftest.$ac_ext >&5
  9580. eval "$as_ac_var=no"
  9581. fi
  9582. rm -f conftest.err conftest.$ac_objext \
  9583. conftest$ac_exeext conftest.$ac_ext
  9584. fi
  9585. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  9586. echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  9587. if test `eval echo '${'$as_ac_var'}'` = yes; then
  9588. cat >>confdefs.h <<_ACEOF
  9589. #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  9590. _ACEOF
  9591. fi
  9592. done
  9593. if test "$ac_cv_func_uname" = "no"
  9594. then
  9595. cat << 'EOF' >&2
  9596. configure: error:
  9597. Your system does not have the uname() function.
  9598. This is required for the botpack.
  9599. EOF
  9600. exit 1
  9601. fi
  9602. # Make sure we have stdc headers, since we can't compile without them
  9603. if test "$ac_cv_header_stdc" = "no"
  9604. then
  9605. cat << 'EOF' >&2
  9606. configure: error:
  9607. Your system must support ANSI C Header files.
  9608. These are required for the language support. Sorry.
  9609. EOF
  9610. exit 1
  9611. fi
  9612. #checkpoint
  9613. cat >confcache <<\_ACEOF
  9614. # This file is a shell script that caches the results of configure
  9615. # tests run on this system so they can be shared between configure
  9616. # scripts and configure runs, see configure's option --config-cache.
  9617. # It is not useful on other systems. If it contains results you don't
  9618. # want to keep, you may remove or edit it.
  9619. #
  9620. # config.status only pays attention to the cache file if you give it
  9621. # the --recheck option to rerun configure.
  9622. #
  9623. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9624. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9625. # following values.
  9626. _ACEOF
  9627. # The following way of writing the cache mishandles newlines in values,
  9628. # but we know of no workaround that is simple, portable, and efficient.
  9629. # So, don't put newlines in cache variables' values.
  9630. # Ultrix sh set writes to stderr and can't be redirected directly,
  9631. # and sets the high bit in the cache file unless we assign to the vars.
  9632. {
  9633. (set) 2>&1 |
  9634. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9635. *ac_space=\ *)
  9636. # `set' does not quote correctly, so add quotes (double-quote
  9637. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9638. sed -n \
  9639. "s/'/'\\\\''/g;
  9640. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9641. ;;
  9642. *)
  9643. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9644. sed -n \
  9645. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9646. ;;
  9647. esac;
  9648. } |
  9649. sed '
  9650. t clear
  9651. : clear
  9652. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9653. t end
  9654. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9655. : end' >>confcache
  9656. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9657. if test -w $cache_file; then
  9658. test "x$cache_file" != "x/dev/null"
  9659. cat confcache >$cache_file
  9660. else
  9661. echo "not updating unwritable cache $cache_file"
  9662. fi
  9663. fi
  9664. rm -f confcache
  9665. VERSION=`grep "char" $srcdir/src/main.c | $AWK '/egg_version/ {print $5}' | sed -e 's/\"//g' | sed -e 's/\;//g'`
  9666. version_num=`echo $VERSION | $AWK 'BEGIN {FS = "."} {printf("%d%02d%02d", $1, $2, $3)}'`
  9667. cat >>confdefs.h <<_ACEOF
  9668. #define EGG_VERSION $version_num
  9669. _ACEOF
  9670. #FIND_WRAPS
  9671. case "$srcdir" in
  9672. [\\/]* | ?:[\\/]*)
  9673. MOD_UPDIR=""
  9674. ;;
  9675. *)
  9676. MOD_UPDIR="../"
  9677. ;;
  9678. esac
  9679. 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/notes.mod/Makefile src/mod/server.mod/Makefile src/mod/share.mod/Makefile src/mod/transfer.mod/Makefile src/mod/update.mod/Makefile"
  9680. for mf in $files; do
  9681. # Strip MF so we end up with the name of the file.
  9682. # echo "MF: $mf"
  9683. mf=`echo "$mf" | sed -e 's/:.*$//'`
  9684. dirpart=`(dirname "$mf") 2>/dev/null ||
  9685. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9686. X"$mf" : 'X\(//\)[^/]' \| \
  9687. X"$mf" : 'X\(//\)$' \| \
  9688. X"$mf" : 'X\(/\)' \| \
  9689. . : '\(.\)' 2>/dev/null ||
  9690. echo X"$mf" |
  9691. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9692. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9693. /^X\(\/\/\)$/{ s//\1/; q; }
  9694. /^X\(\/\).*/{ s//\1/; q; }
  9695. s/.*/./; q'`
  9696. # echo "dirpart: $dirpart mf: $mf"
  9697. # rm -rf "$dirpart/.deps/"
  9698. rm -f "$dirpart/.deps/includes"
  9699. test -d "$dirpart/.deps" || mkdir "$dirpart/.deps"
  9700. for file in `sed -n -e '
  9701. /^OBJS = .*\\\\$/ {
  9702. s/^OBJS = //
  9703. :loop
  9704. s/\\\\$//
  9705. p
  9706. n
  9707. /\\\\$/ b loop
  9708. p
  9709. }
  9710. /^OBJS = / s/^OBJS = //p' < "$mf"`;
  9711. do
  9712. base=`basename $file .o`
  9713. test -f "$dirpart/$base.c" || continue
  9714. if ! test -f "$dirpart/.deps/$base.Po"; then
  9715. echo '# dummy' > "$dirpart/.deps/$base.Po"
  9716. #Remove the .o file, because it needs to be recompiled for its dependancies.
  9717. if test -f "$dirpart/$base.o"; then
  9718. rm -f "$dirpart/$base.o"
  9719. fi
  9720. fi
  9721. echo "include .deps/$base.Po" >> "$dirpart/.deps/includes"
  9722. echo "_$base.c:" >> "$dirpart/.deps/includes"
  9723. done
  9724. done
  9725. ac_config_files="$ac_config_files Makefile src/Makefile src/compat/Makefile src/crypto/Makefile src/mod/Makefile"
  9726. cat >confcache <<\_ACEOF
  9727. # This file is a shell script that caches the results of configure
  9728. # tests run on this system so they can be shared between configure
  9729. # scripts and configure runs, see configure's option --config-cache.
  9730. # It is not useful on other systems. If it contains results you don't
  9731. # want to keep, you may remove or edit it.
  9732. #
  9733. # config.status only pays attention to the cache file if you give it
  9734. # the --recheck option to rerun configure.
  9735. #
  9736. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9737. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9738. # following values.
  9739. _ACEOF
  9740. # The following way of writing the cache mishandles newlines in values,
  9741. # but we know of no workaround that is simple, portable, and efficient.
  9742. # So, don't put newlines in cache variables' values.
  9743. # Ultrix sh set writes to stderr and can't be redirected directly,
  9744. # and sets the high bit in the cache file unless we assign to the vars.
  9745. {
  9746. (set) 2>&1 |
  9747. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  9748. *ac_space=\ *)
  9749. # `set' does not quote correctly, so add quotes (double-quote
  9750. # substitution turns \\\\ into \\, and sed turns \\ into \).
  9751. sed -n \
  9752. "s/'/'\\\\''/g;
  9753. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9754. ;;
  9755. *)
  9756. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9757. sed -n \
  9758. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9759. ;;
  9760. esac;
  9761. } |
  9762. sed '
  9763. t clear
  9764. : clear
  9765. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9766. t end
  9767. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9768. : end' >>confcache
  9769. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  9770. if test -w $cache_file; then
  9771. test "x$cache_file" != "x/dev/null"
  9772. cat confcache >$cache_file
  9773. else
  9774. echo "not updating unwritable cache $cache_file"
  9775. fi
  9776. fi
  9777. rm -f confcache
  9778. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9779. # Let make expand exec_prefix.
  9780. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9781. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  9782. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  9783. # trailing colons and then remove the whole line if VPATH becomes empty
  9784. # (actually we leave an empty line to preserve line numbers).
  9785. if test "x$srcdir" = x.; then
  9786. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  9787. s/:*\$(srcdir):*/:/;
  9788. s/:*\${srcdir}:*/:/;
  9789. s/:*@srcdir@:*/:/;
  9790. s/^\([^=]*=[ ]*\):*/\1/;
  9791. s/:*$//;
  9792. s/^[^=]*=[ ]*$//;
  9793. }'
  9794. fi
  9795. DEFS=-DHAVE_CONFIG_H
  9796. ac_libobjs=
  9797. ac_ltlibobjs=
  9798. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9799. # 1. Remove the extension, and $U if already installed.
  9800. ac_i=`echo "$ac_i" |
  9801. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  9802. # 2. Add them.
  9803. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  9804. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  9805. done
  9806. LIBOBJS=$ac_libobjs
  9807. LTLIBOBJS=$ac_ltlibobjs
  9808. : ${CONFIG_STATUS=./config.status}
  9809. ac_clean_files_save=$ac_clean_files
  9810. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9811. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  9812. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9813. cat >$CONFIG_STATUS <<_ACEOF
  9814. #! $SHELL
  9815. # Generated by $as_me.
  9816. # Run this file to recreate the current configuration.
  9817. # Compiler output produced by configure, useful for debugging
  9818. # configure, is in config.log if it exists.
  9819. debug=false
  9820. ac_cs_recheck=false
  9821. ac_cs_silent=false
  9822. SHELL=\${CONFIG_SHELL-$SHELL}
  9823. _ACEOF
  9824. cat >>$CONFIG_STATUS <<\_ACEOF
  9825. ## --------------------- ##
  9826. ## M4sh Initialization. ##
  9827. ## --------------------- ##
  9828. # Be Bourne compatible
  9829. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  9830. emulate sh
  9831. NULLCMD=:
  9832. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  9833. # is contrary to our usage. Disable this feature.
  9834. alias -g '${1+"$@"}'='"$@"'
  9835. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  9836. set -o posix
  9837. fi
  9838. DUALCASE=1; export DUALCASE # for MKS sh
  9839. # Support unset when possible.
  9840. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  9841. as_unset=unset
  9842. else
  9843. as_unset=false
  9844. fi
  9845. # Work around bugs in pre-3.0 UWIN ksh.
  9846. $as_unset ENV MAIL MAILPATH
  9847. PS1='$ '
  9848. PS2='> '
  9849. PS4='+ '
  9850. # NLS nuisances.
  9851. for as_var in \
  9852. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  9853. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  9854. LC_TELEPHONE LC_TIME
  9855. do
  9856. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9857. eval $as_var=C; export $as_var
  9858. else
  9859. $as_unset $as_var
  9860. fi
  9861. done
  9862. # Required to use basename.
  9863. if expr a : '\(a\)' >/dev/null 2>&1; then
  9864. as_expr=expr
  9865. else
  9866. as_expr=false
  9867. fi
  9868. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  9869. as_basename=basename
  9870. else
  9871. as_basename=false
  9872. fi
  9873. # Name of the executable.
  9874. as_me=`$as_basename "$0" ||
  9875. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  9876. X"$0" : 'X\(//\)$' \| \
  9877. X"$0" : 'X\(/\)$' \| \
  9878. . : '\(.\)' 2>/dev/null ||
  9879. echo X/"$0" |
  9880. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  9881. /^X\/\(\/\/\)$/{ s//\1/; q; }
  9882. /^X\/\(\/\).*/{ s//\1/; q; }
  9883. s/.*/./; q'`
  9884. # PATH needs CR, and LINENO needs CR and PATH.
  9885. # Avoid depending upon Character Ranges.
  9886. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  9887. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  9888. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  9889. as_cr_digits='0123456789'
  9890. as_cr_alnum=$as_cr_Letters$as_cr_digits
  9891. # The user is always right.
  9892. if test "${PATH_SEPARATOR+set}" != set; then
  9893. echo "#! /bin/sh" >conf$$.sh
  9894. echo "exit 0" >>conf$$.sh
  9895. chmod +x conf$$.sh
  9896. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  9897. PATH_SEPARATOR=';'
  9898. else
  9899. PATH_SEPARATOR=:
  9900. fi
  9901. rm -f conf$$.sh
  9902. fi
  9903. as_lineno_1=$LINENO
  9904. as_lineno_2=$LINENO
  9905. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9906. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9907. test "x$as_lineno_3" = "x$as_lineno_2" || {
  9908. # Find who we are. Look in the path if we contain no path at all
  9909. # relative or not.
  9910. case $0 in
  9911. *[\\/]* ) as_myself=$0 ;;
  9912. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9913. for as_dir in $PATH
  9914. do
  9915. IFS=$as_save_IFS
  9916. test -z "$as_dir" && as_dir=.
  9917. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9918. done
  9919. ;;
  9920. esac
  9921. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9922. # in which case we are not to be found in the path.
  9923. if test "x$as_myself" = x; then
  9924. as_myself=$0
  9925. fi
  9926. if test ! -f "$as_myself"; then
  9927. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  9928. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  9929. { (exit 1); exit 1; }; }
  9930. fi
  9931. case $CONFIG_SHELL in
  9932. '')
  9933. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9934. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  9935. do
  9936. IFS=$as_save_IFS
  9937. test -z "$as_dir" && as_dir=.
  9938. for as_base in sh bash ksh sh5; do
  9939. case $as_dir in
  9940. /*)
  9941. if ("$as_dir/$as_base" -c '
  9942. as_lineno_1=$LINENO
  9943. as_lineno_2=$LINENO
  9944. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  9945. test "x$as_lineno_1" != "x$as_lineno_2" &&
  9946. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  9947. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  9948. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  9949. CONFIG_SHELL=$as_dir/$as_base
  9950. export CONFIG_SHELL
  9951. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  9952. fi;;
  9953. esac
  9954. done
  9955. done
  9956. ;;
  9957. esac
  9958. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  9959. # uniformly replaced by the line number. The first 'sed' inserts a
  9960. # line-number line before each line; the second 'sed' does the real
  9961. # work. The second script uses 'N' to pair each line-number line
  9962. # with the numbered line, and appends trailing '-' during
  9963. # substitution so that $LINENO is not a special case at line end.
  9964. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  9965. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  9966. sed '=' <$as_myself |
  9967. sed '
  9968. N
  9969. s,$,-,
  9970. : loop
  9971. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  9972. t loop
  9973. s,-$,,
  9974. s,^['$as_cr_digits']*\n,,
  9975. ' >$as_me.lineno &&
  9976. chmod +x $as_me.lineno ||
  9977. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  9978. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  9979. { (exit 1); exit 1; }; }
  9980. # Don't try to exec as it changes $[0], causing all sort of problems
  9981. # (the dirname of $[0] is not the place where we might find the
  9982. # original and so on. Autoconf is especially sensible to this).
  9983. . ./$as_me.lineno
  9984. # Exit status is that of the last command.
  9985. exit
  9986. }
  9987. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  9988. *c*,-n*) ECHO_N= ECHO_C='
  9989. ' ECHO_T=' ' ;;
  9990. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  9991. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  9992. esac
  9993. if expr a : '\(a\)' >/dev/null 2>&1; then
  9994. as_expr=expr
  9995. else
  9996. as_expr=false
  9997. fi
  9998. rm -f conf$$ conf$$.exe conf$$.file
  9999. echo >conf$$.file
  10000. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10001. # We could just check for DJGPP; but this test a) works b) is more generic
  10002. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  10003. if test -f conf$$.exe; then
  10004. # Don't use ln at all; we don't have any links
  10005. as_ln_s='cp -p'
  10006. else
  10007. as_ln_s='ln -s'
  10008. fi
  10009. elif ln conf$$.file conf$$ 2>/dev/null; then
  10010. as_ln_s=ln
  10011. else
  10012. as_ln_s='cp -p'
  10013. fi
  10014. rm -f conf$$ conf$$.exe conf$$.file
  10015. if mkdir -p . 2>/dev/null; then
  10016. as_mkdir_p=:
  10017. else
  10018. test -d ./-p && rmdir ./-p
  10019. as_mkdir_p=false
  10020. fi
  10021. as_executable_p="test -f"
  10022. # Sed expression to map a string onto a valid CPP name.
  10023. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10024. # Sed expression to map a string onto a valid variable name.
  10025. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10026. # IFS
  10027. # We need space, tab and new line, in precisely that order.
  10028. as_nl='
  10029. '
  10030. IFS=" $as_nl"
  10031. # CDPATH.
  10032. $as_unset CDPATH
  10033. exec 6>&1
  10034. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  10035. # report actual input values of CONFIG_FILES etc. instead of their
  10036. # values after options handling. Logging --version etc. is OK.
  10037. exec 5>>config.log
  10038. {
  10039. echo
  10040. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10041. ## Running $as_me. ##
  10042. _ASBOX
  10043. } >&5
  10044. cat >&5 <<_CSEOF
  10045. This file was extended by $as_me, which was
  10046. generated by GNU Autoconf 2.59. Invocation command line was
  10047. CONFIG_FILES = $CONFIG_FILES
  10048. CONFIG_HEADERS = $CONFIG_HEADERS
  10049. CONFIG_LINKS = $CONFIG_LINKS
  10050. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10051. $ $0 $@
  10052. _CSEOF
  10053. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  10054. echo >&5
  10055. _ACEOF
  10056. # Files that config.status was made for.
  10057. if test -n "$ac_config_files"; then
  10058. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  10059. fi
  10060. if test -n "$ac_config_headers"; then
  10061. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  10062. fi
  10063. if test -n "$ac_config_links"; then
  10064. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  10065. fi
  10066. if test -n "$ac_config_commands"; then
  10067. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  10068. fi
  10069. cat >>$CONFIG_STATUS <<\_ACEOF
  10070. ac_cs_usage="\
  10071. \`$as_me' instantiates files from templates according to the
  10072. current configuration.
  10073. Usage: $0 [OPTIONS] [FILE]...
  10074. -h, --help print this help, then exit
  10075. -V, --version print version number, then exit
  10076. -q, --quiet do not print progress messages
  10077. -d, --debug don't remove temporary files
  10078. --recheck update $as_me by reconfiguring in the same conditions
  10079. --file=FILE[:TEMPLATE]
  10080. instantiate the configuration file FILE
  10081. --header=FILE[:TEMPLATE]
  10082. instantiate the configuration header FILE
  10083. Configuration files:
  10084. $config_files
  10085. Configuration headers:
  10086. $config_headers
  10087. Report bugs to <bug-autoconf@gnu.org>."
  10088. _ACEOF
  10089. cat >>$CONFIG_STATUS <<_ACEOF
  10090. ac_cs_version="\\
  10091. config.status
  10092. configured by $0, generated by GNU Autoconf 2.59,
  10093. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10094. Copyright (C) 2003 Free Software Foundation, Inc.
  10095. This config.status script is free software; the Free Software Foundation
  10096. gives unlimited permission to copy, distribute and modify it."
  10097. srcdir=$srcdir
  10098. _ACEOF
  10099. cat >>$CONFIG_STATUS <<\_ACEOF
  10100. # If no file are specified by the user, then we need to provide default
  10101. # value. By we need to know if files were specified by the user.
  10102. ac_need_defaults=:
  10103. while test $# != 0
  10104. do
  10105. case $1 in
  10106. --*=*)
  10107. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  10108. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  10109. ac_shift=:
  10110. ;;
  10111. -*)
  10112. ac_option=$1
  10113. ac_optarg=$2
  10114. ac_shift=shift
  10115. ;;
  10116. *) # This is not an option, so the user has probably given explicit
  10117. # arguments.
  10118. ac_option=$1
  10119. ac_need_defaults=false;;
  10120. esac
  10121. case $ac_option in
  10122. # Handling of the options.
  10123. _ACEOF
  10124. cat >>$CONFIG_STATUS <<\_ACEOF
  10125. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10126. ac_cs_recheck=: ;;
  10127. --version | --vers* | -V )
  10128. echo "$ac_cs_version"; exit 0 ;;
  10129. --he | --h)
  10130. # Conflict between --help and --header
  10131. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  10132. Try \`$0 --help' for more information." >&5
  10133. echo "$as_me: error: ambiguous option: $1
  10134. Try \`$0 --help' for more information." >&2;}
  10135. { (exit 1); exit 1; }; };;
  10136. --help | --hel | -h )
  10137. echo "$ac_cs_usage"; exit 0 ;;
  10138. --debug | --d* | -d )
  10139. debug=: ;;
  10140. --file | --fil | --fi | --f )
  10141. $ac_shift
  10142. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  10143. ac_need_defaults=false;;
  10144. --header | --heade | --head | --hea )
  10145. $ac_shift
  10146. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  10147. ac_need_defaults=false;;
  10148. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10149. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10150. ac_cs_silent=: ;;
  10151. # This is an error.
  10152. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  10153. Try \`$0 --help' for more information." >&5
  10154. echo "$as_me: error: unrecognized option: $1
  10155. Try \`$0 --help' for more information." >&2;}
  10156. { (exit 1); exit 1; }; } ;;
  10157. *) ac_config_targets="$ac_config_targets $1" ;;
  10158. esac
  10159. shift
  10160. done
  10161. ac_configure_extra_args=
  10162. if $ac_cs_silent; then
  10163. exec 6>/dev/null
  10164. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10165. fi
  10166. _ACEOF
  10167. cat >>$CONFIG_STATUS <<_ACEOF
  10168. if \$ac_cs_recheck; then
  10169. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  10170. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10171. fi
  10172. _ACEOF
  10173. cat >>$CONFIG_STATUS <<\_ACEOF
  10174. for ac_config_target in $ac_config_targets
  10175. do
  10176. case "$ac_config_target" in
  10177. # Handling of arguments.
  10178. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10179. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10180. "src/compat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/compat/Makefile" ;;
  10181. "src/crypto/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/crypto/Makefile" ;;
  10182. "src/mod/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mod/Makefile" ;;
  10183. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  10184. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  10185. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  10186. { (exit 1); exit 1; }; };;
  10187. esac
  10188. done
  10189. # If the user did not use the arguments to specify the items to instantiate,
  10190. # then the envvar interface is used. Set only those that are not.
  10191. # We use the long form for the default assignment because of an extremely
  10192. # bizarre bug on SunOS 4.1.3.
  10193. if $ac_need_defaults; then
  10194. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10195. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  10196. fi
  10197. # Have a temporary directory for convenience. Make it in the build tree
  10198. # simply because there is no reason to put it here, and in addition,
  10199. # creating and moving files from /tmp can sometimes cause problems.
  10200. # Create a temporary directory, and hook for its removal unless debugging.
  10201. $debug ||
  10202. {
  10203. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  10204. trap '{ (exit 1); exit 1; }' 1 2 13 15
  10205. }
  10206. # Create a (secure) tmp directory for tmp files.
  10207. {
  10208. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  10209. test -n "$tmp" && test -d "$tmp"
  10210. } ||
  10211. {
  10212. tmp=./confstat$$-$RANDOM
  10213. (umask 077 && mkdir $tmp)
  10214. } ||
  10215. {
  10216. echo "$me: cannot create a temporary directory in ." >&2
  10217. { (exit 1); exit 1; }
  10218. }
  10219. _ACEOF
  10220. cat >>$CONFIG_STATUS <<_ACEOF
  10221. #
  10222. # CONFIG_FILES section.
  10223. #
  10224. # No need to generate the scripts if there are no CONFIG_FILES.
  10225. # This happens for instance when ./config.status config.h
  10226. if test -n "\$CONFIG_FILES"; then
  10227. # Protect against being on the right side of a sed subst in config.status.
  10228. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  10229. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  10230. s,@SHELL@,$SHELL,;t t
  10231. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  10232. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  10233. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  10234. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  10235. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  10236. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  10237. s,@exec_prefix@,$exec_prefix,;t t
  10238. s,@prefix@,$prefix,;t t
  10239. s,@program_transform_name@,$program_transform_name,;t t
  10240. s,@bindir@,$bindir,;t t
  10241. s,@sbindir@,$sbindir,;t t
  10242. s,@libexecdir@,$libexecdir,;t t
  10243. s,@datadir@,$datadir,;t t
  10244. s,@sysconfdir@,$sysconfdir,;t t
  10245. s,@sharedstatedir@,$sharedstatedir,;t t
  10246. s,@localstatedir@,$localstatedir,;t t
  10247. s,@libdir@,$libdir,;t t
  10248. s,@includedir@,$includedir,;t t
  10249. s,@oldincludedir@,$oldincludedir,;t t
  10250. s,@infodir@,$infodir,;t t
  10251. s,@mandir@,$mandir,;t t
  10252. s,@build_alias@,$build_alias,;t t
  10253. s,@host_alias@,$host_alias,;t t
  10254. s,@target_alias@,$target_alias,;t t
  10255. s,@DEFS@,$DEFS,;t t
  10256. s,@ECHO_C@,$ECHO_C,;t t
  10257. s,@ECHO_N@,$ECHO_N,;t t
  10258. s,@ECHO_T@,$ECHO_T,;t t
  10259. s,@LIBS@,$LIBS,;t t
  10260. s,@egg_ac_parameters@,$egg_ac_parameters,;t t
  10261. s,@CXX@,$CXX,;t t
  10262. s,@CXXFLAGS@,$CXXFLAGS,;t t
  10263. s,@LDFLAGS@,$LDFLAGS,;t t
  10264. s,@CPPFLAGS@,$CPPFLAGS,;t t
  10265. s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  10266. s,@EXEEXT@,$EXEEXT,;t t
  10267. s,@OBJEXT@,$OBJEXT,;t t
  10268. s,@CXXCPP@,$CXXCPP,;t t
  10269. s,@EGREP@,$EGREP,;t t
  10270. s,@CCDEPMODE@,$CCDEPMODE,;t t
  10271. s,@GCC3@,$GCC3,;t t
  10272. s,@SET_MAKE@,$SET_MAKE,;t t
  10273. s,@HEAD_1@,$HEAD_1,;t t
  10274. s,@AWK@,$AWK,;t t
  10275. s,@BASENAME@,$BASENAME,;t t
  10276. s,@OBJCOPY@,$OBJCOPY,;t t
  10277. s,@STRIP@,$STRIP,;t t
  10278. s,@DIFF@,$DIFF,;t t
  10279. s,@UNAME@,$UNAME,;t t
  10280. s,@CCACHE@,$CCACHE,;t t
  10281. s,@DISTCC@,$DISTCC,;t t
  10282. s,@CCDEBUG@,$CCDEBUG,;t t
  10283. s,@ZLIB@,$ZLIB,;t t
  10284. s,@LIBOBJS@,$LIBOBJS,;t t
  10285. s,@VERSION@,$VERSION,;t t
  10286. s,@NUMVER@,$NUMVER,;t t
  10287. s,@MOD_UPDIR@,$MOD_UPDIR,;t t
  10288. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  10289. CEOF
  10290. _ACEOF
  10291. cat >>$CONFIG_STATUS <<\_ACEOF
  10292. # Split the substitutions into bite-sized pieces for seds with
  10293. # small command number limits, like on Digital OSF/1 and HP-UX.
  10294. ac_max_sed_lines=48
  10295. ac_sed_frag=1 # Number of current file.
  10296. ac_beg=1 # First line for current file.
  10297. ac_end=$ac_max_sed_lines # Line after last line for current file.
  10298. ac_more_lines=:
  10299. ac_sed_cmds=
  10300. while $ac_more_lines; do
  10301. if test $ac_beg -gt 1; then
  10302. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10303. else
  10304. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  10305. fi
  10306. if test ! -s $tmp/subs.frag; then
  10307. ac_more_lines=false
  10308. else
  10309. # The purpose of the label and of the branching condition is to
  10310. # speed up the sed processing (if there are no `@' at all, there
  10311. # is no need to browse any of the substitutions).
  10312. # These are the two extra sed commands mentioned above.
  10313. (echo ':t
  10314. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  10315. if test -z "$ac_sed_cmds"; then
  10316. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  10317. else
  10318. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  10319. fi
  10320. ac_sed_frag=`expr $ac_sed_frag + 1`
  10321. ac_beg=$ac_end
  10322. ac_end=`expr $ac_end + $ac_max_sed_lines`
  10323. fi
  10324. done
  10325. if test -z "$ac_sed_cmds"; then
  10326. ac_sed_cmds=cat
  10327. fi
  10328. fi # test -n "$CONFIG_FILES"
  10329. _ACEOF
  10330. cat >>$CONFIG_STATUS <<\_ACEOF
  10331. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  10332. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10333. case $ac_file in
  10334. - | *:- | *:-:* ) # input from stdin
  10335. cat >$tmp/stdin
  10336. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10337. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10338. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10339. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10340. * ) ac_file_in=$ac_file.in ;;
  10341. esac
  10342. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  10343. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10344. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10345. X"$ac_file" : 'X\(//\)[^/]' \| \
  10346. X"$ac_file" : 'X\(//\)$' \| \
  10347. X"$ac_file" : 'X\(/\)' \| \
  10348. . : '\(.\)' 2>/dev/null ||
  10349. echo X"$ac_file" |
  10350. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10351. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10352. /^X\(\/\/\)$/{ s//\1/; q; }
  10353. /^X\(\/\).*/{ s//\1/; q; }
  10354. s/.*/./; q'`
  10355. { if $as_mkdir_p; then
  10356. mkdir -p "$ac_dir"
  10357. else
  10358. as_dir="$ac_dir"
  10359. as_dirs=
  10360. while test ! -d "$as_dir"; do
  10361. as_dirs="$as_dir $as_dirs"
  10362. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10363. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10364. X"$as_dir" : 'X\(//\)[^/]' \| \
  10365. X"$as_dir" : 'X\(//\)$' \| \
  10366. X"$as_dir" : 'X\(/\)' \| \
  10367. . : '\(.\)' 2>/dev/null ||
  10368. echo X"$as_dir" |
  10369. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10370. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10371. /^X\(\/\/\)$/{ s//\1/; q; }
  10372. /^X\(\/\).*/{ s//\1/; q; }
  10373. s/.*/./; q'`
  10374. done
  10375. test ! -n "$as_dirs" || mkdir $as_dirs
  10376. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10377. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10378. { (exit 1); exit 1; }; }; }
  10379. ac_builddir=.
  10380. if test "$ac_dir" != .; then
  10381. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  10382. # A "../" for each directory in $ac_dir_suffix.
  10383. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  10384. else
  10385. ac_dir_suffix= ac_top_builddir=
  10386. fi
  10387. case $srcdir in
  10388. .) # No --srcdir option. We are building in place.
  10389. ac_srcdir=.
  10390. if test -z "$ac_top_builddir"; then
  10391. ac_top_srcdir=.
  10392. else
  10393. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  10394. fi ;;
  10395. [\\/]* | ?:[\\/]* ) # Absolute path.
  10396. ac_srcdir=$srcdir$ac_dir_suffix;
  10397. ac_top_srcdir=$srcdir ;;
  10398. *) # Relative path.
  10399. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  10400. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  10401. esac
  10402. # Do not use `cd foo && pwd` to compute absolute paths, because
  10403. # the directories may not exist.
  10404. case `pwd` in
  10405. .) ac_abs_builddir="$ac_dir";;
  10406. *)
  10407. case "$ac_dir" in
  10408. .) ac_abs_builddir=`pwd`;;
  10409. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  10410. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  10411. esac;;
  10412. esac
  10413. case $ac_abs_builddir in
  10414. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  10415. *)
  10416. case ${ac_top_builddir}. in
  10417. .) ac_abs_top_builddir=$ac_abs_builddir;;
  10418. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  10419. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  10420. esac;;
  10421. esac
  10422. case $ac_abs_builddir in
  10423. .) ac_abs_srcdir=$ac_srcdir;;
  10424. *)
  10425. case $ac_srcdir in
  10426. .) ac_abs_srcdir=$ac_abs_builddir;;
  10427. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  10428. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  10429. esac;;
  10430. esac
  10431. case $ac_abs_builddir in
  10432. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  10433. *)
  10434. case $ac_top_srcdir in
  10435. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  10436. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  10437. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  10438. esac;;
  10439. esac
  10440. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10441. # use $as_me), people would be surprised to read:
  10442. # /* config.h. Generated by config.status. */
  10443. if test x"$ac_file" = x-; then
  10444. configure_input=
  10445. else
  10446. configure_input="$ac_file. "
  10447. fi
  10448. configure_input=$configure_input"Generated from `echo $ac_file_in |
  10449. sed 's,.*/,,'` by configure."
  10450. # First look for the input files in the build tree, otherwise in the
  10451. # src tree.
  10452. ac_file_inputs=`IFS=:
  10453. for f in $ac_file_in; do
  10454. case $f in
  10455. -) echo $tmp/stdin ;;
  10456. [\\/$]*)
  10457. # Absolute (can't be DOS-style, as IFS=:)
  10458. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10459. echo "$as_me: error: cannot find input file: $f" >&2;}
  10460. { (exit 1); exit 1; }; }
  10461. echo "$f";;
  10462. *) # Relative
  10463. if test -f "$f"; then
  10464. # Build tree
  10465. echo "$f"
  10466. elif test -f "$srcdir/$f"; then
  10467. # Source tree
  10468. echo "$srcdir/$f"
  10469. else
  10470. # /dev/null tree
  10471. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10472. echo "$as_me: error: cannot find input file: $f" >&2;}
  10473. { (exit 1); exit 1; }; }
  10474. fi;;
  10475. esac
  10476. done` || { (exit 1); exit 1; }
  10477. if test x"$ac_file" != x-; then
  10478. { echo "$as_me:$LINENO: creating $ac_file" >&5
  10479. echo "$as_me: creating $ac_file" >&6;}
  10480. rm -f "$ac_file"
  10481. fi
  10482. _ACEOF
  10483. cat >>$CONFIG_STATUS <<_ACEOF
  10484. sed "$ac_vpsub
  10485. $extrasub
  10486. _ACEOF
  10487. cat >>$CONFIG_STATUS <<\_ACEOF
  10488. :t
  10489. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10490. s,@configure_input@,$configure_input,;t t
  10491. s,@srcdir@,$ac_srcdir,;t t
  10492. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  10493. s,@top_srcdir@,$ac_top_srcdir,;t t
  10494. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  10495. s,@builddir@,$ac_builddir,;t t
  10496. s,@abs_builddir@,$ac_abs_builddir,;t t
  10497. s,@top_builddir@,$ac_top_builddir,;t t
  10498. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  10499. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  10500. rm -f $tmp/stdin
  10501. if test x"$ac_file" != x-; then
  10502. mv $tmp/out $ac_file
  10503. else
  10504. cat $tmp/out
  10505. rm -f $tmp/out
  10506. fi
  10507. done
  10508. _ACEOF
  10509. cat >>$CONFIG_STATUS <<\_ACEOF
  10510. #
  10511. # CONFIG_HEADER section.
  10512. #
  10513. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  10514. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  10515. #
  10516. # ac_d sets the value in "#define NAME VALUE" lines.
  10517. ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  10518. ac_dB='[ ].*$,\1#\2'
  10519. ac_dC=' '
  10520. ac_dD=',;t'
  10521. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  10522. ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  10523. ac_uB='$,\1#\2define\3'
  10524. ac_uC=' '
  10525. ac_uD=',;t'
  10526. for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  10527. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  10528. case $ac_file in
  10529. - | *:- | *:-:* ) # input from stdin
  10530. cat >$tmp/stdin
  10531. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10532. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10533. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  10534. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  10535. * ) ac_file_in=$ac_file.in ;;
  10536. esac
  10537. test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  10538. echo "$as_me: creating $ac_file" >&6;}
  10539. # First look for the input files in the build tree, otherwise in the
  10540. # src tree.
  10541. ac_file_inputs=`IFS=:
  10542. for f in $ac_file_in; do
  10543. case $f in
  10544. -) echo $tmp/stdin ;;
  10545. [\\/$]*)
  10546. # Absolute (can't be DOS-style, as IFS=:)
  10547. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10548. echo "$as_me: error: cannot find input file: $f" >&2;}
  10549. { (exit 1); exit 1; }; }
  10550. # Do quote $f, to prevent DOS paths from being IFS'd.
  10551. echo "$f";;
  10552. *) # Relative
  10553. if test -f "$f"; then
  10554. # Build tree
  10555. echo "$f"
  10556. elif test -f "$srcdir/$f"; then
  10557. # Source tree
  10558. echo "$srcdir/$f"
  10559. else
  10560. # /dev/null tree
  10561. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  10562. echo "$as_me: error: cannot find input file: $f" >&2;}
  10563. { (exit 1); exit 1; }; }
  10564. fi;;
  10565. esac
  10566. done` || { (exit 1); exit 1; }
  10567. # Remove the trailing spaces.
  10568. sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  10569. _ACEOF
  10570. # Transform confdefs.h into two sed scripts, `conftest.defines' and
  10571. # `conftest.undefs', that substitutes the proper values into
  10572. # config.h.in to produce config.h. The first handles `#define'
  10573. # templates, and the second `#undef' templates.
  10574. # And first: Protect against being on the right side of a sed subst in
  10575. # config.status. Protect against being in an unquoted here document
  10576. # in config.status.
  10577. rm -f conftest.defines conftest.undefs
  10578. # Using a here document instead of a string reduces the quoting nightmare.
  10579. # Putting comments in sed scripts is not portable.
  10580. #
  10581. # `end' is used to avoid that the second main sed command (meant for
  10582. # 0-ary CPP macros) applies to n-ary macro definitions.
  10583. # See the Autoconf documentation for `clear'.
  10584. cat >confdef2sed.sed <<\_ACEOF
  10585. s/[\\&,]/\\&/g
  10586. s,[\\$`],\\&,g
  10587. t clear
  10588. : clear
  10589. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  10590. t end
  10591. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  10592. : end
  10593. _ACEOF
  10594. # If some macros were called several times there might be several times
  10595. # the same #defines, which is useless. Nevertheless, we may not want to
  10596. # sort them, since we want the *last* AC-DEFINE to be honored.
  10597. uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  10598. sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  10599. rm -f confdef2sed.sed
  10600. # This sed command replaces #undef with comments. This is necessary, for
  10601. # example, in the case of _POSIX_SOURCE, which is predefined and required
  10602. # on some systems where configure will not decide to define it.
  10603. cat >>conftest.undefs <<\_ACEOF
  10604. s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  10605. _ACEOF
  10606. # Break up conftest.defines because some shells have a limit on the size
  10607. # of here documents, and old seds have small limits too (100 cmds).
  10608. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  10609. echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  10610. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  10611. echo ' :' >>$CONFIG_STATUS
  10612. rm -f conftest.tail
  10613. while grep . conftest.defines >/dev/null
  10614. do
  10615. # Write a limited-size here document to $tmp/defines.sed.
  10616. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  10617. # Speed up: don't consider the non `#define' lines.
  10618. echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  10619. # Work around the forget-to-reset-the-flag bug.
  10620. echo 't clr' >>$CONFIG_STATUS
  10621. echo ': clr' >>$CONFIG_STATUS
  10622. sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  10623. echo 'CEOF
  10624. sed -f $tmp/defines.sed $tmp/in >$tmp/out
  10625. rm -f $tmp/in
  10626. mv $tmp/out $tmp/in
  10627. ' >>$CONFIG_STATUS
  10628. sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  10629. rm -f conftest.defines
  10630. mv conftest.tail conftest.defines
  10631. done
  10632. rm -f conftest.defines
  10633. echo ' fi # grep' >>$CONFIG_STATUS
  10634. echo >>$CONFIG_STATUS
  10635. # Break up conftest.undefs because some shells have a limit on the size
  10636. # of here documents, and old seds have small limits too (100 cmds).
  10637. echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  10638. rm -f conftest.tail
  10639. while grep . conftest.undefs >/dev/null
  10640. do
  10641. # Write a limited-size here document to $tmp/undefs.sed.
  10642. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  10643. # Speed up: don't consider the non `#undef'
  10644. echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  10645. # Work around the forget-to-reset-the-flag bug.
  10646. echo 't clr' >>$CONFIG_STATUS
  10647. echo ': clr' >>$CONFIG_STATUS
  10648. sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  10649. echo 'CEOF
  10650. sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  10651. rm -f $tmp/in
  10652. mv $tmp/out $tmp/in
  10653. ' >>$CONFIG_STATUS
  10654. sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  10655. rm -f conftest.undefs
  10656. mv conftest.tail conftest.undefs
  10657. done
  10658. rm -f conftest.undefs
  10659. cat >>$CONFIG_STATUS <<\_ACEOF
  10660. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10661. # use $as_me), people would be surprised to read:
  10662. # /* config.h. Generated by config.status. */
  10663. if test x"$ac_file" = x-; then
  10664. echo "/* Generated by configure. */" >$tmp/config.h
  10665. else
  10666. echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  10667. fi
  10668. cat $tmp/in >>$tmp/config.h
  10669. rm -f $tmp/in
  10670. if test x"$ac_file" != x-; then
  10671. if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  10672. { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  10673. echo "$as_me: $ac_file is unchanged" >&6;}
  10674. else
  10675. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  10676. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10677. X"$ac_file" : 'X\(//\)[^/]' \| \
  10678. X"$ac_file" : 'X\(//\)$' \| \
  10679. X"$ac_file" : 'X\(/\)' \| \
  10680. . : '\(.\)' 2>/dev/null ||
  10681. echo X"$ac_file" |
  10682. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10683. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10684. /^X\(\/\/\)$/{ s//\1/; q; }
  10685. /^X\(\/\).*/{ s//\1/; q; }
  10686. s/.*/./; q'`
  10687. { if $as_mkdir_p; then
  10688. mkdir -p "$ac_dir"
  10689. else
  10690. as_dir="$ac_dir"
  10691. as_dirs=
  10692. while test ! -d "$as_dir"; do
  10693. as_dirs="$as_dir $as_dirs"
  10694. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  10695. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10696. X"$as_dir" : 'X\(//\)[^/]' \| \
  10697. X"$as_dir" : 'X\(//\)$' \| \
  10698. X"$as_dir" : 'X\(/\)' \| \
  10699. . : '\(.\)' 2>/dev/null ||
  10700. echo X"$as_dir" |
  10701. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  10702. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  10703. /^X\(\/\/\)$/{ s//\1/; q; }
  10704. /^X\(\/\).*/{ s//\1/; q; }
  10705. s/.*/./; q'`
  10706. done
  10707. test ! -n "$as_dirs" || mkdir $as_dirs
  10708. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  10709. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  10710. { (exit 1); exit 1; }; }; }
  10711. rm -f $ac_file
  10712. mv $tmp/config.h $ac_file
  10713. fi
  10714. else
  10715. cat $tmp/config.h
  10716. rm -f $tmp/config.h
  10717. fi
  10718. done
  10719. _ACEOF
  10720. cat >>$CONFIG_STATUS <<\_ACEOF
  10721. { (exit 0); exit 0; }
  10722. _ACEOF
  10723. chmod +x $CONFIG_STATUS
  10724. ac_clean_files=$ac_clean_files_save
  10725. # configure is writing to config.log, and then calls config.status.
  10726. # config.status does its own redirection, appending to config.log.
  10727. # Unfortunately, on DOS this fails, as config.log is still kept open
  10728. # by configure, so config.status won't be able to write to it; its
  10729. # output is simply discarded. So we exec the FD to /dev/null,
  10730. # effectively closing config.log, so it can be properly (re)opened and
  10731. # appended to by config.status. When coming back to configure, we
  10732. # need to make the FD available again.
  10733. if test "$no_create" != yes; then
  10734. ac_cs_success=:
  10735. ac_config_status_args=
  10736. test "$silent" = yes &&
  10737. ac_config_status_args="$ac_config_status_args --quiet"
  10738. exec 5>/dev/null
  10739. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  10740. exec 5>>config.log
  10741. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  10742. # would make configure fail if this is the last instruction.
  10743. $ac_cs_success || { (exit 1); exit 1; }
  10744. fi