configure 197 KB

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