configure 200 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975
  1. #! /bin/sh
  2. # From configure.in Revision: 15572 .
  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. ## M4sh Initialization. ##
  11. ## --------------------- ##
  12. # Be Bourne compatible
  13. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  14. emulate sh
  15. NULLCMD=:
  16. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  17. # is contrary to our usage. Disable this feature.
  18. alias -g '${1+"$@"}'='"$@"'
  19. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  20. set -o posix
  21. fi
  22. DUALCASE=1; export DUALCASE # for MKS sh
  23. # Support unset when possible.
  24. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  25. as_unset=unset
  26. else
  27. as_unset=false
  28. fi
  29. # Work around bugs in pre-3.0 UWIN ksh.
  30. $as_unset ENV MAIL MAILPATH
  31. PS1='$ '
  32. PS2='> '
  33. PS4='+ '
  34. # NLS nuisances.
  35. for as_var in \
  36. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  37. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  38. LC_TELEPHONE LC_TIME
  39. do
  40. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  41. eval $as_var=C; export $as_var
  42. else
  43. $as_unset $as_var
  44. fi
  45. done
  46. # Required to use basename.
  47. if expr a : '\(a\)' >/dev/null 2>&1; then
  48. as_expr=expr
  49. else
  50. as_expr=false
  51. fi
  52. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  53. as_basename=basename
  54. else
  55. as_basename=false
  56. fi
  57. # Name of the executable.
  58. as_me=`$as_basename "$0" ||
  59. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  60. X"$0" : 'X\(//\)$' \| \
  61. X"$0" : 'X\(/\)$' \| \
  62. . : '\(.\)' 2>/dev/null ||
  63. echo X/"$0" |
  64. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  65. /^X\/\(\/\/\)$/{ s//\1/; q; }
  66. /^X\/\(\/\).*/{ s//\1/; q; }
  67. s/.*/./; q'`
  68. # PATH needs CR, and LINENO needs CR and PATH.
  69. # Avoid depending upon Character Ranges.
  70. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  71. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  72. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  73. as_cr_digits='0123456789'
  74. as_cr_alnum=$as_cr_Letters$as_cr_digits
  75. # The user is always right.
  76. if test "${PATH_SEPARATOR+set}" != set; then
  77. echo "#! /bin/sh" >conf$$.sh
  78. echo "exit 0" >>conf$$.sh
  79. chmod +x conf$$.sh
  80. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  81. PATH_SEPARATOR=';'
  82. else
  83. PATH_SEPARATOR=:
  84. fi
  85. rm -f conf$$.sh
  86. fi
  87. as_lineno_1=$LINENO
  88. as_lineno_2=$LINENO
  89. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  90. test "x$as_lineno_1" != "x$as_lineno_2" &&
  91. test "x$as_lineno_3" = "x$as_lineno_2" || {
  92. # Find who we are. Look in the path if we contain no path at all
  93. # relative or not.
  94. case $0 in
  95. *[\\/]* ) as_myself=$0 ;;
  96. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  97. for as_dir in $PATH
  98. do
  99. IFS=$as_save_IFS
  100. test -z "$as_dir" && as_dir=.
  101. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  102. done
  103. ;;
  104. esac
  105. # We did not find ourselves, most probably we were run as `sh COMMAND'
  106. # in which case we are not to be found in the path.
  107. if test "x$as_myself" = x; then
  108. as_myself=$0
  109. fi
  110. if test ! -f "$as_myself"; then
  111. { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  112. { (exit 1); exit 1; }; }
  113. fi
  114. case $CONFIG_SHELL in
  115. '')
  116. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  117. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  118. do
  119. IFS=$as_save_IFS
  120. test -z "$as_dir" && as_dir=.
  121. for as_base in sh bash ksh sh5; do
  122. case $as_dir in
  123. /*)
  124. if ("$as_dir/$as_base" -c '
  125. as_lineno_1=$LINENO
  126. as_lineno_2=$LINENO
  127. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  128. test "x$as_lineno_1" != "x$as_lineno_2" &&
  129. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  130. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  131. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  132. CONFIG_SHELL=$as_dir/$as_base
  133. export CONFIG_SHELL
  134. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  135. fi;;
  136. esac
  137. done
  138. done
  139. ;;
  140. esac
  141. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  142. # uniformly replaced by the line number. The first 'sed' inserts a
  143. # line-number line before each line; the second 'sed' does the real
  144. # work. The second script uses 'N' to pair each line-number line
  145. # with the numbered line, and appends trailing '-' during
  146. # substitution so that $LINENO is not a special case at line end.
  147. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  148. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  149. sed '=' <$as_myself |
  150. sed '
  151. N
  152. s,$,-,
  153. : loop
  154. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  155. t loop
  156. s,-$,,
  157. s,^['$as_cr_digits']*\n,,
  158. ' >$as_me.lineno &&
  159. chmod +x $as_me.lineno ||
  160. { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  161. { (exit 1); exit 1; }; }
  162. # Don't try to exec as it changes $[0], causing all sort of problems
  163. # (the dirname of $[0] is not the place where we might find the
  164. # original and so on. Autoconf is especially sensible to this).
  165. . ./$as_me.lineno
  166. # Exit status is that of the last command.
  167. exit
  168. }
  169. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  170. *c*,-n*) ECHO_N= ECHO_C='
  171. ' ECHO_T=' ' ;;
  172. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  173. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  174. esac
  175. if expr a : '\(a\)' >/dev/null 2>&1; then
  176. as_expr=expr
  177. else
  178. as_expr=false
  179. fi
  180. rm -f conf$$ conf$$.exe conf$$.file
  181. echo >conf$$.file
  182. if ln -s conf$$.file conf$$ 2>/dev/null; then
  183. # We could just check for DJGPP; but this test a) works b) is more generic
  184. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  185. if test -f conf$$.exe; then
  186. # Don't use ln at all; we don't have any links
  187. as_ln_s='cp -p'
  188. else
  189. as_ln_s='ln -s'
  190. fi
  191. elif ln conf$$.file conf$$ 2>/dev/null; then
  192. as_ln_s=ln
  193. else
  194. as_ln_s='cp -p'
  195. fi
  196. rm -f conf$$ conf$$.exe conf$$.file
  197. if mkdir -p . 2>/dev/null; then
  198. as_mkdir_p=:
  199. else
  200. test -d ./-p && rmdir ./-p
  201. as_mkdir_p=false
  202. fi
  203. as_executable_p="test -f"
  204. # Sed expression to map a string onto a valid CPP name.
  205. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  206. # Sed expression to map a string onto a valid variable name.
  207. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  208. # IFS
  209. # We need space, tab and new line, in precisely that order.
  210. as_nl='
  211. '
  212. IFS=" $as_nl"
  213. # CDPATH.
  214. $as_unset CDPATH
  215. # Name of the host.
  216. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  217. # so uname gets run too.
  218. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  219. exec 6>&1
  220. #
  221. # Initializations.
  222. #
  223. ac_default_prefix=/usr/local
  224. ac_config_libobj_dir=.
  225. cross_compiling=no
  226. subdirs=
  227. MFLAGS=
  228. MAKEFLAGS=
  229. SHELL=${CONFIG_SHELL-/bin/sh}
  230. # Maximum number of lines to put in a shell here document.
  231. # This variable seems obsolete. It should probably be removed, and
  232. # only ac_max_sed_lines should be used.
  233. : ${ac_max_here_lines=38}
  234. # Identity of this package.
  235. PACKAGE_NAME=
  236. PACKAGE_TARNAME=
  237. PACKAGE_VERSION=
  238. PACKAGE_STRING=
  239. PACKAGE_BUGREPORT=
  240. ac_unique_file="rAthena"
  241. ac_unique_file="src/common/cbasetypes.h"
  242. # Factoring default headers for most tests.
  243. ac_includes_default="\
  244. #include <stdio.h>
  245. #if HAVE_SYS_TYPES_H
  246. # include <sys/types.h>
  247. #endif
  248. #if HAVE_SYS_STAT_H
  249. # include <sys/stat.h>
  250. #endif
  251. #if STDC_HEADERS
  252. # include <stdlib.h>
  253. # include <stddef.h>
  254. #else
  255. # if HAVE_STDLIB_H
  256. # include <stdlib.h>
  257. # endif
  258. #endif
  259. #if HAVE_STRING_H
  260. # if !STDC_HEADERS && HAVE_MEMORY_H
  261. # include <memory.h>
  262. # endif
  263. # include <string.h>
  264. #endif
  265. #if HAVE_STRINGS_H
  266. # include <strings.h>
  267. #endif
  268. #if HAVE_INTTYPES_H
  269. # include <inttypes.h>
  270. #else
  271. # if HAVE_STDINT_H
  272. # include <stdint.h>
  273. # endif
  274. #endif
  275. #if HAVE_UNISTD_H
  276. # include <unistd.h>
  277. #endif"
  278. 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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP WITH_PLUGINS EGREP MYSQL_CONFIG_HOME HAVE_MYSQL MYSQL_VERSION MYSQL_CFLAGS MYSQL_LIBS HAVE_PCRE PCRE_LIBS PCRE_CFLAGS DLLEXT LIBOBJS LTLIBOBJS'
  279. ac_subst_files=''
  280. # Initialize some variables set by options.
  281. ac_init_help=
  282. ac_init_version=false
  283. # The variables have the same names as the options, with
  284. # dashes changed to underlines.
  285. cache_file=/dev/null
  286. exec_prefix=NONE
  287. no_create=
  288. no_recursion=
  289. prefix=NONE
  290. program_prefix=NONE
  291. program_suffix=NONE
  292. program_transform_name=s,x,x,
  293. silent=
  294. site=
  295. srcdir=
  296. verbose=
  297. x_includes=NONE
  298. x_libraries=NONE
  299. # Installation directory options.
  300. # These are left unexpanded so users can "make install exec_prefix=/foo"
  301. # and all the variables that are supposed to be based on exec_prefix
  302. # by default will actually change.
  303. # Use braces instead of parens because sh, perl, etc. also accept them.
  304. bindir='${exec_prefix}/bin'
  305. sbindir='${exec_prefix}/sbin'
  306. libexecdir='${exec_prefix}/libexec'
  307. datadir='${prefix}/share'
  308. sysconfdir='${prefix}/etc'
  309. sharedstatedir='${prefix}/com'
  310. localstatedir='${prefix}/var'
  311. libdir='${exec_prefix}/lib'
  312. includedir='${prefix}/include'
  313. oldincludedir='/usr/include'
  314. infodir='${prefix}/info'
  315. mandir='${prefix}/man'
  316. ac_prev=
  317. for ac_option
  318. do
  319. # If the previous option needs an argument, assign it.
  320. if test -n "$ac_prev"; then
  321. eval "$ac_prev=\$ac_option"
  322. ac_prev=
  323. continue
  324. fi
  325. ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  326. # Accept the important Cygnus configure options, so we can diagnose typos.
  327. case $ac_option in
  328. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  329. ac_prev=bindir ;;
  330. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  331. bindir=$ac_optarg ;;
  332. -build | --build | --buil | --bui | --bu)
  333. ac_prev=build_alias ;;
  334. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  335. build_alias=$ac_optarg ;;
  336. -cache-file | --cache-file | --cache-fil | --cache-fi \
  337. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  338. ac_prev=cache_file ;;
  339. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  340. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  341. cache_file=$ac_optarg ;;
  342. --config-cache | -C)
  343. cache_file=config.cache ;;
  344. -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  345. ac_prev=datadir ;;
  346. -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  347. | --da=*)
  348. datadir=$ac_optarg ;;
  349. -disable-* | --disable-*)
  350. ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  351. # Reject names that are not valid shell variable names.
  352. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  353. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  354. { (exit 1); exit 1; }; }
  355. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  356. eval "enable_$ac_feature=no" ;;
  357. -enable-* | --enable-*)
  358. ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  359. # Reject names that are not valid shell variable names.
  360. expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  361. { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  362. { (exit 1); exit 1; }; }
  363. ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  364. case $ac_option in
  365. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  366. *) ac_optarg=yes ;;
  367. esac
  368. eval "enable_$ac_feature='$ac_optarg'" ;;
  369. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  370. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  371. | --exec | --exe | --ex)
  372. ac_prev=exec_prefix ;;
  373. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  374. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  375. | --exec=* | --exe=* | --ex=*)
  376. exec_prefix=$ac_optarg ;;
  377. -gas | --gas | --ga | --g)
  378. # Obsolete; use --with-gas.
  379. with_gas=yes ;;
  380. -help | --help | --hel | --he | -h)
  381. ac_init_help=long ;;
  382. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  383. ac_init_help=recursive ;;
  384. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  385. ac_init_help=short ;;
  386. -host | --host | --hos | --ho)
  387. ac_prev=host_alias ;;
  388. -host=* | --host=* | --hos=* | --ho=*)
  389. host_alias=$ac_optarg ;;
  390. -includedir | --includedir | --includedi | --included | --include \
  391. | --includ | --inclu | --incl | --inc)
  392. ac_prev=includedir ;;
  393. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  394. | --includ=* | --inclu=* | --incl=* | --inc=*)
  395. includedir=$ac_optarg ;;
  396. -infodir | --infodir | --infodi | --infod | --info | --inf)
  397. ac_prev=infodir ;;
  398. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  399. infodir=$ac_optarg ;;
  400. -libdir | --libdir | --libdi | --libd)
  401. ac_prev=libdir ;;
  402. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  403. libdir=$ac_optarg ;;
  404. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  405. | --libexe | --libex | --libe)
  406. ac_prev=libexecdir ;;
  407. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  408. | --libexe=* | --libex=* | --libe=*)
  409. libexecdir=$ac_optarg ;;
  410. -localstatedir | --localstatedir | --localstatedi | --localstated \
  411. | --localstate | --localstat | --localsta | --localst \
  412. | --locals | --local | --loca | --loc | --lo)
  413. ac_prev=localstatedir ;;
  414. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  415. | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  416. | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  417. localstatedir=$ac_optarg ;;
  418. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  419. ac_prev=mandir ;;
  420. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  421. mandir=$ac_optarg ;;
  422. -nfp | --nfp | --nf)
  423. # Obsolete; use --without-fp.
  424. with_fp=no ;;
  425. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  426. | --no-cr | --no-c | -n)
  427. no_create=yes ;;
  428. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  429. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  430. no_recursion=yes ;;
  431. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  432. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  433. | --oldin | --oldi | --old | --ol | --o)
  434. ac_prev=oldincludedir ;;
  435. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  436. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  437. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  438. oldincludedir=$ac_optarg ;;
  439. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  440. ac_prev=prefix ;;
  441. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  442. prefix=$ac_optarg ;;
  443. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  444. | --program-pre | --program-pr | --program-p)
  445. ac_prev=program_prefix ;;
  446. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  447. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  448. program_prefix=$ac_optarg ;;
  449. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  450. | --program-suf | --program-su | --program-s)
  451. ac_prev=program_suffix ;;
  452. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  453. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  454. program_suffix=$ac_optarg ;;
  455. -program-transform-name | --program-transform-name \
  456. | --program-transform-nam | --program-transform-na \
  457. | --program-transform-n | --program-transform- \
  458. | --program-transform | --program-transfor \
  459. | --program-transfo | --program-transf \
  460. | --program-trans | --program-tran \
  461. | --progr-tra | --program-tr | --program-t)
  462. ac_prev=program_transform_name ;;
  463. -program-transform-name=* | --program-transform-name=* \
  464. | --program-transform-nam=* | --program-transform-na=* \
  465. | --program-transform-n=* | --program-transform-=* \
  466. | --program-transform=* | --program-transfor=* \
  467. | --program-transfo=* | --program-transf=* \
  468. | --program-trans=* | --program-tran=* \
  469. | --progr-tra=* | --program-tr=* | --program-t=*)
  470. program_transform_name=$ac_optarg ;;
  471. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  472. | -silent | --silent | --silen | --sile | --sil)
  473. silent=yes ;;
  474. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  475. ac_prev=sbindir ;;
  476. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  477. | --sbi=* | --sb=*)
  478. sbindir=$ac_optarg ;;
  479. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  480. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  481. | --sharedst | --shareds | --shared | --share | --shar \
  482. | --sha | --sh)
  483. ac_prev=sharedstatedir ;;
  484. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  485. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  486. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  487. | --sha=* | --sh=*)
  488. sharedstatedir=$ac_optarg ;;
  489. -site | --site | --sit)
  490. ac_prev=site ;;
  491. -site=* | --site=* | --sit=*)
  492. site=$ac_optarg ;;
  493. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  494. ac_prev=srcdir ;;
  495. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496. srcdir=$ac_optarg ;;
  497. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  498. | --syscon | --sysco | --sysc | --sys | --sy)
  499. ac_prev=sysconfdir ;;
  500. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  501. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  502. sysconfdir=$ac_optarg ;;
  503. -target | --target | --targe | --targ | --tar | --ta | --t)
  504. ac_prev=target_alias ;;
  505. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  506. target_alias=$ac_optarg ;;
  507. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  508. verbose=yes ;;
  509. -version | --version | --versio | --versi | --vers | -V)
  510. ac_init_version=: ;;
  511. -with-* | --with-*)
  512. ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  513. # Reject names that are not valid shell variable names.
  514. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  515. { echo "$as_me: error: invalid package name: $ac_package" >&2
  516. { (exit 1); exit 1; }; }
  517. ac_package=`echo $ac_package| sed 's/-/_/g'`
  518. case $ac_option in
  519. *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  520. *) ac_optarg=yes ;;
  521. esac
  522. eval "with_$ac_package='$ac_optarg'" ;;
  523. -without-* | --without-*)
  524. ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  525. # Reject names that are not valid shell variable names.
  526. expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  527. { echo "$as_me: error: invalid package name: $ac_package" >&2
  528. { (exit 1); exit 1; }; }
  529. ac_package=`echo $ac_package | sed 's/-/_/g'`
  530. eval "with_$ac_package=no" ;;
  531. --x)
  532. # Obsolete; use --with-x.
  533. with_x=yes ;;
  534. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  535. | --x-incl | --x-inc | --x-in | --x-i)
  536. ac_prev=x_includes ;;
  537. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  538. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  539. x_includes=$ac_optarg ;;
  540. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  541. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  542. ac_prev=x_libraries ;;
  543. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  544. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  545. x_libraries=$ac_optarg ;;
  546. -*) { echo "$as_me: error: unrecognized option: $ac_option
  547. Try \`$0 --help' for more information." >&2
  548. { (exit 1); exit 1; }; }
  549. ;;
  550. *=*)
  551. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  552. # Reject names that are not valid shell variable names.
  553. expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  554. { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  555. { (exit 1); exit 1; }; }
  556. ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  557. eval "$ac_envvar='$ac_optarg'"
  558. export $ac_envvar ;;
  559. *)
  560. # FIXME: should be removed in autoconf 3.0.
  561. echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  562. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  563. echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  564. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  565. ;;
  566. esac
  567. done
  568. if test -n "$ac_prev"; then
  569. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  570. { echo "$as_me: error: missing argument to $ac_option" >&2
  571. { (exit 1); exit 1; }; }
  572. fi
  573. # Be sure to have absolute paths.
  574. for ac_var in exec_prefix prefix
  575. do
  576. eval ac_val=$`echo $ac_var`
  577. case $ac_val in
  578. [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  579. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  580. { (exit 1); exit 1; }; };;
  581. esac
  582. done
  583. # Be sure to have absolute paths.
  584. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  585. localstatedir libdir includedir oldincludedir infodir mandir
  586. do
  587. eval ac_val=$`echo $ac_var`
  588. case $ac_val in
  589. [\\/$]* | ?:[\\/]* ) ;;
  590. *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  591. { (exit 1); exit 1; }; };;
  592. esac
  593. done
  594. # There might be people who depend on the old broken behavior: `$host'
  595. # used to hold the argument of --host etc.
  596. # FIXME: To remove some day.
  597. build=$build_alias
  598. host=$host_alias
  599. target=$target_alias
  600. # FIXME: To remove some day.
  601. if test "x$host_alias" != x; then
  602. if test "x$build_alias" = x; then
  603. cross_compiling=maybe
  604. echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  605. If a cross compiler is detected then cross compile mode will be used." >&2
  606. elif test "x$build_alias" != "x$host_alias"; then
  607. cross_compiling=yes
  608. fi
  609. fi
  610. ac_tool_prefix=
  611. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  612. test "$silent" = yes && exec 6>/dev/null
  613. # Find the source files, if location was not specified.
  614. if test -z "$srcdir"; then
  615. ac_srcdir_defaulted=yes
  616. # Try the directory containing this script, then its parent.
  617. ac_confdir=`(dirname "$0") 2>/dev/null ||
  618. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  619. X"$0" : 'X\(//\)[^/]' \| \
  620. X"$0" : 'X\(//\)$' \| \
  621. X"$0" : 'X\(/\)' \| \
  622. . : '\(.\)' 2>/dev/null ||
  623. echo X"$0" |
  624. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  625. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  626. /^X\(\/\/\)$/{ s//\1/; q; }
  627. /^X\(\/\).*/{ s//\1/; q; }
  628. s/.*/./; q'`
  629. srcdir=$ac_confdir
  630. if test ! -r $srcdir/$ac_unique_file; then
  631. srcdir=..
  632. fi
  633. else
  634. ac_srcdir_defaulted=no
  635. fi
  636. if test ! -r $srcdir/$ac_unique_file; then
  637. if test "$ac_srcdir_defaulted" = yes; then
  638. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  639. { (exit 1); exit 1; }; }
  640. else
  641. { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  642. { (exit 1); exit 1; }; }
  643. fi
  644. fi
  645. (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  646. { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  647. { (exit 1); exit 1; }; }
  648. srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  649. ac_env_build_alias_set=${build_alias+set}
  650. ac_env_build_alias_value=$build_alias
  651. ac_cv_env_build_alias_set=${build_alias+set}
  652. ac_cv_env_build_alias_value=$build_alias
  653. ac_env_host_alias_set=${host_alias+set}
  654. ac_env_host_alias_value=$host_alias
  655. ac_cv_env_host_alias_set=${host_alias+set}
  656. ac_cv_env_host_alias_value=$host_alias
  657. ac_env_target_alias_set=${target_alias+set}
  658. ac_env_target_alias_value=$target_alias
  659. ac_cv_env_target_alias_set=${target_alias+set}
  660. ac_cv_env_target_alias_value=$target_alias
  661. ac_env_CC_set=${CC+set}
  662. ac_env_CC_value=$CC
  663. ac_cv_env_CC_set=${CC+set}
  664. ac_cv_env_CC_value=$CC
  665. ac_env_CFLAGS_set=${CFLAGS+set}
  666. ac_env_CFLAGS_value=$CFLAGS
  667. ac_cv_env_CFLAGS_set=${CFLAGS+set}
  668. ac_cv_env_CFLAGS_value=$CFLAGS
  669. ac_env_LDFLAGS_set=${LDFLAGS+set}
  670. ac_env_LDFLAGS_value=$LDFLAGS
  671. ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  672. ac_cv_env_LDFLAGS_value=$LDFLAGS
  673. ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  674. ac_env_CPPFLAGS_value=$CPPFLAGS
  675. ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  676. ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  677. ac_env_CPP_set=${CPP+set}
  678. ac_env_CPP_value=$CPP
  679. ac_cv_env_CPP_set=${CPP+set}
  680. ac_cv_env_CPP_value=$CPP
  681. #
  682. # Report the --help message.
  683. #
  684. if test "$ac_init_help" = "long"; then
  685. # Omit some internal or obsolete options to make the list less imposing.
  686. # This message is too long to be a string in the A/UX 3.1 sh.
  687. cat <<_ACEOF
  688. \`configure' configures this package to adapt to many kinds of systems.
  689. Usage: $0 [OPTION]... [VAR=VALUE]...
  690. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  691. VAR=VALUE. See below for descriptions of some of the useful variables.
  692. Defaults for the options are specified in brackets.
  693. Configuration:
  694. -h, --help display this help and exit
  695. --help=short display options specific to this package
  696. --help=recursive display the short help of all the included packages
  697. -V, --version display version information and exit
  698. -q, --quiet, --silent do not print \`checking...' messages
  699. --cache-file=FILE cache test results in FILE [disabled]
  700. -C, --config-cache alias for \`--cache-file=config.cache'
  701. -n, --no-create do not create output files
  702. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  703. _ACEOF
  704. cat <<_ACEOF
  705. Installation directories:
  706. --prefix=PREFIX install architecture-independent files in PREFIX
  707. [$ac_default_prefix]
  708. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  709. [PREFIX]
  710. By default, \`make install' will install all the files in
  711. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  712. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  713. for instance \`--prefix=\$HOME'.
  714. For better control, use the options below.
  715. Fine tuning of the installation directories:
  716. --bindir=DIR user executables [EPREFIX/bin]
  717. --sbindir=DIR system admin executables [EPREFIX/sbin]
  718. --libexecdir=DIR program executables [EPREFIX/libexec]
  719. --datadir=DIR read-only architecture-independent data [PREFIX/share]
  720. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  721. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  722. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  723. --libdir=DIR object code libraries [EPREFIX/lib]
  724. --includedir=DIR C header files [PREFIX/include]
  725. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  726. --infodir=DIR info documentation [PREFIX/info]
  727. --mandir=DIR man documentation [PREFIX/man]
  728. _ACEOF
  729. cat <<\_ACEOF
  730. _ACEOF
  731. fi
  732. if test -n "$ac_init_help"; then
  733. cat <<\_ACEOF
  734. Optional Features:
  735. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  736. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  737. --enable-manager=ARG memory managers: no, builtin, memwatch, dmalloc,
  738. gcollect, bcheck (defaults to builtin)
  739. --enable-packetver=ARG Sets the PACKETVER define of the map-server. (see
  740. src/map/clif.h)
  741. --enable-debug[=ARG]
  742. Compiles extra debug code. (disabled by default)
  743. (available options: yes, no, gdb)
  744. --enable-buildbot[=ARG]
  745. (available options: yes, no)
  746. --enable-rdtsc Uses rdtsc as timing source (disabled by default)
  747. Enable it when you've timing issues. (For example:
  748. in conjunction with XEN or Other Virtualization
  749. mechanisms) Note: Please ensure that you've disabled
  750. dynamic CPU-Frequencys, such as power saving
  751. options. (On the most modern Dedicated Servers
  752. cpufreq is preconfigured, see your distribution's
  753. manual how to disable it)
  754. --enable-profiler=ARG Profilers: no, gprof (disabled by default)
  755. --enable-64bit Don't force 32 bit. (disabled by default) 64bit
  756. support is still being tested, not recommended for
  757. production servers.
  758. Optional Packages:
  759. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  760. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  761. --with-mysql[=ARG]
  762. optionally specify the path to the mysql_config
  763. executable
  764. --with-MYSQL_CFLAGS=ARG specify MYSQL_CFLAGS manually (instead of using
  765. "mysql_config --include")
  766. --with-MYSQL_LIBS=ARG specify MYSQL_LIBS manually (instead of using
  767. "mysql_config --libs")
  768. --with-pcre[=ARG] use PCRE library, optionally specify the full path
  769. of pcre installation directory (by default pcre is
  770. used if found)
  771. --with-zlib=DIR root directory path of zlib installation (defaults
  772. to /usr/local or /usr if not found in /usr/local).
  773. Assumes that the header files are in DIR/include and
  774. the library files are in DIR/lib
  775. Some influential environment variables:
  776. CC C compiler command
  777. CFLAGS C compiler flags
  778. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  779. nonstandard directory <lib dir>
  780. CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  781. headers in a nonstandard directory <include dir>
  782. CPP C preprocessor
  783. Use these variables to override the choices made by `configure' or to help
  784. it to find libraries and programs with nonstandard names/locations.
  785. _ACEOF
  786. fi
  787. if test "$ac_init_help" = "recursive"; then
  788. # If there are subdirs, report their specific --help.
  789. ac_popdir=`pwd`
  790. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  791. test -d $ac_dir || continue
  792. ac_builddir=.
  793. if test "$ac_dir" != .; then
  794. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  795. # A "../" for each directory in $ac_dir_suffix.
  796. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  797. else
  798. ac_dir_suffix= ac_top_builddir=
  799. fi
  800. case $srcdir in
  801. .) # No --srcdir option. We are building in place.
  802. ac_srcdir=.
  803. if test -z "$ac_top_builddir"; then
  804. ac_top_srcdir=.
  805. else
  806. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  807. fi ;;
  808. [\\/]* | ?:[\\/]* ) # Absolute path.
  809. ac_srcdir=$srcdir$ac_dir_suffix;
  810. ac_top_srcdir=$srcdir ;;
  811. *) # Relative path.
  812. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  813. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  814. esac
  815. # Do not use `cd foo && pwd` to compute absolute paths, because
  816. # the directories may not exist.
  817. case `pwd` in
  818. .) ac_abs_builddir="$ac_dir";;
  819. *)
  820. case "$ac_dir" in
  821. .) ac_abs_builddir=`pwd`;;
  822. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  823. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  824. esac;;
  825. esac
  826. case $ac_abs_builddir in
  827. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  828. *)
  829. case ${ac_top_builddir}. in
  830. .) ac_abs_top_builddir=$ac_abs_builddir;;
  831. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  832. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  833. esac;;
  834. esac
  835. case $ac_abs_builddir in
  836. .) ac_abs_srcdir=$ac_srcdir;;
  837. *)
  838. case $ac_srcdir in
  839. .) ac_abs_srcdir=$ac_abs_builddir;;
  840. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  841. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  842. esac;;
  843. esac
  844. case $ac_abs_builddir in
  845. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  846. *)
  847. case $ac_top_srcdir in
  848. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  849. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  850. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  851. esac;;
  852. esac
  853. cd $ac_dir
  854. # Check for guested configure; otherwise get Cygnus style configure.
  855. if test -f $ac_srcdir/configure.gnu; then
  856. echo
  857. $SHELL $ac_srcdir/configure.gnu --help=recursive
  858. elif test -f $ac_srcdir/configure; then
  859. echo
  860. $SHELL $ac_srcdir/configure --help=recursive
  861. elif test -f $ac_srcdir/configure.ac ||
  862. test -f $ac_srcdir/configure.in; then
  863. echo
  864. $ac_configure --help
  865. else
  866. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  867. fi
  868. cd $ac_popdir
  869. done
  870. fi
  871. test -n "$ac_init_help" && exit 0
  872. if $ac_init_version; then
  873. cat <<\_ACEOF
  874. Copyright (C) 2003 Free Software Foundation, Inc.
  875. This configure script is free software; the Free Software Foundation
  876. gives unlimited permission to copy, distribute and modify it.
  877. _ACEOF
  878. exit 0
  879. fi
  880. exec 5>config.log
  881. cat >&5 <<_ACEOF
  882. This file contains any messages produced by compilers while
  883. running configure, to aid debugging if configure makes a mistake.
  884. It was created by $as_me, which was
  885. generated by GNU Autoconf 2.59. Invocation command line was
  886. $ $0 $@
  887. _ACEOF
  888. {
  889. cat <<_ASUNAME
  890. ## --------- ##
  891. ## Platform. ##
  892. ## --------- ##
  893. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  894. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  895. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  896. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  897. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  898. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  899. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  900. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  901. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  902. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  903. hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  904. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  905. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  906. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  907. _ASUNAME
  908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  909. for as_dir in $PATH
  910. do
  911. IFS=$as_save_IFS
  912. test -z "$as_dir" && as_dir=.
  913. echo "PATH: $as_dir"
  914. done
  915. } >&5
  916. cat >&5 <<_ACEOF
  917. ## ----------- ##
  918. ## Core tests. ##
  919. ## ----------- ##
  920. _ACEOF
  921. # Keep a trace of the command line.
  922. # Strip out --no-create and --no-recursion so they do not pile up.
  923. # Strip out --silent because we don't want to record it for future runs.
  924. # Also quote any args containing shell meta-characters.
  925. # Make two passes to allow for proper duplicate-argument suppression.
  926. ac_configure_args=
  927. ac_configure_args0=
  928. ac_configure_args1=
  929. ac_sep=
  930. ac_must_keep_next=false
  931. for ac_pass in 1 2
  932. do
  933. for ac_arg
  934. do
  935. case $ac_arg in
  936. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  937. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  938. | -silent | --silent | --silen | --sile | --sil)
  939. continue ;;
  940. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  941. ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  942. esac
  943. case $ac_pass in
  944. 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  945. 2)
  946. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  947. if test $ac_must_keep_next = true; then
  948. ac_must_keep_next=false # Got value, back to normal.
  949. else
  950. case $ac_arg in
  951. *=* | --config-cache | -C | -disable-* | --disable-* \
  952. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  953. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  954. | -with-* | --with-* | -without-* | --without-* | --x)
  955. case "$ac_configure_args0 " in
  956. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  957. esac
  958. ;;
  959. -* ) ac_must_keep_next=true ;;
  960. esac
  961. fi
  962. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  963. # Get rid of the leading space.
  964. ac_sep=" "
  965. ;;
  966. esac
  967. done
  968. done
  969. $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  970. $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  971. # When interrupted or exit'd, cleanup temporary files, and complete
  972. # config.log. We remove comments because anyway the quotes in there
  973. # would cause problems or look ugly.
  974. # WARNING: Be sure not to use single quotes in there, as some shells,
  975. # such as our DU 5.0 friend, will then `close' the trap.
  976. trap 'exit_status=$?
  977. # Save into config.log some information that might help in debugging.
  978. {
  979. echo
  980. cat <<\_ASBOX
  981. ## ---------------- ##
  982. ## Cache variables. ##
  983. ## ---------------- ##
  984. _ASBOX
  985. echo
  986. # The following way of writing the cache mishandles newlines in values,
  987. {
  988. (set) 2>&1 |
  989. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  990. *ac_space=\ *)
  991. sed -n \
  992. "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  993. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  994. ;;
  995. *)
  996. sed -n \
  997. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  998. ;;
  999. esac;
  1000. }
  1001. echo
  1002. cat <<\_ASBOX
  1003. ## ----------------- ##
  1004. ## Output variables. ##
  1005. ## ----------------- ##
  1006. _ASBOX
  1007. echo
  1008. for ac_var in $ac_subst_vars
  1009. do
  1010. eval ac_val=$`echo $ac_var`
  1011. echo "$ac_var='"'"'$ac_val'"'"'"
  1012. done | sort
  1013. echo
  1014. if test -n "$ac_subst_files"; then
  1015. cat <<\_ASBOX
  1016. ## ------------- ##
  1017. ## Output files. ##
  1018. ## ------------- ##
  1019. _ASBOX
  1020. echo
  1021. for ac_var in $ac_subst_files
  1022. do
  1023. eval ac_val=$`echo $ac_var`
  1024. echo "$ac_var='"'"'$ac_val'"'"'"
  1025. done | sort
  1026. echo
  1027. fi
  1028. if test -s confdefs.h; then
  1029. cat <<\_ASBOX
  1030. ## ----------- ##
  1031. ## confdefs.h. ##
  1032. ## ----------- ##
  1033. _ASBOX
  1034. echo
  1035. sed "/^$/d" confdefs.h | sort
  1036. echo
  1037. fi
  1038. test "$ac_signal" != 0 &&
  1039. echo "$as_me: caught signal $ac_signal"
  1040. echo "$as_me: exit $exit_status"
  1041. } >&5
  1042. rm -f core *.core &&
  1043. rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  1044. exit $exit_status
  1045. ' 0
  1046. for ac_signal in 1 2 13 15; do
  1047. trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  1048. done
  1049. ac_signal=0
  1050. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1051. rm -rf conftest* confdefs.h
  1052. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  1053. echo >confdefs.h
  1054. # Predefined preprocessor variables.
  1055. cat >>confdefs.h <<_ACEOF
  1056. #define PACKAGE_NAME "$PACKAGE_NAME"
  1057. _ACEOF
  1058. cat >>confdefs.h <<_ACEOF
  1059. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1060. _ACEOF
  1061. cat >>confdefs.h <<_ACEOF
  1062. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1063. _ACEOF
  1064. cat >>confdefs.h <<_ACEOF
  1065. #define PACKAGE_STRING "$PACKAGE_STRING"
  1066. _ACEOF
  1067. cat >>confdefs.h <<_ACEOF
  1068. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1069. _ACEOF
  1070. # Let the site file select an alternate cache file if it wants to.
  1071. # Prefer explicitly selected file to automatically selected ones.
  1072. if test -z "$CONFIG_SITE"; then
  1073. if test "x$prefix" != xNONE; then
  1074. CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  1075. else
  1076. CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  1077. fi
  1078. fi
  1079. for ac_site_file in $CONFIG_SITE; do
  1080. if test -r "$ac_site_file"; then
  1081. { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  1082. echo "$as_me: loading site script $ac_site_file" >&6;}
  1083. sed 's/^/| /' "$ac_site_file" >&5
  1084. . "$ac_site_file"
  1085. fi
  1086. done
  1087. if test -r "$cache_file"; then
  1088. # Some versions of bash will fail to source /dev/null (special
  1089. # files actually), so we avoid doing that.
  1090. if test -f "$cache_file"; then
  1091. { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  1092. echo "$as_me: loading cache $cache_file" >&6;}
  1093. case $cache_file in
  1094. [\\/]* | ?:[\\/]* ) . $cache_file;;
  1095. *) . ./$cache_file;;
  1096. esac
  1097. fi
  1098. else
  1099. { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  1100. echo "$as_me: creating cache $cache_file" >&6;}
  1101. >$cache_file
  1102. fi
  1103. # Check that the precious variables saved in the cache have kept the same
  1104. # value.
  1105. ac_cache_corrupted=false
  1106. for ac_var in `(set) 2>&1 |
  1107. sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  1108. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1109. eval ac_new_set=\$ac_env_${ac_var}_set
  1110. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  1111. eval ac_new_val="\$ac_env_${ac_var}_value"
  1112. case $ac_old_set,$ac_new_set in
  1113. set,)
  1114. { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1115. echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1116. ac_cache_corrupted=: ;;
  1117. ,set)
  1118. { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  1119. echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1120. ac_cache_corrupted=: ;;
  1121. ,);;
  1122. *)
  1123. if test "x$ac_old_val" != "x$ac_new_val"; then
  1124. { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  1125. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1126. { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  1127. echo "$as_me: former value: $ac_old_val" >&2;}
  1128. { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  1129. echo "$as_me: current value: $ac_new_val" >&2;}
  1130. ac_cache_corrupted=:
  1131. fi;;
  1132. esac
  1133. # Pass precious variables to config.status.
  1134. if test "$ac_new_set" = set; then
  1135. case $ac_new_val in
  1136. *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  1137. ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1138. *) ac_arg=$ac_var=$ac_new_val ;;
  1139. esac
  1140. case " $ac_configure_args " in
  1141. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1142. *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  1143. esac
  1144. fi
  1145. done
  1146. if $ac_cache_corrupted; then
  1147. { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  1148. echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1149. { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  1150. echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  1151. { (exit 1); exit 1; }; }
  1152. fi
  1153. ac_ext=c
  1154. ac_cpp='$CPP $CPPFLAGS'
  1155. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1156. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1157. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1158. ac_config_files="$ac_config_files Makefile src/common/Makefile"
  1159. ac_config_files="$ac_config_files 3rdparty/mt19937ar/Makefile 3rdparty/libconfig/Makefile"
  1160. ac_config_files="$ac_config_files src/char/Makefile src/login/Makefile"
  1161. ac_config_files="$ac_config_files src/map/Makefile src/plugins/Makefile src/tool/Makefile"
  1162. #
  1163. # Memory managers
  1164. #
  1165. # Check whether --enable-manager or --disable-manager was given.
  1166. if test "${enable_manager+set}" = set; then
  1167. enableval="$enable_manager"
  1168. enable_manager="$enableval"
  1169. case $enableval in
  1170. "no");;
  1171. "builtin");;
  1172. "memwatch");;
  1173. "dmalloc");;
  1174. "gcollect");;
  1175. "bcheck");;
  1176. *) { { echo "$as_me:$LINENO: error: unknown memory manager '$enableval'... stopping" >&5
  1177. echo "$as_me: error: unknown memory manager '$enableval'... stopping" >&2;}
  1178. { (exit 1); exit 1; }; };;
  1179. esac
  1180. else
  1181. enable_manager="builtin"
  1182. fi;
  1183. #
  1184. # packetver
  1185. #
  1186. # Check whether --enable-packetver or --disable-packetver was given.
  1187. if test "${enable_packetver+set}" = set; then
  1188. enableval="$enable_packetver"
  1189. enable_packetver="$enableval"
  1190. else
  1191. enable_packetver=""
  1192. fi;
  1193. #
  1194. # debug
  1195. #
  1196. # Check whether --enable-debug or --disable-debug was given.
  1197. if test "${enable_debug+set}" = set; then
  1198. enableval="$enable_debug"
  1199. enable_debug="$enableval"
  1200. case $enableval in
  1201. "no");;
  1202. "yes");;
  1203. "gdb");;
  1204. *) { { echo "$as_me:$LINENO: error: invalid argument --enable-debug=$enableval... stopping" >&5
  1205. echo "$as_me: error: invalid argument --enable-debug=$enableval... stopping" >&2;}
  1206. { (exit 1); exit 1; }; };;
  1207. esac
  1208. else
  1209. enable_debug="no"
  1210. fi;
  1211. #
  1212. # Buildbot
  1213. #
  1214. # Check whether --enable-buildbot or --disable-buildbot was given.
  1215. if test "${enable_buildbot+set}" = set; then
  1216. enableval="$enable_buildbot"
  1217. enable_buildbot="$enableval"
  1218. case $enableval in
  1219. "no");;
  1220. "yes");;
  1221. *) { { echo "$as_me:$LINENO: error: invalid argument --enable-buildbot=$enableval... stopping" >&5
  1222. echo "$as_me: error: invalid argument --enable-buildbot=$enableval... stopping" >&2;}
  1223. { (exit 1); exit 1; }; };;
  1224. esac
  1225. else
  1226. enable_buildbot="no"
  1227. fi;
  1228. #
  1229. # RDTSC as Tick Source
  1230. #
  1231. # Check whether --enable-rdtsc or --disable-rdtsc was given.
  1232. if test "${enable_rdtsc+set}" = set; then
  1233. enableval="$enable_rdtsc"
  1234. enable_rdtsc=1
  1235. else
  1236. enable_rdtsc=0
  1237. fi;
  1238. #
  1239. # Profiler
  1240. #
  1241. # Check whether --enable-profiler or --disable-profiler was given.
  1242. if test "${enable_profiler+set}" = set; then
  1243. enableval="$enable_profiler"
  1244. enable_profiler="$enableval"
  1245. case $enableval in
  1246. "no");;
  1247. "gprof");;
  1248. *) { { echo "$as_me:$LINENO: error: invalid argument --enable-profiler=$enableval... stopping" >&5
  1249. echo "$as_me: error: invalid argument --enable-profiler=$enableval... stopping" >&2;}
  1250. { (exit 1); exit 1; }; };;
  1251. esac
  1252. else
  1253. enable_profiler="no"
  1254. fi;
  1255. #
  1256. # 64bit
  1257. #
  1258. # Check whether --enable-64bit or --disable-64bit was given.
  1259. if test "${enable_64bit+set}" = set; then
  1260. enableval="$enable_64bit"
  1261. enable_64bit="$enableval"
  1262. case $enableval in
  1263. "no");;
  1264. "yes");;
  1265. *) { { echo "$as_me:$LINENO: error: invalid argument --enable-64bit=$enableval... stopping" >&5
  1266. echo "$as_me: error: invalid argument --enable-64bit=$enableval... stopping" >&2;}
  1267. { (exit 1); exit 1; }; };;
  1268. esac
  1269. else
  1270. enable_64bit="no"
  1271. fi;
  1272. #
  1273. # Optionally specify the path to mysql_config
  1274. #
  1275. # Check whether --with-mysql or --without-mysql was given.
  1276. if test "${with_mysql+set}" = set; then
  1277. withval="$with_mysql"
  1278. if test "$withval" != "no" ; then
  1279. if test ! -x "$withval" ; then
  1280. { { echo "$as_me:$LINENO: error: $withval is not an executable file" >&5
  1281. echo "$as_me: error: $withval is not an executable file" >&2;}
  1282. { (exit 1); exit 1; }; }
  1283. fi
  1284. MYSQL_CONFIG_HOME="$withval"
  1285. fi
  1286. fi;
  1287. #
  1288. # Manual MYSQL_CFLAGS (optional)
  1289. #
  1290. # Check whether --with-MYSQL_CFLAGS or --without-MYSQL_CFLAGS was given.
  1291. if test "${with_MYSQL_CFLAGS+set}" = set; then
  1292. withval="$with_MYSQL_CFLAGS"
  1293. manual_MYSQL_CFLAGS="yes"
  1294. MYSQL_CFLAGS="$withval"
  1295. else
  1296. manual_MYSQL_CFLAGS="no"
  1297. fi;
  1298. #
  1299. # Manual MYSQL_LIBS (optional)
  1300. #
  1301. # Check whether --with-MYSQL_LIBS or --without-MYSQL_LIBS was given.
  1302. if test "${with_MYSQL_LIBS+set}" = set; then
  1303. withval="$with_MYSQL_LIBS"
  1304. manual_MYSQL_LIBS="yes"
  1305. MYSQL_LIBS="$withval"
  1306. else
  1307. manual_MYSQL_LIBS="no"
  1308. fi;
  1309. #
  1310. # Enable/disable PCRE and optionally specify the path (optional library)
  1311. #
  1312. # Check whether --with-pcre or --without-pcre was given.
  1313. if test "${with_pcre+set}" = set; then
  1314. withval="$with_pcre"
  1315. if test "$withval" = "no" ; then
  1316. want_pcre="no"
  1317. else
  1318. want_pcre="yes"
  1319. require_pcre="yes"
  1320. if test "$withval" != "yes" ; then
  1321. if test ! -d "$withval" ; then
  1322. { { echo "$as_me:$LINENO: error: $withval is not a directoy" >&5
  1323. echo "$as_me: error: $withval is not a directoy" >&2;}
  1324. { (exit 1); exit 1; }; }
  1325. fi
  1326. PCRE_HOME="$withval"
  1327. fi
  1328. fi
  1329. else
  1330. want_pcre="yes" require_pcre="no"
  1331. fi;
  1332. #
  1333. # Specify the path of the zlib library (required library)
  1334. #
  1335. # Check whether --with-zlib or --without-zlib was given.
  1336. if test "${with_zlib+set}" = set; then
  1337. withval="$with_zlib"
  1338. test -n "$withval" && ZLIB_HOME="$withval"
  1339. else
  1340. ZLIB_HOME=/usr/local
  1341. test ! -f "${ZLIB_HOME}/include/zlib.h" && ZLIB_HOME=/usr
  1342. fi;
  1343. ###############################################################################
  1344. # Check for programs and types.
  1345. #
  1346. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  1347. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  1348. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  1349. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  1350. echo $ECHO_N "(cached) $ECHO_C" >&6
  1351. else
  1352. cat >conftest.make <<\_ACEOF
  1353. all:
  1354. @echo 'ac_maketemp="$(MAKE)"'
  1355. _ACEOF
  1356. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  1357. eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  1358. if test -n "$ac_maketemp"; then
  1359. eval ac_cv_prog_make_${ac_make}_set=yes
  1360. else
  1361. eval ac_cv_prog_make_${ac_make}_set=no
  1362. fi
  1363. rm -f conftest.make
  1364. fi
  1365. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  1366. echo "$as_me:$LINENO: result: yes" >&5
  1367. echo "${ECHO_T}yes" >&6
  1368. SET_MAKE=
  1369. else
  1370. echo "$as_me:$LINENO: result: no" >&5
  1371. echo "${ECHO_T}no" >&6
  1372. SET_MAKE="MAKE=${MAKE-make}"
  1373. fi
  1374. ac_ext=c
  1375. ac_cpp='$CPP $CPPFLAGS'
  1376. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1377. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1378. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1379. if test -n "$ac_tool_prefix"; then
  1380. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  1381. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  1382. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1383. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1384. if test "${ac_cv_prog_CC+set}" = set; then
  1385. echo $ECHO_N "(cached) $ECHO_C" >&6
  1386. else
  1387. if test -n "$CC"; then
  1388. ac_cv_prog_CC="$CC" # Let the user override the test.
  1389. else
  1390. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1391. for as_dir in $PATH
  1392. do
  1393. IFS=$as_save_IFS
  1394. test -z "$as_dir" && as_dir=.
  1395. for ac_exec_ext in '' $ac_executable_extensions; do
  1396. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1397. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  1398. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1399. break 2
  1400. fi
  1401. done
  1402. done
  1403. fi
  1404. fi
  1405. CC=$ac_cv_prog_CC
  1406. if test -n "$CC"; then
  1407. echo "$as_me:$LINENO: result: $CC" >&5
  1408. echo "${ECHO_T}$CC" >&6
  1409. else
  1410. echo "$as_me:$LINENO: result: no" >&5
  1411. echo "${ECHO_T}no" >&6
  1412. fi
  1413. fi
  1414. if test -z "$ac_cv_prog_CC"; then
  1415. ac_ct_CC=$CC
  1416. # Extract the first word of "gcc", so it can be a program name with args.
  1417. set dummy gcc; ac_word=$2
  1418. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1419. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1420. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1421. echo $ECHO_N "(cached) $ECHO_C" >&6
  1422. else
  1423. if test -n "$ac_ct_CC"; then
  1424. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1425. else
  1426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1427. for as_dir in $PATH
  1428. do
  1429. IFS=$as_save_IFS
  1430. test -z "$as_dir" && as_dir=.
  1431. for ac_exec_ext in '' $ac_executable_extensions; do
  1432. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1433. ac_cv_prog_ac_ct_CC="gcc"
  1434. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1435. break 2
  1436. fi
  1437. done
  1438. done
  1439. fi
  1440. fi
  1441. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1442. if test -n "$ac_ct_CC"; then
  1443. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1444. echo "${ECHO_T}$ac_ct_CC" >&6
  1445. else
  1446. echo "$as_me:$LINENO: result: no" >&5
  1447. echo "${ECHO_T}no" >&6
  1448. fi
  1449. CC=$ac_ct_CC
  1450. else
  1451. CC="$ac_cv_prog_CC"
  1452. fi
  1453. if test -z "$CC"; then
  1454. if test -n "$ac_tool_prefix"; then
  1455. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  1456. set dummy ${ac_tool_prefix}cc; ac_word=$2
  1457. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1458. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1459. if test "${ac_cv_prog_CC+set}" = set; then
  1460. echo $ECHO_N "(cached) $ECHO_C" >&6
  1461. else
  1462. if test -n "$CC"; then
  1463. ac_cv_prog_CC="$CC" # Let the user override the test.
  1464. else
  1465. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1466. for as_dir in $PATH
  1467. do
  1468. IFS=$as_save_IFS
  1469. test -z "$as_dir" && as_dir=.
  1470. for ac_exec_ext in '' $ac_executable_extensions; do
  1471. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1472. ac_cv_prog_CC="${ac_tool_prefix}cc"
  1473. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1474. break 2
  1475. fi
  1476. done
  1477. done
  1478. fi
  1479. fi
  1480. CC=$ac_cv_prog_CC
  1481. if test -n "$CC"; then
  1482. echo "$as_me:$LINENO: result: $CC" >&5
  1483. echo "${ECHO_T}$CC" >&6
  1484. else
  1485. echo "$as_me:$LINENO: result: no" >&5
  1486. echo "${ECHO_T}no" >&6
  1487. fi
  1488. fi
  1489. if test -z "$ac_cv_prog_CC"; then
  1490. ac_ct_CC=$CC
  1491. # Extract the first word of "cc", so it can be a program name with args.
  1492. set dummy cc; ac_word=$2
  1493. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1494. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1495. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1496. echo $ECHO_N "(cached) $ECHO_C" >&6
  1497. else
  1498. if test -n "$ac_ct_CC"; then
  1499. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1500. else
  1501. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1502. for as_dir in $PATH
  1503. do
  1504. IFS=$as_save_IFS
  1505. test -z "$as_dir" && as_dir=.
  1506. for ac_exec_ext in '' $ac_executable_extensions; do
  1507. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1508. ac_cv_prog_ac_ct_CC="cc"
  1509. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1510. break 2
  1511. fi
  1512. done
  1513. done
  1514. fi
  1515. fi
  1516. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1517. if test -n "$ac_ct_CC"; then
  1518. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1519. echo "${ECHO_T}$ac_ct_CC" >&6
  1520. else
  1521. echo "$as_me:$LINENO: result: no" >&5
  1522. echo "${ECHO_T}no" >&6
  1523. fi
  1524. CC=$ac_ct_CC
  1525. else
  1526. CC="$ac_cv_prog_CC"
  1527. fi
  1528. fi
  1529. if test -z "$CC"; then
  1530. # Extract the first word of "cc", so it can be a program name with args.
  1531. set dummy cc; ac_word=$2
  1532. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1533. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1534. if test "${ac_cv_prog_CC+set}" = set; then
  1535. echo $ECHO_N "(cached) $ECHO_C" >&6
  1536. else
  1537. if test -n "$CC"; then
  1538. ac_cv_prog_CC="$CC" # Let the user override the test.
  1539. else
  1540. ac_prog_rejected=no
  1541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1542. for as_dir in $PATH
  1543. do
  1544. IFS=$as_save_IFS
  1545. test -z "$as_dir" && as_dir=.
  1546. for ac_exec_ext in '' $ac_executable_extensions; do
  1547. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1548. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  1549. ac_prog_rejected=yes
  1550. continue
  1551. fi
  1552. ac_cv_prog_CC="cc"
  1553. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1554. break 2
  1555. fi
  1556. done
  1557. done
  1558. if test $ac_prog_rejected = yes; then
  1559. # We found a bogon in the path, so make sure we never use it.
  1560. set dummy $ac_cv_prog_CC
  1561. shift
  1562. if test $# != 0; then
  1563. # We chose a different compiler from the bogus one.
  1564. # However, it has the same basename, so the bogon will be chosen
  1565. # first if we set CC to just the basename; use the full file name.
  1566. shift
  1567. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  1568. fi
  1569. fi
  1570. fi
  1571. fi
  1572. CC=$ac_cv_prog_CC
  1573. if test -n "$CC"; then
  1574. echo "$as_me:$LINENO: result: $CC" >&5
  1575. echo "${ECHO_T}$CC" >&6
  1576. else
  1577. echo "$as_me:$LINENO: result: no" >&5
  1578. echo "${ECHO_T}no" >&6
  1579. fi
  1580. fi
  1581. if test -z "$CC"; then
  1582. if test -n "$ac_tool_prefix"; then
  1583. for ac_prog in cl
  1584. do
  1585. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  1586. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  1587. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1588. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1589. if test "${ac_cv_prog_CC+set}" = set; then
  1590. echo $ECHO_N "(cached) $ECHO_C" >&6
  1591. else
  1592. if test -n "$CC"; then
  1593. ac_cv_prog_CC="$CC" # Let the user override the test.
  1594. else
  1595. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1596. for as_dir in $PATH
  1597. do
  1598. IFS=$as_save_IFS
  1599. test -z "$as_dir" && as_dir=.
  1600. for ac_exec_ext in '' $ac_executable_extensions; do
  1601. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1602. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  1603. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1604. break 2
  1605. fi
  1606. done
  1607. done
  1608. fi
  1609. fi
  1610. CC=$ac_cv_prog_CC
  1611. if test -n "$CC"; then
  1612. echo "$as_me:$LINENO: result: $CC" >&5
  1613. echo "${ECHO_T}$CC" >&6
  1614. else
  1615. echo "$as_me:$LINENO: result: no" >&5
  1616. echo "${ECHO_T}no" >&6
  1617. fi
  1618. test -n "$CC" && break
  1619. done
  1620. fi
  1621. if test -z "$CC"; then
  1622. ac_ct_CC=$CC
  1623. for ac_prog in cl
  1624. do
  1625. # Extract the first word of "$ac_prog", so it can be a program name with args.
  1626. set dummy $ac_prog; ac_word=$2
  1627. echo "$as_me:$LINENO: checking for $ac_word" >&5
  1628. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  1629. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  1630. echo $ECHO_N "(cached) $ECHO_C" >&6
  1631. else
  1632. if test -n "$ac_ct_CC"; then
  1633. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  1634. else
  1635. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1636. for as_dir in $PATH
  1637. do
  1638. IFS=$as_save_IFS
  1639. test -z "$as_dir" && as_dir=.
  1640. for ac_exec_ext in '' $ac_executable_extensions; do
  1641. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  1642. ac_cv_prog_ac_ct_CC="$ac_prog"
  1643. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  1644. break 2
  1645. fi
  1646. done
  1647. done
  1648. fi
  1649. fi
  1650. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  1651. if test -n "$ac_ct_CC"; then
  1652. echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  1653. echo "${ECHO_T}$ac_ct_CC" >&6
  1654. else
  1655. echo "$as_me:$LINENO: result: no" >&5
  1656. echo "${ECHO_T}no" >&6
  1657. fi
  1658. test -n "$ac_ct_CC" && break
  1659. done
  1660. CC=$ac_ct_CC
  1661. fi
  1662. fi
  1663. test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  1664. See \`config.log' for more details." >&5
  1665. echo "$as_me: error: no acceptable C compiler found in \$PATH
  1666. See \`config.log' for more details." >&2;}
  1667. { (exit 1); exit 1; }; }
  1668. # Provide some information about the compiler.
  1669. echo "$as_me:$LINENO:" \
  1670. "checking for C compiler version" >&5
  1671. ac_compiler=`set X $ac_compile; echo $2`
  1672. { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  1673. (eval $ac_compiler --version </dev/null >&5) 2>&5
  1674. ac_status=$?
  1675. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1676. (exit $ac_status); }
  1677. { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  1678. (eval $ac_compiler -v </dev/null >&5) 2>&5
  1679. ac_status=$?
  1680. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1681. (exit $ac_status); }
  1682. { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  1683. (eval $ac_compiler -V </dev/null >&5) 2>&5
  1684. ac_status=$?
  1685. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1686. (exit $ac_status); }
  1687. cat >conftest.$ac_ext <<_ACEOF
  1688. /* confdefs.h. */
  1689. _ACEOF
  1690. cat confdefs.h >>conftest.$ac_ext
  1691. cat >>conftest.$ac_ext <<_ACEOF
  1692. /* end confdefs.h. */
  1693. int
  1694. main ()
  1695. {
  1696. ;
  1697. return 0;
  1698. }
  1699. _ACEOF
  1700. ac_clean_files_save=$ac_clean_files
  1701. ac_clean_files="$ac_clean_files a.out a.exe b.out"
  1702. # Try to create an executable without -o first, disregard a.out.
  1703. # It will help us diagnose broken compilers, and finding out an intuition
  1704. # of exeext.
  1705. echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  1706. echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  1707. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  1708. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  1709. (eval $ac_link_default) 2>&5
  1710. ac_status=$?
  1711. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1712. (exit $ac_status); }; then
  1713. # Find the output, starting from the most likely. This scheme is
  1714. # not robust to junk in `.', hence go to wildcards (a.*) only as a last
  1715. # resort.
  1716. # Be careful to initialize this variable, since it used to be cached.
  1717. # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  1718. ac_cv_exeext=
  1719. # b.out is created by i960 compilers.
  1720. for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  1721. do
  1722. test -f "$ac_file" || continue
  1723. case $ac_file in
  1724. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  1725. ;;
  1726. conftest.$ac_ext )
  1727. # This is the source file.
  1728. ;;
  1729. [ab].out )
  1730. # We found the default executable, but exeext='' is most
  1731. # certainly right.
  1732. break;;
  1733. *.* )
  1734. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1735. # FIXME: I believe we export ac_cv_exeext for Libtool,
  1736. # but it would be cool to find out if it's true. Does anybody
  1737. # maintain Libtool? --akim.
  1738. export ac_cv_exeext
  1739. break;;
  1740. * )
  1741. break;;
  1742. esac
  1743. done
  1744. else
  1745. echo "$as_me: failed program was:" >&5
  1746. sed 's/^/| /' conftest.$ac_ext >&5
  1747. { { echo "$as_me:$LINENO: error: C compiler cannot create executables
  1748. See \`config.log' for more details." >&5
  1749. echo "$as_me: error: C compiler cannot create executables
  1750. See \`config.log' for more details." >&2;}
  1751. { (exit 77); exit 77; }; }
  1752. fi
  1753. ac_exeext=$ac_cv_exeext
  1754. echo "$as_me:$LINENO: result: $ac_file" >&5
  1755. echo "${ECHO_T}$ac_file" >&6
  1756. # Check the compiler produces executables we can run. If not, either
  1757. # the compiler is broken, or we cross compile.
  1758. echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  1759. echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  1760. # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  1761. # If not cross compiling, check that we can run a simple program.
  1762. if test "$cross_compiling" != yes; then
  1763. if { ac_try='./$ac_file'
  1764. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1765. (eval $ac_try) 2>&5
  1766. ac_status=$?
  1767. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1768. (exit $ac_status); }; }; then
  1769. cross_compiling=no
  1770. else
  1771. if test "$cross_compiling" = maybe; then
  1772. cross_compiling=yes
  1773. else
  1774. { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  1775. If you meant to cross compile, use \`--host'.
  1776. See \`config.log' for more details." >&5
  1777. echo "$as_me: error: cannot run C compiled programs.
  1778. If you meant to cross compile, use \`--host'.
  1779. See \`config.log' for more details." >&2;}
  1780. { (exit 1); exit 1; }; }
  1781. fi
  1782. fi
  1783. fi
  1784. echo "$as_me:$LINENO: result: yes" >&5
  1785. echo "${ECHO_T}yes" >&6
  1786. rm -f a.out a.exe conftest$ac_cv_exeext b.out
  1787. ac_clean_files=$ac_clean_files_save
  1788. # Check the compiler produces executables we can run. If not, either
  1789. # the compiler is broken, or we cross compile.
  1790. echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  1791. echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  1792. echo "$as_me:$LINENO: result: $cross_compiling" >&5
  1793. echo "${ECHO_T}$cross_compiling" >&6
  1794. echo "$as_me:$LINENO: checking for suffix of executables" >&5
  1795. echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  1796. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  1797. (eval $ac_link) 2>&5
  1798. ac_status=$?
  1799. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1800. (exit $ac_status); }; then
  1801. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  1802. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  1803. # work properly (i.e., refer to `conftest.exe'), while it won't with
  1804. # `rm'.
  1805. for ac_file in conftest.exe conftest conftest.*; do
  1806. test -f "$ac_file" || continue
  1807. case $ac_file in
  1808. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  1809. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  1810. export ac_cv_exeext
  1811. break;;
  1812. * ) break;;
  1813. esac
  1814. done
  1815. else
  1816. { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  1817. See \`config.log' for more details." >&5
  1818. echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  1819. See \`config.log' for more details." >&2;}
  1820. { (exit 1); exit 1; }; }
  1821. fi
  1822. rm -f conftest$ac_cv_exeext
  1823. echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  1824. echo "${ECHO_T}$ac_cv_exeext" >&6
  1825. rm -f conftest.$ac_ext
  1826. EXEEXT=$ac_cv_exeext
  1827. ac_exeext=$EXEEXT
  1828. echo "$as_me:$LINENO: checking for suffix of object files" >&5
  1829. echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  1830. if test "${ac_cv_objext+set}" = set; then
  1831. echo $ECHO_N "(cached) $ECHO_C" >&6
  1832. else
  1833. cat >conftest.$ac_ext <<_ACEOF
  1834. /* confdefs.h. */
  1835. _ACEOF
  1836. cat confdefs.h >>conftest.$ac_ext
  1837. cat >>conftest.$ac_ext <<_ACEOF
  1838. /* end confdefs.h. */
  1839. int
  1840. main ()
  1841. {
  1842. ;
  1843. return 0;
  1844. }
  1845. _ACEOF
  1846. rm -f conftest.o conftest.obj
  1847. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1848. (eval $ac_compile) 2>&5
  1849. ac_status=$?
  1850. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1851. (exit $ac_status); }; then
  1852. for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  1853. case $ac_file in
  1854. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  1855. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  1856. break;;
  1857. esac
  1858. done
  1859. else
  1860. echo "$as_me: failed program was:" >&5
  1861. sed 's/^/| /' conftest.$ac_ext >&5
  1862. { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  1863. See \`config.log' for more details." >&5
  1864. echo "$as_me: error: cannot compute suffix of object files: cannot compile
  1865. See \`config.log' for more details." >&2;}
  1866. { (exit 1); exit 1; }; }
  1867. fi
  1868. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  1869. fi
  1870. echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  1871. echo "${ECHO_T}$ac_cv_objext" >&6
  1872. OBJEXT=$ac_cv_objext
  1873. ac_objext=$OBJEXT
  1874. echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  1875. echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  1876. if test "${ac_cv_c_compiler_gnu+set}" = set; then
  1877. echo $ECHO_N "(cached) $ECHO_C" >&6
  1878. else
  1879. cat >conftest.$ac_ext <<_ACEOF
  1880. /* confdefs.h. */
  1881. _ACEOF
  1882. cat confdefs.h >>conftest.$ac_ext
  1883. cat >>conftest.$ac_ext <<_ACEOF
  1884. /* end confdefs.h. */
  1885. int
  1886. main ()
  1887. {
  1888. #ifndef __GNUC__
  1889. choke me
  1890. #endif
  1891. ;
  1892. return 0;
  1893. }
  1894. _ACEOF
  1895. rm -f conftest.$ac_objext
  1896. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1897. (eval $ac_compile) 2>conftest.er1
  1898. ac_status=$?
  1899. grep -v '^ *+' conftest.er1 >conftest.err
  1900. rm -f conftest.er1
  1901. cat conftest.err >&5
  1902. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1903. (exit $ac_status); } &&
  1904. { ac_try='test -z "$ac_c_werror_flag"
  1905. || test ! -s conftest.err'
  1906. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1907. (eval $ac_try) 2>&5
  1908. ac_status=$?
  1909. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1910. (exit $ac_status); }; } &&
  1911. { ac_try='test -s conftest.$ac_objext'
  1912. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1913. (eval $ac_try) 2>&5
  1914. ac_status=$?
  1915. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1916. (exit $ac_status); }; }; then
  1917. ac_compiler_gnu=yes
  1918. else
  1919. echo "$as_me: failed program was:" >&5
  1920. sed 's/^/| /' conftest.$ac_ext >&5
  1921. ac_compiler_gnu=no
  1922. fi
  1923. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1924. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  1925. fi
  1926. echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  1927. echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  1928. GCC=`test $ac_compiler_gnu = yes && echo yes`
  1929. ac_test_CFLAGS=${CFLAGS+set}
  1930. ac_save_CFLAGS=$CFLAGS
  1931. CFLAGS="-g"
  1932. echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  1933. echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  1934. if test "${ac_cv_prog_cc_g+set}" = set; then
  1935. echo $ECHO_N "(cached) $ECHO_C" >&6
  1936. else
  1937. cat >conftest.$ac_ext <<_ACEOF
  1938. /* confdefs.h. */
  1939. _ACEOF
  1940. cat confdefs.h >>conftest.$ac_ext
  1941. cat >>conftest.$ac_ext <<_ACEOF
  1942. /* end confdefs.h. */
  1943. int
  1944. main ()
  1945. {
  1946. ;
  1947. return 0;
  1948. }
  1949. _ACEOF
  1950. rm -f conftest.$ac_objext
  1951. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  1952. (eval $ac_compile) 2>conftest.er1
  1953. ac_status=$?
  1954. grep -v '^ *+' conftest.er1 >conftest.err
  1955. rm -f conftest.er1
  1956. cat conftest.err >&5
  1957. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1958. (exit $ac_status); } &&
  1959. { ac_try='test -z "$ac_c_werror_flag"
  1960. || test ! -s conftest.err'
  1961. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1962. (eval $ac_try) 2>&5
  1963. ac_status=$?
  1964. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1965. (exit $ac_status); }; } &&
  1966. { ac_try='test -s conftest.$ac_objext'
  1967. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  1968. (eval $ac_try) 2>&5
  1969. ac_status=$?
  1970. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  1971. (exit $ac_status); }; }; then
  1972. ac_cv_prog_cc_g=yes
  1973. else
  1974. echo "$as_me: failed program was:" >&5
  1975. sed 's/^/| /' conftest.$ac_ext >&5
  1976. ac_cv_prog_cc_g=no
  1977. fi
  1978. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  1979. fi
  1980. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  1981. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  1982. if test "$ac_test_CFLAGS" = set; then
  1983. CFLAGS=$ac_save_CFLAGS
  1984. elif test $ac_cv_prog_cc_g = yes; then
  1985. if test "$GCC" = yes; then
  1986. CFLAGS="-g -O2"
  1987. else
  1988. CFLAGS="-g"
  1989. fi
  1990. else
  1991. if test "$GCC" = yes; then
  1992. CFLAGS="-O2"
  1993. else
  1994. CFLAGS=
  1995. fi
  1996. fi
  1997. echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  1998. echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  1999. if test "${ac_cv_prog_cc_stdc+set}" = set; then
  2000. echo $ECHO_N "(cached) $ECHO_C" >&6
  2001. else
  2002. ac_cv_prog_cc_stdc=no
  2003. ac_save_CC=$CC
  2004. cat >conftest.$ac_ext <<_ACEOF
  2005. /* confdefs.h. */
  2006. _ACEOF
  2007. cat confdefs.h >>conftest.$ac_ext
  2008. cat >>conftest.$ac_ext <<_ACEOF
  2009. /* end confdefs.h. */
  2010. #include <stdarg.h>
  2011. #include <stdio.h>
  2012. #include <sys/types.h>
  2013. #include <sys/stat.h>
  2014. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2015. struct buf { int x; };
  2016. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2017. static char *e (p, i)
  2018. char **p;
  2019. int i;
  2020. {
  2021. return p[i];
  2022. }
  2023. static char *f (char * (*g) (char **, int), char **p, ...)
  2024. {
  2025. char *s;
  2026. va_list v;
  2027. va_start (v,p);
  2028. s = g (p, va_arg (v,int));
  2029. va_end (v);
  2030. return s;
  2031. }
  2032. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  2033. function prototypes and stuff, but not '\xHH' hex character constants.
  2034. These don't provoke an error unfortunately, instead are silently treated
  2035. as 'x'. The following induces an error, until -std1 is added to get
  2036. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  2037. array size at least. It's necessary to write '\x00'==0 to get something
  2038. that's true only with -std1. */
  2039. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  2040. int test (int i, double x);
  2041. struct s1 {int (*f) (int a);};
  2042. struct s2 {int (*f) (double a);};
  2043. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  2044. int argc;
  2045. char **argv;
  2046. int
  2047. main ()
  2048. {
  2049. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  2050. ;
  2051. return 0;
  2052. }
  2053. _ACEOF
  2054. # Don't try gcc -ansi; that turns off useful extensions and
  2055. # breaks some systems' header files.
  2056. # AIX -qlanglvl=ansi
  2057. # Ultrix and OSF/1 -std1
  2058. # HP-UX 10.20 and later -Ae
  2059. # HP-UX older versions -Aa -D_HPUX_SOURCE
  2060. # SVR4 -Xc -D__EXTENSIONS__
  2061. for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  2062. do
  2063. CC="$ac_save_CC $ac_arg"
  2064. rm -f conftest.$ac_objext
  2065. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2066. (eval $ac_compile) 2>conftest.er1
  2067. ac_status=$?
  2068. grep -v '^ *+' conftest.er1 >conftest.err
  2069. rm -f conftest.er1
  2070. cat conftest.err >&5
  2071. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2072. (exit $ac_status); } &&
  2073. { ac_try='test -z "$ac_c_werror_flag"
  2074. || test ! -s conftest.err'
  2075. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2076. (eval $ac_try) 2>&5
  2077. ac_status=$?
  2078. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2079. (exit $ac_status); }; } &&
  2080. { ac_try='test -s conftest.$ac_objext'
  2081. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2082. (eval $ac_try) 2>&5
  2083. ac_status=$?
  2084. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2085. (exit $ac_status); }; }; then
  2086. ac_cv_prog_cc_stdc=$ac_arg
  2087. break
  2088. else
  2089. echo "$as_me: failed program was:" >&5
  2090. sed 's/^/| /' conftest.$ac_ext >&5
  2091. fi
  2092. rm -f conftest.err conftest.$ac_objext
  2093. done
  2094. rm -f conftest.$ac_ext conftest.$ac_objext
  2095. CC=$ac_save_CC
  2096. fi
  2097. case "x$ac_cv_prog_cc_stdc" in
  2098. x|xno)
  2099. echo "$as_me:$LINENO: result: none needed" >&5
  2100. echo "${ECHO_T}none needed" >&6 ;;
  2101. *)
  2102. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  2103. echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  2104. CC="$CC $ac_cv_prog_cc_stdc" ;;
  2105. esac
  2106. # Some people use a C++ compiler to compile C. Since we use `exit',
  2107. # in C++ we need to declare it. In case someone uses the same compiler
  2108. # for both compiling C and C++ we need to have the C++ compiler decide
  2109. # the declaration of exit, since it's the most demanding environment.
  2110. cat >conftest.$ac_ext <<_ACEOF
  2111. #ifndef __cplusplus
  2112. choke me
  2113. #endif
  2114. _ACEOF
  2115. rm -f conftest.$ac_objext
  2116. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2117. (eval $ac_compile) 2>conftest.er1
  2118. ac_status=$?
  2119. grep -v '^ *+' conftest.er1 >conftest.err
  2120. rm -f conftest.er1
  2121. cat conftest.err >&5
  2122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2123. (exit $ac_status); } &&
  2124. { ac_try='test -z "$ac_c_werror_flag"
  2125. || test ! -s conftest.err'
  2126. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2127. (eval $ac_try) 2>&5
  2128. ac_status=$?
  2129. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2130. (exit $ac_status); }; } &&
  2131. { ac_try='test -s conftest.$ac_objext'
  2132. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2133. (eval $ac_try) 2>&5
  2134. ac_status=$?
  2135. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2136. (exit $ac_status); }; }; then
  2137. for ac_declaration in \
  2138. '' \
  2139. 'extern "C" void std::exit (int) throw (); using std::exit;' \
  2140. 'extern "C" void std::exit (int); using std::exit;' \
  2141. 'extern "C" void exit (int) throw ();' \
  2142. 'extern "C" void exit (int);' \
  2143. 'void exit (int);'
  2144. do
  2145. cat >conftest.$ac_ext <<_ACEOF
  2146. /* confdefs.h. */
  2147. _ACEOF
  2148. cat confdefs.h >>conftest.$ac_ext
  2149. cat >>conftest.$ac_ext <<_ACEOF
  2150. /* end confdefs.h. */
  2151. $ac_declaration
  2152. #include <stdlib.h>
  2153. int
  2154. main ()
  2155. {
  2156. exit (42);
  2157. ;
  2158. return 0;
  2159. }
  2160. _ACEOF
  2161. rm -f conftest.$ac_objext
  2162. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2163. (eval $ac_compile) 2>conftest.er1
  2164. ac_status=$?
  2165. grep -v '^ *+' conftest.er1 >conftest.err
  2166. rm -f conftest.er1
  2167. cat conftest.err >&5
  2168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2169. (exit $ac_status); } &&
  2170. { ac_try='test -z "$ac_c_werror_flag"
  2171. || test ! -s conftest.err'
  2172. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2173. (eval $ac_try) 2>&5
  2174. ac_status=$?
  2175. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2176. (exit $ac_status); }; } &&
  2177. { ac_try='test -s conftest.$ac_objext'
  2178. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2179. (eval $ac_try) 2>&5
  2180. ac_status=$?
  2181. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2182. (exit $ac_status); }; }; then
  2183. :
  2184. else
  2185. echo "$as_me: failed program was:" >&5
  2186. sed 's/^/| /' conftest.$ac_ext >&5
  2187. continue
  2188. fi
  2189. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2190. cat >conftest.$ac_ext <<_ACEOF
  2191. /* confdefs.h. */
  2192. _ACEOF
  2193. cat confdefs.h >>conftest.$ac_ext
  2194. cat >>conftest.$ac_ext <<_ACEOF
  2195. /* end confdefs.h. */
  2196. $ac_declaration
  2197. int
  2198. main ()
  2199. {
  2200. exit (42);
  2201. ;
  2202. return 0;
  2203. }
  2204. _ACEOF
  2205. rm -f conftest.$ac_objext
  2206. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2207. (eval $ac_compile) 2>conftest.er1
  2208. ac_status=$?
  2209. grep -v '^ *+' conftest.er1 >conftest.err
  2210. rm -f conftest.er1
  2211. cat conftest.err >&5
  2212. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2213. (exit $ac_status); } &&
  2214. { ac_try='test -z "$ac_c_werror_flag"
  2215. || test ! -s conftest.err'
  2216. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2217. (eval $ac_try) 2>&5
  2218. ac_status=$?
  2219. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2220. (exit $ac_status); }; } &&
  2221. { ac_try='test -s conftest.$ac_objext'
  2222. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2223. (eval $ac_try) 2>&5
  2224. ac_status=$?
  2225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2226. (exit $ac_status); }; }; then
  2227. break
  2228. else
  2229. echo "$as_me: failed program was:" >&5
  2230. sed 's/^/| /' conftest.$ac_ext >&5
  2231. fi
  2232. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2233. done
  2234. rm -f conftest*
  2235. if test -n "$ac_declaration"; then
  2236. echo '#ifdef __cplusplus' >>confdefs.h
  2237. echo $ac_declaration >>confdefs.h
  2238. echo '#endif' >>confdefs.h
  2239. fi
  2240. else
  2241. echo "$as_me: failed program was:" >&5
  2242. sed 's/^/| /' conftest.$ac_ext >&5
  2243. fi
  2244. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2245. ac_ext=c
  2246. ac_cpp='$CPP $CPPFLAGS'
  2247. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2248. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2249. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2250. ac_ext=c
  2251. ac_cpp='$CPP $CPPFLAGS'
  2252. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2253. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2254. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2255. echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  2256. echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  2257. # On Suns, sometimes $CPP names a directory.
  2258. if test -n "$CPP" && test -d "$CPP"; then
  2259. CPP=
  2260. fi
  2261. if test -z "$CPP"; then
  2262. if test "${ac_cv_prog_CPP+set}" = set; then
  2263. echo $ECHO_N "(cached) $ECHO_C" >&6
  2264. else
  2265. # Double quotes because CPP needs to be expanded
  2266. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  2267. do
  2268. ac_preproc_ok=false
  2269. for ac_c_preproc_warn_flag in '' yes
  2270. do
  2271. # Use a header file that comes with gcc, so configuring glibc
  2272. # with a fresh cross-compiler works.
  2273. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2274. # <limits.h> exists even on freestanding compilers.
  2275. # On the NeXT, cc -E runs the code through the compiler's parser,
  2276. # not just through cpp. "Syntax error" is here to catch this case.
  2277. cat >conftest.$ac_ext <<_ACEOF
  2278. /* confdefs.h. */
  2279. _ACEOF
  2280. cat confdefs.h >>conftest.$ac_ext
  2281. cat >>conftest.$ac_ext <<_ACEOF
  2282. /* end confdefs.h. */
  2283. #ifdef __STDC__
  2284. # include <limits.h>
  2285. #else
  2286. # include <assert.h>
  2287. #endif
  2288. Syntax error
  2289. _ACEOF
  2290. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2291. (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
  2298. if test -s conftest.err; then
  2299. ac_cpp_err=$ac_c_preproc_warn_flag
  2300. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2301. else
  2302. ac_cpp_err=
  2303. fi
  2304. else
  2305. ac_cpp_err=yes
  2306. fi
  2307. if test -z "$ac_cpp_err"; then
  2308. :
  2309. else
  2310. echo "$as_me: failed program was:" >&5
  2311. sed 's/^/| /' conftest.$ac_ext >&5
  2312. # Broken: fails on valid input.
  2313. continue
  2314. fi
  2315. rm -f conftest.err conftest.$ac_ext
  2316. # OK, works on sane cases. Now check whether non-existent headers
  2317. # can be detected and how.
  2318. cat >conftest.$ac_ext <<_ACEOF
  2319. /* confdefs.h. */
  2320. _ACEOF
  2321. cat confdefs.h >>conftest.$ac_ext
  2322. cat >>conftest.$ac_ext <<_ACEOF
  2323. /* end confdefs.h. */
  2324. #include <ac_nonexistent.h>
  2325. _ACEOF
  2326. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2327. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2328. ac_status=$?
  2329. grep -v '^ *+' conftest.er1 >conftest.err
  2330. rm -f conftest.er1
  2331. cat conftest.err >&5
  2332. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2333. (exit $ac_status); } >/dev/null; then
  2334. if test -s conftest.err; then
  2335. ac_cpp_err=$ac_c_preproc_warn_flag
  2336. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2337. else
  2338. ac_cpp_err=
  2339. fi
  2340. else
  2341. ac_cpp_err=yes
  2342. fi
  2343. if test -z "$ac_cpp_err"; then
  2344. # Broken: success on invalid input.
  2345. continue
  2346. else
  2347. echo "$as_me: failed program was:" >&5
  2348. sed 's/^/| /' conftest.$ac_ext >&5
  2349. # Passes both tests.
  2350. ac_preproc_ok=:
  2351. break
  2352. fi
  2353. rm -f conftest.err conftest.$ac_ext
  2354. done
  2355. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2356. rm -f conftest.err conftest.$ac_ext
  2357. if $ac_preproc_ok; then
  2358. break
  2359. fi
  2360. done
  2361. ac_cv_prog_CPP=$CPP
  2362. fi
  2363. CPP=$ac_cv_prog_CPP
  2364. else
  2365. ac_cv_prog_CPP=$CPP
  2366. fi
  2367. echo "$as_me:$LINENO: result: $CPP" >&5
  2368. echo "${ECHO_T}$CPP" >&6
  2369. ac_preproc_ok=false
  2370. for ac_c_preproc_warn_flag in '' yes
  2371. do
  2372. # Use a header file that comes with gcc, so configuring glibc
  2373. # with a fresh cross-compiler works.
  2374. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2375. # <limits.h> exists even on freestanding compilers.
  2376. # On the NeXT, cc -E runs the code through the compiler's parser,
  2377. # not just through cpp. "Syntax error" is here to catch this case.
  2378. cat >conftest.$ac_ext <<_ACEOF
  2379. /* confdefs.h. */
  2380. _ACEOF
  2381. cat confdefs.h >>conftest.$ac_ext
  2382. cat >>conftest.$ac_ext <<_ACEOF
  2383. /* end confdefs.h. */
  2384. #ifdef __STDC__
  2385. # include <limits.h>
  2386. #else
  2387. # include <assert.h>
  2388. #endif
  2389. Syntax error
  2390. _ACEOF
  2391. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2392. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2393. ac_status=$?
  2394. grep -v '^ *+' conftest.er1 >conftest.err
  2395. rm -f conftest.er1
  2396. cat conftest.err >&5
  2397. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2398. (exit $ac_status); } >/dev/null; then
  2399. if test -s conftest.err; then
  2400. ac_cpp_err=$ac_c_preproc_warn_flag
  2401. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2402. else
  2403. ac_cpp_err=
  2404. fi
  2405. else
  2406. ac_cpp_err=yes
  2407. fi
  2408. if test -z "$ac_cpp_err"; then
  2409. :
  2410. else
  2411. echo "$as_me: failed program was:" >&5
  2412. sed 's/^/| /' conftest.$ac_ext >&5
  2413. # Broken: fails on valid input.
  2414. continue
  2415. fi
  2416. rm -f conftest.err conftest.$ac_ext
  2417. # OK, works on sane cases. Now check whether non-existent headers
  2418. # can be detected and how.
  2419. cat >conftest.$ac_ext <<_ACEOF
  2420. /* confdefs.h. */
  2421. _ACEOF
  2422. cat confdefs.h >>conftest.$ac_ext
  2423. cat >>conftest.$ac_ext <<_ACEOF
  2424. /* end confdefs.h. */
  2425. #include <ac_nonexistent.h>
  2426. _ACEOF
  2427. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  2428. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  2429. ac_status=$?
  2430. grep -v '^ *+' conftest.er1 >conftest.err
  2431. rm -f conftest.er1
  2432. cat conftest.err >&5
  2433. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2434. (exit $ac_status); } >/dev/null; then
  2435. if test -s conftest.err; then
  2436. ac_cpp_err=$ac_c_preproc_warn_flag
  2437. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  2438. else
  2439. ac_cpp_err=
  2440. fi
  2441. else
  2442. ac_cpp_err=yes
  2443. fi
  2444. if test -z "$ac_cpp_err"; then
  2445. # Broken: success on invalid input.
  2446. continue
  2447. else
  2448. echo "$as_me: failed program was:" >&5
  2449. sed 's/^/| /' conftest.$ac_ext >&5
  2450. # Passes both tests.
  2451. ac_preproc_ok=:
  2452. break
  2453. fi
  2454. rm -f conftest.err conftest.$ac_ext
  2455. done
  2456. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  2457. rm -f conftest.err conftest.$ac_ext
  2458. if $ac_preproc_ok; then
  2459. :
  2460. else
  2461. { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  2462. See \`config.log' for more details." >&5
  2463. echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  2464. See \`config.log' for more details." >&2;}
  2465. { (exit 1); exit 1; }; }
  2466. fi
  2467. ac_ext=c
  2468. ac_cpp='$CPP $CPPFLAGS'
  2469. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2470. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2471. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2472. ac_ext=c
  2473. ac_cpp='$CPP $CPPFLAGS'
  2474. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2475. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2476. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2477. CFLAGS="$CFLAGS -pipe -ffast-math -Wall -Wno-sign-compare"
  2478. CPPFLAGS="$CPPFLAGS -I../common"
  2479. echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
  2480. echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
  2481. if test "${ac_cv_c_bigendian+set}" = set; then
  2482. echo $ECHO_N "(cached) $ECHO_C" >&6
  2483. else
  2484. # See if sys/param.h defines the BYTE_ORDER macro.
  2485. cat >conftest.$ac_ext <<_ACEOF
  2486. /* confdefs.h. */
  2487. _ACEOF
  2488. cat confdefs.h >>conftest.$ac_ext
  2489. cat >>conftest.$ac_ext <<_ACEOF
  2490. /* end confdefs.h. */
  2491. #include <sys/types.h>
  2492. #include <sys/param.h>
  2493. int
  2494. main ()
  2495. {
  2496. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  2497. bogus endian macros
  2498. #endif
  2499. ;
  2500. return 0;
  2501. }
  2502. _ACEOF
  2503. rm -f conftest.$ac_objext
  2504. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2505. (eval $ac_compile) 2>conftest.er1
  2506. ac_status=$?
  2507. grep -v '^ *+' conftest.er1 >conftest.err
  2508. rm -f conftest.er1
  2509. cat conftest.err >&5
  2510. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2511. (exit $ac_status); } &&
  2512. { ac_try='test -z "$ac_c_werror_flag"
  2513. || test ! -s conftest.err'
  2514. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2515. (eval $ac_try) 2>&5
  2516. ac_status=$?
  2517. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2518. (exit $ac_status); }; } &&
  2519. { ac_try='test -s conftest.$ac_objext'
  2520. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2521. (eval $ac_try) 2>&5
  2522. ac_status=$?
  2523. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2524. (exit $ac_status); }; }; then
  2525. # It does; now see whether it defined to BIG_ENDIAN or not.
  2526. cat >conftest.$ac_ext <<_ACEOF
  2527. /* confdefs.h. */
  2528. _ACEOF
  2529. cat confdefs.h >>conftest.$ac_ext
  2530. cat >>conftest.$ac_ext <<_ACEOF
  2531. /* end confdefs.h. */
  2532. #include <sys/types.h>
  2533. #include <sys/param.h>
  2534. int
  2535. main ()
  2536. {
  2537. #if BYTE_ORDER != BIG_ENDIAN
  2538. not big endian
  2539. #endif
  2540. ;
  2541. return 0;
  2542. }
  2543. _ACEOF
  2544. rm -f conftest.$ac_objext
  2545. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2546. (eval $ac_compile) 2>conftest.er1
  2547. ac_status=$?
  2548. grep -v '^ *+' conftest.er1 >conftest.err
  2549. rm -f conftest.er1
  2550. cat conftest.err >&5
  2551. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2552. (exit $ac_status); } &&
  2553. { ac_try='test -z "$ac_c_werror_flag"
  2554. || test ! -s conftest.err'
  2555. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2556. (eval $ac_try) 2>&5
  2557. ac_status=$?
  2558. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2559. (exit $ac_status); }; } &&
  2560. { ac_try='test -s conftest.$ac_objext'
  2561. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2562. (eval $ac_try) 2>&5
  2563. ac_status=$?
  2564. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2565. (exit $ac_status); }; }; then
  2566. ac_cv_c_bigendian=yes
  2567. else
  2568. echo "$as_me: failed program was:" >&5
  2569. sed 's/^/| /' conftest.$ac_ext >&5
  2570. ac_cv_c_bigendian=no
  2571. fi
  2572. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2573. else
  2574. echo "$as_me: failed program was:" >&5
  2575. sed 's/^/| /' conftest.$ac_ext >&5
  2576. # It does not; compile a test program.
  2577. if test "$cross_compiling" = yes; then
  2578. # try to guess the endianness by grepping values into an object file
  2579. ac_cv_c_bigendian=unknown
  2580. cat >conftest.$ac_ext <<_ACEOF
  2581. /* confdefs.h. */
  2582. _ACEOF
  2583. cat confdefs.h >>conftest.$ac_ext
  2584. cat >>conftest.$ac_ext <<_ACEOF
  2585. /* end confdefs.h. */
  2586. short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  2587. short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  2588. void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
  2589. short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  2590. short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  2591. void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
  2592. int
  2593. main ()
  2594. {
  2595. _ascii (); _ebcdic ();
  2596. ;
  2597. return 0;
  2598. }
  2599. _ACEOF
  2600. rm -f conftest.$ac_objext
  2601. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2602. (eval $ac_compile) 2>conftest.er1
  2603. ac_status=$?
  2604. grep -v '^ *+' conftest.er1 >conftest.err
  2605. rm -f conftest.er1
  2606. cat conftest.err >&5
  2607. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2608. (exit $ac_status); } &&
  2609. { ac_try='test -z "$ac_c_werror_flag"
  2610. || test ! -s conftest.err'
  2611. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2612. (eval $ac_try) 2>&5
  2613. ac_status=$?
  2614. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2615. (exit $ac_status); }; } &&
  2616. { ac_try='test -s conftest.$ac_objext'
  2617. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2618. (eval $ac_try) 2>&5
  2619. ac_status=$?
  2620. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2621. (exit $ac_status); }; }; then
  2622. if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
  2623. ac_cv_c_bigendian=yes
  2624. fi
  2625. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  2626. if test "$ac_cv_c_bigendian" = unknown; then
  2627. ac_cv_c_bigendian=no
  2628. else
  2629. # finding both strings is unlikely to happen, but who knows?
  2630. ac_cv_c_bigendian=unknown
  2631. fi
  2632. fi
  2633. else
  2634. echo "$as_me: failed program was:" >&5
  2635. sed 's/^/| /' conftest.$ac_ext >&5
  2636. fi
  2637. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2638. else
  2639. cat >conftest.$ac_ext <<_ACEOF
  2640. /* confdefs.h. */
  2641. _ACEOF
  2642. cat confdefs.h >>conftest.$ac_ext
  2643. cat >>conftest.$ac_ext <<_ACEOF
  2644. /* end confdefs.h. */
  2645. int
  2646. main ()
  2647. {
  2648. /* Are we little or big endian? From Harbison&Steele. */
  2649. union
  2650. {
  2651. long l;
  2652. char c[sizeof (long)];
  2653. } u;
  2654. u.l = 1;
  2655. exit (u.c[sizeof (long) - 1] == 1);
  2656. }
  2657. _ACEOF
  2658. rm -f conftest$ac_exeext
  2659. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  2660. (eval $ac_link) 2>&5
  2661. ac_status=$?
  2662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2663. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  2664. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2665. (eval $ac_try) 2>&5
  2666. ac_status=$?
  2667. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2668. (exit $ac_status); }; }; then
  2669. ac_cv_c_bigendian=no
  2670. else
  2671. echo "$as_me: program exited with status $ac_status" >&5
  2672. echo "$as_me: failed program was:" >&5
  2673. sed 's/^/| /' conftest.$ac_ext >&5
  2674. ( exit $ac_status )
  2675. ac_cv_c_bigendian=yes
  2676. fi
  2677. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  2678. fi
  2679. fi
  2680. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2681. fi
  2682. echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
  2683. echo "${ECHO_T}$ac_cv_c_bigendian" >&6
  2684. case $ac_cv_c_bigendian in
  2685. yes)
  2686. { { echo "$as_me:$LINENO: error: bigendian is not supported... stopping" >&5
  2687. echo "$as_me: error: bigendian is not supported... stopping" >&2;}
  2688. { (exit 1); exit 1; }; } ;;
  2689. no)
  2690. ;;
  2691. *)
  2692. { echo "$as_me:$LINENO: WARNING: unable to determine endianess, only little endian is supported" >&5
  2693. echo "$as_me: WARNING: unable to determine endianess, only little endian is supported" >&2;}
  2694. ;;
  2695. esac
  2696. if test "$enable_64bit" = "no" ; then
  2697. echo "$as_me:$LINENO: checking whether pointers can be stored in ints (old code)" >&5
  2698. echo $ECHO_N "checking whether pointers can be stored in ints (old code)... $ECHO_C" >&6
  2699. pointers_fit_in_ints="no"
  2700. cat >conftest.$ac_ext <<_ACEOF
  2701. /* confdefs.h. */
  2702. _ACEOF
  2703. cat confdefs.h >>conftest.$ac_ext
  2704. cat >>conftest.$ac_ext <<_ACEOF
  2705. /* end confdefs.h. */
  2706. static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void*)) ? 1 : -1];
  2707. int
  2708. main ()
  2709. {
  2710. ;
  2711. return 0;
  2712. }
  2713. _ACEOF
  2714. rm -f conftest.$ac_objext
  2715. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2716. (eval $ac_compile) 2>conftest.er1
  2717. ac_status=$?
  2718. grep -v '^ *+' conftest.er1 >conftest.err
  2719. rm -f conftest.er1
  2720. cat conftest.err >&5
  2721. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2722. (exit $ac_status); } &&
  2723. { ac_try='test -z "$ac_c_werror_flag"
  2724. || test ! -s conftest.err'
  2725. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2726. (eval $ac_try) 2>&5
  2727. ac_status=$?
  2728. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2729. (exit $ac_status); }; } &&
  2730. { ac_try='test -s conftest.$ac_objext'
  2731. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2732. (eval $ac_try) 2>&5
  2733. ac_status=$?
  2734. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2735. (exit $ac_status); }; }; then
  2736. pointers_fit_in_ints="yes"
  2737. else
  2738. echo "$as_me: failed program was:" >&5
  2739. sed 's/^/| /' conftest.$ac_ext >&5
  2740. fi
  2741. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2742. if test "$pointers_fit_in_ints" = "no" ; then
  2743. CFLAGS="$CFLAGS -m32"
  2744. LDFLAGS="$LDFLAGS -m32"
  2745. cat >conftest.$ac_ext <<_ACEOF
  2746. /* confdefs.h. */
  2747. _ACEOF
  2748. cat confdefs.h >>conftest.$ac_ext
  2749. cat >>conftest.$ac_ext <<_ACEOF
  2750. /* end confdefs.h. */
  2751. static int test_array[((long int)sizeof(int)) == ((long int)sizeof(void *)) ? 1 : -1];
  2752. int
  2753. main ()
  2754. {
  2755. ;
  2756. return 0;
  2757. }
  2758. _ACEOF
  2759. rm -f conftest.$ac_objext
  2760. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2761. (eval $ac_compile) 2>conftest.er1
  2762. ac_status=$?
  2763. grep -v '^ *+' conftest.er1 >conftest.err
  2764. rm -f conftest.er1
  2765. cat conftest.err >&5
  2766. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2767. (exit $ac_status); } &&
  2768. { ac_try='test -z "$ac_c_werror_flag"
  2769. || test ! -s conftest.err'
  2770. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2771. (eval $ac_try) 2>&5
  2772. ac_status=$?
  2773. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2774. (exit $ac_status); }; } &&
  2775. { ac_try='test -s conftest.$ac_objext'
  2776. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2777. (eval $ac_try) 2>&5
  2778. ac_status=$?
  2779. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2780. (exit $ac_status); }; }; then
  2781. pointers_fit_in_ints="yes (with -m32)"
  2782. else
  2783. echo "$as_me: failed program was:" >&5
  2784. sed 's/^/| /' conftest.$ac_ext >&5
  2785. fi
  2786. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2787. fi
  2788. echo "$as_me:$LINENO: result: $pointers_fit_in_ints" >&5
  2789. echo "${ECHO_T}$pointers_fit_in_ints" >&6
  2790. if test "$pointers_fit_in_ints" = "no" ; then
  2791. { { echo "$as_me:$LINENO: error: pointers cannot be stored in ints, required for old code... stopping" >&5
  2792. echo "$as_me: error: pointers cannot be stored in ints, required for old code... stopping" >&2;}
  2793. { (exit 1); exit 1; }; }
  2794. fi
  2795. fi
  2796. echo "$as_me:$LINENO: checking whether $CC supports -Wno-unused-parameter" >&5
  2797. echo $ECHO_N "checking whether $CC supports -Wno-unused-parameter... $ECHO_C" >&6
  2798. OLD_CFLAGS="$CFLAGS"
  2799. CFLAGS="$CFLAGS -Wno-unused-parameter"
  2800. cat >conftest.$ac_ext <<_ACEOF
  2801. int foo;
  2802. _ACEOF
  2803. rm -f conftest.$ac_objext
  2804. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2805. (eval $ac_compile) 2>conftest.er1
  2806. ac_status=$?
  2807. grep -v '^ *+' conftest.er1 >conftest.err
  2808. rm -f conftest.er1
  2809. cat conftest.err >&5
  2810. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2811. (exit $ac_status); } &&
  2812. { ac_try='test -z "$ac_c_werror_flag"
  2813. || test ! -s conftest.err'
  2814. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2815. (eval $ac_try) 2>&5
  2816. ac_status=$?
  2817. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2818. (exit $ac_status); }; } &&
  2819. { ac_try='test -s conftest.$ac_objext'
  2820. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2821. (eval $ac_try) 2>&5
  2822. ac_status=$?
  2823. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2824. (exit $ac_status); }; }; then
  2825. echo "$as_me:$LINENO: result: yes" >&5
  2826. echo "${ECHO_T}yes" >&6
  2827. else
  2828. echo "$as_me: failed program was:" >&5
  2829. sed 's/^/| /' conftest.$ac_ext >&5
  2830. echo "$as_me:$LINENO: result: no" >&5
  2831. echo "${ECHO_T}no" >&6
  2832. CFLAGS="$OLD_CFLAGS"
  2833. fi
  2834. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2835. echo "$as_me:$LINENO: checking whether $CC supports -Wno-pointer-sign" >&5
  2836. echo $ECHO_N "checking whether $CC supports -Wno-pointer-sign... $ECHO_C" >&6
  2837. OLD_CFLAGS="$CFLAGS"
  2838. CFLAGS="$CFLAGS -Wno-pointer-sign"
  2839. cat >conftest.$ac_ext <<_ACEOF
  2840. int foo;
  2841. _ACEOF
  2842. rm -f conftest.$ac_objext
  2843. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2844. (eval $ac_compile) 2>conftest.er1
  2845. ac_status=$?
  2846. grep -v '^ *+' conftest.er1 >conftest.err
  2847. rm -f conftest.er1
  2848. cat conftest.err >&5
  2849. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2850. (exit $ac_status); } &&
  2851. { ac_try='test -z "$ac_c_werror_flag"
  2852. || test ! -s conftest.err'
  2853. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2854. (eval $ac_try) 2>&5
  2855. ac_status=$?
  2856. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2857. (exit $ac_status); }; } &&
  2858. { ac_try='test -s conftest.$ac_objext'
  2859. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2860. (eval $ac_try) 2>&5
  2861. ac_status=$?
  2862. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2863. (exit $ac_status); }; }; then
  2864. echo "$as_me:$LINENO: result: yes" >&5
  2865. echo "${ECHO_T}yes" >&6
  2866. echo "$as_me:$LINENO: checking whether $CC can actually use -Wno-pointer-sign" >&5
  2867. echo $ECHO_N "checking whether $CC can actually use -Wno-pointer-sign... $ECHO_C" >&6
  2868. # This option causes warnings in C++ mode
  2869. # Note: -Werror must be before -Wno-pointer-sign, otherwise it does not do anything
  2870. CFLAGS="$OLD_CFLAGS -Werror -Wno-pointer-sign"
  2871. cat >conftest.$ac_ext <<_ACEOF
  2872. int foo;
  2873. _ACEOF
  2874. rm -f conftest.$ac_objext
  2875. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2876. (eval $ac_compile) 2>conftest.er1
  2877. ac_status=$?
  2878. grep -v '^ *+' conftest.er1 >conftest.err
  2879. rm -f conftest.er1
  2880. cat conftest.err >&5
  2881. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2882. (exit $ac_status); } &&
  2883. { ac_try='test -z "$ac_c_werror_flag"
  2884. || test ! -s conftest.err'
  2885. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2886. (eval $ac_try) 2>&5
  2887. ac_status=$?
  2888. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2889. (exit $ac_status); }; } &&
  2890. { ac_try='test -s conftest.$ac_objext'
  2891. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2892. (eval $ac_try) 2>&5
  2893. ac_status=$?
  2894. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2895. (exit $ac_status); }; }; then
  2896. echo "$as_me:$LINENO: result: yes" >&5
  2897. echo "${ECHO_T}yes" >&6
  2898. CFLAGS="$OLD_CFLAGS -Wno-pointer-sign"
  2899. else
  2900. echo "$as_me: failed program was:" >&5
  2901. sed 's/^/| /' conftest.$ac_ext >&5
  2902. echo "$as_me:$LINENO: result: no" >&5
  2903. echo "${ECHO_T}no" >&6
  2904. CFLAGS="$OLD_CFLAGS"
  2905. fi
  2906. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2907. else
  2908. echo "$as_me: failed program was:" >&5
  2909. sed 's/^/| /' conftest.$ac_ext >&5
  2910. echo "$as_me:$LINENO: result: no" >&5
  2911. echo "${ECHO_T}no" >&6
  2912. CFLAGS="$OLD_CFLAGS"
  2913. fi
  2914. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2915. echo "$as_me:$LINENO: checking whether $CC supports -Wno-switch" >&5
  2916. echo $ECHO_N "checking whether $CC supports -Wno-switch... $ECHO_C" >&6
  2917. OLD_CFLAGS="$CFLAGS"
  2918. CFLAGS="$CFLAGS -Wno-switch"
  2919. cat >conftest.$ac_ext <<_ACEOF
  2920. int foo;
  2921. _ACEOF
  2922. rm -f conftest.$ac_objext
  2923. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2924. (eval $ac_compile) 2>conftest.er1
  2925. ac_status=$?
  2926. grep -v '^ *+' conftest.er1 >conftest.err
  2927. rm -f conftest.er1
  2928. cat conftest.err >&5
  2929. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2930. (exit $ac_status); } &&
  2931. { ac_try='test -z "$ac_c_werror_flag"
  2932. || test ! -s conftest.err'
  2933. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2934. (eval $ac_try) 2>&5
  2935. ac_status=$?
  2936. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2937. (exit $ac_status); }; } &&
  2938. { ac_try='test -s conftest.$ac_objext'
  2939. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2940. (eval $ac_try) 2>&5
  2941. ac_status=$?
  2942. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2943. (exit $ac_status); }; }; then
  2944. echo "$as_me:$LINENO: result: yes" >&5
  2945. echo "${ECHO_T}yes" >&6
  2946. else
  2947. echo "$as_me: failed program was:" >&5
  2948. sed 's/^/| /' conftest.$ac_ext >&5
  2949. echo "$as_me:$LINENO: result: no" >&5
  2950. echo "${ECHO_T}no" >&6
  2951. CFLAGS="$OLD_CFLAGS"
  2952. fi
  2953. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2954. echo "$as_me:$LINENO: checking whether $CC supports -fPIC" >&5
  2955. echo $ECHO_N "checking whether $CC supports -fPIC... $ECHO_C" >&6
  2956. OLD_CFLAGS="$CFLAGS"
  2957. CFLAGS="$CFLAGS -fPIC"
  2958. cat >conftest.$ac_ext <<_ACEOF
  2959. int foo;
  2960. _ACEOF
  2961. rm -f conftest.$ac_objext
  2962. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  2963. (eval $ac_compile) 2>conftest.er1
  2964. ac_status=$?
  2965. grep -v '^ *+' conftest.er1 >conftest.err
  2966. rm -f conftest.er1
  2967. cat conftest.err >&5
  2968. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2969. (exit $ac_status); } &&
  2970. { ac_try='test -z "$ac_c_werror_flag"
  2971. || test ! -s conftest.err'
  2972. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2973. (eval $ac_try) 2>&5
  2974. ac_status=$?
  2975. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2976. (exit $ac_status); }; } &&
  2977. { ac_try='test -s conftest.$ac_objext'
  2978. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  2979. (eval $ac_try) 2>&5
  2980. ac_status=$?
  2981. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  2982. (exit $ac_status); }; }; then
  2983. echo "$as_me:$LINENO: result: yes" >&5
  2984. echo "${ECHO_T}yes" >&6
  2985. compiler_supports_pic="yes"
  2986. else
  2987. echo "$as_me: failed program was:" >&5
  2988. sed 's/^/| /' conftest.$ac_ext >&5
  2989. echo "$as_me:$LINENO: result: no" >&5
  2990. echo "${ECHO_T}no" >&6
  2991. compiler_supports_pic="no"
  2992. fi
  2993. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  2994. CFLAGS="$OLD_CFLAGS"
  2995. #
  2996. # -shared needs position independent code; some platforms emit it
  2997. # always, others need -fPIC
  2998. #
  2999. echo "$as_me:$LINENO: checking whether $CC needs -fPIC for shared objects" >&5
  3000. echo $ECHO_N "checking whether $CC needs -fPIC for shared objects... $ECHO_C" >&6
  3001. OLD_CFLAGS="$CFLAGS"
  3002. CFLAGS="$CFLAGS -shared"
  3003. WITH_PLUGINS="yes"
  3004. cat >conftest.$ac_ext <<_ACEOF
  3005. int foo(void)
  3006. {
  3007. return 0;
  3008. }
  3009. _ACEOF
  3010. rm -f conftest.$ac_objext conftest$ac_exeext
  3011. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3012. (eval $ac_link) 2>conftest.er1
  3013. ac_status=$?
  3014. grep -v '^ *+' conftest.er1 >conftest.err
  3015. rm -f conftest.er1
  3016. cat conftest.err >&5
  3017. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3018. (exit $ac_status); } &&
  3019. { ac_try='test -z "$ac_c_werror_flag"
  3020. || test ! -s conftest.err'
  3021. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3022. (eval $ac_try) 2>&5
  3023. ac_status=$?
  3024. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3025. (exit $ac_status); }; } &&
  3026. { ac_try='test -s conftest$ac_exeext'
  3027. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3028. (eval $ac_try) 2>&5
  3029. ac_status=$?
  3030. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3031. (exit $ac_status); }; }; then
  3032. echo "$as_me:$LINENO: result: no" >&5
  3033. echo "${ECHO_T}no" >&6
  3034. CFLAGS="$OLD_CFLAGS"
  3035. else
  3036. echo "$as_me: failed program was:" >&5
  3037. sed 's/^/| /' conftest.$ac_ext >&5
  3038. if test "$compiler_supports_pic" = "yes" ; then
  3039. # Verify if -shared really fails due to lack of -fPIC or something else
  3040. CFLAGS="$CFLAGS -fPIC"
  3041. cat >conftest.$ac_ext <<_ACEOF
  3042. int foo(void)
  3043. {
  3044. return 0;
  3045. }
  3046. _ACEOF
  3047. rm -f conftest.$ac_objext conftest$ac_exeext
  3048. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3049. (eval $ac_link) 2>conftest.er1
  3050. ac_status=$?
  3051. grep -v '^ *+' conftest.er1 >conftest.err
  3052. rm -f conftest.er1
  3053. cat conftest.err >&5
  3054. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3055. (exit $ac_status); } &&
  3056. { ac_try='test -z "$ac_c_werror_flag"
  3057. || test ! -s conftest.err'
  3058. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3059. (eval $ac_try) 2>&5
  3060. ac_status=$?
  3061. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3062. (exit $ac_status); }; } &&
  3063. { ac_try='test -s conftest$ac_exeext'
  3064. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3065. (eval $ac_try) 2>&5
  3066. ac_status=$?
  3067. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3068. (exit $ac_status); }; }; then
  3069. echo "$as_me:$LINENO: result: yes" >&5
  3070. echo "${ECHO_T}yes" >&6
  3071. CFLAGS="$OLD_CFLAGS -fPIC"
  3072. else
  3073. echo "$as_me: failed program was:" >&5
  3074. sed 's/^/| /' conftest.$ac_ext >&5
  3075. echo "$as_me:$LINENO: result: no, but fails for another reason" >&5
  3076. echo "${ECHO_T}no, but fails for another reason" >&6
  3077. { { echo "$as_me:$LINENO: error: compiler is unable to compile shared objects for an unhandled reason, please report this with attached config.log... stopping" >&5
  3078. echo "$as_me: error: compiler is unable to compile shared objects for an unhandled reason, please report this with attached config.log... stopping" >&2;}
  3079. { (exit 1); exit 1; }; }
  3080. fi
  3081. rm -f conftest.err conftest.$ac_objext \
  3082. conftest$ac_exeext conftest.$ac_ext
  3083. else
  3084. # Disable compilation of plugins (optional), so 'make all' does not fail
  3085. echo "$as_me:$LINENO: result: yes, but unsupported" >&5
  3086. echo "${ECHO_T}yes, but unsupported" >&6
  3087. { echo "$as_me:$LINENO: compiler is unable to generate position independent code, disabled plugins (optional)" >&5
  3088. echo "$as_me: compiler is unable to generate position independent code, disabled plugins (optional)" >&6;}
  3089. WITH_PLUGINS="no"
  3090. fi
  3091. fi
  3092. rm -f conftest.err conftest.$ac_objext \
  3093. conftest$ac_exeext conftest.$ac_ext
  3094. #
  3095. # -O2 implies -fstrict-aliasing, but the code is not safe for that
  3096. #
  3097. echo "$as_me:$LINENO: checking whether $CC supports -fno-strict-aliasing" >&5
  3098. echo $ECHO_N "checking whether $CC supports -fno-strict-aliasing... $ECHO_C" >&6
  3099. OLD_CFLAGS="$CFLAGS"
  3100. CFLAGS="$CFLAGS -fno-strict-aliasing"
  3101. cat >conftest.$ac_ext <<_ACEOF
  3102. int foo;
  3103. _ACEOF
  3104. rm -f conftest.$ac_objext
  3105. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3106. (eval $ac_compile) 2>conftest.er1
  3107. ac_status=$?
  3108. grep -v '^ *+' conftest.er1 >conftest.err
  3109. rm -f conftest.er1
  3110. cat conftest.err >&5
  3111. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3112. (exit $ac_status); } &&
  3113. { ac_try='test -z "$ac_c_werror_flag"
  3114. || test ! -s conftest.err'
  3115. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3116. (eval $ac_try) 2>&5
  3117. ac_status=$?
  3118. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3119. (exit $ac_status); }; } &&
  3120. { ac_try='test -s conftest.$ac_objext'
  3121. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3122. (eval $ac_try) 2>&5
  3123. ac_status=$?
  3124. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3125. (exit $ac_status); }; }; then
  3126. echo "$as_me:$LINENO: result: yes" >&5
  3127. echo "${ECHO_T}yes" >&6
  3128. else
  3129. echo "$as_me: failed program was:" >&5
  3130. sed 's/^/| /' conftest.$ac_ext >&5
  3131. echo "$as_me:$LINENO: result: no" >&5
  3132. echo "${ECHO_T}no" >&6
  3133. CFLAGS="$OLD_CFLAGS"
  3134. fi
  3135. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3136. ###############################################################################
  3137. # Check for libraries and header files.
  3138. #
  3139. #
  3140. # setrlimit - used to set the socket limit
  3141. #
  3142. echo "$as_me:$LINENO: checking for setrlimit" >&5
  3143. echo $ECHO_N "checking for setrlimit... $ECHO_C" >&6
  3144. if test "${ac_cv_func_setrlimit+set}" = set; then
  3145. echo $ECHO_N "(cached) $ECHO_C" >&6
  3146. else
  3147. cat >conftest.$ac_ext <<_ACEOF
  3148. /* confdefs.h. */
  3149. _ACEOF
  3150. cat confdefs.h >>conftest.$ac_ext
  3151. cat >>conftest.$ac_ext <<_ACEOF
  3152. /* end confdefs.h. */
  3153. /* Define setrlimit to an innocuous variant, in case <limits.h> declares setrlimit.
  3154. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3155. #define setrlimit innocuous_setrlimit
  3156. /* System header to define __stub macros and hopefully few prototypes,
  3157. which can conflict with char setrlimit (); below.
  3158. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3159. <limits.h> exists even on freestanding compilers. */
  3160. #ifdef __STDC__
  3161. # include <limits.h>
  3162. #else
  3163. # include <assert.h>
  3164. #endif
  3165. #undef setrlimit
  3166. /* Override any gcc2 internal prototype to avoid an error. */
  3167. #ifdef __cplusplus
  3168. extern "C"
  3169. {
  3170. #endif
  3171. /* We use char because int might match the return type of a gcc2
  3172. builtin and then its argument prototype would still apply. */
  3173. char setrlimit ();
  3174. /* The GNU C library defines this for functions which it implements
  3175. to always fail with ENOSYS. Some functions are actually named
  3176. something starting with __ and the normal name is an alias. */
  3177. #if defined (__stub_setrlimit) || defined (__stub___setrlimit)
  3178. choke me
  3179. #else
  3180. char (*f) () = setrlimit;
  3181. #endif
  3182. #ifdef __cplusplus
  3183. }
  3184. #endif
  3185. int
  3186. main ()
  3187. {
  3188. return f != setrlimit;
  3189. ;
  3190. return 0;
  3191. }
  3192. _ACEOF
  3193. rm -f conftest.$ac_objext conftest$ac_exeext
  3194. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3195. (eval $ac_link) 2>conftest.er1
  3196. ac_status=$?
  3197. grep -v '^ *+' conftest.er1 >conftest.err
  3198. rm -f conftest.er1
  3199. cat conftest.err >&5
  3200. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3201. (exit $ac_status); } &&
  3202. { ac_try='test -z "$ac_c_werror_flag"
  3203. || test ! -s conftest.err'
  3204. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3205. (eval $ac_try) 2>&5
  3206. ac_status=$?
  3207. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3208. (exit $ac_status); }; } &&
  3209. { ac_try='test -s conftest$ac_exeext'
  3210. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3211. (eval $ac_try) 2>&5
  3212. ac_status=$?
  3213. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3214. (exit $ac_status); }; }; then
  3215. ac_cv_func_setrlimit=yes
  3216. else
  3217. echo "$as_me: failed program was:" >&5
  3218. sed 's/^/| /' conftest.$ac_ext >&5
  3219. ac_cv_func_setrlimit=no
  3220. fi
  3221. rm -f conftest.err conftest.$ac_objext \
  3222. conftest$ac_exeext conftest.$ac_ext
  3223. fi
  3224. echo "$as_me:$LINENO: result: $ac_cv_func_setrlimit" >&5
  3225. echo "${ECHO_T}$ac_cv_func_setrlimit" >&6
  3226. if test $ac_cv_func_setrlimit = yes; then
  3227. CFLAGS="$CFLAGS -DHAVE_SETRLIMIT"
  3228. fi
  3229. #
  3230. # strnlen - string length with upper scan bound
  3231. #
  3232. echo "$as_me:$LINENO: checking for strnlen" >&5
  3233. echo $ECHO_N "checking for strnlen... $ECHO_C" >&6
  3234. if test "${ac_cv_func_strnlen+set}" = set; then
  3235. echo $ECHO_N "(cached) $ECHO_C" >&6
  3236. else
  3237. cat >conftest.$ac_ext <<_ACEOF
  3238. /* confdefs.h. */
  3239. _ACEOF
  3240. cat confdefs.h >>conftest.$ac_ext
  3241. cat >>conftest.$ac_ext <<_ACEOF
  3242. /* end confdefs.h. */
  3243. /* Define strnlen to an innocuous variant, in case <limits.h> declares strnlen.
  3244. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3245. #define strnlen innocuous_strnlen
  3246. /* System header to define __stub macros and hopefully few prototypes,
  3247. which can conflict with char strnlen (); below.
  3248. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3249. <limits.h> exists even on freestanding compilers. */
  3250. #ifdef __STDC__
  3251. # include <limits.h>
  3252. #else
  3253. # include <assert.h>
  3254. #endif
  3255. #undef strnlen
  3256. /* Override any gcc2 internal prototype to avoid an error. */
  3257. #ifdef __cplusplus
  3258. extern "C"
  3259. {
  3260. #endif
  3261. /* We use char because int might match the return type of a gcc2
  3262. builtin and then its argument prototype would still apply. */
  3263. char strnlen ();
  3264. /* The GNU C library defines this for functions which it implements
  3265. to always fail with ENOSYS. Some functions are actually named
  3266. something starting with __ and the normal name is an alias. */
  3267. #if defined (__stub_strnlen) || defined (__stub___strnlen)
  3268. choke me
  3269. #else
  3270. char (*f) () = strnlen;
  3271. #endif
  3272. #ifdef __cplusplus
  3273. }
  3274. #endif
  3275. int
  3276. main ()
  3277. {
  3278. return f != strnlen;
  3279. ;
  3280. return 0;
  3281. }
  3282. _ACEOF
  3283. rm -f conftest.$ac_objext conftest$ac_exeext
  3284. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3285. (eval $ac_link) 2>conftest.er1
  3286. ac_status=$?
  3287. grep -v '^ *+' conftest.er1 >conftest.err
  3288. rm -f conftest.er1
  3289. cat conftest.err >&5
  3290. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3291. (exit $ac_status); } &&
  3292. { ac_try='test -z "$ac_c_werror_flag"
  3293. || test ! -s conftest.err'
  3294. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3295. (eval $ac_try) 2>&5
  3296. ac_status=$?
  3297. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3298. (exit $ac_status); }; } &&
  3299. { ac_try='test -s conftest$ac_exeext'
  3300. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3301. (eval $ac_try) 2>&5
  3302. ac_status=$?
  3303. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3304. (exit $ac_status); }; }; then
  3305. ac_cv_func_strnlen=yes
  3306. else
  3307. echo "$as_me: failed program was:" >&5
  3308. sed 's/^/| /' conftest.$ac_ext >&5
  3309. ac_cv_func_strnlen=no
  3310. fi
  3311. rm -f conftest.err conftest.$ac_objext \
  3312. conftest$ac_exeext conftest.$ac_ext
  3313. fi
  3314. echo "$as_me:$LINENO: result: $ac_cv_func_strnlen" >&5
  3315. echo "${ECHO_T}$ac_cv_func_strnlen" >&6
  3316. if test $ac_cv_func_strnlen = yes; then
  3317. CFLAGS="$CFLAGS -DHAVE_STRNLEN"
  3318. fi
  3319. # libconfig
  3320. echo "$as_me:$LINENO: checking for uselocale" >&5
  3321. echo $ECHO_N "checking for uselocale... $ECHO_C" >&6
  3322. if test "${ac_cv_func_uselocale+set}" = set; then
  3323. echo $ECHO_N "(cached) $ECHO_C" >&6
  3324. else
  3325. cat >conftest.$ac_ext <<_ACEOF
  3326. /* confdefs.h. */
  3327. _ACEOF
  3328. cat confdefs.h >>conftest.$ac_ext
  3329. cat >>conftest.$ac_ext <<_ACEOF
  3330. /* end confdefs.h. */
  3331. /* Define uselocale to an innocuous variant, in case <limits.h> declares uselocale.
  3332. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3333. #define uselocale innocuous_uselocale
  3334. /* System header to define __stub macros and hopefully few prototypes,
  3335. which can conflict with char uselocale (); below.
  3336. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3337. <limits.h> exists even on freestanding compilers. */
  3338. #ifdef __STDC__
  3339. # include <limits.h>
  3340. #else
  3341. # include <assert.h>
  3342. #endif
  3343. #undef uselocale
  3344. /* Override any gcc2 internal prototype to avoid an error. */
  3345. #ifdef __cplusplus
  3346. extern "C"
  3347. {
  3348. #endif
  3349. /* We use char because int might match the return type of a gcc2
  3350. builtin and then its argument prototype would still apply. */
  3351. char uselocale ();
  3352. /* The GNU C library defines this for functions which it implements
  3353. to always fail with ENOSYS. Some functions are actually named
  3354. something starting with __ and the normal name is an alias. */
  3355. #if defined (__stub_uselocale) || defined (__stub___uselocale)
  3356. choke me
  3357. #else
  3358. char (*f) () = uselocale;
  3359. #endif
  3360. #ifdef __cplusplus
  3361. }
  3362. #endif
  3363. int
  3364. main ()
  3365. {
  3366. return f != uselocale;
  3367. ;
  3368. return 0;
  3369. }
  3370. _ACEOF
  3371. rm -f conftest.$ac_objext conftest$ac_exeext
  3372. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3373. (eval $ac_link) 2>conftest.er1
  3374. ac_status=$?
  3375. grep -v '^ *+' conftest.er1 >conftest.err
  3376. rm -f conftest.er1
  3377. cat conftest.err >&5
  3378. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3379. (exit $ac_status); } &&
  3380. { ac_try='test -z "$ac_c_werror_flag"
  3381. || test ! -s conftest.err'
  3382. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3383. (eval $ac_try) 2>&5
  3384. ac_status=$?
  3385. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3386. (exit $ac_status); }; } &&
  3387. { ac_try='test -s conftest$ac_exeext'
  3388. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3389. (eval $ac_try) 2>&5
  3390. ac_status=$?
  3391. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3392. (exit $ac_status); }; }; then
  3393. ac_cv_func_uselocale=yes
  3394. else
  3395. echo "$as_me: failed program was:" >&5
  3396. sed 's/^/| /' conftest.$ac_ext >&5
  3397. ac_cv_func_uselocale=no
  3398. fi
  3399. rm -f conftest.err conftest.$ac_objext \
  3400. conftest$ac_exeext conftest.$ac_ext
  3401. fi
  3402. echo "$as_me:$LINENO: result: $ac_cv_func_uselocale" >&5
  3403. echo "${ECHO_T}$ac_cv_func_uselocale" >&6
  3404. if test $ac_cv_func_uselocale = yes; then
  3405. CFLAGS="$CFLAGS -DHAVE_USELOCALE"
  3406. fi
  3407. echo "$as_me:$LINENO: checking for newlocale" >&5
  3408. echo $ECHO_N "checking for newlocale... $ECHO_C" >&6
  3409. if test "${ac_cv_func_newlocale+set}" = set; then
  3410. echo $ECHO_N "(cached) $ECHO_C" >&6
  3411. else
  3412. cat >conftest.$ac_ext <<_ACEOF
  3413. /* confdefs.h. */
  3414. _ACEOF
  3415. cat confdefs.h >>conftest.$ac_ext
  3416. cat >>conftest.$ac_ext <<_ACEOF
  3417. /* end confdefs.h. */
  3418. /* Define newlocale to an innocuous variant, in case <limits.h> declares newlocale.
  3419. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3420. #define newlocale innocuous_newlocale
  3421. /* System header to define __stub macros and hopefully few prototypes,
  3422. which can conflict with char newlocale (); below.
  3423. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3424. <limits.h> exists even on freestanding compilers. */
  3425. #ifdef __STDC__
  3426. # include <limits.h>
  3427. #else
  3428. # include <assert.h>
  3429. #endif
  3430. #undef newlocale
  3431. /* Override any gcc2 internal prototype to avoid an error. */
  3432. #ifdef __cplusplus
  3433. extern "C"
  3434. {
  3435. #endif
  3436. /* We use char because int might match the return type of a gcc2
  3437. builtin and then its argument prototype would still apply. */
  3438. char newlocale ();
  3439. /* The GNU C library defines this for functions which it implements
  3440. to always fail with ENOSYS. Some functions are actually named
  3441. something starting with __ and the normal name is an alias. */
  3442. #if defined (__stub_newlocale) || defined (__stub___newlocale)
  3443. choke me
  3444. #else
  3445. char (*f) () = newlocale;
  3446. #endif
  3447. #ifdef __cplusplus
  3448. }
  3449. #endif
  3450. int
  3451. main ()
  3452. {
  3453. return f != newlocale;
  3454. ;
  3455. return 0;
  3456. }
  3457. _ACEOF
  3458. rm -f conftest.$ac_objext conftest$ac_exeext
  3459. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3460. (eval $ac_link) 2>conftest.er1
  3461. ac_status=$?
  3462. grep -v '^ *+' conftest.er1 >conftest.err
  3463. rm -f conftest.er1
  3464. cat conftest.err >&5
  3465. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3466. (exit $ac_status); } &&
  3467. { ac_try='test -z "$ac_c_werror_flag"
  3468. || test ! -s conftest.err'
  3469. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3470. (eval $ac_try) 2>&5
  3471. ac_status=$?
  3472. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3473. (exit $ac_status); }; } &&
  3474. { ac_try='test -s conftest$ac_exeext'
  3475. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3476. (eval $ac_try) 2>&5
  3477. ac_status=$?
  3478. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3479. (exit $ac_status); }; }; then
  3480. ac_cv_func_newlocale=yes
  3481. else
  3482. echo "$as_me: failed program was:" >&5
  3483. sed 's/^/| /' conftest.$ac_ext >&5
  3484. ac_cv_func_newlocale=no
  3485. fi
  3486. rm -f conftest.err conftest.$ac_objext \
  3487. conftest$ac_exeext conftest.$ac_ext
  3488. fi
  3489. echo "$as_me:$LINENO: result: $ac_cv_func_newlocale" >&5
  3490. echo "${ECHO_T}$ac_cv_func_newlocale" >&6
  3491. if test $ac_cv_func_newlocale = yes; then
  3492. CFLAGS="$CFLAGS -DHAVE_NEWLOCALE"
  3493. fi
  3494. echo "$as_me:$LINENO: checking for freelocale" >&5
  3495. echo $ECHO_N "checking for freelocale... $ECHO_C" >&6
  3496. if test "${ac_cv_func_freelocale+set}" = set; then
  3497. echo $ECHO_N "(cached) $ECHO_C" >&6
  3498. else
  3499. cat >conftest.$ac_ext <<_ACEOF
  3500. /* confdefs.h. */
  3501. _ACEOF
  3502. cat confdefs.h >>conftest.$ac_ext
  3503. cat >>conftest.$ac_ext <<_ACEOF
  3504. /* end confdefs.h. */
  3505. /* Define freelocale to an innocuous variant, in case <limits.h> declares freelocale.
  3506. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  3507. #define freelocale innocuous_freelocale
  3508. /* System header to define __stub macros and hopefully few prototypes,
  3509. which can conflict with char freelocale (); below.
  3510. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3511. <limits.h> exists even on freestanding compilers. */
  3512. #ifdef __STDC__
  3513. # include <limits.h>
  3514. #else
  3515. # include <assert.h>
  3516. #endif
  3517. #undef freelocale
  3518. /* Override any gcc2 internal prototype to avoid an error. */
  3519. #ifdef __cplusplus
  3520. extern "C"
  3521. {
  3522. #endif
  3523. /* We use char because int might match the return type of a gcc2
  3524. builtin and then its argument prototype would still apply. */
  3525. char freelocale ();
  3526. /* The GNU C library defines this for functions which it implements
  3527. to always fail with ENOSYS. Some functions are actually named
  3528. something starting with __ and the normal name is an alias. */
  3529. #if defined (__stub_freelocale) || defined (__stub___freelocale)
  3530. choke me
  3531. #else
  3532. char (*f) () = freelocale;
  3533. #endif
  3534. #ifdef __cplusplus
  3535. }
  3536. #endif
  3537. int
  3538. main ()
  3539. {
  3540. return f != freelocale;
  3541. ;
  3542. return 0;
  3543. }
  3544. _ACEOF
  3545. rm -f conftest.$ac_objext conftest$ac_exeext
  3546. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3547. (eval $ac_link) 2>conftest.er1
  3548. ac_status=$?
  3549. grep -v '^ *+' conftest.er1 >conftest.err
  3550. rm -f conftest.er1
  3551. cat conftest.err >&5
  3552. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3553. (exit $ac_status); } &&
  3554. { ac_try='test -z "$ac_c_werror_flag"
  3555. || test ! -s conftest.err'
  3556. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3557. (eval $ac_try) 2>&5
  3558. ac_status=$?
  3559. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3560. (exit $ac_status); }; } &&
  3561. { ac_try='test -s conftest$ac_exeext'
  3562. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3563. (eval $ac_try) 2>&5
  3564. ac_status=$?
  3565. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3566. (exit $ac_status); }; }; then
  3567. ac_cv_func_freelocale=yes
  3568. else
  3569. echo "$as_me: failed program was:" >&5
  3570. sed 's/^/| /' conftest.$ac_ext >&5
  3571. ac_cv_func_freelocale=no
  3572. fi
  3573. rm -f conftest.err conftest.$ac_objext \
  3574. conftest$ac_exeext conftest.$ac_ext
  3575. fi
  3576. echo "$as_me:$LINENO: result: $ac_cv_func_freelocale" >&5
  3577. echo "${ECHO_T}$ac_cv_func_freelocale" >&6
  3578. if test $ac_cv_func_freelocale = yes; then
  3579. CFLAGS="$CFLAGS -DHAVE_FREELOCALE"
  3580. fi
  3581. echo "$as_me:$LINENO: checking for egrep" >&5
  3582. echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  3583. if test "${ac_cv_prog_egrep+set}" = set; then
  3584. echo $ECHO_N "(cached) $ECHO_C" >&6
  3585. else
  3586. if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3587. then ac_cv_prog_egrep='grep -E'
  3588. else ac_cv_prog_egrep='egrep'
  3589. fi
  3590. fi
  3591. echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  3592. echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  3593. EGREP=$ac_cv_prog_egrep
  3594. echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  3595. echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  3596. if test "${ac_cv_header_stdc+set}" = set; then
  3597. echo $ECHO_N "(cached) $ECHO_C" >&6
  3598. else
  3599. cat >conftest.$ac_ext <<_ACEOF
  3600. /* confdefs.h. */
  3601. _ACEOF
  3602. cat confdefs.h >>conftest.$ac_ext
  3603. cat >>conftest.$ac_ext <<_ACEOF
  3604. /* end confdefs.h. */
  3605. #include <stdlib.h>
  3606. #include <stdarg.h>
  3607. #include <string.h>
  3608. #include <float.h>
  3609. int
  3610. main ()
  3611. {
  3612. ;
  3613. return 0;
  3614. }
  3615. _ACEOF
  3616. rm -f conftest.$ac_objext
  3617. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3618. (eval $ac_compile) 2>conftest.er1
  3619. ac_status=$?
  3620. grep -v '^ *+' conftest.er1 >conftest.err
  3621. rm -f conftest.er1
  3622. cat conftest.err >&5
  3623. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3624. (exit $ac_status); } &&
  3625. { ac_try='test -z "$ac_c_werror_flag"
  3626. || test ! -s conftest.err'
  3627. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3628. (eval $ac_try) 2>&5
  3629. ac_status=$?
  3630. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3631. (exit $ac_status); }; } &&
  3632. { ac_try='test -s conftest.$ac_objext'
  3633. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3634. (eval $ac_try) 2>&5
  3635. ac_status=$?
  3636. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3637. (exit $ac_status); }; }; then
  3638. ac_cv_header_stdc=yes
  3639. else
  3640. echo "$as_me: failed program was:" >&5
  3641. sed 's/^/| /' conftest.$ac_ext >&5
  3642. ac_cv_header_stdc=no
  3643. fi
  3644. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3645. if test $ac_cv_header_stdc = yes; then
  3646. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3647. cat >conftest.$ac_ext <<_ACEOF
  3648. /* confdefs.h. */
  3649. _ACEOF
  3650. cat confdefs.h >>conftest.$ac_ext
  3651. cat >>conftest.$ac_ext <<_ACEOF
  3652. /* end confdefs.h. */
  3653. #include <string.h>
  3654. _ACEOF
  3655. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3656. $EGREP "memchr" >/dev/null 2>&1; then
  3657. :
  3658. else
  3659. ac_cv_header_stdc=no
  3660. fi
  3661. rm -f conftest*
  3662. fi
  3663. if test $ac_cv_header_stdc = yes; then
  3664. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3665. cat >conftest.$ac_ext <<_ACEOF
  3666. /* confdefs.h. */
  3667. _ACEOF
  3668. cat confdefs.h >>conftest.$ac_ext
  3669. cat >>conftest.$ac_ext <<_ACEOF
  3670. /* end confdefs.h. */
  3671. #include <stdlib.h>
  3672. _ACEOF
  3673. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3674. $EGREP "free" >/dev/null 2>&1; then
  3675. :
  3676. else
  3677. ac_cv_header_stdc=no
  3678. fi
  3679. rm -f conftest*
  3680. fi
  3681. if test $ac_cv_header_stdc = yes; then
  3682. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3683. if test "$cross_compiling" = yes; then
  3684. :
  3685. else
  3686. cat >conftest.$ac_ext <<_ACEOF
  3687. /* confdefs.h. */
  3688. _ACEOF
  3689. cat confdefs.h >>conftest.$ac_ext
  3690. cat >>conftest.$ac_ext <<_ACEOF
  3691. /* end confdefs.h. */
  3692. #include <ctype.h>
  3693. #if ((' ' & 0x0FF) == 0x020)
  3694. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3695. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3696. #else
  3697. # define ISLOWER(c) \
  3698. (('a' <= (c) && (c) <= 'i') \
  3699. || ('j' <= (c) && (c) <= 'r') \
  3700. || ('s' <= (c) && (c) <= 'z'))
  3701. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3702. #endif
  3703. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3704. int
  3705. main ()
  3706. {
  3707. int i;
  3708. for (i = 0; i < 256; i++)
  3709. if (XOR (islower (i), ISLOWER (i))
  3710. || toupper (i) != TOUPPER (i))
  3711. exit(2);
  3712. exit (0);
  3713. }
  3714. _ACEOF
  3715. rm -f conftest$ac_exeext
  3716. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  3717. (eval $ac_link) 2>&5
  3718. ac_status=$?
  3719. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3720. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  3721. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3722. (eval $ac_try) 2>&5
  3723. ac_status=$?
  3724. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3725. (exit $ac_status); }; }; then
  3726. :
  3727. else
  3728. echo "$as_me: program exited with status $ac_status" >&5
  3729. echo "$as_me: failed program was:" >&5
  3730. sed 's/^/| /' conftest.$ac_ext >&5
  3731. ( exit $ac_status )
  3732. ac_cv_header_stdc=no
  3733. fi
  3734. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  3735. fi
  3736. fi
  3737. fi
  3738. echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  3739. echo "${ECHO_T}$ac_cv_header_stdc" >&6
  3740. if test $ac_cv_header_stdc = yes; then
  3741. cat >>confdefs.h <<\_ACEOF
  3742. #define STDC_HEADERS 1
  3743. _ACEOF
  3744. fi
  3745. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3746. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3747. inttypes.h stdint.h unistd.h
  3748. do
  3749. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3750. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3751. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3752. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3753. echo $ECHO_N "(cached) $ECHO_C" >&6
  3754. else
  3755. cat >conftest.$ac_ext <<_ACEOF
  3756. /* confdefs.h. */
  3757. _ACEOF
  3758. cat confdefs.h >>conftest.$ac_ext
  3759. cat >>conftest.$ac_ext <<_ACEOF
  3760. /* end confdefs.h. */
  3761. $ac_includes_default
  3762. #include <$ac_header>
  3763. _ACEOF
  3764. rm -f conftest.$ac_objext
  3765. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3766. (eval $ac_compile) 2>conftest.er1
  3767. ac_status=$?
  3768. grep -v '^ *+' conftest.er1 >conftest.err
  3769. rm -f conftest.er1
  3770. cat conftest.err >&5
  3771. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3772. (exit $ac_status); } &&
  3773. { ac_try='test -z "$ac_c_werror_flag"
  3774. || test ! -s conftest.err'
  3775. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3776. (eval $ac_try) 2>&5
  3777. ac_status=$?
  3778. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3779. (exit $ac_status); }; } &&
  3780. { ac_try='test -s conftest.$ac_objext'
  3781. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3782. (eval $ac_try) 2>&5
  3783. ac_status=$?
  3784. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3785. (exit $ac_status); }; }; then
  3786. eval "$as_ac_Header=yes"
  3787. else
  3788. echo "$as_me: failed program was:" >&5
  3789. sed 's/^/| /' conftest.$ac_ext >&5
  3790. eval "$as_ac_Header=no"
  3791. fi
  3792. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3793. fi
  3794. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3795. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3796. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3797. cat >>confdefs.h <<_ACEOF
  3798. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3799. _ACEOF
  3800. fi
  3801. done
  3802. for ac_header in xlocale.h
  3803. do
  3804. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3805. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3806. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3807. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3808. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3809. echo $ECHO_N "(cached) $ECHO_C" >&6
  3810. fi
  3811. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3812. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3813. else
  3814. # Is the header compilable?
  3815. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  3816. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  3817. cat >conftest.$ac_ext <<_ACEOF
  3818. /* confdefs.h. */
  3819. _ACEOF
  3820. cat confdefs.h >>conftest.$ac_ext
  3821. cat >>conftest.$ac_ext <<_ACEOF
  3822. /* end confdefs.h. */
  3823. $ac_includes_default
  3824. #include <$ac_header>
  3825. _ACEOF
  3826. rm -f conftest.$ac_objext
  3827. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3828. (eval $ac_compile) 2>conftest.er1
  3829. ac_status=$?
  3830. grep -v '^ *+' conftest.er1 >conftest.err
  3831. rm -f conftest.er1
  3832. cat conftest.err >&5
  3833. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3834. (exit $ac_status); } &&
  3835. { ac_try='test -z "$ac_c_werror_flag"
  3836. || test ! -s conftest.err'
  3837. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3838. (eval $ac_try) 2>&5
  3839. ac_status=$?
  3840. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3841. (exit $ac_status); }; } &&
  3842. { ac_try='test -s conftest.$ac_objext'
  3843. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3844. (eval $ac_try) 2>&5
  3845. ac_status=$?
  3846. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3847. (exit $ac_status); }; }; then
  3848. ac_header_compiler=yes
  3849. else
  3850. echo "$as_me: failed program was:" >&5
  3851. sed 's/^/| /' conftest.$ac_ext >&5
  3852. ac_header_compiler=no
  3853. fi
  3854. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  3855. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  3856. echo "${ECHO_T}$ac_header_compiler" >&6
  3857. # Is the header present?
  3858. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  3859. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  3860. cat >conftest.$ac_ext <<_ACEOF
  3861. /* confdefs.h. */
  3862. _ACEOF
  3863. cat confdefs.h >>conftest.$ac_ext
  3864. cat >>conftest.$ac_ext <<_ACEOF
  3865. /* end confdefs.h. */
  3866. #include <$ac_header>
  3867. _ACEOF
  3868. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  3869. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  3870. ac_status=$?
  3871. grep -v '^ *+' conftest.er1 >conftest.err
  3872. rm -f conftest.er1
  3873. cat conftest.err >&5
  3874. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3875. (exit $ac_status); } >/dev/null; then
  3876. if test -s conftest.err; then
  3877. ac_cpp_err=$ac_c_preproc_warn_flag
  3878. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  3879. else
  3880. ac_cpp_err=
  3881. fi
  3882. else
  3883. ac_cpp_err=yes
  3884. fi
  3885. if test -z "$ac_cpp_err"; then
  3886. ac_header_preproc=yes
  3887. else
  3888. echo "$as_me: failed program was:" >&5
  3889. sed 's/^/| /' conftest.$ac_ext >&5
  3890. ac_header_preproc=no
  3891. fi
  3892. rm -f conftest.err conftest.$ac_ext
  3893. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  3894. echo "${ECHO_T}$ac_header_preproc" >&6
  3895. # So? What about this header?
  3896. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  3897. yes:no: )
  3898. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  3899. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  3900. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  3901. echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  3902. ac_header_preproc=yes
  3903. ;;
  3904. no:yes:* )
  3905. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  3906. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  3907. { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  3908. echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  3909. { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  3910. echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  3911. { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  3912. echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  3913. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  3914. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  3915. { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  3916. echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  3917. (
  3918. cat <<\_ASBOX
  3919. ## ------------------------------------------ ##
  3920. ## Report this to the AC_PACKAGE_NAME lists. ##
  3921. ## ------------------------------------------ ##
  3922. _ASBOX
  3923. ) |
  3924. sed "s/^/$as_me: WARNING: /" >&2
  3925. ;;
  3926. esac
  3927. echo "$as_me:$LINENO: checking for $ac_header" >&5
  3928. echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  3929. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  3930. echo $ECHO_N "(cached) $ECHO_C" >&6
  3931. else
  3932. eval "$as_ac_Header=\$ac_header_preproc"
  3933. fi
  3934. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  3935. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  3936. fi
  3937. if test `eval echo '${'$as_ac_Header'}'` = yes; then
  3938. cat >>confdefs.h <<_ACEOF
  3939. #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3940. _ACEOF
  3941. CFLAGS="$CFLAGS -DHAVE_XLOCALE_H"
  3942. fi
  3943. done
  3944. #
  3945. # Memory manager
  3946. #
  3947. case $enable_manager in
  3948. "no")
  3949. CFLAGS="$CFLAGS -DNO_MEMMGR"
  3950. ;;
  3951. "builtin")
  3952. # enabled by default
  3953. ;;
  3954. "memwatch")
  3955. CFLAGS="$CFLAGS -DMEMWATCH"
  3956. if test "${ac_cv_header_memwatch_h+set}" = set; then
  3957. echo "$as_me:$LINENO: checking for memwatch.h" >&5
  3958. echo $ECHO_N "checking for memwatch.h... $ECHO_C" >&6
  3959. if test "${ac_cv_header_memwatch_h+set}" = set; then
  3960. echo $ECHO_N "(cached) $ECHO_C" >&6
  3961. fi
  3962. echo "$as_me:$LINENO: result: $ac_cv_header_memwatch_h" >&5
  3963. echo "${ECHO_T}$ac_cv_header_memwatch_h" >&6
  3964. else
  3965. # Is the header compilable?
  3966. echo "$as_me:$LINENO: checking memwatch.h usability" >&5
  3967. echo $ECHO_N "checking memwatch.h usability... $ECHO_C" >&6
  3968. cat >conftest.$ac_ext <<_ACEOF
  3969. /* confdefs.h. */
  3970. _ACEOF
  3971. cat confdefs.h >>conftest.$ac_ext
  3972. cat >>conftest.$ac_ext <<_ACEOF
  3973. /* end confdefs.h. */
  3974. $ac_includes_default
  3975. #include <memwatch.h>
  3976. _ACEOF
  3977. rm -f conftest.$ac_objext
  3978. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  3979. (eval $ac_compile) 2>conftest.er1
  3980. ac_status=$?
  3981. grep -v '^ *+' conftest.er1 >conftest.err
  3982. rm -f conftest.er1
  3983. cat conftest.err >&5
  3984. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3985. (exit $ac_status); } &&
  3986. { ac_try='test -z "$ac_c_werror_flag"
  3987. || test ! -s conftest.err'
  3988. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3989. (eval $ac_try) 2>&5
  3990. ac_status=$?
  3991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3992. (exit $ac_status); }; } &&
  3993. { ac_try='test -s conftest.$ac_objext'
  3994. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  3995. (eval $ac_try) 2>&5
  3996. ac_status=$?
  3997. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3998. (exit $ac_status); }; }; then
  3999. ac_header_compiler=yes
  4000. else
  4001. echo "$as_me: failed program was:" >&5
  4002. sed 's/^/| /' conftest.$ac_ext >&5
  4003. ac_header_compiler=no
  4004. fi
  4005. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4006. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4007. echo "${ECHO_T}$ac_header_compiler" >&6
  4008. # Is the header present?
  4009. echo "$as_me:$LINENO: checking memwatch.h presence" >&5
  4010. echo $ECHO_N "checking memwatch.h presence... $ECHO_C" >&6
  4011. cat >conftest.$ac_ext <<_ACEOF
  4012. /* confdefs.h. */
  4013. _ACEOF
  4014. cat confdefs.h >>conftest.$ac_ext
  4015. cat >>conftest.$ac_ext <<_ACEOF
  4016. /* end confdefs.h. */
  4017. #include <memwatch.h>
  4018. _ACEOF
  4019. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4020. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4021. ac_status=$?
  4022. grep -v '^ *+' conftest.er1 >conftest.err
  4023. rm -f conftest.er1
  4024. cat conftest.err >&5
  4025. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4026. (exit $ac_status); } >/dev/null; then
  4027. if test -s conftest.err; then
  4028. ac_cpp_err=$ac_c_preproc_warn_flag
  4029. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4030. else
  4031. ac_cpp_err=
  4032. fi
  4033. else
  4034. ac_cpp_err=yes
  4035. fi
  4036. if test -z "$ac_cpp_err"; then
  4037. ac_header_preproc=yes
  4038. else
  4039. echo "$as_me: failed program was:" >&5
  4040. sed 's/^/| /' conftest.$ac_ext >&5
  4041. ac_header_preproc=no
  4042. fi
  4043. rm -f conftest.err conftest.$ac_ext
  4044. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4045. echo "${ECHO_T}$ac_header_preproc" >&6
  4046. # So? What about this header?
  4047. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4048. yes:no: )
  4049. { echo "$as_me:$LINENO: WARNING: memwatch.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4050. echo "$as_me: WARNING: memwatch.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4051. { echo "$as_me:$LINENO: WARNING: memwatch.h: proceeding with the compiler's result" >&5
  4052. echo "$as_me: WARNING: memwatch.h: proceeding with the compiler's result" >&2;}
  4053. ac_header_preproc=yes
  4054. ;;
  4055. no:yes:* )
  4056. { echo "$as_me:$LINENO: WARNING: memwatch.h: present but cannot be compiled" >&5
  4057. echo "$as_me: WARNING: memwatch.h: present but cannot be compiled" >&2;}
  4058. { echo "$as_me:$LINENO: WARNING: memwatch.h: check for missing prerequisite headers?" >&5
  4059. echo "$as_me: WARNING: memwatch.h: check for missing prerequisite headers?" >&2;}
  4060. { echo "$as_me:$LINENO: WARNING: memwatch.h: see the Autoconf documentation" >&5
  4061. echo "$as_me: WARNING: memwatch.h: see the Autoconf documentation" >&2;}
  4062. { echo "$as_me:$LINENO: WARNING: memwatch.h: section \"Present But Cannot Be Compiled\"" >&5
  4063. echo "$as_me: WARNING: memwatch.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4064. { echo "$as_me:$LINENO: WARNING: memwatch.h: proceeding with the preprocessor's result" >&5
  4065. echo "$as_me: WARNING: memwatch.h: proceeding with the preprocessor's result" >&2;}
  4066. { echo "$as_me:$LINENO: WARNING: memwatch.h: in the future, the compiler will take precedence" >&5
  4067. echo "$as_me: WARNING: memwatch.h: in the future, the compiler will take precedence" >&2;}
  4068. (
  4069. cat <<\_ASBOX
  4070. ## ------------------------------------------ ##
  4071. ## Report this to the AC_PACKAGE_NAME lists. ##
  4072. ## ------------------------------------------ ##
  4073. _ASBOX
  4074. ) |
  4075. sed "s/^/$as_me: WARNING: /" >&2
  4076. ;;
  4077. esac
  4078. echo "$as_me:$LINENO: checking for memwatch.h" >&5
  4079. echo $ECHO_N "checking for memwatch.h... $ECHO_C" >&6
  4080. if test "${ac_cv_header_memwatch_h+set}" = set; then
  4081. echo $ECHO_N "(cached) $ECHO_C" >&6
  4082. else
  4083. ac_cv_header_memwatch_h=$ac_header_preproc
  4084. fi
  4085. echo "$as_me:$LINENO: result: $ac_cv_header_memwatch_h" >&5
  4086. echo "${ECHO_T}$ac_cv_header_memwatch_h" >&6
  4087. fi
  4088. if test $ac_cv_header_memwatch_h = yes; then
  4089. :
  4090. else
  4091. { { echo "$as_me:$LINENO: error: memwatch header not found... stopping" >&5
  4092. echo "$as_me: error: memwatch header not found... stopping" >&2;}
  4093. { (exit 1); exit 1; }; }
  4094. fi
  4095. ;;
  4096. "dmalloc")
  4097. CFLAGS="$CFLAGS -DDMALLOC -DDMALLOC_FUNC_CHECK"
  4098. LIBS="$LIBS -ldmalloc"
  4099. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  4100. echo "$as_me:$LINENO: checking for dmalloc.h" >&5
  4101. echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
  4102. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  4103. echo $ECHO_N "(cached) $ECHO_C" >&6
  4104. fi
  4105. echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
  4106. echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
  4107. else
  4108. # Is the header compilable?
  4109. echo "$as_me:$LINENO: checking dmalloc.h usability" >&5
  4110. echo $ECHO_N "checking dmalloc.h usability... $ECHO_C" >&6
  4111. cat >conftest.$ac_ext <<_ACEOF
  4112. /* confdefs.h. */
  4113. _ACEOF
  4114. cat confdefs.h >>conftest.$ac_ext
  4115. cat >>conftest.$ac_ext <<_ACEOF
  4116. /* end confdefs.h. */
  4117. $ac_includes_default
  4118. #include <dmalloc.h>
  4119. _ACEOF
  4120. rm -f conftest.$ac_objext
  4121. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4122. (eval $ac_compile) 2>conftest.er1
  4123. ac_status=$?
  4124. grep -v '^ *+' conftest.er1 >conftest.err
  4125. rm -f conftest.er1
  4126. cat conftest.err >&5
  4127. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4128. (exit $ac_status); } &&
  4129. { ac_try='test -z "$ac_c_werror_flag"
  4130. || test ! -s conftest.err'
  4131. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4132. (eval $ac_try) 2>&5
  4133. ac_status=$?
  4134. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4135. (exit $ac_status); }; } &&
  4136. { ac_try='test -s conftest.$ac_objext'
  4137. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4138. (eval $ac_try) 2>&5
  4139. ac_status=$?
  4140. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4141. (exit $ac_status); }; }; then
  4142. ac_header_compiler=yes
  4143. else
  4144. echo "$as_me: failed program was:" >&5
  4145. sed 's/^/| /' conftest.$ac_ext >&5
  4146. ac_header_compiler=no
  4147. fi
  4148. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4149. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4150. echo "${ECHO_T}$ac_header_compiler" >&6
  4151. # Is the header present?
  4152. echo "$as_me:$LINENO: checking dmalloc.h presence" >&5
  4153. echo $ECHO_N "checking dmalloc.h presence... $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. #include <dmalloc.h>
  4161. _ACEOF
  4162. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4163. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4164. ac_status=$?
  4165. grep -v '^ *+' conftest.er1 >conftest.err
  4166. rm -f conftest.er1
  4167. cat conftest.err >&5
  4168. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4169. (exit $ac_status); } >/dev/null; then
  4170. if test -s conftest.err; then
  4171. ac_cpp_err=$ac_c_preproc_warn_flag
  4172. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4173. else
  4174. ac_cpp_err=
  4175. fi
  4176. else
  4177. ac_cpp_err=yes
  4178. fi
  4179. if test -z "$ac_cpp_err"; then
  4180. ac_header_preproc=yes
  4181. else
  4182. echo "$as_me: failed program was:" >&5
  4183. sed 's/^/| /' conftest.$ac_ext >&5
  4184. ac_header_preproc=no
  4185. fi
  4186. rm -f conftest.err conftest.$ac_ext
  4187. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4188. echo "${ECHO_T}$ac_header_preproc" >&6
  4189. # So? What about this header?
  4190. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4191. yes:no: )
  4192. { echo "$as_me:$LINENO: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4193. echo "$as_me: WARNING: dmalloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4194. { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the compiler's result" >&5
  4195. echo "$as_me: WARNING: dmalloc.h: proceeding with the compiler's result" >&2;}
  4196. ac_header_preproc=yes
  4197. ;;
  4198. no:yes:* )
  4199. { echo "$as_me:$LINENO: WARNING: dmalloc.h: present but cannot be compiled" >&5
  4200. echo "$as_me: WARNING: dmalloc.h: present but cannot be compiled" >&2;}
  4201. { echo "$as_me:$LINENO: WARNING: dmalloc.h: check for missing prerequisite headers?" >&5
  4202. echo "$as_me: WARNING: dmalloc.h: check for missing prerequisite headers?" >&2;}
  4203. { echo "$as_me:$LINENO: WARNING: dmalloc.h: see the Autoconf documentation" >&5
  4204. echo "$as_me: WARNING: dmalloc.h: see the Autoconf documentation" >&2;}
  4205. { echo "$as_me:$LINENO: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&5
  4206. echo "$as_me: WARNING: dmalloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4207. { echo "$as_me:$LINENO: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&5
  4208. echo "$as_me: WARNING: dmalloc.h: proceeding with the preprocessor's result" >&2;}
  4209. { echo "$as_me:$LINENO: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&5
  4210. echo "$as_me: WARNING: dmalloc.h: in the future, the compiler will take precedence" >&2;}
  4211. (
  4212. cat <<\_ASBOX
  4213. ## ------------------------------------------ ##
  4214. ## Report this to the AC_PACKAGE_NAME lists. ##
  4215. ## ------------------------------------------ ##
  4216. _ASBOX
  4217. ) |
  4218. sed "s/^/$as_me: WARNING: /" >&2
  4219. ;;
  4220. esac
  4221. echo "$as_me:$LINENO: checking for dmalloc.h" >&5
  4222. echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
  4223. if test "${ac_cv_header_dmalloc_h+set}" = set; then
  4224. echo $ECHO_N "(cached) $ECHO_C" >&6
  4225. else
  4226. ac_cv_header_dmalloc_h=$ac_header_preproc
  4227. fi
  4228. echo "$as_me:$LINENO: result: $ac_cv_header_dmalloc_h" >&5
  4229. echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
  4230. fi
  4231. if test $ac_cv_header_dmalloc_h = yes; then
  4232. :
  4233. else
  4234. { { echo "$as_me:$LINENO: error: dmalloc header not found... stopping" >&5
  4235. echo "$as_me: error: dmalloc header not found... stopping" >&2;}
  4236. { (exit 1); exit 1; }; }
  4237. fi
  4238. ;;
  4239. "gcollect")
  4240. CFLAGS="$CFLAGS -DGCOLLECT"
  4241. LIBS="$LIBS -lgc"
  4242. if test "${ac_cv_header_gc_h+set}" = set; then
  4243. echo "$as_me:$LINENO: checking for gc.h" >&5
  4244. echo $ECHO_N "checking for gc.h... $ECHO_C" >&6
  4245. if test "${ac_cv_header_gc_h+set}" = set; then
  4246. echo $ECHO_N "(cached) $ECHO_C" >&6
  4247. fi
  4248. echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
  4249. echo "${ECHO_T}$ac_cv_header_gc_h" >&6
  4250. else
  4251. # Is the header compilable?
  4252. echo "$as_me:$LINENO: checking gc.h usability" >&5
  4253. echo $ECHO_N "checking gc.h usability... $ECHO_C" >&6
  4254. cat >conftest.$ac_ext <<_ACEOF
  4255. /* confdefs.h. */
  4256. _ACEOF
  4257. cat confdefs.h >>conftest.$ac_ext
  4258. cat >>conftest.$ac_ext <<_ACEOF
  4259. /* end confdefs.h. */
  4260. $ac_includes_default
  4261. #include <gc.h>
  4262. _ACEOF
  4263. rm -f conftest.$ac_objext
  4264. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4265. (eval $ac_compile) 2>conftest.er1
  4266. ac_status=$?
  4267. grep -v '^ *+' conftest.er1 >conftest.err
  4268. rm -f conftest.er1
  4269. cat conftest.err >&5
  4270. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4271. (exit $ac_status); } &&
  4272. { ac_try='test -z "$ac_c_werror_flag"
  4273. || test ! -s conftest.err'
  4274. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4275. (eval $ac_try) 2>&5
  4276. ac_status=$?
  4277. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4278. (exit $ac_status); }; } &&
  4279. { ac_try='test -s conftest.$ac_objext'
  4280. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4281. (eval $ac_try) 2>&5
  4282. ac_status=$?
  4283. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4284. (exit $ac_status); }; }; then
  4285. ac_header_compiler=yes
  4286. else
  4287. echo "$as_me: failed program was:" >&5
  4288. sed 's/^/| /' conftest.$ac_ext >&5
  4289. ac_header_compiler=no
  4290. fi
  4291. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4292. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4293. echo "${ECHO_T}$ac_header_compiler" >&6
  4294. # Is the header present?
  4295. echo "$as_me:$LINENO: checking gc.h presence" >&5
  4296. echo $ECHO_N "checking gc.h presence... $ECHO_C" >&6
  4297. cat >conftest.$ac_ext <<_ACEOF
  4298. /* confdefs.h. */
  4299. _ACEOF
  4300. cat confdefs.h >>conftest.$ac_ext
  4301. cat >>conftest.$ac_ext <<_ACEOF
  4302. /* end confdefs.h. */
  4303. #include <gc.h>
  4304. _ACEOF
  4305. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4306. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4307. ac_status=$?
  4308. grep -v '^ *+' conftest.er1 >conftest.err
  4309. rm -f conftest.er1
  4310. cat conftest.err >&5
  4311. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4312. (exit $ac_status); } >/dev/null; then
  4313. if test -s conftest.err; then
  4314. ac_cpp_err=$ac_c_preproc_warn_flag
  4315. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4316. else
  4317. ac_cpp_err=
  4318. fi
  4319. else
  4320. ac_cpp_err=yes
  4321. fi
  4322. if test -z "$ac_cpp_err"; then
  4323. ac_header_preproc=yes
  4324. else
  4325. echo "$as_me: failed program was:" >&5
  4326. sed 's/^/| /' conftest.$ac_ext >&5
  4327. ac_header_preproc=no
  4328. fi
  4329. rm -f conftest.err conftest.$ac_ext
  4330. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4331. echo "${ECHO_T}$ac_header_preproc" >&6
  4332. # So? What about this header?
  4333. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4334. yes:no: )
  4335. { echo "$as_me:$LINENO: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4336. echo "$as_me: WARNING: gc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4337. { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the compiler's result" >&5
  4338. echo "$as_me: WARNING: gc.h: proceeding with the compiler's result" >&2;}
  4339. ac_header_preproc=yes
  4340. ;;
  4341. no:yes:* )
  4342. { echo "$as_me:$LINENO: WARNING: gc.h: present but cannot be compiled" >&5
  4343. echo "$as_me: WARNING: gc.h: present but cannot be compiled" >&2;}
  4344. { echo "$as_me:$LINENO: WARNING: gc.h: check for missing prerequisite headers?" >&5
  4345. echo "$as_me: WARNING: gc.h: check for missing prerequisite headers?" >&2;}
  4346. { echo "$as_me:$LINENO: WARNING: gc.h: see the Autoconf documentation" >&5
  4347. echo "$as_me: WARNING: gc.h: see the Autoconf documentation" >&2;}
  4348. { echo "$as_me:$LINENO: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&5
  4349. echo "$as_me: WARNING: gc.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4350. { echo "$as_me:$LINENO: WARNING: gc.h: proceeding with the preprocessor's result" >&5
  4351. echo "$as_me: WARNING: gc.h: proceeding with the preprocessor's result" >&2;}
  4352. { echo "$as_me:$LINENO: WARNING: gc.h: in the future, the compiler will take precedence" >&5
  4353. echo "$as_me: WARNING: gc.h: in the future, the compiler will take precedence" >&2;}
  4354. (
  4355. cat <<\_ASBOX
  4356. ## ------------------------------------------ ##
  4357. ## Report this to the AC_PACKAGE_NAME lists. ##
  4358. ## ------------------------------------------ ##
  4359. _ASBOX
  4360. ) |
  4361. sed "s/^/$as_me: WARNING: /" >&2
  4362. ;;
  4363. esac
  4364. echo "$as_me:$LINENO: checking for gc.h" >&5
  4365. echo $ECHO_N "checking for gc.h... $ECHO_C" >&6
  4366. if test "${ac_cv_header_gc_h+set}" = set; then
  4367. echo $ECHO_N "(cached) $ECHO_C" >&6
  4368. else
  4369. ac_cv_header_gc_h=$ac_header_preproc
  4370. fi
  4371. echo "$as_me:$LINENO: result: $ac_cv_header_gc_h" >&5
  4372. echo "${ECHO_T}$ac_cv_header_gc_h" >&6
  4373. fi
  4374. if test $ac_cv_header_gc_h = yes; then
  4375. :
  4376. else
  4377. { { echo "$as_me:$LINENO: error: gcollect header not found... stopping" >&5
  4378. echo "$as_me: error: gcollect header not found... stopping" >&2;}
  4379. { (exit 1); exit 1; }; }
  4380. fi
  4381. ;;
  4382. "bcheck")
  4383. CFLAGS="$CFLAGS -DBCHECK"
  4384. ;;
  4385. esac
  4386. #
  4387. # Packetver
  4388. #
  4389. if test -n "$enable_packetver" ; then
  4390. CFLAGS="$CFLAGS -DPACKETVER=$enable_packetver"
  4391. fi
  4392. #
  4393. # Debug
  4394. #
  4395. case $enable_debug in
  4396. "no")
  4397. # default value
  4398. CFLAGS="$CFLAGS -Wno-unused -Wno-parentheses"
  4399. ;;
  4400. "yes")
  4401. CFLAGS="$CFLAGS -g -DDEBUG"
  4402. ;;
  4403. "gdb")
  4404. CFLAGS="$CFLAGS -ggdb -DDEBUG"
  4405. ;;
  4406. esac
  4407. #
  4408. # Buildbot
  4409. #
  4410. case $enable_buildbot in
  4411. "no")
  4412. # default value
  4413. ;;
  4414. "yes")
  4415. CFLAGS="$CFLAGS -DBUILDBOT"
  4416. ;;
  4417. esac
  4418. #
  4419. # RDTSC
  4420. #
  4421. case $enable_rdtsc in
  4422. 0)
  4423. #default value
  4424. ;;
  4425. 1)
  4426. CFLAGS="$CFLAGS -DENABLE_RDTSC"
  4427. ;;
  4428. esac
  4429. #
  4430. # Profiler
  4431. #
  4432. case $enable_profiler in
  4433. "no")
  4434. # default value
  4435. ;;
  4436. "gprof")
  4437. CFLAGS="$CFLAGS -pg"
  4438. LDFLAGS="$LDFLAGS -pg"
  4439. ;;
  4440. esac
  4441. #
  4442. # zlib library (required)
  4443. #
  4444. if test -n "${ZLIB_HOME}" ; then
  4445. LDFLAGS="$LDFLAGS -L${ZLIB_HOME}/lib"
  4446. CPPFLAGS="$CPPFLAGS -I${ZLIB_HOME}/include"
  4447. fi
  4448. echo "$as_me:$LINENO: checking for inflateEnd in -lz" >&5
  4449. echo $ECHO_N "checking for inflateEnd in -lz... $ECHO_C" >&6
  4450. if test "${ac_cv_lib_z_inflateEnd+set}" = set; then
  4451. echo $ECHO_N "(cached) $ECHO_C" >&6
  4452. else
  4453. ac_check_lib_save_LIBS=$LIBS
  4454. LIBS="-lz $LIBS"
  4455. cat >conftest.$ac_ext <<_ACEOF
  4456. /* confdefs.h. */
  4457. _ACEOF
  4458. cat confdefs.h >>conftest.$ac_ext
  4459. cat >>conftest.$ac_ext <<_ACEOF
  4460. /* end confdefs.h. */
  4461. /* Override any gcc2 internal prototype to avoid an error. */
  4462. #ifdef __cplusplus
  4463. extern "C"
  4464. #endif
  4465. /* We use char because int might match the return type of a gcc2
  4466. builtin and then its argument prototype would still apply. */
  4467. char inflateEnd ();
  4468. int
  4469. main ()
  4470. {
  4471. inflateEnd ();
  4472. ;
  4473. return 0;
  4474. }
  4475. _ACEOF
  4476. rm -f conftest.$ac_objext conftest$ac_exeext
  4477. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4478. (eval $ac_link) 2>conftest.er1
  4479. ac_status=$?
  4480. grep -v '^ *+' conftest.er1 >conftest.err
  4481. rm -f conftest.er1
  4482. cat conftest.err >&5
  4483. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4484. (exit $ac_status); } &&
  4485. { ac_try='test -z "$ac_c_werror_flag"
  4486. || test ! -s conftest.err'
  4487. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4488. (eval $ac_try) 2>&5
  4489. ac_status=$?
  4490. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4491. (exit $ac_status); }; } &&
  4492. { ac_try='test -s conftest$ac_exeext'
  4493. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4494. (eval $ac_try) 2>&5
  4495. ac_status=$?
  4496. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4497. (exit $ac_status); }; }; then
  4498. ac_cv_lib_z_inflateEnd=yes
  4499. else
  4500. echo "$as_me: failed program was:" >&5
  4501. sed 's/^/| /' conftest.$ac_ext >&5
  4502. ac_cv_lib_z_inflateEnd=no
  4503. fi
  4504. rm -f conftest.err conftest.$ac_objext \
  4505. conftest$ac_exeext conftest.$ac_ext
  4506. LIBS=$ac_check_lib_save_LIBS
  4507. fi
  4508. echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflateEnd" >&5
  4509. echo "${ECHO_T}$ac_cv_lib_z_inflateEnd" >&6
  4510. if test $ac_cv_lib_z_inflateEnd = yes; then
  4511. cat >>confdefs.h <<_ACEOF
  4512. #define HAVE_LIBZ 1
  4513. _ACEOF
  4514. LIBS="-lz $LIBS"
  4515. else
  4516. { { echo "$as_me:$LINENO: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping" >&5
  4517. echo "$as_me: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping" >&2;}
  4518. { (exit 1); exit 1; }; }
  4519. fi
  4520. if test "${ac_cv_header_zlib_h+set}" = set; then
  4521. echo "$as_me:$LINENO: checking for zlib.h" >&5
  4522. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
  4523. if test "${ac_cv_header_zlib_h+set}" = set; then
  4524. echo $ECHO_N "(cached) $ECHO_C" >&6
  4525. fi
  4526. echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  4527. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
  4528. else
  4529. # Is the header compilable?
  4530. echo "$as_me:$LINENO: checking zlib.h usability" >&5
  4531. echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
  4532. cat >conftest.$ac_ext <<_ACEOF
  4533. /* confdefs.h. */
  4534. _ACEOF
  4535. cat confdefs.h >>conftest.$ac_ext
  4536. cat >>conftest.$ac_ext <<_ACEOF
  4537. /* end confdefs.h. */
  4538. $ac_includes_default
  4539. #include <zlib.h>
  4540. _ACEOF
  4541. rm -f conftest.$ac_objext
  4542. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  4543. (eval $ac_compile) 2>conftest.er1
  4544. ac_status=$?
  4545. grep -v '^ *+' conftest.er1 >conftest.err
  4546. rm -f conftest.er1
  4547. cat conftest.err >&5
  4548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4549. (exit $ac_status); } &&
  4550. { ac_try='test -z "$ac_c_werror_flag"
  4551. || test ! -s conftest.err'
  4552. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4553. (eval $ac_try) 2>&5
  4554. ac_status=$?
  4555. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4556. (exit $ac_status); }; } &&
  4557. { ac_try='test -s conftest.$ac_objext'
  4558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4559. (eval $ac_try) 2>&5
  4560. ac_status=$?
  4561. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4562. (exit $ac_status); }; }; then
  4563. ac_header_compiler=yes
  4564. else
  4565. echo "$as_me: failed program was:" >&5
  4566. sed 's/^/| /' conftest.$ac_ext >&5
  4567. ac_header_compiler=no
  4568. fi
  4569. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  4570. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  4571. echo "${ECHO_T}$ac_header_compiler" >&6
  4572. # Is the header present?
  4573. echo "$as_me:$LINENO: checking zlib.h presence" >&5
  4574. echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
  4575. cat >conftest.$ac_ext <<_ACEOF
  4576. /* confdefs.h. */
  4577. _ACEOF
  4578. cat confdefs.h >>conftest.$ac_ext
  4579. cat >>conftest.$ac_ext <<_ACEOF
  4580. /* end confdefs.h. */
  4581. #include <zlib.h>
  4582. _ACEOF
  4583. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  4584. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  4585. ac_status=$?
  4586. grep -v '^ *+' conftest.er1 >conftest.err
  4587. rm -f conftest.er1
  4588. cat conftest.err >&5
  4589. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4590. (exit $ac_status); } >/dev/null; then
  4591. if test -s conftest.err; then
  4592. ac_cpp_err=$ac_c_preproc_warn_flag
  4593. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  4594. else
  4595. ac_cpp_err=
  4596. fi
  4597. else
  4598. ac_cpp_err=yes
  4599. fi
  4600. if test -z "$ac_cpp_err"; then
  4601. ac_header_preproc=yes
  4602. else
  4603. echo "$as_me: failed program was:" >&5
  4604. sed 's/^/| /' conftest.$ac_ext >&5
  4605. ac_header_preproc=no
  4606. fi
  4607. rm -f conftest.err conftest.$ac_ext
  4608. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  4609. echo "${ECHO_T}$ac_header_preproc" >&6
  4610. # So? What about this header?
  4611. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  4612. yes:no: )
  4613. { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
  4614. echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  4615. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
  4616. echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
  4617. ac_header_preproc=yes
  4618. ;;
  4619. no:yes:* )
  4620. { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
  4621. echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
  4622. { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
  4623. echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
  4624. { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
  4625. echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
  4626. { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
  4627. echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
  4628. { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
  4629. echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
  4630. { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
  4631. echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
  4632. (
  4633. cat <<\_ASBOX
  4634. ## ------------------------------------------ ##
  4635. ## Report this to the AC_PACKAGE_NAME lists. ##
  4636. ## ------------------------------------------ ##
  4637. _ASBOX
  4638. ) |
  4639. sed "s/^/$as_me: WARNING: /" >&2
  4640. ;;
  4641. esac
  4642. echo "$as_me:$LINENO: checking for zlib.h" >&5
  4643. echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
  4644. if test "${ac_cv_header_zlib_h+set}" = set; then
  4645. echo $ECHO_N "(cached) $ECHO_C" >&6
  4646. else
  4647. ac_cv_header_zlib_h=$ac_header_preproc
  4648. fi
  4649. echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
  4650. echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
  4651. fi
  4652. if test $ac_cv_header_zlib_h = yes; then
  4653. :
  4654. else
  4655. { { echo "$as_me:$LINENO: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&5
  4656. echo "$as_me: error: zlib header not found, please specify the correct path with --with-zlib=DIR... stopping" >&2;}
  4657. { (exit 1); exit 1; }; }
  4658. fi
  4659. #
  4660. # math library (required)
  4661. #
  4662. echo "$as_me:$LINENO: checking for library containing sqrt" >&5
  4663. echo $ECHO_N "checking for library containing sqrt... $ECHO_C" >&6
  4664. if test "${ac_cv_search_sqrt+set}" = set; then
  4665. echo $ECHO_N "(cached) $ECHO_C" >&6
  4666. else
  4667. ac_func_search_save_LIBS=$LIBS
  4668. ac_cv_search_sqrt=no
  4669. cat >conftest.$ac_ext <<_ACEOF
  4670. /* confdefs.h. */
  4671. _ACEOF
  4672. cat confdefs.h >>conftest.$ac_ext
  4673. cat >>conftest.$ac_ext <<_ACEOF
  4674. /* end confdefs.h. */
  4675. /* Override any gcc2 internal prototype to avoid an error. */
  4676. #ifdef __cplusplus
  4677. extern "C"
  4678. #endif
  4679. /* We use char because int might match the return type of a gcc2
  4680. builtin and then its argument prototype would still apply. */
  4681. char sqrt ();
  4682. int
  4683. main ()
  4684. {
  4685. sqrt ();
  4686. ;
  4687. return 0;
  4688. }
  4689. _ACEOF
  4690. rm -f conftest.$ac_objext conftest$ac_exeext
  4691. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4692. (eval $ac_link) 2>conftest.er1
  4693. ac_status=$?
  4694. grep -v '^ *+' conftest.er1 >conftest.err
  4695. rm -f conftest.er1
  4696. cat conftest.err >&5
  4697. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4698. (exit $ac_status); } &&
  4699. { ac_try='test -z "$ac_c_werror_flag"
  4700. || test ! -s conftest.err'
  4701. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4702. (eval $ac_try) 2>&5
  4703. ac_status=$?
  4704. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4705. (exit $ac_status); }; } &&
  4706. { ac_try='test -s conftest$ac_exeext'
  4707. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4708. (eval $ac_try) 2>&5
  4709. ac_status=$?
  4710. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4711. (exit $ac_status); }; }; then
  4712. ac_cv_search_sqrt="none required"
  4713. else
  4714. echo "$as_me: failed program was:" >&5
  4715. sed 's/^/| /' conftest.$ac_ext >&5
  4716. fi
  4717. rm -f conftest.err conftest.$ac_objext \
  4718. conftest$ac_exeext conftest.$ac_ext
  4719. if test "$ac_cv_search_sqrt" = no; then
  4720. for ac_lib in m; do
  4721. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4722. cat >conftest.$ac_ext <<_ACEOF
  4723. /* confdefs.h. */
  4724. _ACEOF
  4725. cat confdefs.h >>conftest.$ac_ext
  4726. cat >>conftest.$ac_ext <<_ACEOF
  4727. /* end confdefs.h. */
  4728. /* Override any gcc2 internal prototype to avoid an error. */
  4729. #ifdef __cplusplus
  4730. extern "C"
  4731. #endif
  4732. /* We use char because int might match the return type of a gcc2
  4733. builtin and then its argument prototype would still apply. */
  4734. char sqrt ();
  4735. int
  4736. main ()
  4737. {
  4738. sqrt ();
  4739. ;
  4740. return 0;
  4741. }
  4742. _ACEOF
  4743. rm -f conftest.$ac_objext conftest$ac_exeext
  4744. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4745. (eval $ac_link) 2>conftest.er1
  4746. ac_status=$?
  4747. grep -v '^ *+' conftest.er1 >conftest.err
  4748. rm -f conftest.er1
  4749. cat conftest.err >&5
  4750. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4751. (exit $ac_status); } &&
  4752. { ac_try='test -z "$ac_c_werror_flag"
  4753. || test ! -s conftest.err'
  4754. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4755. (eval $ac_try) 2>&5
  4756. ac_status=$?
  4757. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4758. (exit $ac_status); }; } &&
  4759. { ac_try='test -s conftest$ac_exeext'
  4760. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4761. (eval $ac_try) 2>&5
  4762. ac_status=$?
  4763. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4764. (exit $ac_status); }; }; then
  4765. ac_cv_search_sqrt="-l$ac_lib"
  4766. break
  4767. else
  4768. echo "$as_me: failed program was:" >&5
  4769. sed 's/^/| /' conftest.$ac_ext >&5
  4770. fi
  4771. rm -f conftest.err conftest.$ac_objext \
  4772. conftest$ac_exeext conftest.$ac_ext
  4773. done
  4774. fi
  4775. LIBS=$ac_func_search_save_LIBS
  4776. fi
  4777. echo "$as_me:$LINENO: result: $ac_cv_search_sqrt" >&5
  4778. echo "${ECHO_T}$ac_cv_search_sqrt" >&6
  4779. if test "$ac_cv_search_sqrt" != no; then
  4780. test "$ac_cv_search_sqrt" = "none required" || LIBS="$ac_cv_search_sqrt $LIBS"
  4781. else
  4782. { { echo "$as_me:$LINENO: error: math library not found... stopping" >&5
  4783. echo "$as_me: error: math library not found... stopping" >&2;}
  4784. { (exit 1); exit 1; }; }
  4785. fi
  4786. #
  4787. # clock_gettime (optional, rt on Debian)
  4788. #
  4789. echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
  4790. echo $ECHO_N "checking for library containing clock_gettime... $ECHO_C" >&6
  4791. if test "${ac_cv_search_clock_gettime+set}" = set; then
  4792. echo $ECHO_N "(cached) $ECHO_C" >&6
  4793. else
  4794. ac_func_search_save_LIBS=$LIBS
  4795. ac_cv_search_clock_gettime=no
  4796. cat >conftest.$ac_ext <<_ACEOF
  4797. /* confdefs.h. */
  4798. _ACEOF
  4799. cat confdefs.h >>conftest.$ac_ext
  4800. cat >>conftest.$ac_ext <<_ACEOF
  4801. /* end confdefs.h. */
  4802. /* Override any gcc2 internal prototype to avoid an error. */
  4803. #ifdef __cplusplus
  4804. extern "C"
  4805. #endif
  4806. /* We use char because int might match the return type of a gcc2
  4807. builtin and then its argument prototype would still apply. */
  4808. char clock_gettime ();
  4809. int
  4810. main ()
  4811. {
  4812. clock_gettime ();
  4813. ;
  4814. return 0;
  4815. }
  4816. _ACEOF
  4817. rm -f conftest.$ac_objext conftest$ac_exeext
  4818. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4819. (eval $ac_link) 2>conftest.er1
  4820. ac_status=$?
  4821. grep -v '^ *+' conftest.er1 >conftest.err
  4822. rm -f conftest.er1
  4823. cat conftest.err >&5
  4824. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4825. (exit $ac_status); } &&
  4826. { ac_try='test -z "$ac_c_werror_flag"
  4827. || test ! -s conftest.err'
  4828. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4829. (eval $ac_try) 2>&5
  4830. ac_status=$?
  4831. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4832. (exit $ac_status); }; } &&
  4833. { ac_try='test -s conftest$ac_exeext'
  4834. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4835. (eval $ac_try) 2>&5
  4836. ac_status=$?
  4837. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4838. (exit $ac_status); }; }; then
  4839. ac_cv_search_clock_gettime="none required"
  4840. else
  4841. echo "$as_me: failed program was:" >&5
  4842. sed 's/^/| /' conftest.$ac_ext >&5
  4843. fi
  4844. rm -f conftest.err conftest.$ac_objext \
  4845. conftest$ac_exeext conftest.$ac_ext
  4846. if test "$ac_cv_search_clock_gettime" = no; then
  4847. for ac_lib in rt; do
  4848. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  4849. cat >conftest.$ac_ext <<_ACEOF
  4850. /* confdefs.h. */
  4851. _ACEOF
  4852. cat confdefs.h >>conftest.$ac_ext
  4853. cat >>conftest.$ac_ext <<_ACEOF
  4854. /* end confdefs.h. */
  4855. /* Override any gcc2 internal prototype to avoid an error. */
  4856. #ifdef __cplusplus
  4857. extern "C"
  4858. #endif
  4859. /* We use char because int might match the return type of a gcc2
  4860. builtin and then its argument prototype would still apply. */
  4861. char clock_gettime ();
  4862. int
  4863. main ()
  4864. {
  4865. clock_gettime ();
  4866. ;
  4867. return 0;
  4868. }
  4869. _ACEOF
  4870. rm -f conftest.$ac_objext conftest$ac_exeext
  4871. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4872. (eval $ac_link) 2>conftest.er1
  4873. ac_status=$?
  4874. grep -v '^ *+' conftest.er1 >conftest.err
  4875. rm -f conftest.er1
  4876. cat conftest.err >&5
  4877. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4878. (exit $ac_status); } &&
  4879. { ac_try='test -z "$ac_c_werror_flag"
  4880. || test ! -s conftest.err'
  4881. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4882. (eval $ac_try) 2>&5
  4883. ac_status=$?
  4884. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4885. (exit $ac_status); }; } &&
  4886. { ac_try='test -s conftest$ac_exeext'
  4887. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4888. (eval $ac_try) 2>&5
  4889. ac_status=$?
  4890. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4891. (exit $ac_status); }; }; then
  4892. ac_cv_search_clock_gettime="-l$ac_lib"
  4893. break
  4894. else
  4895. echo "$as_me: failed program was:" >&5
  4896. sed 's/^/| /' conftest.$ac_ext >&5
  4897. fi
  4898. rm -f conftest.err conftest.$ac_objext \
  4899. conftest$ac_exeext conftest.$ac_ext
  4900. done
  4901. fi
  4902. LIBS=$ac_func_search_save_LIBS
  4903. fi
  4904. echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
  4905. echo "${ECHO_T}$ac_cv_search_clock_gettime" >&6
  4906. if test "$ac_cv_search_clock_gettime" != no; then
  4907. test "$ac_cv_search_clock_gettime" = "none required" || LIBS="$ac_cv_search_clock_gettime $LIBS"
  4908. fi
  4909. #
  4910. # CLOCK_MONOTONIC clock for clock_gettime
  4911. # Normally defines _POSIX_TIMERS > 0 and _POSIX_MONOTONIC_CLOCK (for posix
  4912. # compliant systems) and __FreeBSD_cc_version >= 500005 (for FreeBSD
  4913. # >= 5.1.0, which does not have the posix defines (ref. r11983)) would be
  4914. # checked but some systems define them even when they do not support it
  4915. # (ref. bugreport:1003).
  4916. #
  4917. if test "$ac_cv_search_clock_gettime" != "no" ; then
  4918. echo "$as_me:$LINENO: checking whether CLOCK_MONOTONIC is supported and works" >&5
  4919. echo $ECHO_N "checking whether CLOCK_MONOTONIC is supported and works... $ECHO_C" >&6
  4920. if test "$cross_compiling" = yes; then
  4921. echo "$as_me:$LINENO: result: guessing no" >&5
  4922. echo "${ECHO_T}guessing no" >&6
  4923. else
  4924. cat >conftest.$ac_ext <<_ACEOF
  4925. #include <sys/time.h>
  4926. #include <time.h>
  4927. #include <unistd.h>
  4928. int main(int argc, char** argv)
  4929. {
  4930. struct timespec tval;
  4931. return clock_gettime(CLOCK_MONOTONIC, &tval);
  4932. }
  4933. _ACEOF
  4934. rm -f conftest$ac_exeext
  4935. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  4936. (eval $ac_link) 2>&5
  4937. ac_status=$?
  4938. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4939. (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  4940. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  4941. (eval $ac_try) 2>&5
  4942. ac_status=$?
  4943. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4944. (exit $ac_status); }; }; then
  4945. echo "$as_me:$LINENO: result: yes" >&5
  4946. echo "${ECHO_T}yes" >&6
  4947. CFLAGS="$CFLAGS -DHAVE_MONOTONIC_CLOCK"
  4948. else
  4949. echo "$as_me: program exited with status $ac_status" >&5
  4950. echo "$as_me: failed program was:" >&5
  4951. sed 's/^/| /' conftest.$ac_ext >&5
  4952. ( exit $ac_status )
  4953. # either it failed to compile (CLOCK_MONOTONIC undefined)
  4954. # or clock_gettime has returned a non-zero value
  4955. echo "$as_me:$LINENO: result: no" >&5
  4956. echo "${ECHO_T}no" >&6
  4957. fi
  4958. rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  4959. fi
  4960. fi
  4961. #
  4962. # MySQL library
  4963. #
  4964. if test -z "$MYSQL_CONFIG_HOME"; then
  4965. # Extract the first word of "mysql_config", so it can be a program name with args.
  4966. set dummy mysql_config; ac_word=$2
  4967. echo "$as_me:$LINENO: checking for $ac_word" >&5
  4968. echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  4969. if test "${ac_cv_path_MYSQL_CONFIG_HOME+set}" = set; then
  4970. echo $ECHO_N "(cached) $ECHO_C" >&6
  4971. else
  4972. case $MYSQL_CONFIG_HOME in
  4973. [\\/]* | ?:[\\/]*)
  4974. ac_cv_path_MYSQL_CONFIG_HOME="$MYSQL_CONFIG_HOME" # Let the user override the test with a path.
  4975. ;;
  4976. *)
  4977. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4978. for as_dir in $PATH
  4979. do
  4980. IFS=$as_save_IFS
  4981. test -z "$as_dir" && as_dir=.
  4982. for ac_exec_ext in '' $ac_executable_extensions; do
  4983. if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4984. ac_cv_path_MYSQL_CONFIG_HOME="$as_dir/$ac_word$ac_exec_ext"
  4985. echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  4986. break 2
  4987. fi
  4988. done
  4989. done
  4990. test -z "$ac_cv_path_MYSQL_CONFIG_HOME" && ac_cv_path_MYSQL_CONFIG_HOME="no"
  4991. ;;
  4992. esac
  4993. fi
  4994. MYSQL_CONFIG_HOME=$ac_cv_path_MYSQL_CONFIG_HOME
  4995. if test -n "$MYSQL_CONFIG_HOME"; then
  4996. echo "$as_me:$LINENO: result: $MYSQL_CONFIG_HOME" >&5
  4997. echo "${ECHO_T}$MYSQL_CONFIG_HOME" >&6
  4998. else
  4999. echo "$as_me:$LINENO: result: no" >&5
  5000. echo "${ECHO_T}no" >&6
  5001. fi
  5002. fi
  5003. if test "$MYSQL_CONFIG_HOME" != "no" ; then
  5004. MYSQL_VERSION="`$MYSQL_CONFIG_HOME --version`"
  5005. if test "$manual_MYSQL_CFLAGS" = "no" ; then
  5006. MYSQL_CFLAGS="`$MYSQL_CONFIG_HOME --include`"
  5007. fi
  5008. if test "$manual_MYSQL_LIBS" = "no" ; then
  5009. MYSQL_LIBS="`$MYSQL_CONFIG_HOME --libs`"
  5010. fi
  5011. else
  5012. MYSQL_VERSION="unknown"
  5013. fi
  5014. MYSQL_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS $MYSQL_LIBS"
  5015. MYSQL_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS $MYSQL_CFLAGS"
  5016. echo "$as_me:$LINENO: checking for mysql_init in -lmysqlclient" >&5
  5017. echo $ECHO_N "checking for mysql_init in -lmysqlclient... $ECHO_C" >&6
  5018. if test "${ac_cv_lib_mysqlclient_mysql_init+set}" = set; then
  5019. echo $ECHO_N "(cached) $ECHO_C" >&6
  5020. else
  5021. ac_check_lib_save_LIBS=$LIBS
  5022. LIBS="-lmysqlclient $LIBS"
  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. /* Override any gcc2 internal prototype to avoid an error. */
  5030. #ifdef __cplusplus
  5031. extern "C"
  5032. #endif
  5033. /* We use char because int might match the return type of a gcc2
  5034. builtin and then its argument prototype would still apply. */
  5035. char mysql_init ();
  5036. int
  5037. main ()
  5038. {
  5039. mysql_init ();
  5040. ;
  5041. return 0;
  5042. }
  5043. _ACEOF
  5044. rm -f conftest.$ac_objext conftest$ac_exeext
  5045. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5046. (eval $ac_link) 2>conftest.er1
  5047. ac_status=$?
  5048. grep -v '^ *+' conftest.er1 >conftest.err
  5049. rm -f conftest.er1
  5050. cat conftest.err >&5
  5051. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5052. (exit $ac_status); } &&
  5053. { ac_try='test -z "$ac_c_werror_flag"
  5054. || test ! -s conftest.err'
  5055. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5056. (eval $ac_try) 2>&5
  5057. ac_status=$?
  5058. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5059. (exit $ac_status); }; } &&
  5060. { ac_try='test -s conftest$ac_exeext'
  5061. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5062. (eval $ac_try) 2>&5
  5063. ac_status=$?
  5064. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5065. (exit $ac_status); }; }; then
  5066. ac_cv_lib_mysqlclient_mysql_init=yes
  5067. else
  5068. echo "$as_me: failed program was:" >&5
  5069. sed 's/^/| /' conftest.$ac_ext >&5
  5070. ac_cv_lib_mysqlclient_mysql_init=no
  5071. fi
  5072. rm -f conftest.err conftest.$ac_objext \
  5073. conftest$ac_exeext conftest.$ac_ext
  5074. LIBS=$ac_check_lib_save_LIBS
  5075. fi
  5076. echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
  5077. echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_init" >&6
  5078. if test $ac_cv_lib_mysqlclient_mysql_init = yes; then
  5079. HAVE_MYSQL="yes"
  5080. fi
  5081. if test "${ac_cv_header_mysql_h+set}" = set; then
  5082. echo "$as_me:$LINENO: checking for mysql.h" >&5
  5083. echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
  5084. if test "${ac_cv_header_mysql_h+set}" = set; then
  5085. echo $ECHO_N "(cached) $ECHO_C" >&6
  5086. fi
  5087. echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
  5088. echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
  5089. else
  5090. # Is the header compilable?
  5091. echo "$as_me:$LINENO: checking mysql.h usability" >&5
  5092. echo $ECHO_N "checking mysql.h usability... $ECHO_C" >&6
  5093. cat >conftest.$ac_ext <<_ACEOF
  5094. /* confdefs.h. */
  5095. _ACEOF
  5096. cat confdefs.h >>conftest.$ac_ext
  5097. cat >>conftest.$ac_ext <<_ACEOF
  5098. /* end confdefs.h. */
  5099. $ac_includes_default
  5100. #include <mysql.h>
  5101. _ACEOF
  5102. rm -f conftest.$ac_objext
  5103. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  5104. (eval $ac_compile) 2>conftest.er1
  5105. ac_status=$?
  5106. grep -v '^ *+' conftest.er1 >conftest.err
  5107. rm -f conftest.er1
  5108. cat conftest.err >&5
  5109. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5110. (exit $ac_status); } &&
  5111. { ac_try='test -z "$ac_c_werror_flag"
  5112. || test ! -s conftest.err'
  5113. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5114. (eval $ac_try) 2>&5
  5115. ac_status=$?
  5116. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5117. (exit $ac_status); }; } &&
  5118. { ac_try='test -s conftest.$ac_objext'
  5119. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5120. (eval $ac_try) 2>&5
  5121. ac_status=$?
  5122. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5123. (exit $ac_status); }; }; then
  5124. ac_header_compiler=yes
  5125. else
  5126. echo "$as_me: failed program was:" >&5
  5127. sed 's/^/| /' conftest.$ac_ext >&5
  5128. ac_header_compiler=no
  5129. fi
  5130. rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  5131. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  5132. echo "${ECHO_T}$ac_header_compiler" >&6
  5133. # Is the header present?
  5134. echo "$as_me:$LINENO: checking mysql.h presence" >&5
  5135. echo $ECHO_N "checking mysql.h presence... $ECHO_C" >&6
  5136. cat >conftest.$ac_ext <<_ACEOF
  5137. /* confdefs.h. */
  5138. _ACEOF
  5139. cat confdefs.h >>conftest.$ac_ext
  5140. cat >>conftest.$ac_ext <<_ACEOF
  5141. /* end confdefs.h. */
  5142. #include <mysql.h>
  5143. _ACEOF
  5144. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  5145. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  5146. ac_status=$?
  5147. grep -v '^ *+' conftest.er1 >conftest.err
  5148. rm -f conftest.er1
  5149. cat conftest.err >&5
  5150. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5151. (exit $ac_status); } >/dev/null; then
  5152. if test -s conftest.err; then
  5153. ac_cpp_err=$ac_c_preproc_warn_flag
  5154. ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  5155. else
  5156. ac_cpp_err=
  5157. fi
  5158. else
  5159. ac_cpp_err=yes
  5160. fi
  5161. if test -z "$ac_cpp_err"; then
  5162. ac_header_preproc=yes
  5163. else
  5164. echo "$as_me: failed program was:" >&5
  5165. sed 's/^/| /' conftest.$ac_ext >&5
  5166. ac_header_preproc=no
  5167. fi
  5168. rm -f conftest.err conftest.$ac_ext
  5169. echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  5170. echo "${ECHO_T}$ac_header_preproc" >&6
  5171. # So? What about this header?
  5172. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  5173. yes:no: )
  5174. { echo "$as_me:$LINENO: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
  5175. echo "$as_me: WARNING: mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  5176. { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the compiler's result" >&5
  5177. echo "$as_me: WARNING: mysql.h: proceeding with the compiler's result" >&2;}
  5178. ac_header_preproc=yes
  5179. ;;
  5180. no:yes:* )
  5181. { echo "$as_me:$LINENO: WARNING: mysql.h: present but cannot be compiled" >&5
  5182. echo "$as_me: WARNING: mysql.h: present but cannot be compiled" >&2;}
  5183. { echo "$as_me:$LINENO: WARNING: mysql.h: check for missing prerequisite headers?" >&5
  5184. echo "$as_me: WARNING: mysql.h: check for missing prerequisite headers?" >&2;}
  5185. { echo "$as_me:$LINENO: WARNING: mysql.h: see the Autoconf documentation" >&5
  5186. echo "$as_me: WARNING: mysql.h: see the Autoconf documentation" >&2;}
  5187. { echo "$as_me:$LINENO: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&5
  5188. echo "$as_me: WARNING: mysql.h: section \"Present But Cannot Be Compiled\"" >&2;}
  5189. { echo "$as_me:$LINENO: WARNING: mysql.h: proceeding with the preprocessor's result" >&5
  5190. echo "$as_me: WARNING: mysql.h: proceeding with the preprocessor's result" >&2;}
  5191. { echo "$as_me:$LINENO: WARNING: mysql.h: in the future, the compiler will take precedence" >&5
  5192. echo "$as_me: WARNING: mysql.h: in the future, the compiler will take precedence" >&2;}
  5193. (
  5194. cat <<\_ASBOX
  5195. ## ------------------------------------------ ##
  5196. ## Report this to the AC_PACKAGE_NAME lists. ##
  5197. ## ------------------------------------------ ##
  5198. _ASBOX
  5199. ) |
  5200. sed "s/^/$as_me: WARNING: /" >&2
  5201. ;;
  5202. esac
  5203. echo "$as_me:$LINENO: checking for mysql.h" >&5
  5204. echo $ECHO_N "checking for mysql.h... $ECHO_C" >&6
  5205. if test "${ac_cv_header_mysql_h+set}" = set; then
  5206. echo $ECHO_N "(cached) $ECHO_C" >&6
  5207. else
  5208. ac_cv_header_mysql_h=$ac_header_preproc
  5209. fi
  5210. echo "$as_me:$LINENO: result: $ac_cv_header_mysql_h" >&5
  5211. echo "${ECHO_T}$ac_cv_header_mysql_h" >&6
  5212. fi
  5213. if test $ac_cv_header_mysql_h = yes; then
  5214. :
  5215. else
  5216. HAVE_MYSQL=""
  5217. fi
  5218. CPPFLAGS="$MYSQL_OLD_CPPFLAGS"
  5219. LDFLAGS="$MYSQL_OLD_LDFLAGS"
  5220. echo "$as_me:$LINENO: checking MySQL library (required)" >&5
  5221. echo $ECHO_N "checking MySQL library (required)... $ECHO_C" >&6
  5222. if test "$HAVE_MYSQL" = "yes" ; then
  5223. echo "$as_me:$LINENO: result: yes ($MYSQL_VERSION)" >&5
  5224. echo "${ECHO_T}yes ($MYSQL_VERSION)" >&6
  5225. else
  5226. echo "$as_me:$LINENO: result: no" >&5
  5227. echo "${ECHO_T}no" >&6
  5228. { { echo "$as_me:$LINENO: error: MySQL not found or incompatible" >&5
  5229. echo "$as_me: error: MySQL not found or incompatible" >&2;}
  5230. { (exit 1); exit 1; }; }
  5231. fi
  5232. #
  5233. # PCRE library (optional)
  5234. #
  5235. ##TODO PCRE version
  5236. PCRE_LIBS=""
  5237. PCRE_CFLAGS=""
  5238. if test "$want_pcre" = "no" ; then
  5239. { echo "$as_me:$LINENO: ignoring PCRE (optional)" >&5
  5240. echo "$as_me: ignoring PCRE (optional)" >&6;}
  5241. else
  5242. if test -z "$PCRE_HOME" ; then
  5243. echo "$as_me:$LINENO: checking for pcre_study in -lpcre" >&5
  5244. echo $ECHO_N "checking for pcre_study in -lpcre... $ECHO_C" >&6
  5245. if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then
  5246. echo $ECHO_N "(cached) $ECHO_C" >&6
  5247. else
  5248. ac_check_lib_save_LIBS=$LIBS
  5249. LIBS="-lpcre $LIBS"
  5250. cat >conftest.$ac_ext <<_ACEOF
  5251. /* confdefs.h. */
  5252. _ACEOF
  5253. cat confdefs.h >>conftest.$ac_ext
  5254. cat >>conftest.$ac_ext <<_ACEOF
  5255. /* end confdefs.h. */
  5256. /* Override any gcc2 internal prototype to avoid an error. */
  5257. #ifdef __cplusplus
  5258. extern "C"
  5259. #endif
  5260. /* We use char because int might match the return type of a gcc2
  5261. builtin and then its argument prototype would still apply. */
  5262. char pcre_study ();
  5263. int
  5264. main ()
  5265. {
  5266. pcre_study ();
  5267. ;
  5268. return 0;
  5269. }
  5270. _ACEOF
  5271. rm -f conftest.$ac_objext conftest$ac_exeext
  5272. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5273. (eval $ac_link) 2>conftest.er1
  5274. ac_status=$?
  5275. grep -v '^ *+' conftest.er1 >conftest.err
  5276. rm -f conftest.er1
  5277. cat conftest.err >&5
  5278. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5279. (exit $ac_status); } &&
  5280. { ac_try='test -z "$ac_c_werror_flag"
  5281. || test ! -s conftest.err'
  5282. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5283. (eval $ac_try) 2>&5
  5284. ac_status=$?
  5285. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5286. (exit $ac_status); }; } &&
  5287. { ac_try='test -s conftest$ac_exeext'
  5288. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5289. (eval $ac_try) 2>&5
  5290. ac_status=$?
  5291. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5292. (exit $ac_status); }; }; then
  5293. ac_cv_lib_pcre_pcre_study=yes
  5294. else
  5295. echo "$as_me: failed program was:" >&5
  5296. sed 's/^/| /' conftest.$ac_ext >&5
  5297. ac_cv_lib_pcre_pcre_study=no
  5298. fi
  5299. rm -f conftest.err conftest.$ac_objext \
  5300. conftest$ac_exeext conftest.$ac_ext
  5301. LIBS=$ac_check_lib_save_LIBS
  5302. fi
  5303. echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_study" >&5
  5304. echo "${ECHO_T}$ac_cv_lib_pcre_pcre_study" >&6
  5305. if test $ac_cv_lib_pcre_pcre_study = yes; then
  5306. HAVE_PCRE="yes"
  5307. fi
  5308. if test "$HAVE_PCRE" = "yes" ; then
  5309. PCRE_LIBS="-lpcre"
  5310. fi
  5311. else
  5312. PCRE_OLD_LDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$PCRE_HOME/lib"
  5313. PCRE_OLD_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$PCRE_HOME/include"
  5314. echo "$as_me:$LINENO: checking for pcre_compile in -lpcre" >&5
  5315. echo $ECHO_N "checking for pcre_compile in -lpcre... $ECHO_C" >&6
  5316. if test "${ac_cv_lib_pcre_pcre_compile+set}" = set; then
  5317. echo $ECHO_N "(cached) $ECHO_C" >&6
  5318. else
  5319. ac_check_lib_save_LIBS=$LIBS
  5320. LIBS="-lpcre $LIBS"
  5321. cat >conftest.$ac_ext <<_ACEOF
  5322. /* confdefs.h. */
  5323. _ACEOF
  5324. cat confdefs.h >>conftest.$ac_ext
  5325. cat >>conftest.$ac_ext <<_ACEOF
  5326. /* end confdefs.h. */
  5327. /* Override any gcc2 internal prototype to avoid an error. */
  5328. #ifdef __cplusplus
  5329. extern "C"
  5330. #endif
  5331. /* We use char because int might match the return type of a gcc2
  5332. builtin and then its argument prototype would still apply. */
  5333. char pcre_compile ();
  5334. int
  5335. main ()
  5336. {
  5337. pcre_compile ();
  5338. ;
  5339. return 0;
  5340. }
  5341. _ACEOF
  5342. rm -f conftest.$ac_objext conftest$ac_exeext
  5343. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  5344. (eval $ac_link) 2>conftest.er1
  5345. ac_status=$?
  5346. grep -v '^ *+' conftest.er1 >conftest.err
  5347. rm -f conftest.er1
  5348. cat conftest.err >&5
  5349. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5350. (exit $ac_status); } &&
  5351. { ac_try='test -z "$ac_c_werror_flag"
  5352. || test ! -s conftest.err'
  5353. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5354. (eval $ac_try) 2>&5
  5355. ac_status=$?
  5356. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5357. (exit $ac_status); }; } &&
  5358. { ac_try='test -s conftest$ac_exeext'
  5359. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  5360. (eval $ac_try) 2>&5
  5361. ac_status=$?
  5362. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  5363. (exit $ac_status); }; }; then
  5364. ac_cv_lib_pcre_pcre_compile=yes
  5365. else
  5366. echo "$as_me: failed program was:" >&5
  5367. sed 's/^/| /' conftest.$ac_ext >&5
  5368. ac_cv_lib_pcre_pcre_compile=no
  5369. fi
  5370. rm -f conftest.err conftest.$ac_objext \
  5371. conftest$ac_exeext conftest.$ac_ext
  5372. LIBS=$ac_check_lib_save_LIBS
  5373. fi
  5374. echo "$as_me:$LINENO: result: $ac_cv_lib_pcre_pcre_compile" >&5
  5375. echo "${ECHO_T}$ac_cv_lib_pcre_pcre_compile" >&6
  5376. if test $ac_cv_lib_pcre_pcre_compile = yes; then
  5377. HAVE_PCRE="yes"
  5378. fi
  5379. CPPFLAGS="$PCRE_OLD_CPPFLAGS"
  5380. LDFLAGS="$PCRE_OLD_LDFLAGS"
  5381. if test "$HAVE_PCRE" = "yes" ; then
  5382. PCRE_LIBS="-L$PCRE_HOME/lib -lpcre"
  5383. test -d "$PCRE_HOME/include" && PCRE_CFLAGS="-I$PCRE_HOME/include"
  5384. fi
  5385. fi
  5386. echo "$as_me:$LINENO: checking PCRE library (optional)" >&5
  5387. echo $ECHO_N "checking PCRE library (optional)... $ECHO_C" >&6
  5388. if test "$HAVE_PCRE" = "yes" ; then
  5389. echo "$as_me:$LINENO: result: yes" >&5
  5390. echo "${ECHO_T}yes" >&6
  5391. else
  5392. echo "$as_me:$LINENO: result: no" >&5
  5393. echo "${ECHO_T}no" >&6
  5394. if test "$require_pcre" = "yes" ; then
  5395. { { echo "$as_me:$LINENO: error: PCRE not found or incompatible (requested)" >&5
  5396. echo "$as_me: error: PCRE not found or incompatible (requested)" >&2;}
  5397. { (exit 1); exit 1; }; }
  5398. else
  5399. { echo "$as_me:$LINENO: disabling PCRE (optional)" >&5
  5400. echo "$as_me: disabling PCRE (optional)" >&6;}
  5401. fi
  5402. fi
  5403. fi
  5404. #
  5405. # Host specific stuff
  5406. #
  5407. echo "$as_me:$LINENO: checking host OS" >&5
  5408. echo $ECHO_N "checking host OS... $ECHO_C" >&6
  5409. host_os="`uname`"
  5410. echo "$as_me:$LINENO: result: $host_os" >&5
  5411. echo "${ECHO_T}$host_os" >&6
  5412. fd_setsize=""
  5413. DLLEXT=".so"
  5414. case $host_os in
  5415. Solaris* )
  5416. LIBS="$LIBS -lsocket -lnsl -ldl"
  5417. ;;
  5418. Linux* )
  5419. LIBS="$LIBS -ldl"
  5420. ;;
  5421. FreeBSD*)
  5422. CPPFLAGS="$CPPFLAGS -D__FREEBSD__"
  5423. ;;
  5424. NetBSD*)
  5425. CPPFLAGS="$CPPFLAGS -D__NETBSD__"
  5426. ;;
  5427. CYGWIN*)
  5428. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096 -DCYGWIN"
  5429. fd_setsize="done"
  5430. DLLEXT=".dll"
  5431. ;;
  5432. esac
  5433. echo "$as_me:$LINENO: checking for MinGW" >&5
  5434. echo $ECHO_N "checking for MinGW... $ECHO_C" >&6
  5435. if test -n "`$CC --version | grep -i mingw`" ; then
  5436. echo "$as_me:$LINENO: result: yes" >&5
  5437. echo "${ECHO_T}yes" >&6
  5438. CPPFLAGS="$CPPFLAGS -DMINGW"
  5439. if test -z "$fd_setsize" ; then
  5440. CPPFLAGS="$CPPFLAGS -DFD_SETSIZE=4096"
  5441. fi
  5442. LIBS="$LIBS -lws2_32"
  5443. else
  5444. echo "$as_me:$LINENO: result: no" >&5
  5445. echo "${ECHO_T}no" >&6
  5446. fi
  5447. ###############################################################################
  5448. cat >confcache <<\_ACEOF
  5449. # This file is a shell script that caches the results of configure
  5450. # tests run on this system so they can be shared between configure
  5451. # scripts and configure runs, see configure's option --config-cache.
  5452. # It is not useful on other systems. If it contains results you don't
  5453. # want to keep, you may remove or edit it.
  5454. #
  5455. # config.status only pays attention to the cache file if you give it
  5456. # the --recheck option to rerun configure.
  5457. #
  5458. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  5459. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  5460. # following values.
  5461. _ACEOF
  5462. # The following way of writing the cache mishandles newlines in values,
  5463. # but we know of no workaround that is simple, portable, and efficient.
  5464. # So, don't put newlines in cache variables' values.
  5465. # Ultrix sh set writes to stderr and can't be redirected directly,
  5466. # and sets the high bit in the cache file unless we assign to the vars.
  5467. {
  5468. (set) 2>&1 |
  5469. case `(ac_space=' '; set | grep ac_space) 2>&1` in
  5470. *ac_space=\ *)
  5471. # `set' does not quote correctly, so add quotes (double-quote
  5472. # substitution turns \\\\ into \\, and sed turns \\ into \).
  5473. sed -n \
  5474. "s/'/'\\\\''/g;
  5475. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  5476. ;;
  5477. *)
  5478. # `set' quotes correctly as required by POSIX, so do not add quotes.
  5479. sed -n \
  5480. "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  5481. ;;
  5482. esac;
  5483. } |
  5484. sed '
  5485. t clear
  5486. : clear
  5487. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  5488. t end
  5489. /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  5490. : end' >>confcache
  5491. if diff $cache_file confcache >/dev/null 2>&1; then :; else
  5492. if test -w $cache_file; then
  5493. test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  5494. cat confcache >$cache_file
  5495. else
  5496. echo "not updating unwritable cache $cache_file"
  5497. fi
  5498. fi
  5499. rm -f confcache
  5500. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  5501. # Let make expand exec_prefix.
  5502. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  5503. # VPATH may cause trouble with some makes, so we remove $(srcdir),
  5504. # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  5505. # trailing colons and then remove the whole line if VPATH becomes empty
  5506. # (actually we leave an empty line to preserve line numbers).
  5507. if test "x$srcdir" = x.; then
  5508. ac_vpsub='/^[ ]*VPATH[ ]*=/{
  5509. s/:*\$(srcdir):*/:/;
  5510. s/:*\${srcdir}:*/:/;
  5511. s/:*@srcdir@:*/:/;
  5512. s/^\([^=]*=[ ]*\):*/\1/;
  5513. s/:*$//;
  5514. s/^[^=]*=[ ]*$//;
  5515. }'
  5516. fi
  5517. # Transform confdefs.h into DEFS.
  5518. # Protect against shell expansion while executing Makefile rules.
  5519. # Protect against Makefile macro expansion.
  5520. #
  5521. # If the first sed substitution is executed (which looks for macros that
  5522. # take arguments), then we branch to the quote section. Otherwise,
  5523. # look for a macro that doesn't take arguments.
  5524. cat >confdef2opt.sed <<\_ACEOF
  5525. t clear
  5526. : clear
  5527. s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
  5528. t quote
  5529. s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
  5530. t quote
  5531. d
  5532. : quote
  5533. s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
  5534. s,\[,\\&,g
  5535. s,\],\\&,g
  5536. s,\$,$$,g
  5537. p
  5538. _ACEOF
  5539. # We use echo to avoid assuming a particular line-breaking character.
  5540. # The extra dot is to prevent the shell from consuming trailing
  5541. # line-breaks from the sub-command output. A line-break within
  5542. # single-quotes doesn't work because, if this script is created in a
  5543. # platform that uses two characters for line-breaks (e.g., DOS), tr
  5544. # would break.
  5545. ac_LF_and_DOT=`echo; echo .`
  5546. DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
  5547. rm -f confdef2opt.sed
  5548. ac_libobjs=
  5549. ac_ltlibobjs=
  5550. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  5551. # 1. Remove the extension, and $U if already installed.
  5552. ac_i=`echo "$ac_i" |
  5553. sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  5554. # 2. Add them.
  5555. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  5556. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  5557. done
  5558. LIBOBJS=$ac_libobjs
  5559. LTLIBOBJS=$ac_ltlibobjs
  5560. : ${CONFIG_STATUS=./config.status}
  5561. ac_clean_files_save=$ac_clean_files
  5562. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  5563. { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  5564. echo "$as_me: creating $CONFIG_STATUS" >&6;}
  5565. cat >$CONFIG_STATUS <<_ACEOF
  5566. #! $SHELL
  5567. # Generated by $as_me.
  5568. # Run this file to recreate the current configuration.
  5569. # Compiler output produced by configure, useful for debugging
  5570. # configure, is in config.log if it exists.
  5571. debug=false
  5572. ac_cs_recheck=false
  5573. ac_cs_silent=false
  5574. SHELL=\${CONFIG_SHELL-$SHELL}
  5575. _ACEOF
  5576. cat >>$CONFIG_STATUS <<\_ACEOF
  5577. ## --------------------- ##
  5578. ## M4sh Initialization. ##
  5579. ## --------------------- ##
  5580. # Be Bourne compatible
  5581. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  5582. emulate sh
  5583. NULLCMD=:
  5584. # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  5585. # is contrary to our usage. Disable this feature.
  5586. alias -g '${1+"$@"}'='"$@"'
  5587. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  5588. set -o posix
  5589. fi
  5590. DUALCASE=1; export DUALCASE # for MKS sh
  5591. # Support unset when possible.
  5592. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5593. as_unset=unset
  5594. else
  5595. as_unset=false
  5596. fi
  5597. # Work around bugs in pre-3.0 UWIN ksh.
  5598. $as_unset ENV MAIL MAILPATH
  5599. PS1='$ '
  5600. PS2='> '
  5601. PS4='+ '
  5602. # NLS nuisances.
  5603. for as_var in \
  5604. LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  5605. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  5606. LC_TELEPHONE LC_TIME
  5607. do
  5608. if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  5609. eval $as_var=C; export $as_var
  5610. else
  5611. $as_unset $as_var
  5612. fi
  5613. done
  5614. # Required to use basename.
  5615. if expr a : '\(a\)' >/dev/null 2>&1; then
  5616. as_expr=expr
  5617. else
  5618. as_expr=false
  5619. fi
  5620. if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  5621. as_basename=basename
  5622. else
  5623. as_basename=false
  5624. fi
  5625. # Name of the executable.
  5626. as_me=`$as_basename "$0" ||
  5627. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  5628. X"$0" : 'X\(//\)$' \| \
  5629. X"$0" : 'X\(/\)$' \| \
  5630. . : '\(.\)' 2>/dev/null ||
  5631. echo X/"$0" |
  5632. sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  5633. /^X\/\(\/\/\)$/{ s//\1/; q; }
  5634. /^X\/\(\/\).*/{ s//\1/; q; }
  5635. s/.*/./; q'`
  5636. # PATH needs CR, and LINENO needs CR and PATH.
  5637. # Avoid depending upon Character Ranges.
  5638. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  5639. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  5640. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  5641. as_cr_digits='0123456789'
  5642. as_cr_alnum=$as_cr_Letters$as_cr_digits
  5643. # The user is always right.
  5644. if test "${PATH_SEPARATOR+set}" != set; then
  5645. echo "#! /bin/sh" >conf$$.sh
  5646. echo "exit 0" >>conf$$.sh
  5647. chmod +x conf$$.sh
  5648. if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  5649. PATH_SEPARATOR=';'
  5650. else
  5651. PATH_SEPARATOR=:
  5652. fi
  5653. rm -f conf$$.sh
  5654. fi
  5655. as_lineno_1=$LINENO
  5656. as_lineno_2=$LINENO
  5657. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  5658. test "x$as_lineno_1" != "x$as_lineno_2" &&
  5659. test "x$as_lineno_3" = "x$as_lineno_2" || {
  5660. # Find who we are. Look in the path if we contain no path at all
  5661. # relative or not.
  5662. case $0 in
  5663. *[\\/]* ) as_myself=$0 ;;
  5664. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5665. for as_dir in $PATH
  5666. do
  5667. IFS=$as_save_IFS
  5668. test -z "$as_dir" && as_dir=.
  5669. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  5670. done
  5671. ;;
  5672. esac
  5673. # We did not find ourselves, most probably we were run as `sh COMMAND'
  5674. # in which case we are not to be found in the path.
  5675. if test "x$as_myself" = x; then
  5676. as_myself=$0
  5677. fi
  5678. if test ! -f "$as_myself"; then
  5679. { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  5680. echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  5681. { (exit 1); exit 1; }; }
  5682. fi
  5683. case $CONFIG_SHELL in
  5684. '')
  5685. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5686. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  5687. do
  5688. IFS=$as_save_IFS
  5689. test -z "$as_dir" && as_dir=.
  5690. for as_base in sh bash ksh sh5; do
  5691. case $as_dir in
  5692. /*)
  5693. if ("$as_dir/$as_base" -c '
  5694. as_lineno_1=$LINENO
  5695. as_lineno_2=$LINENO
  5696. as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  5697. test "x$as_lineno_1" != "x$as_lineno_2" &&
  5698. test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  5699. $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  5700. $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  5701. CONFIG_SHELL=$as_dir/$as_base
  5702. export CONFIG_SHELL
  5703. exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  5704. fi;;
  5705. esac
  5706. done
  5707. done
  5708. ;;
  5709. esac
  5710. # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  5711. # uniformly replaced by the line number. The first 'sed' inserts a
  5712. # line-number line before each line; the second 'sed' does the real
  5713. # work. The second script uses 'N' to pair each line-number line
  5714. # with the numbered line, and appends trailing '-' during
  5715. # substitution so that $LINENO is not a special case at line end.
  5716. # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  5717. # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  5718. sed '=' <$as_myself |
  5719. sed '
  5720. N
  5721. s,$,-,
  5722. : loop
  5723. s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  5724. t loop
  5725. s,-$,,
  5726. s,^['$as_cr_digits']*\n,,
  5727. ' >$as_me.lineno &&
  5728. chmod +x $as_me.lineno ||
  5729. { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  5730. echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  5731. { (exit 1); exit 1; }; }
  5732. # Don't try to exec as it changes $[0], causing all sort of problems
  5733. # (the dirname of $[0] is not the place where we might find the
  5734. # original and so on. Autoconf is especially sensible to this).
  5735. . ./$as_me.lineno
  5736. # Exit status is that of the last command.
  5737. exit
  5738. }
  5739. case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  5740. *c*,-n*) ECHO_N= ECHO_C='
  5741. ' ECHO_T=' ' ;;
  5742. *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  5743. *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  5744. esac
  5745. if expr a : '\(a\)' >/dev/null 2>&1; then
  5746. as_expr=expr
  5747. else
  5748. as_expr=false
  5749. fi
  5750. rm -f conf$$ conf$$.exe conf$$.file
  5751. echo >conf$$.file
  5752. if ln -s conf$$.file conf$$ 2>/dev/null; then
  5753. # We could just check for DJGPP; but this test a) works b) is more generic
  5754. # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  5755. if test -f conf$$.exe; then
  5756. # Don't use ln at all; we don't have any links
  5757. as_ln_s='cp -p'
  5758. else
  5759. as_ln_s='ln -s'
  5760. fi
  5761. elif ln conf$$.file conf$$ 2>/dev/null; then
  5762. as_ln_s=ln
  5763. else
  5764. as_ln_s='cp -p'
  5765. fi
  5766. rm -f conf$$ conf$$.exe conf$$.file
  5767. if mkdir -p . 2>/dev/null; then
  5768. as_mkdir_p=:
  5769. else
  5770. test -d ./-p && rmdir ./-p
  5771. as_mkdir_p=false
  5772. fi
  5773. as_executable_p="test -f"
  5774. # Sed expression to map a string onto a valid CPP name.
  5775. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  5776. # Sed expression to map a string onto a valid variable name.
  5777. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  5778. # IFS
  5779. # We need space, tab and new line, in precisely that order.
  5780. as_nl='
  5781. '
  5782. IFS=" $as_nl"
  5783. # CDPATH.
  5784. $as_unset CDPATH
  5785. exec 6>&1
  5786. # Open the log real soon, to keep \$[0] and so on meaningful, and to
  5787. # report actual input values of CONFIG_FILES etc. instead of their
  5788. # values after options handling. Logging --version etc. is OK.
  5789. exec 5>>config.log
  5790. {
  5791. echo
  5792. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  5793. ## Running $as_me. ##
  5794. _ASBOX
  5795. } >&5
  5796. cat >&5 <<_CSEOF
  5797. This file was extended by $as_me, which was
  5798. generated by GNU Autoconf 2.59. Invocation command line was
  5799. CONFIG_FILES = $CONFIG_FILES
  5800. CONFIG_HEADERS = $CONFIG_HEADERS
  5801. CONFIG_LINKS = $CONFIG_LINKS
  5802. CONFIG_COMMANDS = $CONFIG_COMMANDS
  5803. $ $0 $@
  5804. _CSEOF
  5805. echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  5806. echo >&5
  5807. _ACEOF
  5808. # Files that config.status was made for.
  5809. if test -n "$ac_config_files"; then
  5810. echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  5811. fi
  5812. if test -n "$ac_config_headers"; then
  5813. echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  5814. fi
  5815. if test -n "$ac_config_links"; then
  5816. echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  5817. fi
  5818. if test -n "$ac_config_commands"; then
  5819. echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  5820. fi
  5821. cat >>$CONFIG_STATUS <<\_ACEOF
  5822. ac_cs_usage="\
  5823. \`$as_me' instantiates files from templates according to the
  5824. current configuration.
  5825. Usage: $0 [OPTIONS] [FILE]...
  5826. -h, --help print this help, then exit
  5827. -V, --version print version number, then exit
  5828. -q, --quiet do not print progress messages
  5829. -d, --debug don't remove temporary files
  5830. --recheck update $as_me by reconfiguring in the same conditions
  5831. --file=FILE[:TEMPLATE]
  5832. instantiate the configuration file FILE
  5833. Configuration files:
  5834. $config_files
  5835. Report bugs to <bug-autoconf@gnu.org>."
  5836. _ACEOF
  5837. cat >>$CONFIG_STATUS <<_ACEOF
  5838. ac_cs_version="\\
  5839. config.status
  5840. configured by $0, generated by GNU Autoconf 2.59,
  5841. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  5842. Copyright (C) 2003 Free Software Foundation, Inc.
  5843. This config.status script is free software; the Free Software Foundation
  5844. gives unlimited permission to copy, distribute and modify it."
  5845. srcdir=$srcdir
  5846. _ACEOF
  5847. cat >>$CONFIG_STATUS <<\_ACEOF
  5848. # If no file are specified by the user, then we need to provide default
  5849. # value. By we need to know if files were specified by the user.
  5850. ac_need_defaults=:
  5851. while test $# != 0
  5852. do
  5853. case $1 in
  5854. --*=*)
  5855. ac_option=`expr "x$1" : 'x\([^=]*\)='`
  5856. ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  5857. ac_shift=:
  5858. ;;
  5859. -*)
  5860. ac_option=$1
  5861. ac_optarg=$2
  5862. ac_shift=shift
  5863. ;;
  5864. *) # This is not an option, so the user has probably given explicit
  5865. # arguments.
  5866. ac_option=$1
  5867. ac_need_defaults=false;;
  5868. esac
  5869. case $ac_option in
  5870. # Handling of the options.
  5871. _ACEOF
  5872. cat >>$CONFIG_STATUS <<\_ACEOF
  5873. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  5874. ac_cs_recheck=: ;;
  5875. --version | --vers* | -V )
  5876. echo "$ac_cs_version"; exit 0 ;;
  5877. --he | --h)
  5878. # Conflict between --help and --header
  5879. { { echo "$as_me:$LINENO: error: ambiguous option: $1
  5880. Try \`$0 --help' for more information." >&5
  5881. echo "$as_me: error: ambiguous option: $1
  5882. Try \`$0 --help' for more information." >&2;}
  5883. { (exit 1); exit 1; }; };;
  5884. --help | --hel | -h )
  5885. echo "$ac_cs_usage"; exit 0 ;;
  5886. --debug | --d* | -d )
  5887. debug=: ;;
  5888. --file | --fil | --fi | --f )
  5889. $ac_shift
  5890. CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  5891. ac_need_defaults=false;;
  5892. --header | --heade | --head | --hea )
  5893. $ac_shift
  5894. CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  5895. ac_need_defaults=false;;
  5896. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  5897. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  5898. ac_cs_silent=: ;;
  5899. # This is an error.
  5900. -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  5901. Try \`$0 --help' for more information." >&5
  5902. echo "$as_me: error: unrecognized option: $1
  5903. Try \`$0 --help' for more information." >&2;}
  5904. { (exit 1); exit 1; }; } ;;
  5905. *) ac_config_targets="$ac_config_targets $1" ;;
  5906. esac
  5907. shift
  5908. done
  5909. ac_configure_extra_args=
  5910. if $ac_cs_silent; then
  5911. exec 6>/dev/null
  5912. ac_configure_extra_args="$ac_configure_extra_args --silent"
  5913. fi
  5914. _ACEOF
  5915. cat >>$CONFIG_STATUS <<_ACEOF
  5916. if \$ac_cs_recheck; then
  5917. echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  5918. exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  5919. fi
  5920. _ACEOF
  5921. cat >>$CONFIG_STATUS <<\_ACEOF
  5922. for ac_config_target in $ac_config_targets
  5923. do
  5924. case "$ac_config_target" in
  5925. # Handling of arguments.
  5926. "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  5927. "src/common/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/common/Makefile" ;;
  5928. "3rdparty/mt19937ar/Makefile" ) CONFIG_FILES="$CONFIG_FILES 3rdparty/mt19937ar/Makefile" ;;
  5929. "3rdparty/libconfig/Makefile" ) CONFIG_FILES="$CONFIG_FILES 3rdparty/libconfig/Makefile" ;;
  5930. "src/char/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/char/Makefile" ;;
  5931. "src/login/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/login/Makefile" ;;
  5932. "src/map/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/map/Makefile" ;;
  5933. "src/plugins/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/plugins/Makefile" ;;
  5934. "src/tool/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tool/Makefile" ;;
  5935. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  5936. echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  5937. { (exit 1); exit 1; }; };;
  5938. esac
  5939. done
  5940. # If the user did not use the arguments to specify the items to instantiate,
  5941. # then the envvar interface is used. Set only those that are not.
  5942. # We use the long form for the default assignment because of an extremely
  5943. # bizarre bug on SunOS 4.1.3.
  5944. if $ac_need_defaults; then
  5945. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  5946. fi
  5947. # Have a temporary directory for convenience. Make it in the build tree
  5948. # simply because there is no reason to put it here, and in addition,
  5949. # creating and moving files from /tmp can sometimes cause problems.
  5950. # Create a temporary directory, and hook for its removal unless debugging.
  5951. $debug ||
  5952. {
  5953. trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  5954. trap '{ (exit 1); exit 1; }' 1 2 13 15
  5955. }
  5956. # Create a (secure) tmp directory for tmp files.
  5957. {
  5958. tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  5959. test -n "$tmp" && test -d "$tmp"
  5960. } ||
  5961. {
  5962. tmp=./confstat$$-$RANDOM
  5963. (umask 077 && mkdir $tmp)
  5964. } ||
  5965. {
  5966. echo "$me: cannot create a temporary directory in ." >&2
  5967. { (exit 1); exit 1; }
  5968. }
  5969. _ACEOF
  5970. cat >>$CONFIG_STATUS <<_ACEOF
  5971. #
  5972. # CONFIG_FILES section.
  5973. #
  5974. # No need to generate the scripts if there are no CONFIG_FILES.
  5975. # This happens for instance when ./config.status config.h
  5976. if test -n "\$CONFIG_FILES"; then
  5977. # Protect against being on the right side of a sed subst in config.status.
  5978. sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  5979. s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  5980. s,@SHELL@,$SHELL,;t t
  5981. s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  5982. s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  5983. s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  5984. s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  5985. s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  5986. s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  5987. s,@exec_prefix@,$exec_prefix,;t t
  5988. s,@prefix@,$prefix,;t t
  5989. s,@program_transform_name@,$program_transform_name,;t t
  5990. s,@bindir@,$bindir,;t t
  5991. s,@sbindir@,$sbindir,;t t
  5992. s,@libexecdir@,$libexecdir,;t t
  5993. s,@datadir@,$datadir,;t t
  5994. s,@sysconfdir@,$sysconfdir,;t t
  5995. s,@sharedstatedir@,$sharedstatedir,;t t
  5996. s,@localstatedir@,$localstatedir,;t t
  5997. s,@libdir@,$libdir,;t t
  5998. s,@includedir@,$includedir,;t t
  5999. s,@oldincludedir@,$oldincludedir,;t t
  6000. s,@infodir@,$infodir,;t t
  6001. s,@mandir@,$mandir,;t t
  6002. s,@build_alias@,$build_alias,;t t
  6003. s,@host_alias@,$host_alias,;t t
  6004. s,@target_alias@,$target_alias,;t t
  6005. s,@DEFS@,$DEFS,;t t
  6006. s,@ECHO_C@,$ECHO_C,;t t
  6007. s,@ECHO_N@,$ECHO_N,;t t
  6008. s,@ECHO_T@,$ECHO_T,;t t
  6009. s,@LIBS@,$LIBS,;t t
  6010. s,@SET_MAKE@,$SET_MAKE,;t t
  6011. s,@CC@,$CC,;t t
  6012. s,@CFLAGS@,$CFLAGS,;t t
  6013. s,@LDFLAGS@,$LDFLAGS,;t t
  6014. s,@CPPFLAGS@,$CPPFLAGS,;t t
  6015. s,@ac_ct_CC@,$ac_ct_CC,;t t
  6016. s,@EXEEXT@,$EXEEXT,;t t
  6017. s,@OBJEXT@,$OBJEXT,;t t
  6018. s,@CPP@,$CPP,;t t
  6019. s,@WITH_PLUGINS@,$WITH_PLUGINS,;t t
  6020. s,@EGREP@,$EGREP,;t t
  6021. s,@MYSQL_CONFIG_HOME@,$MYSQL_CONFIG_HOME,;t t
  6022. s,@HAVE_MYSQL@,$HAVE_MYSQL,;t t
  6023. s,@MYSQL_VERSION@,$MYSQL_VERSION,;t t
  6024. s,@MYSQL_CFLAGS@,$MYSQL_CFLAGS,;t t
  6025. s,@MYSQL_LIBS@,$MYSQL_LIBS,;t t
  6026. s,@HAVE_PCRE@,$HAVE_PCRE,;t t
  6027. s,@PCRE_LIBS@,$PCRE_LIBS,;t t
  6028. s,@PCRE_CFLAGS@,$PCRE_CFLAGS,;t t
  6029. s,@DLLEXT@,$DLLEXT,;t t
  6030. s,@LIBOBJS@,$LIBOBJS,;t t
  6031. s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  6032. CEOF
  6033. _ACEOF
  6034. cat >>$CONFIG_STATUS <<\_ACEOF
  6035. # Split the substitutions into bite-sized pieces for seds with
  6036. # small command number limits, like on Digital OSF/1 and HP-UX.
  6037. ac_max_sed_lines=48
  6038. ac_sed_frag=1 # Number of current file.
  6039. ac_beg=1 # First line for current file.
  6040. ac_end=$ac_max_sed_lines # Line after last line for current file.
  6041. ac_more_lines=:
  6042. ac_sed_cmds=
  6043. while $ac_more_lines; do
  6044. if test $ac_beg -gt 1; then
  6045. sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  6046. else
  6047. sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  6048. fi
  6049. if test ! -s $tmp/subs.frag; then
  6050. ac_more_lines=false
  6051. else
  6052. # The purpose of the label and of the branching condition is to
  6053. # speed up the sed processing (if there are no `@' at all, there
  6054. # is no need to browse any of the substitutions).
  6055. # These are the two extra sed commands mentioned above.
  6056. (echo ':t
  6057. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  6058. if test -z "$ac_sed_cmds"; then
  6059. ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  6060. else
  6061. ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  6062. fi
  6063. ac_sed_frag=`expr $ac_sed_frag + 1`
  6064. ac_beg=$ac_end
  6065. ac_end=`expr $ac_end + $ac_max_sed_lines`
  6066. fi
  6067. done
  6068. if test -z "$ac_sed_cmds"; then
  6069. ac_sed_cmds=cat
  6070. fi
  6071. fi # test -n "$CONFIG_FILES"
  6072. _ACEOF
  6073. cat >>$CONFIG_STATUS <<\_ACEOF
  6074. for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  6075. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  6076. case $ac_file in
  6077. - | *:- | *:-:* ) # input from stdin
  6078. cat >$tmp/stdin
  6079. ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  6080. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  6081. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  6082. ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  6083. * ) ac_file_in=$ac_file.in ;;
  6084. esac
  6085. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  6086. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  6087. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6088. X"$ac_file" : 'X\(//\)[^/]' \| \
  6089. X"$ac_file" : 'X\(//\)$' \| \
  6090. X"$ac_file" : 'X\(/\)' \| \
  6091. . : '\(.\)' 2>/dev/null ||
  6092. echo X"$ac_file" |
  6093. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6094. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6095. /^X\(\/\/\)$/{ s//\1/; q; }
  6096. /^X\(\/\).*/{ s//\1/; q; }
  6097. s/.*/./; q'`
  6098. { if $as_mkdir_p; then
  6099. mkdir -p "$ac_dir"
  6100. else
  6101. as_dir="$ac_dir"
  6102. as_dirs=
  6103. while test ! -d "$as_dir"; do
  6104. as_dirs="$as_dir $as_dirs"
  6105. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  6106. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  6107. X"$as_dir" : 'X\(//\)[^/]' \| \
  6108. X"$as_dir" : 'X\(//\)$' \| \
  6109. X"$as_dir" : 'X\(/\)' \| \
  6110. . : '\(.\)' 2>/dev/null ||
  6111. echo X"$as_dir" |
  6112. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  6113. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  6114. /^X\(\/\/\)$/{ s//\1/; q; }
  6115. /^X\(\/\).*/{ s//\1/; q; }
  6116. s/.*/./; q'`
  6117. done
  6118. test ! -n "$as_dirs" || mkdir $as_dirs
  6119. fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  6120. echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  6121. { (exit 1); exit 1; }; }; }
  6122. ac_builddir=.
  6123. if test "$ac_dir" != .; then
  6124. ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  6125. # A "../" for each directory in $ac_dir_suffix.
  6126. ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  6127. else
  6128. ac_dir_suffix= ac_top_builddir=
  6129. fi
  6130. case $srcdir in
  6131. .) # No --srcdir option. We are building in place.
  6132. ac_srcdir=.
  6133. if test -z "$ac_top_builddir"; then
  6134. ac_top_srcdir=.
  6135. else
  6136. ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  6137. fi ;;
  6138. [\\/]* | ?:[\\/]* ) # Absolute path.
  6139. ac_srcdir=$srcdir$ac_dir_suffix;
  6140. ac_top_srcdir=$srcdir ;;
  6141. *) # Relative path.
  6142. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  6143. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  6144. esac
  6145. # Do not use `cd foo && pwd` to compute absolute paths, because
  6146. # the directories may not exist.
  6147. case `pwd` in
  6148. .) ac_abs_builddir="$ac_dir";;
  6149. *)
  6150. case "$ac_dir" in
  6151. .) ac_abs_builddir=`pwd`;;
  6152. [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  6153. *) ac_abs_builddir=`pwd`/"$ac_dir";;
  6154. esac;;
  6155. esac
  6156. case $ac_abs_builddir in
  6157. .) ac_abs_top_builddir=${ac_top_builddir}.;;
  6158. *)
  6159. case ${ac_top_builddir}. in
  6160. .) ac_abs_top_builddir=$ac_abs_builddir;;
  6161. [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  6162. *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  6163. esac;;
  6164. esac
  6165. case $ac_abs_builddir in
  6166. .) ac_abs_srcdir=$ac_srcdir;;
  6167. *)
  6168. case $ac_srcdir in
  6169. .) ac_abs_srcdir=$ac_abs_builddir;;
  6170. [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  6171. *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  6172. esac;;
  6173. esac
  6174. case $ac_abs_builddir in
  6175. .) ac_abs_top_srcdir=$ac_top_srcdir;;
  6176. *)
  6177. case $ac_top_srcdir in
  6178. .) ac_abs_top_srcdir=$ac_abs_builddir;;
  6179. [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  6180. *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  6181. esac;;
  6182. esac
  6183. if test x"$ac_file" != x-; then
  6184. { echo "$as_me:$LINENO: creating $ac_file" >&5
  6185. echo "$as_me: creating $ac_file" >&6;}
  6186. rm -f "$ac_file"
  6187. fi
  6188. # Let's still pretend it is `configure' which instantiates (i.e., don't
  6189. # use $as_me), people would be surprised to read:
  6190. # /* config.h. Generated by config.status. */
  6191. if test x"$ac_file" = x-; then
  6192. configure_input=
  6193. else
  6194. configure_input="$ac_file. "
  6195. fi
  6196. configure_input=$configure_input"Generated from `echo $ac_file_in |
  6197. sed 's,.*/,,'` by configure."
  6198. # First look for the input files in the build tree, otherwise in the
  6199. # src tree.
  6200. ac_file_inputs=`IFS=:
  6201. for f in $ac_file_in; do
  6202. case $f in
  6203. -) echo $tmp/stdin ;;
  6204. [\\/$]*)
  6205. # Absolute (can't be DOS-style, as IFS=:)
  6206. test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  6207. echo "$as_me: error: cannot find input file: $f" >&2;}
  6208. { (exit 1); exit 1; }; }
  6209. echo "$f";;
  6210. *) # Relative
  6211. if test -f "$f"; then
  6212. # Build tree
  6213. echo "$f"
  6214. elif test -f "$srcdir/$f"; then
  6215. # Source tree
  6216. echo "$srcdir/$f"
  6217. else
  6218. # /dev/null tree
  6219. { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  6220. echo "$as_me: error: cannot find input file: $f" >&2;}
  6221. { (exit 1); exit 1; }; }
  6222. fi;;
  6223. esac
  6224. done` || { (exit 1); exit 1; }
  6225. _ACEOF
  6226. cat >>$CONFIG_STATUS <<_ACEOF
  6227. sed "$ac_vpsub
  6228. $extrasub
  6229. _ACEOF
  6230. cat >>$CONFIG_STATUS <<\_ACEOF
  6231. :t
  6232. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  6233. s,@configure_input@,$configure_input,;t t
  6234. s,@srcdir@,$ac_srcdir,;t t
  6235. s,@abs_srcdir@,$ac_abs_srcdir,;t t
  6236. s,@top_srcdir@,$ac_top_srcdir,;t t
  6237. s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  6238. s,@builddir@,$ac_builddir,;t t
  6239. s,@abs_builddir@,$ac_abs_builddir,;t t
  6240. s,@top_builddir@,$ac_top_builddir,;t t
  6241. s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  6242. " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  6243. rm -f $tmp/stdin
  6244. if test x"$ac_file" != x-; then
  6245. mv $tmp/out $ac_file
  6246. else
  6247. cat $tmp/out
  6248. rm -f $tmp/out
  6249. fi
  6250. done
  6251. _ACEOF
  6252. cat >>$CONFIG_STATUS <<\_ACEOF
  6253. { (exit 0); exit 0; }
  6254. _ACEOF
  6255. chmod +x $CONFIG_STATUS
  6256. ac_clean_files=$ac_clean_files_save
  6257. # configure is writing to config.log, and then calls config.status.
  6258. # config.status does its own redirection, appending to config.log.
  6259. # Unfortunately, on DOS this fails, as config.log is still kept open
  6260. # by configure, so config.status won't be able to write to it; its
  6261. # output is simply discarded. So we exec the FD to /dev/null,
  6262. # effectively closing config.log, so it can be properly (re)opened and
  6263. # appended to by config.status. When coming back to configure, we
  6264. # need to make the FD available again.
  6265. if test "$no_create" != yes; then
  6266. ac_cs_success=:
  6267. ac_config_status_args=
  6268. test "$silent" = yes &&
  6269. ac_config_status_args="$ac_config_status_args --quiet"
  6270. exec 5>/dev/null
  6271. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  6272. exec 5>>config.log
  6273. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  6274. # would make configure fail if this is the last instruction.
  6275. $ac_cs_success || { (exit 1); exit 1; }
  6276. fi