configure 188 KB

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